Archive for the 'IT' Category

playing with my new SonyEricss…

Posted by admin on May 17th, 2008

playing with my new SonyEricsson p1i - now posting from my mobile…

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

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]

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]

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]

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]

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]

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]

Password protected posts

Posted by srejbi on April 8th, 2008

Another WordPress based website I maintain, happened to have some password protected posts. Once the password protection was enabled on the post, I visited the page to see if everything works properly. Surprisingly every time I submitted the password, I have found myself on the same page, demanding the password on and on.

I have spent quite a few minutes meditating on this, then checked the form in the source. It is redirecting to wp-pass.php, which verifies the password submitted, and sets a cookie called post_password (default expiry: 864000 seconds /=10 days/, if anyone cares to change it, it can be done by editing this file /I could not leave this as reply to this post, or this one due to that both topics are closed) then redirects to the referrer (that will check the password from the cookie, I suppose). This seemed alright to me.

Browsing through my settings, I found that for some reason the website had different URL’s entered for WordPress address (URL) and Blog address (URL) under the General Settings. The two URL’s were in different domains (so imagine not www.somedomain.com and admin.somedomain.com, but www.somedomain.com and admin.anotherdomain.com) Thinking about the cookie and the redirect in wp-pass.php I have changed the WordPress address (URL) to be the same as the Blog address (URL), and all of the sudden the password protection started working as expected, requesting password only once (if the proper code is entered, of course :) ).

Asking me why?
Cookies store the host’s domain name and apparently this is is the WordPress address, not the Blog address for the post passwords… I was not looking into it deeper than this (for me it was ok to change the domain names in the settings), probably there is a way around this by changing some of the WordPress code, but I will likely leave that for the project developers… :)

I have been googling on this for some time, but found no traces of this problem and workaround… Is anyone out there? Enjoy! :)

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

bugging with wordpress…

Posted by admin on April 8th, 2008

bugging with wordpress…

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

now that was a long shower… …

Posted by admin on April 8th, 2008

now that was a long shower… had some cold showers of work in the meantime, a happy easter and some more drops of work… and working again

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

take a shower and get out of h…

Posted by admin on March 25th, 2008

take a shower and get out of here… i’ve got some other stuff to do than to fool around on the pc…

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

WordPress & Twitter

Posted by admin on March 25th, 2008

Being lazy and impatient (as few clicks as little to wait for a page to load - as possible), I created a Twitter account to manage short updates to the blog. How it is integrated? Using the Wordpress Plugins below:

  • Twitter This
    A little plugin that adds a link to Wordpress entries allowing Twitter users to include a specific post in their Twitter (The plugin must be edited, as Username is left in Spanish, localization of texts ~3 words is necessary if plugin to be used in other languages than English)
  • Twitter Tools
    A plugin that integrates with the Twitter API, alowing to grab entries from Twitter, as well as add ones there as the Wordpress blog changes

Now just gonna check out how it works in details, looks good so far…

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