Archive for the 'Software' Category

Server application unavailable: installing IIS on .NET 2.0

Tuesday, May 1st, 2007

I feel so dirty, but for a project I’m working on at the moment I have to use ASP.NET instead of PHP; “why?” is a question for another day. Anyway, I’ve installed IIS before so that wasn’t a big problem… or so I thought.

I already had the .NET 2.0 framework on my XP machine so went straight to installing IIS (5.1 comes with XP Pro). It installed easily enough and my hello world html file was served without any major problems (actually that’s not true, before I copied my own files across I tried to check the IIS default pages served ok only to discover, through more googling, that if I used IE instead of Firefox that annoying box asking me for a password would go away).

Now my ASP.NET issue. I got a Server application unavailable error message in big red letters when I tried to run any .aspx (ASP.NET) scripts and couldn’t figure out for the life of me why. The Event Viewer, where IIS errors are logged, gave little more by way of help: Failed to initialize the AppDomain:/LM/W3SVC/1/ROOT

Err… What?! I worked out that it wasn’t affecting html pages, just ASP ones - and only .aspx ones at that, suggesting it was .NET-related.

As it turns out the problem was that I had installed .NET before IIS. It’s easy enough to fix, but it took 20 solid minutes of googling to find the solution in a Microsoft community newsgroup (and then realise that I’d have found it already if I’d just read to the bottom of a 4 year old forum post I’d already found).

Anyway, what you need to do if you’re getting this “Server application unavailable” message is navigate to your .NET directory (something like C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727) in a command prompt and run the command aspnet_regiis.exe -i which will register ASP.NET with IIS. If that still doesn’t work, there’s always PHP.net ;)

Add This

Making Firefox Scroll With Synaptics TouchPad

Friday, April 27th, 2007

Even though, as a web designer, I hate Internet Explorer I’ve been using it regularly on my laptop more or less since I got it. The reason for this sad state of affairs was that Firefox wouldn’t recognise the scroll buttons on the Synaptics TouchPad and so I’d have to scroll using the cursor keys or the scroll bar on the right. This situation finally became untenable this morning though - I had two instances of Microsoft’s Visual Web Developer open and the machine seemed frustratingly slow to respond. A quick duke at Task Manager confirmed that this was because lots of memory was being used.

The Visual Web Developer program uses a lot of memory but I was surprised to find that Internet Explorer was actually using more at about 60MB. Firefox, also running at the time, was only using about 20MB so I decided it was time to fix the scrolling problem. I googled a bit and came across reports of people testifying that they solved the problem by downloading the newest drivers from Synaptics’ web site. This didn’t work for me though. Then I came across this forum post at Mozillazine which talked about changing a setting for the scroll buttons from “scroll selected item” to “scroll item beneath pointer”. Unfortunately this didn’t work for me either.

Here’s what did (after installing those new drivers):

  1. Double-click the touchpad icon in the system tray
  2. Ensure the correct device is selected in the Device Settings tab and click the Settings button
  3. Open the Buttons list and click ‘Scroll Up Button Action’
  4. Choose “Scroll the current window up” from the list.
  5. Click the ‘Scroll Down Button Action’ and choose ‘Scroll the current window down’ from the list.
  6. Apply/OK out.

Voila! Firefox now scrolls. I later discovered that someone else had replied to the above Mozillazine forum post advising just that, but I assure you I discovered it myself quite by accident.

Anyway, during the course of this fiddling I also discovered that you can use the right hand edge of your touch pad for scrolling. Just move your finger up or down the far right edge of your touch pad and the window scrolls. Unlike the scroll buttons, this did work in Firefox regardless of the above setting (though according to this KnowledgeBase entry, it may require the newest drivers), so if you’re having problems with Firefox scrolling with a Synaptics touchpad device, you should now have two solutions. Enjoy!

Add This

Going x64 on an Acer Aspire 5003 wlmi

Saturday, April 21st, 2007

Back in October/November time I got myself a new laptop for university and general showyness. I didn’t want to spend too much money and, following a recommendation from a friend, decided to check out LaptopsDirect.co.uk. Soon enough I’d plumped for the Acer Aspire 5003 wlmi - a 64-bit AMD-based laptop with 512MB of RAM. Having taken note of the 64-bit Turion mobile processor, I initially found it highly strange that the laptop shipped with a 32-bit version of Windows XP Home, rendering the 64-bit processor about as much use as a chocolate teapot (OK, as much use as a 32-bit processor anyway). Then again, this is the same machine which for some reason has a hard drive partitioned into two 40GB volumes, both formatted using the FAT32 file system. Honest to God.

I realise there are issues with drivers with x64 machines and put the perplexing decision to ship 32-bit Windows down to that, however after a lot of hunting a thread Planet AMD64 provided links to x64 drivers for both Acer’s Ferarri 4000 range and their Aspire 5020, which seem to work for the 5000 series too. Maybe it was just laziness.

(more…)

Add This

Installing Vista (AKA More Netgear WG311 Misery)

Sunday, April 8th, 2007

I managed to get a copy of the 32-bit Windows Vista Business from the MSDN Academic Alliance program through university and, after a RAM and graphics card upgrade, and a lot of moving of files to clear a partition for it, I was ready to install Vista. The installation itself went reasonably quickly. After about half an hour I was choosing desktops and playing with the control panel.

I was disappointed to notice that my initial Windows Experience Index (Microsoft’s measure of how pimped your PC is) was disappointing at 2.2, let down by poor graphics performance, considering I’d just spent about £40 on a new 256MB card from Dabs. Maybe it’s because I’m only running AGP4x, I don’t know. Anyway, Vista told me my system was rated as follows:

Processor (AMD Athlon 2800+): 3.4
RAM (1.5GB @ 266MHz): 3.7
Graphics (256MB eForce 6200): 2.2 4.1* - yay!
Gaming Graphics: 3.0
Primary Hard Disk (Seagate 120GB 7200rpm): 4.4

The first spot of trouble came as I tried to get my wireless connection going. The device manager was reporting my Netgear WG311 v3 present and correct, but it wasn’t picking up my network. Oh dear. Anyone familiar with my previous exploits with this card will probably guess I wasn’t very surprised by this.

(more…)

Add This

How to run IIS Web Server in Windows XP Home

Saturday, March 17th, 2007

Microsoft tell you that it’s not possible to run IIS, the Windows Web Server, on Windows XP Home Edition (see note 1). In previous versions of Windows, the home versions (Windows 98, ME etc) included something called Personal Web Server, which was a bit like a cut down version of IIS. Imagine my horror when I had to create a website using ASP (not my choice, I’m a PHP kinda nerd.) only to find that my shiny new operating system couldn’t even do something my mum and dad’s old Windows 98 box could do.

Having paid seventy odd pounds for this ‘upgrade’ I was a bit miffed that Microsoft had discontinued PWS. Then, after a bit of Googling, I discovered Win XP Home could run a web server after all - and IIS at that. As a bit of a bonus, you can also access the Windows XP Pro / Windows 2000 style advanced security settings (see note 2). Here’s how it’s done.

(more…)

Add This

Wordpress: Problems Updating Settings

Friday, March 16th, 2007

I’ve just spent the guts of an hour fannying about no various websites trying to figure out why I was getting an HTTP 404 (File not found) error when trying to update the settings on Wordpress to make it ping different services. I hunted through the file being called, ie options.php, to no avail. I Googled the problem and found this. The guy who zipped a new options.php file had taken it offline (more 404!!) and the other solution posted there didn’t work. Still a 404. Then I read it might be something to do with Apache and mod_security, so spent a minute or two pondering contacting my web hosts.

Then it came: my Eureka moment. After some messing about I noticed it didn’t happen on the “General Options” page (options-general.php), only on the “Writing Options” page (options-writing.php). I then tried updating the settings without changing any of them and … it worked!! Crazy!

It didn’t take long from then to figure out that the problem wasn’t with the Wordpress setup, but with one of the URLs I was trying to get it to ping. Apparently Wordpress doesn’t like Pinging the services at NorthernIrishBlogs.com, BritishBlogs.co.uk or IrishBlogs.ie

Wordpress doesn’t seem to want to work with any URI that has a “.” in it, so that rules out any that point to files (with extensions) rather than directories (in fact, I just tried to save this post after inserting an example URL and was given a similar 404. I then went into panic when I hit ‘back’ on the browser to see an empty text area where my post used to be! Thank goodness for auto save). Presumably WP is trying to pingback the URL because it was in my post, and is having problems but I don’t know, but it doesn’t seem to have a problem with normal URLs, extension or not. Bizarre!

To be continued…

Add This

Playing iPod Video on Your TV

Tuesday, September 26th, 2006

Please note that this entry is about my 5G iPod Video.  Information may not apply to other models like the iPod Classic.

Getting video files to play on your TV from your iPod is actually a lot easier than I imagined it would be. If you have AVI files that you couldn’t be bothered burning to VCD/SVCD or DVD, a much friendlier alternative is to play download them to your iPod. There are two hurdles you’ll have to overcome, but in reality, the process is much more painless than converting the files to MPEG and burning them to a CD or DVD is.

Converting Your Video

Before you put a video on your iPod you will need to convert it to an iPod friendly format. For this I recommend the free program, Videora iPod Converter. This will convert your DivX or Xvid AVI files into an iPod-friendly MPEG-4 file; I recommend the highest bitrate 1500kbps setting.

That’s it; easy! I’ve found that the time taken to convert a video file using Videora is slightly less than the play time of that video. A 2 hour video file should be converted in about 1 hour 25 minutes.

Playing On Your TV

When Apple released their video iPod they released a special AV cable for it that would connect your iPod to the red, yellow and white AV sockets on your TV, allowing you to watch the videos on your iPod on a larger screen. As it turns out, this was a bit of a scam. All they did was take a standard RCA-to-AV lead (commonly used for connecting camcorders to TVs) and send the video over the red cable (which usually carries sound) instead of the yellow one. This means that you can use a standard RCA-to-AV lead if you have one kicking about - just connect the red plug to the yellow socket, yellow plug to the white socket and white plug to the red socket. Scumbags, eh?

Don’t panic if you, like me, don’t own a camcorder and don’t already have an RCA-to-AV lead. You can buy one specially colour-coded for iPods (so red goes to red etc.) off eBay, where I got mine for £3.73 including postage!

Then it’s really simple, just go into your iPod video folder and set the Video Settings to output to TV, connect it up and you’re away.

Add This