Monday, April 27, 2009

Networking and FreeBSD 7.1 on VirtualBox

Quick tip if you're installing FreeBSD on VirtualBox... when configuring networking, be sure to select the PCnet-PCI II (NAT) adapter.

I was bored this Sunday evening, so I decided to install FreeBSD 7.1 alongside my virtualized Linux distros (CentOS 5.2 and 5.3), plus I still have OpenSolaris around). Having just installed Linux this morning, I mistakenly selected the PCnet-FAST III (NAT) adapter, and was scratching my head for the better part of half an hour when I found I couldn't SSH into my shiny new FreeBSD install.

The more you know...

Sunday, April 26, 2009

CentOS 5.3 on VirtualBox

CentOS 5.3 was released last month, and I finally got around to adding that to the list of virtualized OSs I have running on VirtualBox.

Install was easy as usual. Since I again installed a handful servers and development tools, along with Japanese Language Support, I ended requiring all 6 of the CentOS 5.3 install ISO image files. No need to burn them to CD-ROM, just mount the files using Devices -> Mount CD/DVD-ROM in the VirtualBox main window menu.

Did the normal preflight check: ensured that SELinux is on and enforcing (you can switch this off if all you're doing is developing locally, but it helps to understand how SELinux works if you will be using it in production); disabled services not needed when running virtually (anacron, bluetooth, cups, hidd, pcscd, xfs); double-checked to see that root access is disabled for sshd; and I only open ports for SSH and HTTP/HTTPS in iptables (again, you can always configure more open ports as needed, like for accessing a database or whatnot).

Lastly, I installed the VirtualBox guest additions for Linux. Nothing special here, just follow the instructions in the User Manual. The long and short of follows below.

First, we install the packages necessary for installing the Linux guest additions:

# yum install gcc -y
# yum install kernel sources -y
# yum install kernel-devel -y
# shutdown -r now

Next, mount the VBoxGuestAdditions.iso file per section 4.3.1 Installing the Linux Guest Additions in the User Manual.

Then, all that's left is:

# mkdir /tmp/cdrom
# mount /dev/cdrom /tmp/cdrom
# sh ./
# shutdown -r now

Hey, presto! In the messages displayed in the console at startup, you will see that VirtualBox Additions is also starting up now. Good to go. And not that much different from my previous post on guest additions with CentOS 5.1.

I should also add that there wasn't any need to first install gcc and dkms, since those packages were already included in the installation. Caveat emptor.

Thursday, April 23, 2009

Robotic Penguins!!!

Is this not sweet, I ask you?

Learning from Failure, or There Goes My Golden Week Vacation

As a systems architect, I must concern myself with project management issues. Every now and then, I like to check my head and reread a wonderful blog post from Reg Braithwaite on What I've learned from failure. I printed up a copy and keep it in my notebook so that I can pull it out and read it on my train ride.

This is a timely topic for me as I now find myself only a week away from the big Japanese Golden Week holidays facing the ugly and imminent possibility that I will have to drag my carcass into the office during the holidays to assist another project team that are in the unenviable position of being smack dab in a "project out of control".

This project is rather high-profile and very important for my current employer. Being an outsider to this project, I don't know anything about how it got to this state. Only three weeks before going public, with a large string of national holidays right at the end... Doesn't that sound like project management wasn't working properly? And it always just slays me when I see that the only solution upper management can come up with is to toss more people at the problem by asking them to come in over the vacation. Urgh, I am having flashbacks of Lumbergh in Office Space: "m' yeah, I'm gonna need you to come in on Saturday..."

Close your eyes, take a deep breath, and repeat this mantra after me: Adding manpower to a late software project makes it later. Fred Brooks is spot on there. I feel like I should bring my copy of The Mythical Man Month in to the office and start whacking people across their faces with it.

So here's the punchline for today... what have I learned from failure?
People just never learn, that's what.

Closing note: It just so happens that there was a recent thread on /. on project management. Great comments, especially from myvirtualid.

Tuesday, April 21, 2009

Python: Very Pleasant Language, Indeed 100 Most Influential People of 2009 Poll Hack

Great bit describing a hack to write out a not-so-hidden message in the 100 Most Influential People of 2009 poll.

As of 10:30, 2009/04/21 Tuesday, the message was being garbled --- check it out here ---, but the hack is still pretty funny. At the very least, don't allow HTTP GET for any sort of non-idempotent operation.

Google Researchers Propose New-and-improved CAPTCHA?

Well, here's an interesting article on Google researchers and their new proposal for improved captchas.

I really hesitate when it comes to captchas, whether it be from the user's perspective or the architect's. Present-day implementations are often too difficult or troublesome to deal with, and on the flipside, are all too often easily defeated by employing underpaid serfs in a sweatshop. But the gist of the article is that the new proposed captcha is image-based, which is great since text-based challenges have many shortcomings (language-dependent, requires text input).

I hope that Google can roll out some kind of library or package for this idea, it sounds pretty solid.

Monday, April 20, 2009

Tsubaki Shampoo and Sex... Wax

Ah, my memories are all coming back to me now. I know why I like Shiseido's Tsubaki Red shampoo so much...

It brings me back to the day I bought my first bar of Mr. Zog's Sex Wax!