Jason Adcock’s Homepage

My blog
Our travel blog
Our Photos
Delicious Links
yourhumanrights.com
My RSS Feeds
What am I reading?
What am I listening to?
Linkedin

February 15, 2006

Hungarian PMs Blog

Filed under: Uncategorized — adcockj2 @ 4:12 pm

It looks like the blogging community is expanding! Here is the Hungarian Prime Ministers blog: http://blog.amoba.hu

Better still he even has a video!!!  Check out the following link on the age: http://blogs.smh.com.au/mashup/archives//003599.html

Bali 9

Filed under: Uncategorized — adcockj2 @ 1:36 am

Looks like another round of letter writing and campaigning. Thanks to the Indonesian government and AFP…..

Follow these links for more information on the Bali 9 sentence:
http://www.nswccl.org.au/issues/death_penalty/afp.php
http://yourhumanrights.com and specifically http://yourhumanrights.com/?p=15
http://www.abc.net.au/news/newsitems/200602/s1570036.htm

Follow these links to campaign against the death penalty:
http://www.amnesty.org.au/Act_now/action_centre/adp
Example letters will be on yourhumanrights.com in the next few days.

February 9, 2006

New photos added to flickr

Filed under: Random Crap — adcockj2 @ 1:38 am

Well Krust has returned from her Japanese adventure! I have posted a few photographs of her trip. The photos are largely from Kyoto and Hokkaidō. Follow this link to see the these photos.

Getting started with Ruby Part 1!

Filed under: Uncategorized — adcockj2 @ 1:21 am

Ok here it comes!  This content will also be added onto a dedicated page as I write it….

Requirements to follow this tutorial:
1.PC with Windows XP
2.Internet connections
3.A little bit of time.

Downloading and installing ruby
Go to this link:http://rubyforge.org/frs/?group_id=167

Download which ever the version of ruby that you feel like using (I used ruby184-16p1.exe )

Once the file has downloaded double click the executable to set-up the ruby language on your pc.
Select c:\ruby as your installation directory.  Make sure all of the installable packages are selected.
Let it rip!

Open the ruby shell (irb)

Ruby has a shell environment in which you can try out some basic commands.  This environment is called the irb.

To open the shell navigate to the following directory:

c:\ruby\bin

and then double click on the irb executable.

A ruby shell will then open.

Lets play with some ruby commands

type the following commands and press enter:

Findout the length of a string:
“my name is mud”.length

Reverse the order of numbers in an:
“1 2 3 4 5”.reverse

Add two numbers:
1 + 1

Assign a variable and its contents:
myname =  “jason adcock”

Display the variable:
puts myname

Assign the reverse of the variable myname to the variable: jumble name
jumblename = myname.reverse

Capitalize the word brisbase:
“brisbane”.capitalize

Assign an array of values:
myarray = [ 1, ‘cow’, ‘dog’, ‘apple’, 22, 33]

Display the first element in the array:
myarray [1]

Display the entire array:
myarray

What is the length of the array”
myarray.length

Print the array 5 times”
5.times {puts myarray}

Powered by WordPress