Sunday, July 24, 2011

Google Closure Book


Closure: The Definitive Guide

Tools for adding power to your JavaScript



















Saturday, July 23, 2011

Access Content of Request in C# (ASP .NET)

You can access the content of the HTTP Request like this:

byte[] bytes = Request.BinaryRead(Request.ContentLength);

If the content-type of the request is text/xml you can do this:

byte[] bytes = Request.BinaryRead(Request.ContentLength);
System.Text.Encoding enc = System.Text.Encoding.UTF8;
string XmlData = enc.GetString(bytes);

Monday, July 11, 2011

rdesktop Remote Desktop from Linux To Windows

Have you ever tried connecting from a Linux machine to a Windows server using rdesktop?
If you get the error:

ERROR: recv: Connection reset by peer



Solution:
Go to the Windows machine's Configure Remote Desktop and choose:

Allow Connections from computers running any version of Remote Desktop 



use -f switch for full screen mode. You can press CTRL + ALT + ENTER to exit from full screen.