|  About  |  Archives  |  Log in  | 

Archive for June, 2006

2006 World Cup Firefox Extension

Stay up to date on 2006 World Cup matches with the Firefox extension from joga.com.

The extension comes with a side bar and shows the status of live mathes in the Firefox status bar.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Webcam Capture Example

After posting the review of webcam software applications, I thought I should put up some example of the output from these applications. Some days ago, I had a camera running from early morning until late in the evening, using the Yawcam software. The camera used is a Sipix Stylecam Blink - not the greatest camera around.

The images was captured using motion detection with Yawcam set to capture 5 images per motion event. The captured images illustrate the importance of placing the camera proplerly: In this case the camera was placed with a too limited "field of shot" resulting in a too short response time for captures. The images have primarily captured objects entering or leaving the frame.

I have put up the captured images in a gallery, powered by SPA photo album. SPA is great: it uses a single (and simple) PHP file, the album is automatically updated when new images are uploaded and images can be viewed in a slideshow.

Browse gallery of captured images

I have also used Yawcam to combine the captured images into a video.





The above Flash video was created by converting the Yawcam generated .mov file using eRightSoft's SUPER conversion tool (that is the actual name, it is not a superlative. But the tool is super). The images were not great quality to start with (640×480 pixels) and the video conversion further reduced quality. The video is also in 640×480 pixels, but shown here in 320×240 pixels.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Related Posts Plugin Update

I have just finished updating the plugin I use to display links to related posts when a single post is displayed. The old version only permitted links to related posts to be displayed below the comments section - a placement somewhat too inconspicuous.

The new version is hooked into the Wordpress loop differently, which allow links to related posts to be placed pretty much anywhere.

Because I already have the plugin installed (and have appropriate database tables in place), I needed to run a small upgrade script - 'upgrade_related.php'. The script did not run straight off the bat because it references some variables, which are not declared anywhere. I had to add the following declarations at the bottom of 'wp-config.php' in the root folder of the Wordpress installation.

$server = DB_HOST;
$loginsql = DB_USER;
$passsql = DB_PASSWORD;
$base = DB_NAME;

Next, I added some code to 'single.php' - just above the post meta information - to actually display the links to related posts:

<?php echo related($post->post_title); ?>

If you click a permalink to one of my posts, you will see the links to related posts at the end of the post text, just above the meta information of the post.

***** UPDATE *****
It appears that the 'Related Posts' plugin graps everything from the database, including unpublished posts.

***** UPDATE #1 *****
Fixed the 'get-everything' issue, by hacking the SQL statement in 'related.php' to only fetch published posts:

$sql = "SELECT ID, post_title, post_content, post_excerpt, post_date, post_status, MATCH(post_title,post_content) AGAINST ('".$stuff."') AS score FROM
"
.$table_prefix."posts WHERE post_status = 'publish' AND MATCH (post_title,post_content) AGAINST ('".$stuff."') AND ID <> ".$post->ID." LIMIT 0,".$max_related;

This excludes drafts, private and static (pages) posts.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Review of Free Webcam Software

Some months ago I decided to mess around with webcams and webcam software. I think my motivation for doing so went something along the lines of "it would be pretty nifty, if we could monitor the house when we go away on holiday and such". So, I looked around a bit for software, which would allow me to:

  1. capture images and/or video streams.
  2. somehow get the files onto a web server.

I came back empty handed from looking around and to cut back on time-spent-on-pretty-useless-stuff, I put the thing to rest.

Then, a few weeks ago, I decided to have another go and this time, I very quickly came across some very promising candidates (I must have looked in all the wrong places the first time…). In the following, I will do a very quick rundown of the pros and cons of six different webcam applications and do some sort of conclusion at the end. The six applications are (in no particular order): WebcamFirst, Fwink, Dorgem, DCAM Server, WebCapture and Yawcam.

Did I mention that these applications are all free and run on Windows? Here it goes…

WebcamFirst:

  • Quickly abandoned due to the very confusing web site and instructions.

Fwink:

PRO:

  • Very easy setup
  • Uploads image by FTP, or saves it locally

CON:

  • Only saves most recent image (image file name cannot be customized)
  • very limited configurability
  • No video - I could not access the video controls - camera not detected?
  • No motion detection

Dorgem:

PRO:

  • Supports using multiple cameras
  • Can be set up to automatically combine captured images into an .avi video
  • Supports upload using external program, such as SSH or SFTP.
  • The builtin webserver can be set up to refresh image in browser.
  • Motion detection, which cannot be configured

CON:

  • Uses WinInet for FTP, which requires MS Internet Explorer to be installed
  • Cannot stream video
  • My machine crashes when I try to exit Dorgem
  • Image capture stops at midnight (?)

The following two pieces of software have not been under development for the past couple of years.

DCAM Server:

PRO

  • Supports using multiple cameras
  • Builtin webserver
  • Saves to FTP or locally

CON

  • Captures images in 320×240 pixels - cannot be changed
  • Captures image at fixed interval - cannot be changed
  • No video

WebCapture:

PRO

  • Easy configuration
  • Builtin webserver
  • FTP and local save

CON

  • Comes across as somewhat "shaky"
  • No video

Yawcam:

PRO:

  • Stores images locally or uploads to FTP
  • Publishes most recent image using builtin webserver
  • Streams webcam video on web page using builtin webserver
  • The latest beta version adds motion detection
  • Can be configured to just store the most recent image, or it can store an array of images.
  • Captured images can be combined into a .mov video.
  • Despite its versatility, Yawcam is very easy to configure

CON:

  • None really…maybe the ressource consumption on the host machine?

Essentially, it all boils down to a choice between Dorgem and Yawcam. Both applications fulfill any minimum requirements, so Dorgem is the way to go if you want something quick'n'dirty and Yawcam is the choice if you are looking for more options and functionality. I am very impressed by Yawcam, developed and maintained by Magnus Lundwall, a swedish computer science student from Göteborg. The application packs exactly the right features, while being very easy to setup and configure at the same time. This is especially true for the motion detection feature that is included in the latest beta version.

Finally, a small tip: If you configure any of the above applications to upload images to a server directory by FTP, you can use something like SPA photo album to create a simple and automagically updated, online album of images. SPA consists of a single PHP file and basically requires zero configuration.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Ubiquitous TiddlyWiki

For some time, I have been using a TiddlyWiki for my immediate and random notes. The major feature of TiddlyWiki is that it is just one HTML file with embedded javascript functions. I use my TiddlyWiki in much the same way the Google Notebook is used, but instead of having the TiddlyWiki "online", I would carry it around on the USB thumbdrive I always have with me. From time to time, I would FTP my TiddlyWiki to wiki.gersbo.dk to make my notes even more accessible.

That is all in the past now, thanks to BidiX's UploadPlugin (TiddlyWiki functionality is extendable through user developed plugins). The UploadPlugin enables me to edit and save my online TiddlyWiki from the TiddlyWiki itself, on any computer.

To accomplish this neat feature, two parts are used. One part is the plugin, which must be installed (copy-pasted) into the TiddlyWiki, the other part is a small PHP script, which must reside on your web server. If you edit an online copy of a TiddlyWiki, the changes made are temporarily contained within the browser. When you hit the "save to web" link in the TiddlyWiki, the plugin contacts the PHP script (basic username + password authentication is provided), which then overwrites the online copy with the browser copy.

So simple and so neat…

If you enjoyed this post, make sure you subscribe to my RSS feed!

Apache on Symbian S60

This is great and exiting news!

From LinuxDevices.com:

Nokia has ported the Apache webserver to Symbian, in order to enable mobile phones to serve content on the World Wide Web. Many mobile phones today have more processing power than early Internet servers, suggesting that "there really is no reason anymore why webservers could not reside on mobile phones," according to the company.

The project is named "Racoon" and there is a description at Nokia Research. The project description mentions an interesting aspect of "mobile" webservers:

As a mobile phone contains quite a lot of personal data it is easy to semi-automatically generate a personal home page. And contrary to websites in general, a website on a mobile phone always has its "administrator" nearby and he or she can even participate in the content generation. For instance, we have created a web-application that prompts the phone owner to take a picture, which subsequently is returned as a JPG. That is, on a personal device the website can be interactive.

To overcome problems with regards to firewalls and dynamically assigned IP adresses used on celluar networks, Nokia also provides a gateway server and service.

If you enjoyed this post, make sure you subscribe to my RSS feed!