Shallow and Pedantic

A person/tech/code blog of a coder/techie/person. Like calculus in a kiddie pool, the author of this blog is known to be quite shallow and pedantic.

Grub menu.lst editor

A lot of people ask me how to change the default operating system booted after installing Linux. The answer they get in Ubuntu’s case, “Edit /boot/grub/menu.lst, it’s self-explanatory”, is often unsatisfactory. Attached is the solution :) Actual script lost in the mists of time… Download the file, open a terminal, and run gksudo python grubmenu.py I’ll try and make a package of this soon, so it becomes a menu entry and that much easier to use.

Yasmin back up

Why was it down, you ask? Well, it was out here in the lab, because of a shortage of network ports in the server room. From the acpid log: [Sun Apr 15 18:53:07 2007] received event "button/power PWRF 00000080 00000001" That is, at 18:53, someone simply pushed the power button. The server promptly closed all processes and properly shut itself down. I’ve moved it into the server room now…


The more I use Python, the nicer it becomes. I’m currently working on a project for a course, which involves somewhat heavy-duty database and algorithm work. Python is my language of choice for it - let’s hope it works out well. In the meantime, I’ve found a really nice python shell called iPython (available in apt) - it adds a bunch of stuff to the python shell which I sorely missed from irb - autocompletion, auto-indentation, and - it seems - adds a whole lot more.

Using Jabber from within the Technion

A very neat find for those of you who want to use Jabber from within the Technion, but with your client of choice rather than a web-based one: Many Jabber servers, including Google Talk, support using Port 443 over SSL. Since the Technion does not block outbound SSL connections, this will work there as well. Be sure to mark the appropriate ‘Use old SSL protocol’ option in your jabber client (that’s what it’s called in gaim and pidgin, at any rate).

Before reinstalling your server for RAID

Check that the RAID it supports is actual Raid. My experience today: Decide that secondary server should gradually become more and more primary Decide that since it has two 160GB hard drives and built-in RAID, we should use that for mirroring Mail (both!) users of the secondary server that it’ll be down for rebuilding Set up RAID array from BIOS, clearing all old information Insert installation CD Notice that installation still sees two hard drives Discover that built-in NVRaid is actually software RAID Disable built in RAID in favor of LVM, proceed to reinstall :(

Bass guitar

I brought my Fender Squier Jazz Bass up to my Technion apartment. I hope it won’t have too much of an adverse effect on my studying… playing it (loud) is great for stress, and I’m taking a jazz improvisation course next semester. By the way - if any of you record with one of these, I highly recommend Arour, using a low-pass LADSPA filter. Also, activating both pickups on about 80% does wonders against hum if you connect directly.