Archive for the ‘clicky’ Category

blodgett solves a problem!

Tuesday, June 16th, 2009

(with help of friend)

blodgett had a problem (but no longer): wanted wallpaper to change sometimes (blodgett likes variety), of its own accord (blodgett is lazy).

solution part 1: blodgett’s wallpapers are in a directory. blodgett runs fluxbox. blodgett will use fbsetbg! goes to manpage. friendly fbsetbg! it has already an option for random selection from a directory (-r). blodgett is pleased.

solution part 2: blodgett wants things to happen sometimes. blodgett acquires knowledge from friend of CRONTAB :O
running crontab -e opens a text file with mystifying markings. blodgett is mystified. acquires further knowledge from friend. fills out form. resembles now this:

# m h dom mon dow command
0,3,9,13,18,21,27,34,43,47,50,52,58 * * * * fbsetbg -r /home/blodgett/wallpaper/

the interpretation of which is to run command (fbsetbg …) at all listed minutes, of every hour, of every day of month, of every month, on every day of week. (hatching at start is for comment.)

so! crontab accept this input, blodgett wait in excitement for next listed minute! nothing happen. complain to friend. friend suggest maybe does not work when run without a display. friend further suggest solution of setting environment variable. this rather complicated for blodgett.

solution part 3: copy-paste friend knowledge into a file called bob. file bob resemble now:

#!/bin/sh

# I run this via a cron job where DISPLAY isn't set
if [ "$DISPLAY" = "" ]; then
DISPLAY=:0.0
fi

exec env DISPLAY=$DISPLAY fbsetbg -r /home/blodgett/wallpaper/

the interpretation of which is approximately to set a most likely display if it don’t know what to do, then run (exec) the fbsetbg thing with this informations (env, short for environment).

but! file is by default a file, not a program. cannot run a file. so must change mode (chmod) of bob to be executable.

solution part 4: run chmod +x bob

solution part 5: blodgett then updates the CRONTAB OF DOOM with new informations, which now resemble:

# m h dom mon dow command
0,3,9,13,18,21,27,34,43,47,50,52,58 * * * * /home/blodgett/bob

and wait for minute… and it work! blodgett have now randomly changing wallpapers! blodgett’s wallpapers have been upload here:
http://www.flickr.com/photos/blodgett-esq/sets/72157619470981253/

actually took blodgett longer to write this than to solve problem. blodgett bid you all good day, going for tea and cow biscuits now.

blodgett is saving up

Wednesday, June 10th, 2009

http://news.bbc.co.uk/1/hi/uk_politics/8090869.stm

i think i would like to live in a house like this. save on rent also.

rain

Tuesday, June 9th, 2009

the weather mans told us! rain coming. they were right! can predict future. i took some pictures of the rains. you can see them if you click on the picture.

sploosh

sad news

Tuesday, June 9th, 2009

some law has been passed in case people eat things. stupid law.

http://www.guardian.co.uk/books/booksblog/2009/feb/20/kalder-childrens-books-lead-panic

ooh

Monday, June 1st, 2009

blodgett got new best score on word game! 715. yupyup.
(word game was here: http://blodgett.doof.me.uk/2009/04/25/more-game/)

update!!11 is now 843. quack is good word :D (um. this happen on june 16th)

further update! have 966 on game 303. possibly addicted. maybe blodgett needs therapy.

worm baby

Monday, June 1st, 2009

rolls good.

http://www.youtube.com/watch?v=8vNxjwt2AqY

health is important

Saturday, May 23rd, 2009

me and friend nick (but not in the thieving sense) made another important paper, vital to the functioning of society. is here:

health

duck moat

Friday, May 22nd, 2009

some people who run a government, it turns out they have important expenses! they must clean their moat and build duck island! this is the best news blodgett have heard in a long while. clearly such government are extremely stylish.

news pages and picture of duck island here:

http://news.bbc.co.uk/1/hi/uk_politics/8051027.stm

http://www.smh.com.au/news/technology/web/mps-duck-island-folly-exposed-on-google-earth/2009/05/22/1242498910263.html

newts crossing

Wednesday, May 20th, 2009

http://www-cs-faculty.stanford.edu/~knuth/diamondsigns/critters.html

i like the caution sign for newts best! but the duck ones are good too :)

oink

Saturday, May 16th, 2009

oh no! blodgett discover disastrous mistake in photo tagging. one flower picture i accidentally label oink instead of pink!
http://www.flickr.com/photos/blodgett-esq/3535063366/

is ok though. i fix it now. i add tag of pink.