Friday, 16 May 2008

Sharing folders between host and guest on VirtualBox

While trying to share folders between VirtualBox and ran into a few problems. Here is a run through of how to do it so that hopefully you don't have to suffer for a couple of hours searching google.

Note: This was done using Ubuntu 7.10 Gutsy as the host and Win XP as the guest.

1. Ensure you are not running the OSE version of VirtualBox.
2. Start your virtual machine and click Devices > Install Guest Additions. If nothing happens click Devices > Unmount CD/DVD-rom, then try again.
3. Click Devices > Shared folders
4. Click the add button and on the next screen and enter the path of the shared folder I.e. "/home/graham/whatever" (without the quotes|) and then add in the name for the shared folder. This name you have just given the folder is the important part.
5. Open a DOS command prompt and enter the following
net use z: \\vboxsvr\whatever

The "whatever" part is the name that you gave the shared folder while specifying the path.
After this the Z drive or whichever drive letter you assigned it to should appear under "My Computer".

Monday, 12 May 2008

XHTML 1.0 Strict Java Applets

While coding a program for a college submission, I spent ages trying to get the page to validate as XHTML 1.0 strict. I eventually came across Shayne Steele's webspace (link no longer working) at Florida State's computer science department which has this page that explains the various parts required by the object tag.

Check out Shayne's page ot just copy and paste the code below. all you need to change is the Class name and the height and width of the applet/object.


<object type="application/x-java-applet"
height="500"
width="500"
classid="java:YourClassName.class">
<!--[if IE]>-->
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
height="500"
width="500"
codebase="data"
type="application/x-java-applet">
<param name="code" value="YourClassName">
</object>
<!--<![endif]-->
</object>

Tuesday, 22 April 2008

Encrypting mailto: links to avoid spam

Anyone who has placed a mailto: link on their website may or may not have noticed an increase in spam email. Gmail has an excellent spam filter so I never really have much of a problem.

There have been a few different ways suggested on how to put a "Spam Proof" email link on your website.

Linda Roeder suggests using javascript although the main argument I have against this is the same reason I keep my javascript to a bare minimum... What if javascript is turned off?

Another way that has been suggested is to make an image with just your email address but this involves any users to take a note and manually type in your address into an email.

You can also put a form on your site allowing people to send you feedback, but what if you actually want people to know your email address for future correspondence?

The best way I have found so far is by encrypting your email address. This works by substituting each letter in the address including the "at" and any dots into html character code.

This might sound like a lot of hard work but web designer Rob Spangler provides a quick and easy to use tool on his blog. Simply enter your email address and if you don't want your email address to display to users, what text you want to display in the link. This then transforms a plain text version of your address, easily trawlable from the web. Into a nicely encrypted mailto link such as the one below

graham.macleod@gmail.com (view the page source to see the encrypted version)

Keep in mind, it's always best to give users the choice of using a mailto link and also a feedback form since not everyone uses a mail client and for some people, clicking on a mailto link will cause
an unconfigured outlook express to open up.

How long it will take for the spammers to pick up on this method I don't know but at least our mailboxes will be safer for a while.

Saturday, 5 April 2008

Garfield minus Garfield

One of the cleverest and simplest, projects I've stumbled upon while surfing is Garfield minus Garfield.



"Who would have guessed that when you remove Garfield from the Garfield comic strips, the result is an even better comic about schizophrenia, bipolar disorder, and the empty desperation of modern life? Friends, meet Jon Arbuckle. Let’s laugh and learn with him on a journey deep into the tortured mind of an isolated young everyman as he fights a losing battle against loneliness in a quiet American suburb."

I would recommend subscribing to the blogs rss feed as you get one or two per day and they always manage to make me piss myself luaghing.

Thursday, 3 April 2008

Trip to Amsterdam

2 of my mates, Tommy and Rosco, my girlfriend and I flew out from Edinburgh Airport at 2pm on Thursday the 27 of March for 3 nights. I can't remember that much of it to be honest.
I do remember however, sitting in a pub in the red light district trying to convince Rosco to get a reach around from a skanky ho' (she wasn't actually that skanky to be fair) and then him falling off his stool and breaking the leg (of the stool).
You can see the photos on my flickr.
Most of the days were spent either in the coffeeshops or pubs.

Some of the coffeeshops we visited were

  • Rookies - purchased some Santa Maria
  • Stix - purchased some Bubblegum
  • The Seville - Played pinball and the machine broke

On the last night, before we went out, we had a game of cards while getting pissed up. You can see my funky victory dance below

You can't say I don't have mad skillz.

P.s. Rosco never did get his reach around. The romance was shattered as soon as we saw a guy wearing an anorak walk into her window and her closing the curtain after him.

Thursday, 6 March 2008

Dokuwiki it is

So far DokuWiki has performed extremely well. Since my team will all be using IE v7, setting the wiki as one of the search providers will provide a quick and simple way to search the Knowledge Base.





We are currently waiting on management giving us the go ahead for the server space and the domain name but we are stocking up our test wiki with knowledge procedures and the usual miscellaneous information that is kept on the file server with no way to usefully search it.

Monday, 19 November 2007

We may have to use DokuWiki instead

It would appear that the server team doesn't want to support MySQL servers so MediaWiki might be out the window for the time being. Instead, we may use DokuWiki as our knowledge base. It saves all pages as text files so this will avoid the issue of MySQL not searching for 3 letter words which are an all too common occurrence in IT.