« December 2006 | Main | February 2007 »

January 2007 Archives

January 11, 2007

Slideshow for Photoblog

So I have been working on a nice little slideshow application that will be used for Photoblog. Its a little bit of html and editing some java code to make it work. I am looking to make this work a big better so it will be easily implemented into any webpage.

So first here are two examples of how you can use it

Showing most recent post
http://www.zcentric.com/examples/slideshow_front.html

Show a certain post by date
http://www.zcentric.com/examples/slideshow_date.html


You can see the different things you can change in the one javascript line for now.. This will probably change but for now it works

http://www.photoblog.com/slideshow/js/slideshow.js?user=mikezupan&type=large&timer=6&date=2006-12-3

now you can see some things

user : that will be your username
type : this is the size of the images you want to show.. the options can be large/medium/small
timer : this is the time in seconds you want it to cycle each picture. It will default to 3 so you can't put anything less.
date : this is optional but it needs to be in the yyyy-mm-dd format. If you leave it out it will show your most recent post.

January 16, 2007

Make the HP dv2120us webcam work in Linux

So here is a little quick little howto on how to get the dv2120us webcam working in Linux.

I am using the 2.6.20-rc5 kernel, which at the time of writing this is the latest release candidate kernel. It was not picked up in Linux but a lspci produced the following

03:09.2 System peripheral: Ricoh Co Ltd Unknown device 0843 (rev 01)

I think that is it.. I am not sure if it sees it as a usb or pci device or not. The module uses usbcore so its beyond me. So to get it working I ran the following commands

svn checkout http://svn.berlios.de/svnroot/repos/linux-uvc/
cd linux-uvc/linux-uvc/trunk/
make
make install
modprobe uvcvideo

You should see something like this in your dmesg once you load it

[ 1022.224000] usbcore: deregistering interface driver uvcvideo
[ 1045.764000] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62c0)
[ 1045.764000] usbcore: registered new interface driver uvcvideo
[ 1045.764000] USB Video Class driver (v0.1.0)


Also on a side not it sees it as a v4l2 device and not a v4l device

January 25, 2007

Remove Leading 0's in Bash

So you have a var you want to remove leading 0's on.. well do the follwing

mzupan@mzupan-desktop:~$ var=00014
mzupan@mzupan-desktop:~$ let var="10#$var"
mzupan@mzupan-desktop:~$ echo $var
14
mzupan@mzupan-desktop:~$

About January 2007

This page contains all entries posted to My Random Blog in January 2007. They are listed from oldest to newest.

December 2006 is the previous archive.

February 2007 is the next archive.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.33