Sunday 29 April 2007

Javascript for putting a cookie and retrieving a cookie

Someone asked me the other day how to save a cookie via javascript, then retrieve said cookie to display the users name..

Simple right? I couldnt remember javascript at all to be honest - but i found this article:

http://www.webreference.com/js/column8/functions.html

Suddenly it all made sense again!

Its easy when you know how..

Source code versioning and sharing - simply?

Well.. I need to implement some kind of source control - im working on a project which will require the input of a team of two, sharing files over adsl connection -
http://subversion.tigris.org/ Subversion is what im looking into.

Id like to make it portable and scalable as im fed up of managing installs again and again - so im going to build a virtual machine to host it.

Technologies that im going to use:

VMware,
Redhat linux fedora core,
Subversion.

Coding environment that im aiming to support:
Asp.net (vb)
Html
SQL server 2005

Users:
One person coding
One person carrying out html design changes

Articles and useful links:

A useful article on interfacing with dot net http://www.codeproject.com/dotnet/file_diff_and_webreports.asp

Another useful article on interfacing with dot net
http://morph.telspace.co.za/docs/SVN4VSdotNet.php
Subversion toolset for interfacing with dot net
http://ankhsvn.tigris.org/
Looking at how to interface SQL with subversion (not 2005 but i will look at that later)
http://www.codeproject.com/cs/database/ScriptDB4Svn.asp

Stage 1:

Downloaded and installed: VMware server (free from www.vmware.com)
Linux - red hat fedora core 6 dvd from www.redhat.com - again free. This takes days to download...

Created a new virtual machine - settings were:

Memory 192mb (this was reccomended)
Disk drive 8gb (default - can change this at a later point) - one gotcha that caused problems at first was that you have to make sure you choose the lsi logic scsi option, i used the default and then was told by fedora core installer that the disk couldnt be recognised.

Once the machine created i pointed the cdrom at the iso image of red hat fedora downloaded as above and then started the machine. At this point the install for fedora started running through.





I'll keep you posted on how it goes...