Sunday, March 29, 2009

Capture traffic between server and client application reside on localhost

Loopback capture setup

Interesting/useful post:
WireShark does not capture localhost traffic because it does not reach the
miniport level as Wireshark uses NDIS IM filter driver.
This is done to avoid useless overhead. If you want to capture this data,
try to get sniffers which operate at user mode level, or a TDI level at
kernel mode. You can have a try with TDIMon, TDIScoupe, but they just show
IRPs and not the data. I don't know any good TDI level sniffer, probably you
should search for good LSPs based solutions.
(http://groups.google.com/group/microsoft.public.win32.programmer.
networks/browse_thread/thread/fe5d3b56e41baa5a/69f2b78e6b37367c?lnk=raot
)

Solution:
Wireshark can't actually capture local packets on windows XP due to the nature of the windows TCP stack. When packets are sent and received on the same machine they don't seem to cross the network boundary that wireshark monitors.

However there is a way around this, you can route the local traffic out via your network gateway (router) by setting up a (temporary) static route on your windows XP machine.

Say your XP IP address is 192.168.0.2 and your gateway (router) address is 192.168.0.1 you could run the following command from windows XP command line to force all local traffic out and back across the network boundary, so wireshark could then track the data (note that wireshark will report packets twice in this scenario, once when they leave your pc and once when they return).

route add 192.168.0.2 mask 255.255.255.255 192.168.0.1 metric 1
(http://forums.whirlpool.net.au/forum-replies-archive.cfm/1037087.html)

Enable Multiple Remote Desktop Session on Windows XP

Feb 25, 2011:
How to Enable Concurrent Sessions in Windows 7 Service Pack 1 RTM
===

1) Obtain patched termsrv.dll that matched your current version

2) Backup original files in the following folder:
system32
system32\dllcache
ServicePackFiles\i386 (if exist)

3) Create registry file (for example, we'll name it ts_multi.reg)
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Terminal Server\Licensing Core]
"EnableConcurrentSessions"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"EnableConcurrentSessions"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"AllowMultipleTSSessions"=dword:00000001

4) Create Scheduled Task (run with administrator level privelege)
c:\windows\regedit.exe /s c:\windows\ts_multi.reg

5) Use gpedit.msc to edit this policy:
Computer Configuration -> Administrative Templates -> Windows Components -> Terminal Services -> Enable Limit Number of Connections

In the case that remote session is only possible if a user with administrator level logged on first then you must add the ordinary user that usually log on to that machine to local Administrators group.

Source:
Enable Multiple Concurrent Remote Desktop Connections
or Sessions in Windows XP
www.mydigitallife.info/2008/06/13/enable-multiple-concurrent-
remote-desktop-connections-or-sessions-in-windows-xp/

Dont forget to read Comments as well
especially by sweetsinse on September 16th, 2008 22:20

"Backup" article (with "backup" download links):
Ativando Multiplas Conexões Remote Desktop no Windows XP
http://sobrepcs.blogspot.com/2008/11/ativando-multiplas-conexes-remote.html

Easier way that works for me (only tested with XP SP2)
Multiple Remote Desktop on Microsoft Windows XP, Vista and 7
www.linuk.web.id/2011/04/multiple-remote-desktop-on-microsoft.html
Caution:
When run, Universal Termsrv.dll Patch try to connect to Internet, so it's better to disconnect your Internet first or use firewall to block it

Related article:
Windows XP SP2 tcpip.sys connection limit patch
www.speedguide.net/articles/windows-xp-sp2-tcpipsys-connection-limit-patch-1497

Free Multiple Remote Desktop Sessions in Windows
http://lancore.sourceforge.net/en/multiple_remote_desktop_sessions.html

Alternative (paid) solutions:
Concurrent Terminal Services (RDP) sessions under Windows XP!
http://tinyapps.org/blog/windows/200708080715_windows_xp_terminal_services.html

Monday, March 23, 2009

Example of complex report

How Do I ... Create some complicated data groups and build a recap?

I recently had to create a very complicated report for a client that covers several different techniques. I thought it would be good to share this modified sample with everyone.

At first, the report sounded simple (don't they all!) Create a list of orders, sorted and subtotaled by customer and each customer should start on a new page. That's easy, I can handle that. Put the orders in the detail band. Create a data group on the Customer and mark it to start on a new page. Put subtotals for the customer in the Data Group Footer band.

Oh .. the client says .. the list of orders per customer can get quite long. Can we have ledger-style shading or a line every so many lines? Sure, I think I can handle this. Oh ... the client says again ... we'd also like subtotals at the bottom of each page showing the totals of just that page. That should be easy .. I can use the page footer band. Oh wait .. as I think that through some more, it's not going to work because on the last page for the customer, the data group footer band would print and then the page footer would show up at the bottom. That's not cool. Hmm ... these two requirements combined make things a little sticky .. but I'm sure I can come up with the answer.

Then comes the killer requirement .. Remember those page subtotals we want at the bottom of each page .. well .. at the end of the customer we'd also like a recap that shows each one of those subtotals like the following:

Page 1, $999.99
Page 2, $999.99
Page 3, $999.99

Yuk .. I really don't like that one especially combined with the ledger-style and page subtotals. Now I'm really going to have to put some thought into this report. I think my head is spinning!

.....................
Read full writing at:
http://cathypountney.blogspot.com/2008/01/
how-do-i-create-some-complicated-data.html

Friday, March 20, 2009

Will data on disk erased by magnet?

WILL A MAGNET ERASE ALL DATA ON A COMPUTER HARDRIVE
www.experts-exchange.com/Storage/Hard_Drives/Q_22470455.html

Thursday, March 19, 2009

Men's Hair Style Photos @ MensHairStyles.net

www.thehairstyler.com
www.menshairstyles.net/main.php

Wednesday, March 18, 2009

Printer created on session with non-English language

Check properties of driver files installed on the [terminal] server [using Server properties] to determine their language and reinstall the ones with correct language if necessary.

SalvationData FAQ - HD Doctor for Maxtor

A HDD becomes full of bad tracks after recovering firmware, what’s the reason?
Generally, you only need to recover the error modules and uploading all modules is not recommended. If you need to upload all modules, you should first backup P-list and import it after uploading modules. Otherwise, it will cause HDD full of bad tracks.

A HDD is detected ?ATHENA?in BIOS and ?!!!!!!?by MHDD, how to repair it?
It should be firmware corruption. Set the HDD in safe mode and boot it into SA to recover the corrupted modules.

How to operate HOT SWAP PCB?
First, find a good identical HDD and connect it to the console. Launch the program, and then stop the spindle motor only. Remove PCB with power on and install it on the malfunction HPA (Head and Platter Assembly). Then restart the motor, now you can operate on SA.