HTTP POST must be encoded and windows.location is encoded

When using JavaScript window.location in your code, be aware, that window.location is encoded using JavaScript escape function. It is not always obvious because characters, that get encoded / decoded using escape() / unescape() is rare in urls. Use the following syntax to get human readable url: unescape(window.location) URL: http://example.com/test url/ window.location: http://example.com/test%20url/ unescape(window.location): http://example.com/test url/ …

Windows Update Agent downloaded and installed itself automatically

Today I noticed that Windows Update looks different (larger icons – different UI). It was strange, because I didn’t installed any updates and I have selected ‘Check for updates but let me choose whether to download and install them’ under ‘Change Settings’ under ‘Windows Update Control Panel’. I searched web and found that this have …

Ubuntu Server: rename eth1 to eth0

Today I needed to change / rename network interface name ‘eth1’ to ‘eth0’, after replacing broken network card. I searched for the file ‘/etc/iftab’, and it was not there. The solution lies in the file ‘/etc/udev/rules.d/70-persistent-net.rules’: # PCI device 0x1022:0x2000 (pcnet32) SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:0b:49:81:02:13″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth1″ Changing NAME=”eth1″ to NAME=”eth0″ did the trick. …