Site Changes

This site is under construction. Hosting has been moved to a new, faster server, with a much more reliable connection to the internet. I’m reorganizing the site and, for the time being, features such as the photo galleries and software lists are unavailable. After this is done, I’ll be posting about life in Switzerland!

Posted in computers, my life | Comments Off

Ride Steam in SC!

I just received in my e-mail a copy of this flyer (scrm.org, PDF, 293kiB) regarding an opportunity to ride a steam train in near Columbia, SC this fall.

The South Carolina Railroad Museum is getting ready to operate Flagg Coal Company #75 on October 16, 17, 23, and 24. This is a small switcher type engine and will make a 7 mile round trip in about an hour. The fair is $15 and advance reservations are recommended. This is obviously a fun way to contribute to the state’s only steam operation and the track it runs on. See http://www.scrm.org for more detail on the museum.

Correction, Aug 11, 2010: Flagg Coal Company #75 (see http://www.flaggcoalcompany75.com) is not the property of the museum, but privately owned by two Michigan men. I am told that it has visited the SC RR Museum three times in the past and has been the only steam operation in the state during this period. The museum’s sole steam locomotive, Hampton and Branchville #44, remains on static display.

Posted in engineering/technology, my life | Tagged , , , | Comments Off

Hopelands Gardens


A panoramic view of one of the ponds at Hopelands Gardens, Aiken SC, yesterday night just before the Parris Island Marine Band concert. Open source graphics software UFRaw, Hugin, Qtpfsgui, and GIMP were used to decode, assemble, and tonemap this image from 10 Canon CR2 raw files with overlapping fields of view.


The members of the Marine band always look serious while playing each others’ drums.

Posted in my life, photography | Comments Off

Quote du jour: Charles Bolden

“Before I became the NASA Administrator, [Barack Obama] charged me with three things. He wanted me to help re-inspire children to want to get into science and math. He wanted me to expand our international relationships and third, and perhaps foremost, he wanted me to find a way to reach out to the Muslim world and engage much more with dominantly Muslim nations to help them feel good about their historic contribution to science and math and engineering.” — Charles Bolden, Interview on Al Jazeera, June 30, 2010

Wow! I guess I misunderstood what the National Aeronautics and Space Administration is all about.


An Useful Note on the Shuttle Carrier Aircraft
Photo by Rob Elliott, released to public domain

13 July 2010 – According to White House press secretary Robert Gibbs, the president has now figured out what NASA does.

Fox News: Muslim Outreach Not the Job of NASA, White House Says

Posted in engineering/technology, politics | Comments Off

Software Review: Brain Fuck Scheduler

Type: CPU Scheduler

Plateform: Linux

Website: http://ck.kolivas.org/patches/bfs/

Overview:

Brain Fuck Scheduler, which I will, from here on, abbreviate BFS to minimize obscenity in this post, is a Linux task scheduler offered as a patch for the Linux kernel.  It replaces the Completely Fair Scheduler built into the standard kernel [1].  From my, admittedly very superficial understanding of the operating system’s interaction with the CPU, the scheduler is responsible for determining which tasks are assigned to which CPU core, determining how the time on each CPU is split between the tasks, and for queuing tasks in memory for execution on the processor in order keep the processor busy [2].  BFS was written by Con Kolivas, an Australian Anesthesiologist, who apparently likes tinkering with deep operating system stuff in his spare time.  It is optimized for desktop performance on systems with small numbers of processors, as opposed to the standard Linux kernel which must support anything from my single-processor system to massively parallel super computers.  Kolivas was said to be inspired [3] to write BFS by the following comic:

Image © Randall Munroe, xkcd.com Used under Creative Commons Attribution-NonCommercial 2.5 License, hotlinked with permission

Install Experience:

The installation from source code was not trivial, but using a number of sources I was able to figure out what to do without a much compilation experience or any real understanding of the kernel source code.  The following description of my compilation of the kernel is as much for my own reference as anything else, but, if you find anything useful in it, that’s great.

The target system for this installation was my Lenovo T43, Type 2668 notebook with a Pentium M processor at 2 GHz.  This machine runs Ubuntu 10.04 (Lucid), originally with the 2.6.32 kernel.  My friend, Randy, helpfully suggested a guide for compilation of the Linux kernel on Ubuntuforums.org [4], which I more or less followed.  I obtained the standard kernel 2.6.34 source code [5] and the BFS patch for this kernel [6], extracting both tarballs and placing the single-file patch in the kernel source directory.  I navigated to this directory and issued the command

patch -p1 < patch-2.6.34-ck1

to apply the patch to the kernel [7].  Note that the character following “-p” is a numeral.  Although the compilation guide recommends placing the source code in /usr/src/linux-2.6.34 and soft linking /usr/src/linux to this, this entirely depleted my 2.6 GB of remaining disk space on my / drive before completing.  My my second and successful try to compile, I put the source code in a directory src on an external disk with 250 GB free space, which I assigned the same permissions, owner, and group as /usr/src and linked soft linked /usr/src/linux to that.  I have no idea how much space was actually used, but following completion, my source directory remains at just under 1 GB.  At step 11 of the guide [4], I found the identity of the kernel module supporting my wireless card by searching the output of dmesg for  “wireless”.  With xconfig open, I also unchecked the option for CONFIG_DEBUG_INFO upon advice that this would save disk space [8] and then pressed save in xconfig.

I let the compiler run overnight; I think it took about two hours.  I found the resulting deb files, not in /usr/src, but the directory above the one to which I had soft linked /usr/src/linux on my external drive.  Install of the deb files took a few minutes and the second resulted in an message that the “post-install script exiting due to error.  My kernel was installed successfully, but I had to run the command

sudo update-grub

before I could boot it [9].  However, I subsequently got the same error every time I ran the package manager which apparently tried to rerun the unfinished post-install script even though I wasn’t tinkering with the kernel package.  Reinstalling and then uninstalling the package nvidia-common via

sudo apt-get install nvidia-common
sudo apt-get purge nvidia-common

cleared up the issue [10], with the incomplete post-install script completing automatically after the second command, including the grub update which should have happened automatically with the kernel package installation.  It is notable that I have an ATI video card and no hardware by NVidia of which I am aware.  I’ve delinked /usr/src/linux from the source directory on my backup drive and haven’t encountered problems, but am holding on to the data.

GRUB2 responds to the “shift” key, held during boot, to produce a menu of bootable kernels.  This confused me since it was “escape” under GRUB.  It appears that GRUB boots the latest kernel by default, so in my case, upgrading from 2.6.32 to 2.6.34 in addition to the patch, my system boots automatically to the BFS kernel.

My Experience:

This upgrade really makes my single-core machine feel much more responsive.  Mouse and keyboard hangs pretty much eliminated, even under heavy processor load.  I have a Windows XP virtual machine which I use occasionally for the final preparation of technical documents which I am obligated to produce in MS Word format and the BFS kernel patch particularly shines while running Virtualbox [11].  Both the native applications on the host OS (Ubuntu) and guest OSs (Windows) share time nicely to make whichever I’m using at the time responsive, even while the other is working on something requiring processor time in the background.

Conclusion:

I’d recommend BFS to any desktop Linux user that has an inclination to ticker and has some familiarity with the packaging system and command line, particularly those running virtual machines.

References:

[1] Wikipedia, Brain Fuck Scheduler, http://en.wikipedia.org/w/index.php?title=Brain_Fuck_Scheduler&oldid=364967266, Accessed 13 June 2010

[2] Wikipedia, Scheduling (Computing),http://en.wikipedia.org/w/index.php?title=Scheduling_computing&oldid=366954349, Accessed 13 June 2010

[3] Linuxpromagazine.com, http://www.linuxpromagazine.com/Online/News/Con-Kolivas-Introduces-New-BFS-Scheduler

[4] ubuntuforums.org, Master Kernel Thread, http://ubuntuforums.org/showthread.php?t=311158, Accessed 12 June 2010

[5] kernel.org,  Linux Kernel 2.6.34 Source, http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.tar.bz2

[6] kernel.org, Con Koliva’s kernel patch, http://www.kernel.org/pub/linux/kernel/people/ck/patches/2.6/2.6.34/2.6.34-ck1/patch-2.6.34-ck1.bz2

[7] http://www.linuxheadquarters.com/howto/tuning/kernelpatch.shtml

[8] http://tomoyo.sourceforge.jp/en/1.6.x/compile.html

[9] Ubuntuformus.org, “Grub 2 Basics”, http://ubuntuforums.org/showthread.php?t=1195275

[10] Ubuntuforums.org, “Kernel Installs, but …,” http://ubuntuforums.org/showthread.php?t=1274868 (See second post by user Ultima)

[11] http://www.virtualbox.org

Posted in computers, my life | Tagged , , , | Comments Off

Website Outage

Welcome back world! My server, including my sister’s blog and and my dad’s picture gallery, has been down the last couple of weeks. I’m sure this has been a devastating event to millions of readers world wide. :-) Actually, it is more like a few visitors per day, but the geographic distribution is surprisingly world-wide.

In any case, I ended up having to reconfigure my home network for unrelated reasons and produced a routing problem that prevented connection to my server. It turns out that the server was actually accessible from the outside world the entire time, but I didn’t know that, so the server has been switched off for the last couple weeks while I attended to real work of writing my dissertation (which has nothing to do with routing, or computers for that matter). I haven’t fixed my routing problem — and am not sure I can within the confines of the BellSouth DSL modem –, but can work around it for the time being.

Posted in computers, my life | Tagged , , , , , | 1 Comment

Pure, Unadulterated Mechanical Awesomeness

This 18-min. video shows Jay Leno getting his 1907 White Steam Car ready to drive and driving it around the LA area. This car is a real masterpiece of mechanical engineering and the video is well worth watching.

jaysenosgarage.com: White Steam Car Video

Posted in cars, engineering/technology | Tagged , , , , , , | Comments Off

Seat Selection

Image © 2010 Randall Munroe, http://xkcd.com
Creative Commons Attribution-NonCommercial 2.5 License

Posted in jokes and humor | Tagged , , , , | Comments Off

Opossum

I’m not used to seeing them alive, much less still long enough to get a picture, but this one seems to be living in the back yard.

Posted in my life, photography | Tagged , | Comments Off

Recipes from the Intertubes

These are a few recipes which I have found on the internet and been pleased with:

Broiled Tilapia

Cheesecake

Blackened Salmon

*  Be aware that skillet cooking this produces a LOT of smoke that is pretty irritating to the lungs.  If you don’t have a good fume hood, try grilling outside.

Kalamata Olive Hummus

[Key] Lime Pie

* I ended up buying 4 Mexican limes, which I believe are more akin to the Key Lime than is the Tahitian Lime more common in U.S. grocery stores.  These constituted a little more than half a cup of juice, which I then supplemented with bottled Key Lime juice.  The result was great.

Posted in cooking, my life | Comments Off