It seems like a quick way to diagnose system performance problems. Link.
I brought another server out of retirement.
I brought the old mythtv backend up with some updates. I managed to upgrade the thing from fedora core 7 to fedora 8 with the procedure I outlined here. I just had to modify the yum repos to point to the new fedora 8 repo. I bought a bookcase, an ikea made vesa mount, and a new 19 inch lcd. I mounted the lcd on the bookcase after some trouble, (note to self: tin screws work will to hold in cheap particleboard). The result looks good and saves space.
Remember to use iperf
To measure bandwidth between two points. Link.
How to make a backup + perform a search and replace on multiple files.
Using perl of coarse. It took me a second to get this to work; but its pretty easy:
perl -pi.bak -e ‘s/string1/string2/g’
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 programHave spotlight reindex any volume
Its rare, but sometimes spotlight gets a little dumb. It will start missing things in /Applications or people in your address book. If this happens to you then you can have it reindex the volume. Just run mdutil -E / (where / is the volume you want to reindex) as root.
If you are having DNS issues w/ OS X. Look into scutil.
We had been having some problems w/ dns for OS 10.4 users. After running lookupd -flushcache didn’t work, and host was returning the correct values I got confused. Google to the rescue once again. I fixed it with scutil. If I came from BSD maybe I would have already known about it. Another item of interest is dscl. Ryan says: as of 10.5 netinfo is no longer in use. Instead I have to use “local directory”. I should also install the server admin tools.
I like it here.
++
Living on Roosevelt Island….
cheaper; higher quality foods…
katz pastrami in any form…
—
The staff at Gabes school taught him to refer to Native Americans as “Indians”. They need to be corrected, and I need to find a better school for him. I thought that I would be able to try public school for a while until I found him something better; but it looks like that is not going to work out. That is unforgivable. Its something akin to saying colored. While most don’t care, the few that are affected take it at great offense. I do not want to offend anyone at all but if you still don’t understand the idea that I am trying to convey try one of these words. While they may mean nothing to you, they are very offensive to some and should just not be used. Bad form NYC Public Schools.
Google released the Android SDK today.
They have sample code and videos on the website. The points that I have gathered so far include…
- Android applications are meant to be coded in java. They used eclipse in the sample video. I can learn java; this should be fun.
- 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??)
- There is a high level java layer method to interface with the dialer. The sample app video shows one example.
- There is a ton of available documentation already, and of coarse a google group.
- 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??