Author: Alex

  • C# Ternary conditional operator – Question mark in an if statement

    I’m all for shortening the amount of code we write, if it makes it more readable. One enhancement I make use of in C# is the ternary conditional operator. Consider the following block of code: string input = “hi”; bool saidHello; if (input = “hello”) { saidHello = true; } else { saidHello = false;…

    Continue reading

  • Fitting a backlit keyboard to a Dell E6400

    Both of the Dell E6400 laptops I’ve owned came without the backlit keyboard (first one was stolen in Ibiza) So, both times, I have retro-fitted a backlit keyboard. The process is simple, and I’ll show you how below. They don’t need any drivers – they light up when you press a key, and dim to…

    Continue reading

  • Problem with Firefox 3.5.2 and Facebook

    After upgrading to Firefox 3.5.2, I’ve been having trouble with Facebook – certain pages would take ages to load (if load at all) The photos page was a particular problem. At first, I thought the problem could of been with Facebook – some of their AJAX user interface getting carried away or something, however I…

    Continue reading

  • Robbed in Ibiza! – Booked with [email protected] & Holiday Rentals

    After searching around for apartments for our holiday in Ibiza, I found our apartment on the Holiday-Rentals website. This advert, surprisingly, has now been removed. I contacted the owner, and had a reply from someone called Jonny Simons (jonnyibiza@live.com) Everything seemed ideal – located in San Antonio, near to Kanya (a bar on the sea…

    Continue reading

  • Eco-Disc Stuck In Slot Loading Drive

    AVG kindly provided us with an Eco-Disc of their software – so we began installing it on one of our Dell XPS laptops – with a slot loading drive. Everything worked fine, until it came to eject it – or at least try to! Because the CD’s are so thin, there isn’t enough thickness for…

    Continue reading

  • JoeBlogs – Typo in dummy URL fixed

    I’ve recently had a few comments that the JoeBlogs wrapper wasn’t working – and they were getting an “invalid response” or more specifically “Response XML not valid XML-RPC – missing methodResponse element.” It seems that I had a typo in my comments in JoeBlogs.TestHarness/Program.cs on line 15: //typically http://www.yourdomain.com/xmlprc.php (if your wordpress blog is installed…

    Continue reading

  • Yahoo Term Extractor API Discontinued

    A couple of days ago Yahoo announced two of its search services will be discontinued on August 31st 2009. Annoyingly, one of those is the Term Extraction API Which means my Windows Live Writer Auto Tag Generator plug-in will simply cease to work. Important Announcement: The Term Extraction Web Search service will be discontinued on…

    Continue reading

  • Fake Ed Hardy Belt On Ebay

    I’m a recent fan of Ed Hardy “stuff” T-shirts, and belts mainly. As with every latest trend, these are obviously available on eBay, however a lot of items offered here are fake. I generally try to be careful when purchasing clothing on eBay. For example, I’ll always email the seller for verification that the item…

    Continue reading

  • Reverse GeoCoding with Google API and C#

    I needed to write a function to get a set of co-ordinates from an address, supplied as a string. Using the Google API, I came up with this: First, I created a struct, to represent the lat and lon co-ordinates: public struct Coordinate { private double _latitude; private double _longitude; public Coordinate(double latitude, double longitude)…

    Continue reading

  • NTLM / Windows Authentication with Firefox

    Firefox, my browser of choice, doesn’t support NTLM “out of the box” What that means is, if you visit a site on your domain (for example http://intranet) that you should have access to, you’re presented with a username and password box. Visit the same site in IE, and it lets you straight through, based on…

    Continue reading

  • Fake Lottery – Game Corner International

    I received another fake lottery thing today, this time from Deborah Shiemke – dispatch@mailonetoday.co.cc Here’s the body of the email We congratulate you this day as you have emerged a winner in the Game Corner International Lottery Organization. See attachment for claims procedure. Thank you Yours Sincerely, Dr. Deborah Shiemke Announcer-Game Corner International, United Kingdom.…

    Continue reading

  • Could not load file or assembly ‘ChilkatDotNet2’ or one of its dependencies. An attempt was made to load a program with an incorrect format.

    Whilst setting up an application to run on my local machine (running Vista 64bit) I encountered this error: Could not load file or assembly ‘ChilkatDotNet2’ or one of its dependencies. An attempt was made to load a program with an incorrect format.   Obviously, the application uses ChilKat components, but it would seem that the…

    Continue reading

  • Globai Gathering – Wristband Error?

    I went to Global Gathering (24th & 25th July 2009) Upon collecting my wristband, I noticed an error – instead of being printed with Global Gathering (as it has in previous years) it said Globai Gathering! A deliberate error? To aid in spotting fakes?? Or a clumsy mis-print?

    Continue reading

  • Removing a previous version of Windows

    If you have installed a newer version of Windows Vista (for example 64 bit instead of 32 bit), and didn’t format your HD first (like I just did) it simply installs the new version, over the top of the old version. The old version will continue to take up space (around 4gb in my case)…

    Continue reading

  • Windows 7 – Sticky Notes

    This is a sticky note!   This is something I will use all the time! Windows 7 has a feature called “Sticky Notes” – basically, these little notes are like post it notes – they stick to your desktop! You can change the colour, resize, move them around etc… So simple, yet so useful!

    Continue reading

  • How to get Messenger to run in the TaskBar in Windows 7

    After installing the Windows 7 RC, I installed the latest Windows Live Messenger. After using it, it appears that it does not run in the task bar, as it used to in Vista! This is pretty annoying, as I only keep it open to use now and again. There is a way around this however……

    Continue reading

  • Windows Azure Pricing Announced

    Microsoft has finally released their pricing model for the forthcoming Windows Azure Windows Azure: Compute = $0.12 / hour Storage = $0.15 / GB stored / month Storage Transactions = $0.01 / 10K Bandwidth = $0.10 in / $0.15 out / GB SQL Azure: Web Edition – Up to 1 GB relational database = $9.99…

    Continue reading

  • Using JoeBlogs -metaWeblog API Wrapper

    Step 1 Download the latest release of JoeBlogs from Codeplex (Click the Downloads tab, and select the latest download) Step 2 Unzip the contents of the downloaded zip file. (I usually copy DLLs I am going to use into a “lib” folder at the root of my solution) Step 3 Add a reference to BOTH…

    Continue reading

  • Why Are Interfaces Useful?

    Interfaces, usually prefixed by “I” are useful in software engineering, for a number of reasons. Primarily, they allow you to create “pluggable” code. By this, I mean that your code is easier to manage, easier to maintain, easier to change the way certain parts of your application work, without changing the entire way it works.…

    Continue reading

  • Specify XML-RPC Endpoints at Run Time With CookComputing XMLRPC.net

    A common question when using Cook Computing XML RPC.net to talk to blogs etc… is how to specify a blog / endpoint at runtime? Most of the examples seem to specify the details in an attribute… not much use if you’re trying to develop a wrapper. To enable me to create JoeBlogs, I made use…

    Continue reading

  • Auto Tag Generator Plug-In for Windows Live Writer

    Auto Tag Generator is a plug in for Windows Live Writer that enables tags to be generated from a block of text (or the whole of the post) Download: Project can be downloaded from Codeplex here Usage: To generate tags, simply highlight all of the text (or a relevant section) and press “Inert Auto Generated…

    Continue reading

  • Missing Files from DotNetNuke 4.9.4 Starter Kit causing error

    I downloaded the latest release of the Dot Net Nuke Starter Kit (Version 4.9.4  released on 23rd June 2009) I followed the instructions to install the Visual Studio templates etc… as found here They are a little outdated, but the same process still applies. Upon installing it, loading a new website, I selected the DotNetNuke…

    Continue reading

  • Location of Visual Studio Templates Directory

    The location of the Visual Studio Templates Directory (when installed on Vista) is as follows: C:\Users\<user>\Documents\Visual Studio <version>\Templates Replace <user> with your username <version> with the version of VS (in my case its 2008) so my path is: C:\Users\ABrown\Documents\Visual Studio 2008\Templates

    Continue reading

  • Open Source Social Network

    I’ve just stumbled across this Open Source Social Network, that runs on Ruby On Rails http://lovdbyless.com/ I’ll be sure to download this and have a play with it sometime soon!

    Continue reading