Archive for October, 2011

This is actually surprisingly simple. You’ll need inotify-tools and sendxmpp. In Debian-based distributions, just install the two packages:

bash# apt-get install inotify-tools sendxmpp

Next, you’ll want to set your username, server, and password in ~/.sendxmpprc since you probably don’t want to put those on the command line and have them show up in the process list. The sendxmpprc file is very simple, just add the following line (note that service is optional, but may be required for sendxmpp to work with some servers):

user@domain.tld password service

And make sure to replace user, domain, and password with appropriate values. :)

Now, let’s say you wanted to be notified of any changes to your home directory. All you’d have to do is issue the following command:

inotifywait -mr /home/username | sendxmpp -ti user@domain.tld

The -m switch tells inotify not to exit after an event is received. The -r switch tells it to monitor recursively. The -t switch tells sendxmpp to log in securely with TLS. You may need to use -e instead if your server only supports SSL. -i tells sendxmpp to send messages interactively (i.e., it sends line by line from STDIN).

That’s all there is to it. Check out the man pages for inotifywait and sendxmpp for more fun options.

HP Touchpad Cyanogenmod 7

Cyanogenmod 7 is now ported over to the HP Touchpad!  Cyanogenmod is an aftermarket firmware for phones and tablets and offers features that cannot be found by vendors.  On August 20, 2011 HP had a fire sale on there new tablets 16gb Touchpad’s where going for $99 and 32gb Touchpad’s for $149 this caused alot of people to go to retail stores and demand for Touchpad’s!  I happen to work for a big box retail place and happen to be working the day it happened but like most geeks and nerds I knew about the price change a day before.  I went into my store to ask if the store was selling them at $99, the manager told me, “No, and was waiting for communication from corporate.”  After about an hour later we got the OK and I finally got my hands on as 32gb Touchpad.  I knew that one day Android would be ported over to the Touchpad and recently just happened!

 

After installing Cyanogenmod to the Touchpad which happened to be a pretty painless, all that you need is novacom and some files and the installer actually resized the current 32gb partition to two 16gb’s so I can dual boot Webos and Cyanogenmod!  I have to say for an Alpha release I am VERY surprised by how much work has been done to the project and what they are capable of doing.  Wireless works and connected to my Access Point granted the Wireless doesn’t stay on when the tablet is in sleep mode but hey this is Alpha!