Archive for the ‘Uncategorized’ Category

Windows 7 – Explorer.exe server execution failed

On my company laptop I have a network drive attached which is not always available. Recently I got annoyed about files not always being there so I decided to disconnect the company drive all together. After restarting I then got EXPLORE.EXE server execution failed and the Windows Explorer no longer started. Turns out I had [...]

More »

First post from iPhone

Hi all, this is my first post from my iPhone. I’m using the WordPress 2.0 iPhone app (make sure XML-RPC is enabled in your WordPress back-end). Even adding images from the iPhone Camera Roll is easy peasy.

More »

Icon Finder, the Google for icons

Here’s a very useful tool: http://www.iconfinder.net/ It allows you to search for icon, and it returns a lot of high quality images. Recommended!

More »

HttpContext.Current.Request.UserHostAddress returns ::1

One would expect HttpContext.Current.Request.UserHostAddress to return the IP address of the client computer. On my developement machine this would be 127.0.0.1. The application I’m working on acts on this IP address, so it is fital to get the correct address. Since I’ve moved to Windows Server 2008 x64 on my laptop, I got ::1 as a [...]

More »

Google Chrome 0.3.154.9 not compatible with Adobe Flash 9?

On the morning of October 21st Google Chrome updated itself to the latest version: 0.3.154.9. Immediately after the update I noticed sites using Flash (particularly Google Analytics in my case) no longer working. Chrome just stood there spinning and waiting, but nothing showed.I’ve had some Flash / Chrome issues before, so at first I didn’t [...]

More »

Google’s anal content (SFW)

Is Google getting into the more sleazy sides of the internet?No no, nothing so spicy. What it is, is a good example of how automatic trimming routines can lead to surprising results…

More »

No parameterless constructor defined for type of ‘System.Int32[]‘

I got this error when trying to invoke a web service through Ajax with the following signature: _ Public Function FlagNotifications(ByVal IDs() As Integer) As String The calling code, using ASP.NET AJAX, looks like this: Sys.Net.WebServiceProxy.invoke(webServicePath, \”FlagNotifications\”, false, { \”IDs\”: noteIds }, OnFlaggedNotifications, OnFailed, \”User Context\”, 1000000); I thought when I was passing the parameters, [...]

More »

More efficient SELECT COUNT(*) FROM Table

When you look at the execution plan for your query, you’ll notice that the query is doing an Index Scan (or even a Table Scan), not an Index Seek. This causes the SELECT COUNT(*) to execute slow. The reason for this is that the COUNT(*) function needs to look at every record in the table. [...]

More »

Expand Virtual PC disk image (VHD)

I recently found my Virtual PC 2007 disk image to be too small for my needs. VPC does not have any tools to expand the disk image, only to compress them or convert from dynamic to fixed size. I used CopyWipe from the \”Ultimate Boot CD\”:http://www.ultimatebootcd.com/ to copy my disk to a new, larger one.I [...]

More »

App_Offline.htm

A nifty, little known feature of .NET 2.0 is app_offline.htm. When IIS finds this file in the root of an application, it shuts down .NET. All requests are instead served with the app_offline file. Very neat when you need to update an application.Before I knew about app_offline.htm, I had a second web site configured in [...]

More »

Html DOCTYPES that work

Per HTML and XHTML standards, a DOCTYPE (short for “document type declaration”) informs the validator which version of (X)HTML you’re using, and must appear at the very top of every web page. DOCTYPEs are a key component of compliant web pages: your markup and CSS won’t validate without them. HTML 4.01 Strict, Transitional, Frameset <!DOCTYPE [...]

More »

A policy is in effect on your computer which prevents you from connecting to this print queue.

On my new Vista computer, I get this error when trying to connect to a printer for the first time via a network share. I’m trying to connect via a UNC path, like \\\\server_name. And then selecting the desired printer. According to \”Microsoft\”:http://support.microsoft.com/kb/319939 , there is a possibility that a printen driver is infected with [...]

More »

Performance tips when running WinFLP on an Asus Eee PC

Here are some tips and tricks I found usefull when using Windows Fundamentals for Legacy PC’s (yes, that’s the full name) on an Eee PC. I am running WinFLP on the original 701 4G model.The increase disk performance, and to extend the life of your flash drive, it is wise to disable NTFS Last Access [...]

More »

Installing Windows Fundamentals (WinFLP) on Asus Eee PC

Here’s a short guide to installing Windows Fundamentals for Legacy PCs (WinFLP) on the Asus Eee PC. I’m using the 4G model, with 4GB SSD flash disk and 512MB RAM. Update: I have upgraded my Eee PC’s memory to 2GB. This tutorial has been assembled from multiple forums and Eee PC sites. There are some [...]

More »

How to create a Google-adsense-style banner script

I’ve had Google adsense ads on my site for some time now. Putting the ads on your site is really easy. Just get a few lines of javascript from Google, paste it in your web page and you’re good to go. So what does it take to create something similar for your own banners?What the [...]

More »