Saturday, April 11, 2009

Where are KDE 4 wallpapers?

Good luck searching for KDE 4 Air wallpaper on Google.  I spent an hour trying to find it.  Finally a post on some obscure message board led me to the KDE SVN repository.  So here’s the link to all KDE wallpapers: http://websvn.kde.org/trunk/KDE/kdebase/workspace/wallpapers/

Tuesday, April 07, 2009

Internet Explorer cannot display the webpage

What?  I was trying to access my bank’s web page but instead of the page I was presented with this message.  Is the web site down?  Nope, doesn’t seem to be.  It pings with no problem.  I’m firing up the Firefox, and voila – the web page appears before my eyes.  Is something wrong with the IE?  Did I unknowingly install a rogue browser extension, spyware or adware?  The fact that it’s a bank’s site made me suspicious.

Or is it just IE8?  I’m trying compatibility mode – nope, the same result.  Trying IE8 from another machine.  Works like a charm!  This is starting to look very troubling.  OK, it’s time for serious investigation.

Perhaps Autoruns can tell me what’s going on?  It’s a Sysinternals tool.  I’m looking through IE BHO’s, Winsock providers, other stuff that’s in there.  Nothing stands out.  Everything looks normal.

Perhaps it’s the anti-virus?  Or Vmware network services?  Shutting everything down.  Still nothing.

OK, let’s take a look at what happens at the network level.  Launching the Wireshark.  Capturing some network packets and what am I seeing?  IE8 sends a DNS query for the bank’s site.  The query resolves OK.  Then it establishes the connection: SYN, SYN+ACK, ACK – so far so good.  Then it sends HTTP GET.  And the very next packet it receives from the site is RST.  No wonder it can’t display the web page!  The site just drops the connection.

I’m relieved.  At least it’s not a spyware.

But why the hell it drops the connection on IE8 whereas Firefox works just fine?  It must be something with the User Agent string.  I’m looking at the string and I can’t believe how long it is.  There’s all sorts of crap in there:

User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 1.1.4322; Origami Experience 1.1; .NET CLR 3.5.21022; Zune 3.0; .NET CLR 3.5.30729; .NET CLR 3

In fact, it’s so long the IE doesn’t even send the whole string.

Time to fix it.  I quickly find the user agent in the registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent]

Delete everything leaving just a single entry for CLR 2 and CLR 3.  Restart the IE.  And… Tada!  The web page displays correctly.

So the user agent string was too long for the web server to handle.  Maybe it thought I was trying to DoS it?  Or better yet, it was running into a buffer overflow.  I don’t know.  But it certainly looks like a bad piece of software that site runs on.

Tuesday, January 27, 2009

Collaborate over the Internet with OneNote and Office Live : Matt Ranlett's SharePoint and Office blog

As a OneNote enthusiast I always wanted to know if it’s possible to collaborate and share your notes over the internet.  OneNote requires a SharePoint web site for shared notebooks which is usually a hassle to setup.  But it turns out there is an easy way to do it with the Office Live Small Business account.  Check out the following blog entry for details:

Collaborate over the Internet with OneNote and Office Live : Matt Ranlett's SharePoint and Office blog

Tuesday, January 20, 2009

Bookmarks are becoming a thing of the past

I collected my web bookmarks for 8 years or so.  I cherished them and carefully transfered them from one computer to another.  But I rarely bothered to look what I actually collected.  Random bookmark folders and various links of temporary importance dominated in my bookmarks.  Today I decided to sort them out, because it was clearly started to become just a huge mess.  It turned out I didn’t really need many of them.  Many bookmarks were just useless because I can find the same information in Google faster than in my bookmark folders.  I went from more than 700 bookmarks down to about 250, restoring some order in my favorites.  After this excercise, it became clear to me that if I need to find something I would first search Google than again… search Google and only then search my bookmarks.  The need to use bookmarks is significantly reduced.  I decided that I will collect only rare information of a special meaning to me, the information that I had a hard time finding on the internet.