Skip to main content

Posts

Showing posts from March, 2012

Script to bind to slow routers by persistent requests to release DHCP information

This script is to persistently nag the router to release DHCP information. The script must be run as root. This is for slow routers or one which is overloaded with clients. Do not use for normal routers. Otherwise it could be misconstrued as a security threat.
persistent bind connection DHCP script
-------------------------
# script to persistently nag the router to release DHCP information : must be run as root # persistent bind connection DHCP script b=`expr 1` while [ $b -lt 2 ] do echo "Starting new DHCPREQUEST .... after 5 secs ... " sleep 5 /etc/init.d/networking restart echo -e "\n xxxxxxxxxxxxxxxxxxxx \n `tail -n 20 /var/log/syslog` \n xxxxxxxxxxxxxxxxxxxx \n" if [ "` tail -n 20 /var/log/syslog | grep "DHCPOFFER" | grep "of 192"`" ] ; then echo -e "\nExiting inf. loop .............\n" b=`expr 3` fi done

Fastest way to send multiple drafts from gmail

People claim that the fastest way to send multiple email drafts is to use Gmail IMAP with email client like Outlook or Evolution or Thunderbird. But I have found this is not true. Because Thunderbird and Evolution etc. email clients treats the drafts as emails still to be edited. So it is not just simple select all and hit send. Each email draft has to be opened and sent separately. That is a lot of clicks and mouse movements, wasting precious time and energy. I have a better solution which involves minimum keystrokes and mouse usage. Efficiency booster technique for sending emails.
If someone is feeling adventurous and want to try it from the Gmail interface itself, here's how to do it in the fastest possible manner. It involves using the mouse once. Select the first draft. Gmail would open a new email box and put the cursor inside the box to write.Press TAB once to go the Send button.Press ENTER to send. Now Gmail sends it and the box is gone but the highlight goes to the last li…

How to play movies in PS3

PS3 supports a wide variety of video formats. But there are multiple caveats regarding the playback all relating to the licensing of propriety codecs. PS3 plays avi, mp4 etc. but only some codecs like xvid are playable. mkv files will not play. If it a direct presonal copy from a DVD VOB file it can play. Also, it refuses to play some formats from external media. In that case copying to the PS3 local disk might work.
PS3 is not supposed to play single video files due to DRM(Digital Rights Management). However, if some personal video like a party video is concerned and someone want to play in on a bigger TV screen rather than a PC then it is understandable. If it is laptop it might have a HDMI output so no need to go through alll the hassle. but if there are no laptops then it makes sense to use the PS3 to view videos.
To view videos in PS3 it is best to encode all videos with the xvid codec. This is easily acheived with mencoder.
mencoder -idx inputfile.dat -ovc xvid -oac mp3lame -lam…