Archive for the 'Windows' Category

nerd. links - LDAP Browser

Tuesday, July 1st, 2008

Had a bitch of a day today in work, with an application I was playing with refusing to play with Active Directory (largely because I’ve never used LDAP before and couldn’t figure out the weird bloody syntax).

So I’d really like to offer a quick thank you to Jarek Gawor for developing (and releasing) his LDAP Browser/Editor which let me double check that I was connecting to the right server/port and play with the settings enough that I eventually got it sussed. Great wee Java tool.

Screenshot of LDAP Browser/Editor

Add This

Solved: New WAMP Install Won’t Parse PHP

Wednesday, May 7th, 2008

I spent ages trying to figure out why my new installation of WAMP Server 2 wouldn’t parse my PHP and was spitting it out exactly as-is in the source file. I hoked around in the VirtualHost configuration, because the PHPMyAdmin that comes with WAMP Server was working fine so it had to be something wrong in the VirtualHost that I just configured that was stopping .php files being sent to the PHP parser, yes? No.

As it turns out, it’s much simpler than that. Apache was sending the file to PHP to be parsed, by PHP was ignoring my code. Why? WAMP Server 2 comes with “short open tags” turned off (this may be a general PHP or PHP 5 thing, though not sure). Click WAMP -> PHP -> php.ini to edit the aforementioned file and find the line:

short_open_tag = Off

Replace Off with On et voila.

The ‘more correct’ though long-winded solution is to replace all your <? opening tags with <?php if you’re really keen (though that’ll also mean replacing <?= with <? echo). Me, I think I like my short tags.

Add This

What’re you lookin’ at?

Tuesday, April 29th, 2008

Well I thought it was interesting so here’s the top 10 posts on nerd. by number of views (based on the last 500 page hits courtesy of Statcounter.com).

  1. Review: Why the Netgear WG311 v3 Sucks (72)
    Slightly dodgy network card that Netgear don’t seem that fussed about fixing. Bad on XP, it got worse on Vista (see number 4).
  2. Playing iPod Video on Your TV (45)
    Seems to be a lot of people looking for instructions for the iPod Classic. Here’s a tip: sell it.
  3. Server application unavailable: installing IIS on .NET 2.0 (44)
    Seems to be a common problem. Sadly Microsoft’s error message is about as relevant as ever.
  4. Installing Vista (AKA More Netgear WG311 Misery) (31)
    Even more messed up. Thank goodness for Linksys!
  5. Thunderbird/Outlook/Google Calendar Integration (25)
    How to integrate your Thunderbird calendar at home with your Outlook in work, via Google Calendar.
  6. Orange Answerphone (Voicemail) Number for PAYG (23)
    Such a simple problem. Who knew it would be so hard to find?
  7. Stop Monitor.exe Hogging CPU (20)
    Why can’t people just give you a standard installation instead of trying to do everything for you? Help sounds good, until their useful tools start killing your PC.
  8. How to run IIS Web Server in Windows XP Home (20)
    Microsoft’s official line is it can’t be done, but it’s not that tricky.
  9. Making Firefox Scroll With Syanptics TouchPad (19)
    Discovering the solution to making Firefox scroll on my Acer Aspire laptop.
  10. NAS or Home Server (17)
    I deliberate over whether I can justify spending the extra to build or buy a home server before eventually deciding that a Linkstation Live will meet my needs for less than half the price.
Add This

I Can Has Vista Sidebar Gadget?

Monday, April 28th, 2008

O hai!

I hart lolcatz.

I hart lolcatz so much dat wun dai I thoughted “I can has lolcatz wen I makes teh pooter turn on?” So I maded a Vista gadjit an now I has new lolcatz every dai.

If u hart lolcatz liek mee an wants lolcatz in ur pooter makin u laff, downlodes mah gadjit. I has tested it 4 liek rly long time. It rly works, srsly. An evry1 needses moar lolcatz.

Kthxbai.

(more…)

Add This

More aspnet_regiis Goodness - this time on Vista

Friday, April 18th, 2008

Some time ago I published a blog describing the use of a command line tool called aspnet_regiis.exe to overcome a “Server Application Unavailable” message when I was trying to get ASP.NET working on IIS 6 on Windows XP.

Just now I’ve used the same tool to fix a similar (I think) problem on IIS7 on Vista. I was trying to get some practice with ASP.NET. I’ve already got IIS7 and I’ve already got the .NET Framework 2.0 installed. However it seemed, again, that IIS wasn’t aware of the Framework’s existence. When I tried to browse to a simple Hello World page I was greeted with an HTTP 404 (404.3 to be precise) informing me that:

“The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.”

Despite the different error messages it appeared to be a similar problem. Apparently it was. That wonderful little solution again:

  1. Start -> Cmd
  2. Navigate to your .NET Framework directory (e.g. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727)
  3. Run the command “aspnet_regiis.exe -i”
  4. Wait…
Add This

Solved: Blog XMLRPC 403 Error

Sunday, March 23rd, 2008

I was getting the above error message when I recently tried to set up and try out Windows Live Writer to let me publish to a blog from my desktop without logging into the Admin section of the site. I was felled at the first hurdle when, after entering my b2evolution blog’s details, I was presented with a message informing me that:

The server reported an error with the following URL:

http://www.blog-domain.com/b2evo-path/xmlsrv/xmlrpc.php

403 Forbidden

Thinking it might be a problem with b2evolution, I tried with a Wordpress blog. A different message appeared, both on this blog and another:

(more…)

Add This

Microsoft Want to Own You

Wednesday, November 14th, 2007

Installing Microsoft’s Virtual Earth 3D plugin for Firefox (yes, they wrote something that works in Firefox) I was reminded of one more reason why I hate Microsoft.

You’d think with all the anti-competitive suits being filed against them they’d get over this, but apparently not.

Have a look at what’s presented to you when you install the Microsoft Virtual Earth 3D plugin.
Microsoft Want to Own Your PC

Yes, that’s right, when you install Virtual Earth 3D, Microsoft try to take over your home page and default search engine: two completely unrelated services. If they must give us the option then fine, but they have the boxes ticked by default and that is where I believe they cross the line from opportunistic cross-selling to scummy, underhanded manipulation. Not that it’s a big surprise, they do the same thing with their Windows Live Messenger product. This is an even more blatant example of what they’re trying to do here, which is using their strength (and in the case of Messenger, dominance) in one market to try and dominate in another.

If it takes another legal case to sort this out then it should be done, but Microsoft should be fined and forced to pay legal costs. The previous controversy over their bundling of Media Player in Windows obviously hasn’t taught them anything.

Add This

ACT - SessionID and Login Problems With ASP .NET 2.0

Friday, September 14th, 2007

I recently encountered a problem with Microsoft’s ACT (part of Visual Studio 2003) when testing a web service by emulating a browser-based client. For posterity’s sake, here’s an overview of the problem and, more importantly, the solution.

Background
Using Application Center Test (ACT) to help automate performance testing designed to compare the performance of a web service running on ASP .NET 1.1 with ASP .NET 2.0.

Problem
Originally .NET 2.0 seemed to be performing many times better than .NET 1.1, but it was soon discovered that when running .NET 2.0, ATC was receiving a lot of 302 errors on 2.0 which it wasn’t on 1.0. On further investigation the Web Service wasn’t actually making all the correct database calls and on installing HTTP Monitor, it became apparent that the login wasn’t working. When I recorded the test using Internet Explorer 7, the HTTP requests worked as expected, however when ATC repeated them it was not returning the ASP.NET_SessionID.

(more…)

Add This

Vista Seems to Suck at DVD Reading

Monday, July 16th, 2007

Tonight I was attempting to rip a DVD to an AVI-XviD file thinking it would be easy - unfortunately not. It’s not a copy-protected DVD or anything, just a plain old DVD-R.

First I tried VirtualDub MPEG or whatever it’s called. It seemed to be either taking ages or not responding so I gave up and ended it. Next I downloaded DVDx and tried to use it to rip the files from the DVD. Still painstakingly slow (to the point I wasn’t sure it was still doing anything) and eventually gave up with a message about a CRC error. So, I decided to copy the VOB files (actually the whole TS_VIDEO directory) to hard drive and work from there.

It was then I realised the problem wasn’t with the aforementioned programs but with Vista itself. There were two 1 GB VOB files and the first of these refused to be copied. Vista was throwing up an error which advised me it “Cannot read from the source file or disk”. Bugger. Thinking it might be a problem with either Vista or the DVD drive I tried it in my trusty laptop (still running Windows XP Pro). It worked!

So how do I know Vista’s the problem? Well I tried to copy the file over my network back to the Vista PC and got a similar looking error dialogue, this time saying “Network Error: There is a problem accessing \\laptop\directory. Make sure you are connected to the network and try again.”

By this stage I gave up and just downloaded DVDx to my laptop, which I was able to use to copy the video to an Xvid AVI file.  Nice work Micro$oft.  Now all I have to do is successfully convert it to NTSC format and I’m flying - unfortunately that’s as much fun as pulling teeth, and much more painful.

Add This

Stop Monitor.exe Hogging CPU

Thursday, June 28th, 2007

I recently noticed that my CPU fan on my Acer Aspire 5002 WLMi notebook was running at full speed much more than it normally should and the system itself was running more slowly than usual. When I opened task manager I was finding a process called Monitor.exe was hogging anything up to 99% of the CPU. I terminated the process and that solved everything - usually until I rebooted.

But what to stop this happening again? It turns out that monitor.exe was related to Acer eRecovery - a tool that helps recover your laptop from a major crash. However after a bit of googling I found out that it needs the D: partition that comes with the laptop (apparently it needs to be in FAT32 as well, but I don’t think this is true because mine had been NTFS for months and I hadn’t noticed any problems).

The problem seemingly arises because I recently reformatted the D partition into a few ext3 and other partitions for installing Linux (Ubuntu to be precise). Since Windows can’t read Linux filesystems, eRecovery can no longer find the D: partition which it, for some reason, seems to need.

Simple solution? Well I disabled Monitor.exe using Start -> Run -> msconfig and disabling Monitor.exe, which was listed at the bottom of the list under the Startup tab.

Add This