Geekblok

B10m, BOK, Joffie - old geeks on a blog

Entries Comments



Month: January, 2008

Fun with bluetooth

31 January, 2008 (22:23) | fun, security, technical | By: Joffie

blueproximity logo

Last week I finally got a telephone with bluetooth. As my laptop also as a bluetooth dongle in it, I thought I should be able to do some geeky things with it.
My thoughts were correct: my screensaver is now working, based on the proximity of my telephone. As soon as my phone leaves the desk, the screensaver kicks in and locks the screen. When it is back in the proximity of the laptop, the screen magically unlocks.

Though I am very aware that this really is no good from a security point of view, it is just cool.

I’ll describe what I have done to get this to work. My phone is a Nokia 6151 and the laptop is running Ubuntu desktop.

Read more »

Yahoo! (Flickr) as your OpenID provider

30 January, 2008 (23:19) | general | By: B10m

OpenID logo

I’ve ranted about OpenID before and in my predictions for 2008, I even wrote that OpenID will get supported more and more.

Today, Yahoo! announced that their OpenID implementation (as a provider) has opened up as a public beta. This means that you can use your Flickr photo URL (or custom me.yahoo.com URL) to log in to a lot of places. This will most likely boost the OpenID implementations (for now you can offer your service to (theoretically) all the Yahoo!/Flickr users).

Let’s see if my OpenID prediction becomes reality. As for the measurement, I’ll use The OpenID Directory. Currently, they have listed 471 websites.

Will Google and Microsoft follow soon with OpenID?

PhotoSoup

28 January, 2008 (13:45) | fun, games | By: B10m

PhotoSoup

Due to the Flickr API, we see new initiatives pop up everywhere. Today I’d like to show you a little game called PhotoSoup. The site itself describes the game as:

PhotoSoup is a visual word puzzle generator that allows users to create word search puzzles with tag-photo pairs taken from Flickr. The tag is hidden in the puzzle, and only the associated photo is shown as a clue. The objective is to find all hidden tags in the puzzle before you run out of time.

The game is quite simple. Find all the words (tags) that describe the images around the puzzle and select them before you run out of time. Due to some weird tags you can never guess (like “bw”, “joe”, “henry” etc.), you might want to hit the “Show Hints” button. This way, you’ll see the tags you’re expected to find.

Let’s look at a sample game with topic: “geek”

photosoup.png

Warning: you may find this game addictive!

shell tips and trick, part 2

19 January, 2008 (13:31) | guides, technical | By: Joffie

This trick is a bit bash specific instead of a real shell trick. On most unix systems you’ll find the commands dirname and basename. These are rather useless when you have got bash. First we’ll look at dirname.
The manual page of dirname states: dirname - strip non-directory suffix from file name. In bash this would be accomplished by parameter expansion:
$ I=/home/joffie/geekblok.txt; echo ${I%/*}
/home/joffie
The description from the man page of basename is: strip directory and suffix from filenames. So for example:
$ basename /home/joffie/geekblok.txt
geekblok.txt
The same can be accomplished with:
$ I=/home/joffie/geekblok.txt; echo ${I##*/}
geekblok.txt
The suffix part of the basename command can be done in two steps. What the command basename does is strip something from both sides of the string. So stripping suffix .txt from $I too:
$ I=/home/joffie/geekblok.txt; J=${I##*/}; echo ${J%.txt}
geekblok
Bash can also be used when searching and replacing. Take a look at:
$ I=/home/joffie/geekblok.txt; echo ${I/geek/cool}
coolblok.txt
More info can be found in the parameter expansion section of the man page of bash.

Tag Flickr photos with Smark(.us)

7 January, 2008 (11:52) | images | By: B10m

Smark logo

Tagging your photos on Flickr can help you to describe the photo. By tagging them, you can search for that specific photo with ease. Smark helps you with this tagging process in quite an elegant way.

After selecting the set(s) you want to review (and tag), you see the photos individually and suggested as well as recently used tags are shown beneath the images. Simply add tags and navigate to the next image (note: you can use your cursor keys to navigate, woohoo!).

It’s working rather nice and the author of the website is open to suggestion. The changes requested by me were implemented within a day. If you have suggestions, dump them in the Flickr group

Last, but not least, “smark contains no additives or preservatives”.