<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
   <title>Krioma.net Blog</title>
   <link rel="alternate" type="text/html" href="http://www.krioma.net/blog/" />
   <link rel="self" type="application/atom+xml" href="http://www.krioma.net/blog/atom.xml" />
   <id>tag:www.krioma.net,2010:/blog//1</id>
   <updated>2010-03-07T21:39:59Z</updated>
   <subtitle>A site based on the thoughts of Samuel George - the guy behind Krioma.net. The thoughts mostly stem from his life experiences which mostly include astrophysics, astronomy, beer, football, music and computers.</subtitle>
   <generator uri="http://www.sixapart.com/movabletype/">Movable Type 3.33</generator>

<entry>
   <title>SKA Pathfinder Video</title>
   <link rel="alternate" type="text/html" href="http://www.krioma.net/blog/2010/03/ska_pathfinder_video.php" />
   <id>tag:www.krioma.net,2010:/blog//1.1526</id>
   
   <published>2010-03-07T21:18:04Z</published>
   <updated>2010-03-07T21:39:59Z</updated>
   
   <summary>I&apos;m a radio astronomer, which is pretty obvious if you know me or have ever looked at my blog before, and sometimes I find it hard to properly explain what I do - especially since my current work is based...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Astronomy" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="169" label="askap" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="168" label="SKA" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.krioma.net/blog/">
      <![CDATA[I'm a radio astronomer, which is pretty obvious if you know me or have ever looked at my blog before, and sometimes I find it hard to properly explain what I do - especially since my current work is based on a telescope that is still in the design stages (the Square Kilometre Array). One of the pathfinder telescopes to the SKA is ASKAP (the Australian Square Kilometre Array Pathfinder, imaginative name, eh?!). Anyway the ASKAP guys have a cool movie showing the design of the telescope... so if you have ever wonder what the heck I'm going on about maybe this will help: 

<object width="320" height="191"><param name="movie" value="http://www.youtube.com/v/aioPh35WmNA&hl=en_GB&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/aioPh35WmNA&hl=en_GB&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="320" height="191"></embed></object>

If you can't see the link try <a href="http://www.youtube.com/watch?v=aioPh35WmNA&feature=related">[here]</a>
]]>
      
   </content>
</entry>
<entry>
   <title>Basic Parallelisation in Bash</title>
   <link rel="alternate" type="text/html" href="http://www.krioma.net/blog/2010/02/basic_parallelisation_in_bash.php" />
   <id>tag:www.krioma.net,2010:/blog//1.1525</id>
   
   <published>2010-02-28T05:04:04Z</published>
   <updated>2010-02-28T05:16:48Z</updated>
   
   <summary>I have recently started writing some quite CPU intensive code and since we have a nice cluster here (without any management software on it) I decided that it would be best for me to take advantage of the number of...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Computing" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="161" label="bash" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="166" label="parallel" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.krioma.net/blog/">
      <![CDATA[I have recently started writing some quite CPU intensive code and since we have a nice cluster here (without any management software on it) I decided that it would be best for me to take advantage of the number of cores on them. Actually, this works nicely on my desktop which has four cores anyway (and 4GB of RAM). Essentially, I'm lazy and this basically runs my pipeline in parallel for different sources by sending off different jobs to different cores (to the maximum number that you specify)... and then when they finish runs then next few... and so on until they are all done. No longer do I have to worry about waiting for the jobs to finish and wasting time by missing their finishing point. I also no longer have to have lots of <a href="http://www.gnu.org/software/screen/">[screen]</a> sessions or loads of terminals open... bliss...  

Oh here is my basic <a href="http://en.wikipedia.org/wiki/Bash">[Bash]</a> script:

<blockquote>
#!/bin/bash <br />
#By Samuel George; www.krioma.net <br />
#Original: 27/02/2010 <br />
array=(`ls -d */`) <br />
#My scripts run in sub directories, replace with your list of commands to run.  <br />
len=${#array[*]} <br />
maxjobs=1 <br />
jobnumber=0 <br />
#loop over the maximum number of jobs based on the number of files in array <br />
while [ $jobnumber -lt $len ]; do <br />
        jobsrunning=0 <br /> 
	while [ $jobsrunning -le $maxjobs ] <br />
                #start jobs up till maximum and then wait for them to finish before continuing. <br />
		do <br />
                #go into the directory and run - this is an oddity of my processing <br />
                #replace with your own functions <br />
 		cd "${array[$jobnumber]}" <br />
 		"run.sh" & <br />
                #go back a dir <br />
 		cd ../ <br />
                #add to counter so that you know how many jobs are running at once. <br />
 		jobsrunning=$(( $jobsrunning + 1 )) <br />
                #keep a running total, such that the script will loop over all the jobs you want running
 		jobnumber=$(( $jobnumber + 1 )) <br />
		done  <br />
	wait <br />
        #keep a listing of where you are. <br />
        echo $jobnumber <br />
done <br />
</blockquote>

Stick this in a shell script, chmod 700 file.sh and job done. 

There is definitely room for improvement here. For example this code will wait till all of the processes in the inner loop, ideally you'd want it to move on after the first one is finished. Watch this space... well that might not happen since my tasks all take about the same time to finish in. 
]]>
      
   </content>
</entry>
<entry>
   <title>Monster Truck Madness!</title>
   <link rel="alternate" type="text/html" href="http://www.krioma.net/blog/2010/02/monster_truck_madness.php" />
   <id>tag:www.krioma.net,2010:/blog//1.1524</id>
   
   <published>2010-02-22T02:00:39Z</published>
   <updated>2010-02-22T02:07:19Z</updated>
   
   <summary>I took my first trip down to the Saddledome here in Calgary yesterday to go watch [Monster Jam]! It was also a chance to experience some &quot;proper white trash&quot;. It was lots of fun watching these huge beasts crush cars...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="General Me" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Photos" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="145" label="calgary" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="165" label="monster Truck" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.krioma.net/blog/">
      <![CDATA[I took my first trip down to the Saddledome here in Calgary yesterday to go watch <a href="http://www.monsterjam.com/results/result.2010-02-17.7721194112">[Monster Jam]</a>! It was also a chance to experience some "proper white trash". It was lots of fun watching these huge beasts crush cars and fly through the air. From the pictures its hard to really understand the size of these things... but just look at the people for scale (some pics below).I put a video compilation together of some of the best bits I recorded (if you can't see it below go to <a href="http://www.youtube.com/watch?v=9zYkPuN0DI4">[youtube.com]</a>... 

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/9zYkPuN0DI4&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/9zYkPuN0DI4&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

Donkey Kong flies through the air...

<a href="http://www.flickr.com/photos/starrydude/4377550410/" title="Monster Jam - donkey kong by ringsofsaturnrock, on Flickr"><img src="http://farm3.static.flickr.com/2726/4377550410_acbffbf20a.jpg" width="500" height="375" alt="Monster Jam - donkey kong" /></a>

The fans favourite, Grave Digger takes on the giant dirty mound...

<a href="http://www.flickr.com/photos/starrydude/4377549368/" title="Monster Jam - Gravedigger by ringsofsaturnrock, on Flickr"><img src="http://farm3.static.flickr.com/2775/4377549368_414b65aede.jpg" width="500" height="375" alt="Monster Jam - Gravedigger" /></a>

It wasn't all big trucks crushing things though.. there was a cool freestyle motocross show too:

<a href="http://www.flickr.com/photos/starrydude/4376793805/" title="Monster Jam freestyle motocross by ringsofsaturnrock, on Flickr"><img src="http://farm5.static.flickr.com/4062/4376793805_35123d2c61.jpg" width="500" height="375" alt="Monster Jam freestyle motocross" /></a>

More pics over at <a href="http://www.flickr.com/photos/starrydude/sets/72157623358010627/">[flickr]</a>.]]>
      
   </content>
</entry>
<entry>
   <title>Dinos vs UBC</title>
   <link rel="alternate" type="text/html" href="http://www.krioma.net/blog/2010/02/dinos_vs_ubc.php" />
   <id>tag:www.krioma.net,2010:/blog//1.1523</id>
   
   <published>2010-02-22T01:50:30Z</published>
   <updated>2010-02-22T02:00:06Z</updated>
   
   <summary>I went to watch my first University sport match while I have been in Calgary on Friday. It was the [University of Calgary Dinos] versus the University of British Columbia. Oh it was ice hockey. I&apos;m happy to say the...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="General Me" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Photos" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Sport" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="145" label="calgary" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="159" label="hockey" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.krioma.net/blog/">
      <![CDATA[I went to watch my first University sport match while I have been in Calgary on Friday. It was the <a href="http://www.godinos.com/">[University of Calgary Dinos]</a> versus the University of British Columbia. Oh it was ice hockey. I'm happy to say the game was good, though due to drinking of beer we did miss the first period... oh well. It was 1-1 when we got there. The final score was 3-1 to the Dinos... <strong>go Dinos</strong>! 

<a href="http://www.flickr.com/photos/starrydude/4376799253/" title="UofC Dinos vs UBC hockey faceoff by ringsofsaturnrock, on Flickr"><img src="http://farm3.static.flickr.com/2679/4376799253_0618986a0a.jpg" width="500" height="375" alt="UofC Dinos vs UBC hockey faceoff" /></a>

This was my second hockey game while I have been here and it was a bit higher pace than the <a href="http://www.krioma.net/blog/2010/01/my_first_hockey_game.php">[last one (Canada's Women's national team)]</a> with a few big "hits" and a bit of a fight... not a "good" one though...

<a href="http://www.flickr.com/photos/starrydude/4377547482/" title="UofC Dinos vs UBC hockey fight! by ringsofsaturnrock, on Flickr"><img src="http://farm5.static.flickr.com/4065/4377547482_193d40aa25.jpg" width="500" height="375" alt="UofC Dinos vs UBC hockey fight!" /></a>

A few more pictures over on <a href="http://www.flickr.com/photos/starrydude/sets/72157623482515590/">[flickr]</a>.]]>
      
   </content>
</entry>
<entry>
   <title>Olympic Celebration in Calgary..</title>
   <link rel="alternate" type="text/html" href="http://www.krioma.net/blog/2010/02/olympic_celebration_in_calgary.php" />
   <id>tag:www.krioma.net,2010:/blog//1.1522</id>
   
   <published>2010-02-15T16:01:14Z</published>
   <updated>2010-02-15T16:21:25Z</updated>
   
   <summary>Last Saturday Calgary (well CTV) held a celebration for the start of the Olympic Games over in British Columbia. I have to say this is probably the coldest gig I&apos;ve ever been to. It was fun though.. but still it...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="General Me" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Music" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Photos" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="145" label="calgary" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.krioma.net/blog/">
      <![CDATA[Last Saturday Calgary (well CTV) held a celebration for the start of the Olympic Games over in British Columbia. I have to say this is probably the coldest gig I've ever been to. It was fun though.. but still it was darn cold. Not sure if holding an outdoors gig in Calgary in the winter is ever a good idea...  it was foogy too - such that you could just make the outline of the Calgary tower:

<a href="http://www.flickr.com/photos/starrydude/4358423610/" title="Is that the tower? by ringsofsaturnrock, on Flickr"><img src="http://farm3.static.flickr.com/2766/4358423610_502f26fef6.jpg" width="500" height="375" alt="Is that the tower?" /></a>

I got there in time to watch some local band called <a href="http://www.thedudes.ca/>["the Dudes"]</a> who played a solid set of music. Not sure if they are really my thing but they are defineely worth a look out. Probably the best local band I've seen so far. I've not seen many though.

<a href="http://www.flickr.com/photos/starrydude/4358423238/" title="&quot;The Dudes&quot; play by ringsofsaturnrock, on Flickr"><img src="http://farm5.static.flickr.com/4025/4358423238_10014cbf91.jpg" width="500" height="375" alt="&quot;The Dudes&quot; play" /></a>

Eventually, as it got darker, the Tower broke through the clouds and you could see the Olympic Flame burning brightly over Calgary...

<a href="http://www.flickr.com/photos/starrydude/4357675887/" title="Calgary Tower, olympic flame by ringsofsaturnrock, on Flickr"><img src="http://farm3.static.flickr.com/2751/4357675887_cb222863ec.jpg" width="500" height="375" alt="Calgary Tower, olympic flame" /></a>

The main attraction for me to go down to the event was to see the headline band, Simple Plan. They were definitely worth waiting around in the cold for (well it wasn't so cold after I had a hot chocolate and then jumped around a bit).

<a href="http://www.flickr.com/photos/starrydude/4358421474/" title="Simple Plan at Olympic Celebration by ringsofsaturnrock, on Flickr"><img src="http://farm3.static.flickr.com/2752/4358421474_29ba73ebc4.jpg" width="500" height="375" alt="Simple Plan at Olympic Celebration" /></a>

<a href="http://www.flickr.com/photos/starrydude/4357676815/" title="Simple Plan at Olympic Celebration by ringsofsaturnrock, on Flickr"><img src="http://farm5.static.flickr.com/4002/4357676815_b1b2dd96bf.jpg" width="500" height="375" alt="Simple Plan at Olympic Celebration" /></a>

.. but by the end of this and when I got on the C-train to go home I couldn't feel my feet properly.. hmmm. Oh and <a href="http://www.youtube.com/watch?v=61SGOyBLsC4">here is a quick clip of the gig</a>:

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/61SGOyBLsC4&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/61SGOyBLsC4&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

More photos from the gig can be found <a href="http://www.flickr.com/photos/starrydude/sets/72157623312401593/">[on flickr]</a>.  ]]>
      
   </content>
</entry>
<entry>
   <title>Playing with gnuplot</title>
   <link rel="alternate" type="text/html" href="http://www.krioma.net/blog/2010/02/playing_with_gnuplot.php" />
   <id>tag:www.krioma.net,2010:/blog//1.1521</id>
   
   <published>2010-02-13T20:40:52Z</published>
   <updated>2010-02-13T20:54:41Z</updated>
   
   <summary>The otherday it was about time I tried out [gnuplot] for a change. I used to do all of my scientific ploting (and actually a lot of my analysis) in [R]. These days I tend to use [python+matplotlib]... but I...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Astronomy" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Computing" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="92" label="geeky" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="163" label="plotting" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.krioma.net/blog/">
      <![CDATA[The otherday it was about time I tried out <a href="http://www.gnuplot.info/">[gnuplot]</a> for a change. I used to do all of my scientific ploting (and actually a lot of my analysis) in <a href="http://www.r-project.org">[R]</a>. These days I tend to use <a href="http://matplotlib.sourceforge.net">[python+matplotlib]</a>... but I wanted something that would allow me quickly to visualise data and plot functions without much effort... this is where <a href="http://www.gnuplot.info/">[gnuplot]</a> really does seem to be powerful. 

I came across an excellent intro to gnuplot page: <a href="http://www.cs.hmc.edu/~vrable/gnuplot/using-gnuplot.html">[Plotting Data with gnuplot]</a>. 

Here is an example plot of what you can easily produce in a few seconds. Pretty swish.

<a href="http://www.flickr.com/photos/starrydude/4353848397/" title="gnuplot example by ringsofsaturnrock, on Flickr"><img src="http://farm5.static.flickr.com/4044/4353848397_2e6d87335f.jpg" width="500" height="323" alt="gnuplot example" /></a>

Oh and gnuplot is nicely in the <a href="http://www.ubuntu.com/">[Ubuntu]</a> repositories... you probably want to get:

<blockquote>sudo apt-get install gnuplot-x11</blockquote>]]>
      
   </content>
</entry>
<entry>
   <title>Turning a PDF into an animated GIF</title>
   <link rel="alternate" type="text/html" href="http://www.krioma.net/blog/2010/02/turning_a_pdf_into_an_animated.php" />
   <id>tag:www.krioma.net,2010:/blog//1.1520</id>
   
   <published>2010-02-10T02:57:03Z</published>
   <updated>2010-02-10T03:06:17Z</updated>
   
   <summary>Today I was asked to take a bunch of PDF files (essentially frames of the animation) into an animated GIF. This is actually a fairly simple task todo with [imagemagick] and its fast too. Simply all you have todo (assuming...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Astronomy" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Computing" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="161" label="bash" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="162" label="convert" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="92" label="geeky" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.krioma.net/blog/">
      <![CDATA[Today I was asked to take a bunch of PDF files (essentially frames of the animation) into an animated GIF. This is actually a fairly simple task todo with <a href="http://www.imagemagick.org/script/index.php">[imagemagick]</a> and its fast too.  Simply all you have todo (assuming the PDF, or other image files etc are in order) is:

<blockquote>convert -delay 20 -loop 0 frame*.pdf output.gif</blockquote>

The -delay 20 specifies the time between frames and the -loop 0 tells the image to loop forever.
Quite nice really (the animation is for a conference and so I won't post it). 

The only issue I had is I wanted it to stay on the last frame for a while, but this was simply accomplished by a bit of bash before running the above:

<blockquote>
for i in $(seq 28 1 38)
do
   cp -r frame27.pdf frame$i.pdf
done
</blockquote>

Thus this took frame 27 and copied it in a sequence from 28 to 38. Sweet.

Finally I was asked to put two animations next to each and this can be done by using the append functionality:


<blockquote>for i in $(seq 01 01 38)
do
   convert frameset1/frame$i.pdf frameset2/frame$i.pdf  +append output$i.pdf
done</blockquote>

This adds the same frame number from each set next to each other in one larger image. Once this is done it is a simple procedure of running the earlier animation script on the newly created pdfs. 




]]>
      
   </content>
</entry>
<entry>
   <title>Sunset from Science B</title>
   <link rel="alternate" type="text/html" href="http://www.krioma.net/blog/2010/02/sunset_from_science_b.php" />
   <id>tag:www.krioma.net,2010:/blog//1.1519</id>
   
   <published>2010-02-07T02:25:05Z</published>
   <updated>2010-02-07T02:29:53Z</updated>
   
   <summary>My first trip onto the roof of Science B of the University of Calgary was timed nicely with a gorgeous sunset... ... here you can see (what I think it is anyway) the ski jump that Eddie the Eagle must...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Astronomy" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Photos" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="145" label="calgary" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="119" label="moon" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.krioma.net/blog/">
      <![CDATA[My first trip onto the roof of Science B of the University of Calgary was timed nicely with a gorgeous sunset...

<a href="http://www.flickr.com/photos/starrydude/4317003667/" title="View from Science B roof by ringsofsaturnrock, on Flickr"><img src="http://farm3.static.flickr.com/2736/4317003667_8acd7a9c04.jpg" width="500" height="375" alt="View from Science B roof" /></a>

... here you can see (what I think it is anyway) the ski jump that Eddie the Eagle must have jumped off back in the 1988 games.

I didn't just go on the roof to look at the sunset, though it was probably worth it just for that, but to also do a bit of astronomy. There was a class on and I tagged along for the start and helped setup the scope (they were investigating the size of craters on the Moon) and took this pic:

<a href="http://www.flickr.com/photos/starrydude/4329472222/" title="The Moon from Calgary by ringsofsaturnrock, on Flickr"><img src="http://farm3.static.flickr.com/2755/4329472222_9e14784329.jpg" width="500" height="375" alt="The Moon from Calgary" /></a>

Not a bad setup really..

<a href="http://www.flickr.com/photos/starrydude/4317003289/" title="Telescope and Moon by ringsofsaturnrock, on Flickr"><img src="http://farm5.static.flickr.com/4063/4317003289_82414e1938.jpg" width="375" height="500" alt="Telescope and Moon" /></a>]]>
      
   </content>
</entry>
<entry>
   <title>My first hockey game</title>
   <link rel="alternate" type="text/html" href="http://www.krioma.net/blog/2010/01/my_first_hockey_game.php" />
   <id>tag:www.krioma.net,2010:/blog//1.1518</id>
   
   <published>2010-01-31T02:03:07Z</published>
   <updated>2010-01-31T02:10:36Z</updated>
   
   <summary>I went to watch my first hockey (oh and for any Brits by hockey I mean the ice variety) game the other day. It was at the Father David Bauer arena here in Calgary. It was a game between the...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="General Me" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Photos" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Sport" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="145" label="calgary" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="159" label="hockey" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="160" label="ice" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.krioma.net/blog/">
      <![CDATA[I went to watch my first hockey (oh and for any Brits by hockey I mean the ice variety) game the other day. It was at the Father David Bauer arena here in Calgary. It was a game between the National Women's Team (the Canadian Olympic team basically) and the Calgary Royals. 

<a href="http://www.flickr.com/photos/starrydude/4317001147/" title="Canada vs Royals Face-Off by ringsofsaturnrock, on Flickr"><img src="http://farm5.static.flickr.com/4064/4317001147_5248c876fb.jpg" width="500" height="375" alt="Canada vs Royals Face-Off" /></a>

It was actually quite a good game, well for someone who has only ever watched it on telly. Of course in the women's game there are no big body checks or fighting (though I'd probably not want to get in a fight with any of those lasses looked like they could have held their own). The final score was 4-4 which in North American sports means we have overtime and then penalties... with the women winning 7-6 on pens. Lots of fun. Oh there is a short video below... (and a bunch of other pics over on <a href="http://www.flickr.com/photos/starrydude/sets/72157623192010993/">[flickr]</a>.

<a href="http://www.flickr.com/photos/starrydude/4317737390/" title="Canada vs Royals by ringsofsaturnrock, on Flickr"><img src="http://farm5.static.flickr.com/4066/4317737390_d35b9c4723.jpg" width="500" height="375" alt="Canada vs Royals" /></a> 

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/3AsB4YgiPA8&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/3AsB4YgiPA8&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

If you can't see the video try it <a href="http://www.youtube.com/watch?v=3AsB4YgiPA8">[here]</a>. ]]>
      
   </content>
</entry>
<entry>
   <title>Olympic Flame at UofC</title>
   <link rel="alternate" type="text/html" href="http://www.krioma.net/blog/2010/01/olympic_flame_at_uofc.php" />
   <id>tag:www.krioma.net,2010:/blog//1.1517</id>
   
   <published>2010-01-24T18:40:39Z</published>
   <updated>2010-01-24T18:46:10Z</updated>
   
   <summary>Last Tuesday the University of Calgary got into the Olympic spirit that is slowly ramping up in Canada ahead of the 2010 Vancouver games. As the torch makes its journey through Canada it made a nice stop at the Calgary...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="General Me" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Photos" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Sport" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="145" label="calgary" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="158" label="olympics" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.krioma.net/blog/">
      <![CDATA[Last Tuesday the University of Calgary got into the Olympic spirit that is slowly ramping up in Canada ahead of the 2010 Vancouver games.  As the torch makes its journey through Canada it made a nice stop at the Calgary Olympic Oval (Calgary was the host of the 1988 games, if you are a Brit you will probably remember Eddie the Eagle, it was these games that he did that) on its way through Alberta. Of course, I couldn't miss out on this! 

<a href="http://www.flickr.com/photos/starrydude/4301001008/" title="Olympic Torch skates around the Olympic Oval by ringsofsaturnrock, on Flickr"><img src="http://farm5.static.flickr.com/4005/4301001008_32091473e1.jpg" width="500" height="375" alt="Olympic Torch skates around the Olympic Oval" /></a>

<a href="http://www.flickr.com/photos/starrydude/4300997074/" title="Olympic Rings by ringsofsaturnrock, on Flickr"><img src="http://farm3.static.flickr.com/2706/4300997074_8bcb40c747.jpg" width="500" height="375" alt="Olympic Rings" /></a>

Oh and on the way home the torch on the Calgary tower was on...

<a href="http://www.flickr.com/photos/starrydude/4301001722/" title="Olympic Flame on Calgary Tower by ringsofsaturnrock, on Flickr"><img src="http://farm5.static.flickr.com/4064/4301001722_07b97b4cb2.jpg" width="500" height="375" alt="Olympic Flame on Calgary Tower" /></a>

More photos at: <a href="http://www.flickr.com/photos/starrydude/sets/72157623274696860/">[flickr.com/photos/starrydude/]</>. ]]>
      
   </content>
</entry>
<entry>
   <title>2009: a review of my year...</title>
   <link rel="alternate" type="text/html" href="http://www.krioma.net/blog/2010/01/2009_a_review_of_my_year.php" />
   <id>tag:www.krioma.net,2010:/blog//1.1516</id>
   
   <published>2010-01-20T00:35:40Z</published>
   <updated>2010-01-20T00:37:47Z</updated>
   
   <summary>Hmm, I know this is a bit late but given my flying back to the UK for Christmas and then coming into a busy work schedule of just not had time. I thought that I probably should write a few...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="General Me" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="9" label="me" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.krioma.net/blog/">
      <![CDATA[Hmm, I know this is a bit late but given my flying back to the UK for Christmas and then coming into a busy work schedule of just not had time. I thought that I probably should write a few things down though. 

So 2009, a good year and can be summed up by three things.

<strong>Got engaged. Passed Phd. Moved to Calgary.</strong>

Of course much more happened but that's really the quick summary. Getting engaged was by far the most important thing to happen to me.. and now we are organising an August 2011 wedding since I moved to Calgary (Canada) to take up a postdoctoral position in radio astronomy... this came after I successfully completed my PhD in astrophysics (title of PhD - "From planets to galaxies: the low frequency radio sky"). 

Many pictures were taken throughout 2009 and I was involved in many events (many surrounding the International Year of Astronomy). I travelled quite a bit (apart from the obvious moving to Calgary) - I went to Arecibo (Puerto Rico) for an observing trip (great to be in control of the world's largest telescope) and I took a vacation to Barcelona (a fantastic city). 

I don't have much time to finish this properly right now so I'm hoping to come back to this at some point and add some pictures...]]>
      
   </content>
</entry>
<entry>
   <title>Football Manager 2010 on Ubuntu</title>
   <link rel="alternate" type="text/html" href="http://www.krioma.net/blog/2010/01/football_manager_2010_on_ubunt.php" />
   <id>tag:www.krioma.net,2010:/blog//1.1515</id>
   
   <published>2010-01-17T19:42:57Z</published>
   <updated>2010-01-17T20:03:17Z</updated>
   
   <summary>By far my favourite computer game is [Football Manager] and for Christmas I was given the latest incarnation, FM2010. Now I could just play it on Windows, and indeed I probably will at some point, but that&apos;s not me. I...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Computing" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Sport" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="57" label="Football" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="106" label="Ubuntu" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.krioma.net/blog/">
      <![CDATA[By far my favourite computer game is <a href="http://www.footballmanager.com/">[Football Manager]</a> and for Christmas I was given the latest incarnation, FM2010. Now I could just play it on Windows, and indeed I probably will at some point, but that's not me. I never use Windows unless I have to these days (I only ever need to windows to play games).  So I went about trying to get it to work on <a href="http://www.ubuntu.com/">[Ubuntu]</a>. <a href="http://www.krioma.net/blog/2008/05/football_manager_2008_on_ubunt.php">[FM2008 was pretty easy to install]</a> but I had a few problems with this one. For some reason I just couldn't get the correct settings in <a href="http://www.winehq.org/">[Wine]</a>. 

So in the end I just went and installed <a href="http://www.playonlinux.com/">[PlayOnLinux]</a> which has a nice install script for the game and it WORKED! The install went smoothly (make sure you don't do the via steam option though). I first had issues with the graphics but all I did was make sure that fm.exe was added to the list of programs to run in XP mode in winecfg. I also think that you have to make sure you run kill all tasks running with the wine prefix and then simulate the windows reboot. After doing that - job done.  I have a few issues with the graphics and the 3D engine is currently not working, but I probably wouldn't use that anyway... 

<a href="http://www.flickr.com/photos/starrydude/4281664121/" title="ubuntufm2010 by ringsofsaturnrock, on Flickr"><img src="http://farm3.static.flickr.com/2801/4281664121_4465526812.jpg" width="500" height="281" alt="ubuntufm2010" /></a>
]]>
      
   </content>
</entry>
<entry>
   <title>-40C, yikes!</title>
   <link rel="alternate" type="text/html" href="http://www.krioma.net/blog/2009/12/40c_yikes.php" />
   <id>tag:www.krioma.net,2009:/blog//1.1514</id>
   
   <published>2009-12-15T02:28:03Z</published>
   <updated>2009-12-15T02:32:42Z</updated>
   
   <summary>I now know what it is like to be at the same temperature on both the Celsius and Fahrenheit scale... yep a lovely -40C/F. Yikes. I decided to go for a walk... that was a bad idea.. but I got...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="General Me" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Photos" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="137" label="cold" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="9" label="me" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.krioma.net/blog/">
      <![CDATA[I now know what it is like to be at the same temperature on both the Celsius and Fahrenheit scale... yep a lovely -40C/F. Yikes. 

I decided to go for a walk... that was a bad idea.. but I got some nice shots.

<a href="http://www.flickr.com/photos/starrydude/4182697087/" title="Tree with Snow and Tower by ringsofsaturnrock, on Flickr"><img src="http://farm3.static.flickr.com/2682/4182697087_5a43ba0de4.jpg" width="375" height="500" alt="Tree with Snow and Tower" /></a>

City Hall...

<a href="http://www.flickr.com/photos/starrydude/4182696409/" title="City Hall by ringsofsaturnrock, on Flickr"><img src="http://farm5.static.flickr.com/4040/4182696409_5dd3ba7485.jpg" width="500" height="375" alt="City Hall" /></a>

Not the weather for a tea party..

<a href="http://www.flickr.com/photos/starrydude/4183458676/" title="Not the weather for a tea party by ringsofsaturnrock, on Flickr"><img src="http://farm3.static.flickr.com/2724/4183458676_a6aaa9074d.jpg" width="500" height="375" alt="Not the weather for a tea party" /></a>

and yep my windows, not that I want to open them, are frozen shut...

<a href="http://www.flickr.com/photos/starrydude/4183457216/" title="Snow on window by ringsofsaturnrock, on Flickr"><img src="http://farm3.static.flickr.com/2535/4183457216_6cf367d019.jpg" width="500" height="375" alt="Snow on window" /></a>

I'm gonna be glad to be heading back to a "tropical" UK this week. If I don't get around to blogging again this side of it, Merry Christmas to you all. ]]>
      
   </content>
</entry>
<entry>
   <title>Converting Video for the Ipod on a linuxbox</title>
   <link rel="alternate" type="text/html" href="http://www.krioma.net/blog/2009/12/converting_video_for_the_ipod.php" />
   <id>tag:www.krioma.net,2009:/blog//1.1513</id>
   
   <published>2009-12-11T01:53:01Z</published>
   <updated>2009-12-11T01:59:37Z</updated>
   
   <summary>After my flights to and from Puerto Rico the other day I decided it was about time I put a few other video clips onto my ipod (I&apos;ve watched Master &amp; Commander way too many times on it). The problem...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Computing" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Film" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="106" label="Ubuntu" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.krioma.net/blog/">
      <![CDATA[After my flights to and from Puerto Rico the other day I decided it was about time I put a few other video clips onto my ipod (I've watched Master & Commander way too many times on it). The problem is how the heck did I convert them in the first place. I actually have this awful feeling it was quite a few years back and I used an evil Windows program todo it! Well, how do you do it in Linux... simply really install ffmpeg (and a few related things), in Ubuntu it should be as easy as:

<blockquote>sudo apt-get install ffmpeg</blockquote>

.. but just in case <a href="http://ubuntuforums.org/showthread.php?t=786095">[read here]</a>. Then its just about running said task and waiting for the processing to finish. Simples. Oh run something like:

<blockquote>ffmpeg -i Input.avi -f mp4 -acodec libfaac -ar 44100 -ab 128 -vcodec mpeg4 -maxrate 2000 -b 1500 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -s 320x240 -r 30000/1001 outfile.mp4</blockquote>
]]>
      
   </content>
</entry>
<entry>
   <title>Going from sexigesimal to decimal...</title>
   <link rel="alternate" type="text/html" href="http://www.krioma.net/blog/2009/12/going_from_sexigesimal_to_deci.php" />
   <id>tag:www.krioma.net,2009:/blog//1.1512</id>
   
   <published>2009-12-10T00:51:01Z</published>
   <updated>2009-12-10T00:56:42Z</updated>
   
   <summary>I decided (and since I had todo this today) that for consistency (see [my post from there other day]) I should post how to convert between astronomical sexigesimal and decimal coordinates in awk: awk &apos;{h=($2*15)+($3/60)*15+($4/3600)*15; h2=$5+($6/60)+($7/3600); print $1,h,h2}&apos; input &gt;...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="Astronomy" scheme="http://www.sixapart.com/ns/types#category" />
         <category term="Computing" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="154" label="software" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.krioma.net/blog/">
      <![CDATA[I decided (and since I had todo this today) that for consistency (see <a href="http://www.krioma.net/blog/2009/12/convert_decimal_to_sexigesimal.php">[my post from there other day]</a>) I should post how to convert between astronomical sexigesimal and decimal coordinates in awk:

<blockquote>
awk '{h=($2*15)+($3/60)*15+($4/3600)*15; h2=$5+($6/60)+($7/3600); print $1,h,h2}' input > output</blockquote>

see its nice and simple really... the input file given here simply as "input" should contain a list of Source Name (which is $1, not necessary but you normally have it...), RA (in H M S, all separated by spaces) and DEC (D M S, again space separated)....  enjoy. 

]]>
      
   </content>
</entry>

</feed>
