Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

Search:

CA249      CA318      CA425      CA651

w2mind.computing.dcu.ie      w2mind.org

Missing
DCU student

CASE3 student Paul Bunbury is missing since Thur 2 Feb 2012.
See appeals on crime.ie and garda.ie and facebook.

He is a great coder. See DCU page and boards.ie page.
He won major coding contests in 2010 and 2011.
He is author of the brilliant "FloodItWorld".
DCU can confirm that in Jan 2012 he passed all 6 modules comfortably.


How to set up an active desktop in 6 lines of Shell

This is my favourite Shell script or batch file ever. It illustrates perfectly the advantages of having a programmable system.

When I was doing my postgrad work in the UK around 1995 I used to run this little Shell script to turn my desktop background into a live view of Dublin, that would run all day long.

The sun would slowly rise and set in my background, as I worked away in the foreground:



 url="http://images.ireland.com/webcam/liveview.jpg"
 file=dublin.jpg

 while true
 do
  lynx -reload -source $url > $file
  xv -root -quit -max $file
  sleep 1200
 done


Notes



O'Connell Bridge, Dublin, right now.
From Dublin City Council.




A version that should work on DCU Linux now

 
	url="http://www.dublincity.ie/dublintraffic/Site0Camera6.jpg"

 file=$HOME/background.jpg

 while true
 do
  wget -q -O - $url  > $file
  
  gconftool-2   -t str   -s /desktop/gnome/background/picture_filename   $file
  gconftool-2   -t str   -s /desktop/gnome/background/picture_options    "stretched"     

  # sleep for this no. of seconds
  # 1200 = 20 mins

  sleep 1200
 done


Notes


Usage



Feeds      HumphrysFamilyTree.com

Bookmark and Share           On Internet since 1987.