Zen with Xen + a terrible perl program

I know I am very late to the Xen party. I try to stay on top of the life changing software, but there have just been so many new things out there over the past two years or so. I tried running a Xen kernel a while back under fedora core 6, but there were serious problems with xen and the ivtv kernel module driving my pvr500. I was using that for my mythtv backend, which the wife had gotten used to. Guess which had to go. FF >> 2007. I am priming my hardware for a complete replacement, and have already ebayed the tuner card. I figured what the heck; I have a free afternoon. Why not install a xen kernel, and experiment? Good times. Between xen and perl I blew the weekend. I started to write a screen scraper for surfthechannel.com but I got bored. Here is what I have so far….

Continue reading Zen with Xen + a terrible perl program

Google released the Android SDK today.

They have sample code and videos on the website. The points that I have gathered so far include…

  1. Android applications are meant to be coded in java. They used eclipse in the sample video. I can learn java; this should be fun.
  2. There is support for Opengl ES; this means if the hardware supports it you can get interfaces that are as good looking as anything on my iphone. (clutter??)
  3. There is a high level java layer method to interface with the dialer. The sample app video shows one example.
  4. There is a ton of available documentation already, and of coarse a google group.
  5. Google is holding a contest for the best application. I for one am going to enter.

Wifiroamd manages wifi connections under Linux.

Last night I rediscovered wifiroamd. I had been using OS X for so long that I had forgotten what it was like trying to configure wireless under linux; let alone have some form of functional roaming from work to home. I used to always make two scripts.

1. for connecting to my wireless network at home
2. for connecting to the wireless network at work

These scripts would always bring the wireless adapter to a usable state via ifconfig, use iwconfig to get on the right channel, essid, etc… then run dhclient, ping something, and echo “OK”. When I was at neither location I would have to get the list of available networks with iwlist then use iwconfig + wpa_supplicant (if it was a wpa enabled network) + dhclient to get a connection. Frankly thats a pain the the ass. Wifiroamd handles all of that and things are seamless. By default it connects to the first unencrypted network with the highest signal reported by iwlist. But that behavior is easily modified.

After initial configuration it “just works”. I have it set up to start on boot. It finds my home network, starts wpa_supplicant, connects to it on the 802.11x layer, gets an ip, and tries to ping the gateway to check for connectivity. If I plug in my cat5, then the two connections are automatically bonded. You read correctly, automatically bonded, not bringing one down and using the other. It comes with samples to do other things like start an openvpn tunnel on connection. I wonder if it could be extended to help with my other projects??

Save some ram with ratpoison.

I am now using ratpoison as a window manager on my mythtv frontend. I saved myself some ram managed to shave a few seconds from boot to ui. Here is my .xsession.

    #!/bin/bash
    #xfwm4&
    ratpoison -c focus&
    #xterm &
    mythwelcome

I also added VideoModeLin = 3 to the ~/.zsnes/zsnesl.cfg of the mythtv user in order to get the image centered and stable on my tube.

Got fired. Moved on. Made a widget.

Feelin Good.
I got fired. It was painless; like a girlfriend that has gotten fat breaking up with you just before you started gnawing your arm off to get away. Thats life. I made a sample widget using dashcode that basically just pulls the rss feed from slashdot. Its big as hell, and here it is. Enjoy. Oh, and I apparently have a family history of high cholesterol so I am scheduling daily visits to the gym. I may as well get in fantastic shape with all this newfound free time. ** No more cell phone, thank god. ** I feel like I just got a new laptop.

Opening reading, writing and closing files in C.

I have learned a little more C. Now I know how to open/modify/close files using fopen, fclose, fprintf, and fgets. Als always sample code and universal binaries are available here. Todays programs are called openandreadfile.c, and openandwritefile.c. I am looking into using libosip, and libexosip2 to write a sip client that only a geek would love. Beyond SIP I have enough things that I want to do with the language to keep me going for quite some time, embedded development in particular. This is fun.