Archive for April, 2008

Reading: "FrequentlyAsked…

Posted by admin on April 27th, 2008

Reading: "FrequentlyAskedQuestions < Motion < TWiki" http://tinyurl.com/6zxbkp

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Bookmarks for April 26th through April 27th

Posted by srejbi on April 27th, 2008

These are my links for April 26th through April 27th:

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Protected: Test Cam Feed

Posted by srejbi on April 27th, 2008

This post is password protected. To view it please enter your password below:


[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Webcam Surveillance on Gentoo Linux

Posted by srejbi on April 26th, 2008

Well, a long planned project was completed - I’m so lazy :) -, I wanted to monitor home when away. I had a dusty old Logitech QuickCam Pro (gray ring), that I tried to get working with my gentoo box for some time, without luck. In fact none of the existing drivers seem to support it.

So I went to the nearest supermarket which has some IT department and checked out the choice. There were mainly Labtech and Genius products, some on SALE. After a little googling form my mobile, I’ve found on Linux-USB device overview the list of the list of webcams.

Soon I found a match with one of the items on SALE: Genius GF112. It costed HUF 3490 (approximately 22 bucks).

Came home, unpacked the stuff and plugged the cam to a free USB slot, then did an lsusb to verify the device came up - everything went as expected.

# lsusb
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 003: ID 093a:2470 Pixart Imaging, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000

I could get down to the drivers. The driver listing specified the gspca driver, so I esearched it. There were two matches:

# esearch gspca
[ Results for search key : gspca ]
[ Applications found : 2 ]
*  media-video/gspca [ Masked ]
      Latest version available: 01.00.10
      Latest version installed: [ Not Installed ]
      Size of downloaded files: [no/bad digest]
      Homepage:    http://mxhaard.free.fr/spca5xx.html
      Description: gspca driver for webcams.
      License:     GPL-2
*  media-video/gspcav1 [ Masked ]
      Latest version available: 20071224
      Latest version installed: [ Not Installed ]
      Size of downloaded files: [no/bad digest]
      Homepage:    http://mxhaard.free.fr/download.html
      Description: gspcav1 driver for webcams.
      License:     GPL-2

As the packages are masked, I used autounmask to allow emerging them. In fact media-video/gspca fails to install:

 * Messages for package media-video/gspca-01.00.10:

 * The package maintainer made a mistake.  You should consider using media-video/gspcav1
 * instead.  This driver is still alpha.  --KingTaco

, so I ended up emerging media-video/gspcav1.

When emerge was complete, I did #modprobe gspca.

Earlier I have emerged gqcam, so did a quick check with it:

#gqcam -v /dev/video0

There was my living room on my desktop… :) But no champagne yet, it’s just on my screen, not on any screen I want…

Next thing was to install a motion-detector: I figured motion will suit my needs. Did esearch that one too, of course masked, but exists… :) So autounmasked and emerged it.

Some tweaking of the /etc/monit.conf and /etc/conf.d/monit files (I’ll post later) and it was good to go, posting files into a local folder under my apache’s directory tree (well, symlinked to be exact).

There are a few steps remaining, such as archiving, syncing to another server, but for the moment I have to go cut the grass…

Enjoy!

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Viper’s Video QuickTags

Posted by srejbi on April 25th, 2008

Installed another YouTube embedding plugin, Viper’s Video QuickTags, to see which one is better…

(See post about VideoWarrior)

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Reading: "Twitterbar :: F…

Posted by admin on April 25th, 2008

Reading: "Twitterbar :: Firefox Add-ons" http://tinyurl.com/yq7yyo

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Linked plugin modified

Posted by srejbi on April 25th, 2008

Recently I have integrated my blog with Twitter. Then started to use the Shareaholic plugin for my Firefox to post URLs to Twitter as I surf.

I noticed that though Twitter converts the plain text URLs to clickable links while displaying on Twitter, links were not coming up as links but as plain text URLs in my WordPress posts.
So I installed the Linked WordPress plugin, but unfortunately it was not handling links correctly - only the domain part of each URL was converted to a link. (Now with each URL pointing tohttp://tinyurl.comdoes not look too pro, does it? :) )

After spending some time by checking the plugin’s code, I have found a solution that works for me.
I changed linked/linked.php on line 200, from

$content = preg_replace(’((>|\s)(http:\/\/[a-zA-Z0-9]+(\.[a-zA-Z_]+)+))’, ‘<a href=”$2″>$2</a>’, $content);

to

$content = preg_replace(’((>|\s|\(|\n|\r)(http:\/\/[a-zA-Z0-9]+(\.[a-zA-Z_]+)+([a-zA-Z0-9\/]+))
(\s|\)|\n|<))’ , ‘<a href=”$2″ target=”_blank”>$2</a>’, $content);

This did the trick for me, and now the complete URL is converted to a clickable link…

Experiment & enjoy!
(Download the source file from here: Linked WordPress plugins linked.php zipped)

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Bookmarks for April 25th from 21:15 to 21:15

Posted by srejbi on April 25th, 2008

These are my links for April 25th from 21:15 to 21:15:

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Reading: "Super Loop: Exc…

Posted by admin on April 25th, 2008

Reading: "Super Loop: Exclude Specific Categories and Display any Number of Posts • Perishable Press" http://tinyurl.com/2t4qqx

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Reading: "Sun: Solaris - …

Posted by admin on April 25th, 2008

Reading: "Sun: Solaris - LOM help" http://tinyurl.com/65ap8q

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Bookmarks for April 25th from 20:19 to 20:19

Posted by srejbi on April 25th, 2008

These are my links for April 25th from 20:19 to 20:19:

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Bookmarks for April 25th from 19:14 to 20:01

Posted by srejbi on April 25th, 2008

These are my links for April 25th from 19:14 to 20:01:

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Reading: "Gentoo init.d s…

Posted by admin on April 25th, 2008

Reading: "Gentoo init.d script for a Rails mongrel cluster" http://tinyurl.com/5v8jmr

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Reading: "Internet Techno…

Posted by admin on April 25th, 2008

Reading: "Internet Technologies/VNC - Wikibooks, collection of open-content textbooks" http://tinyurl.com/6khh7d

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Reading: "Using VNC and S…

Posted by admin on April 25th, 2008

Reading: "Using VNC and SSH on a Mac" http://tinyurl.com/6dsag7

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Bookmarks for April 25th from 18:33 to 18:51

Posted by srejbi on April 25th, 2008

These are my links for April 25th from 18:33 to 18:51:

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

VideoWarrior plugin in the owen…

Posted by srejbi on April 25th, 2008

Installed the Video Warrior plugin into my WP blog…

Now giving it a try, let’s have fun!


Watch this video directly at Youtube

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Integration with twitter and del.icio.us

Posted by srejbi on April 25th, 2008

I have twitter and del.icio.us plugins installed on this WordPress blog. Now I am kind of experimenting with the interactions…

:]
Installed plugins:

By the way, I started to sync/add some bookmarks on del.icio.us

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Bookmarks for March 23rd through April 25th

Posted by srejbi on April 25th, 2008

These are my links for March 23rd through April 25th:

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

now that was enough fun with W…

Posted by admin on April 8th, 2008

now that was enough fun with WordPress, let’s get down to programming Ruby again…

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]