os trabalhos e os dias vivendo o sonho e a realidade ao mesmo tempo (1)

13Nov/120

How to add a static route in Windows

All you need is:

route add 186.122.6.3 174.12.22.1

... where 186.122.6.3 is your target computer and 174.12.22.1 you gateway (check with ipconfig).

Add -p to make the route permanent.

And love.

Filed under: Good to know No Comments
2Jul/101

Of load balancers and keep-alive.timeout and web pages working hard

Some web pages take a long time to load. This is not always a problem: it only means they they have a lot of work to do. Fine, just wait until they are done.

The problem is that sometimes something in the middle will decide how long is too long. Then you will get an error such as this (in Firefox):

"The connection was reset .
The connection to the server was reset while the page was loading."

Firefox - The connection was reset

This could be the browser giving up. For Firefox type "about:config" in the address bar and increase the value of network.http.keep-alive.timeout.

But... it can also be some other device in the way, such as a load balancer. Load balancers are one of those needed nuisances that always fail you. They may well decide that enough is enough and they are going to cut that connection, even if you really wanted to wait for the page to finish doing its job. If you can go around load balancers you can avoid these problems. If not... start optimizing that web page loading time to fit into whatever the load balancer thinks is enough or do your heavy work in the background (like you always should).

Filed under: Good to know 1 Comment
24Jun/100

No, I don’t want to restart my computer after a Windows Update!

Start -> Run -> net stop wuauserv

Filed under: Good to know No Comments
14Jun/100

Regular expressions on Oracle 8i and 9i

Use the OWA_PATTERN package, Luke!

Filed under: Good to know No Comments
20Feb/100

Failed to CoCreate profiler

After using and uninstalling ANTS memory profiler this was left behind on the Environment registry key of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\ :

Cor_Enable_Profiling=0x1
COR_PROFILER={D60F7519-2600-4865-8AC1-C621C9CE41A2}
ANTS_PROCESS_GROUP=e481699b-c05d-4e9a-94e9-8b89a73b69d1
ANTS_PIPE=\\.\pipe\AMP51

Doug advises to remove only the variables from the Environment value. Anik explains why this makes the service fail to start and why you must remove the whole Environment value.

Filed under: Good to know No Comments
18Feb/100

Ctrl + Alt + End sends Ctrl + Alt + Del on Remote Desktop

Yes, Ctrl + Alt + End sends Ctrl + Alt + Del on Remote Desktop.

Filed under: Good to know No Comments