Sunday, September 28, 2008

101 Things in 1001 Days

My brother-in-law came up with the idea of make a list of 101 things to do in 1001 days. I didn't realize this was so popular, but a quick search on Google comes up with tons of lists. In any case, Aubrie, Matt, and I are all going to be doing this starting October 3, 2008. Prior to popular opinion, Aubrie did not give any of the ideas on here. Here's my list (or at least what I've thought up so far):

1. Get Lasik done on my eyes
2. Play through any video games purchased within the last two years that I haven't finished yet
  • Pirates
  • Portal
  • Far Cry
  • Zelda: Twilight Princess
  • Rayman Ravin' Rabbids 2
  • Unreal Tournament 3
  • Lost Planet: Extreme Conditions
3. Use Linux as my primary OS for 3 months. (in progress 10/20/2008)
4. Build a MythTV box for home.
5. Tear the tree out of our backyard (in progress)
6. Dig out the garden in the backyard
7. Fix the leaking valve in the sprinkler system
8. Clean the BBQ Grill
9. Dig out the flower beds in the front and back yard
10. Build shelves in our garage
11. Repaint the master bedroom
12. Repaint the computer room
13. Put cabinets in the laundry room
14. Put more cabinets in the kitchen
15. Put our TV on a wall mount
16. Get a surround sound system for the Family Room
17. Put new carpet in the bedrooms
18. Buy a new lawn mower
19. Cook dinner for Aubrie 5 nights in one week
20. Be in bed ready to sleep by 10pm every night for 2 weeks
21. Fix the tree in the front yard (done - 10/24/2008)
22. Put shelves up in the Family Room
23. Build shelves in the game closet
24. Figure out some way to finish the crawl space and do it
25. Hang stuff up in the computer room
26. Get Aubrie a new laptop
27. Build a web server for home
28. Vote


More forthcoming.....

Friday, September 26, 2008

Fun with Apache

Over the last week I've been busy getting a new MySQL server and Apache server built on our new VMware ESX server at work. Everything has gone smoothly with the exception of one thing. For the life of me, I cannot get Apache to cooperate. For our new SVN repository, I'm using the mod_dbd module for MySQL authentication, but every time I enable it using "DBDriver mysql" in httpd.conf I randomly start getting errors like the following on start and stop of Apache:

/etc/init.d/apache2: line 43: 16808 Segmentation fault ${APACHE2} ${APACHE2_OPTS} -t > /dev/null 2>&1

The weird thing about it is that it occurs randomly. Sometimes I can stop and restart without any problems at all. The second I remove the DBDriver line, everything works great. What makes it even stranger is that I have a 32 Bit virtual machine on my laptop that uses the module without any problems at all. Our server is running 64 Bit Gentoo, but I have gone to the point of making everything identical (with that one exception). Does anyone have any ideas what could cause this problem?

Saturday, September 13, 2008

Previously on Geek Speak

About 4 months ago I wrote an entry saying I would write up some decent Gentoo packages for a desktop system. While this won't be for a desktop system, I will bring up some good packages for a Gentoo server system. Some of them are obvious, but there are a few that took me a while to find.
  • logrotate - Rotates log files on the server. Comes with some pre-scripted files to rotate, but can also be customized for any log file.
  • metalog - System logger. Can be extended to dump different system events into separate log files.
  • screen - Emulates a terminal. Essentially, it can be used to start programs that need to maintain a session open. I use it all the time for compiling things in the background when I don't want to maintain an SSH connection to a server
  • genlop - Used to find information about currently emerging and already emerged packages. It can give an estimated time to finish an emerge and tell how long an emerge has been going.
  • gentoolkit - This is a must have for Gentoo. It provides various scripts for maintaining a Gentoo install. For instance, there is a program called "revdep-rebuild" which will verify that all emerged binaries link against the correct libraries on the system.
  • iptraf - This is a handy app that can be used for network monitoring.
  • tcpdump - This program can be used to monitor packets coming into a specified network interface.
  • logwatch - Can be used to email a summary of the logs on the system.
  • slocate - Indexes files on the filesystem to allow for quick searching
This is by no means an exhaustive list of helpful packages.

Monday, September 8, 2008

When CVS just won't cooperate...

Last week was pretty hectic for me. It all started Tuesday when our CVS server would freeze on a CVS add. The whole machine would lock up and the only thing that could be done was a hard reboot. Needless to say, this was a less than desirable method of development. It was really weird too. CVS commits and updates of files that already existed worked great, but the CVS add function would freeze the server almost every time. Seeing as how I couldn't find ANYTHING (I literally mean that) on my specific problem on google, I thought I would post my solution.

First I tried simply building a new Gentoo Linux server since that is my preferred Linux distro. I migrated all of the CVS data over to the new server along with all the permissions and ACLs that were assigned to the repositories so that it would be a simple migration process. Unfortunately, this didn't work. The new server exhibited the same behavior as the old one. This pointed me in the direction of three things possibly being wrong
1. The CVS repository was corrupt (I really hoped it wasn't that one)
2. The ACLs were somehow all screwed up
3. Some library or binary in Gentoo had a bug that was causing the problem

Since I was mostly interested in just getting things working again, I decided to go the route of 2 & 3. I spent part of a day building a Fedora Core 9 server and again copied the CVS repository to the new server, but this time I left out all the ACLs. It was somewhat of a pain, but I went through and recreated the ACL structure on the whole repository. The end result was a working stable CVS that I haven't had problems with since I migrated it to Fedora. I still don't know exactly what the problem was, but at least this worked for me. I hope it does for someone else as well.

An oldy, but definitely a goody

As someone that is a fan of first-person shooter games, I'm always on the look out for a good game of that genre. Anyone that's a fan of this genre has more than likely heard of Crysis. Now, the purpose of this post isn't a review of the game, but I want to point out three things about this game.

First of all, the visuals are amazing. If you don't believe me, look up some screenshots of the game in it's full detail glory. I never knew computer graphics could generate a sunrise that looked so amazing. It does require quite a beefy video card, but since it came out the prices on video cards have kept dropping. I use an Nvidia 8800 GTS 512MB card and it runs the game quite well at pretty high detail levels.


I found this picture on-line in a forum. It isn't mine.

Second, the story is very well done. I don't know of many first-person shooters that are known for great stories. About the only one that comes to mind is the Half-Life series (another excellent series). The story kept me wanting to play and find out what was going to happen next.

Now, the third and final thing about this game is why I wrote this post. Be warned that the language in this game is absolutely awful. I purchased the game, played through it, then returned it because the language was so bad. Luckily, I happened to know a person at school that discovered a way to edit the language content. So I ended up purchasing the game again and editing the audio. I have no idea if posting my edited language pack (I call it my clean language pack) would be a violation of copyright law, so I won't post it here. I spent a few hours going through all the mp2 files in the game and editing out the bad language in the single player campaign. If you want a copy, just post a comment and I'll see what I can do about getting it to you. I think everyone should have a chance to play this amazing game without listening to the constant barrage of F-words.

Sunday, September 7, 2008

3 nifty Vista features

Aubrie decided this week that we should go get some library cards. We got them yesterday and I must admit that I've got a lot of reading ahead of me. Along with some other books, I got a book called "Windows Vista: Beyond the Manual." At first, I thought it would be a pretty in depth book about the internals of Vista, but for the most part, I was wrong. Let's just say there were approximately 454 pages out of 459 that I just didn't care about. I knew most of the stuff already (I did a LOT of skimming and skipping), but there were three things that I thought were kind of cool.
  • Have you ever tried selecting 10+ files from a folder that are all over the place? You have to hold CTRL while selecting each file and if you accidently let go of that button you have to start all over. Apparently, Vista has an option in the "Folder Options" box called "Use Check Boxes to Select Items." This lets you simply select check boxes instead of holding CTRL and screwing it up. Not earth shattering by any means, but somewhat useful.
  • Second, one short coming of Windows in general has been the lack of symbolic links. Well, I guess Microsoft finally wised up and added the functionality. It can only be done from the command line for now, but I guess it has to start somewhere. Using the "mklink" command, links can be made to folders and directories.
  • Lastly, I'd never heard of this before, but it seems Vista has an automatic error recovery program that can be run on boot-up if the system is in an unbootable state. It's called WinRE. I haven't tried it out yet, but it looks like it could be fairly useful for those that aren't too knowledgeable about computers.
I hope this benefits somebody, because I hope I never have to read/skim/skip through that many pages of text just to find three useful things, but I guess learning isn't always easy.

Who wants some eye candy?

Lately I've been taking yet another dive into using Windows Vista. I've used it on and off since the release candidates were available in both the 32 and 64 bit versions. One of my biggest complaints has always been that it seemed like most of the software that I use all the time has incompatibilities with Vista. Also, Microsoft did something that many people have complained about with the 64 bit version. They enforce driver signing. In other words, any driver that has not been approved by Microsoft cannot be used. Also, Vista is a resource hog. Honestly, why should an operating system need 768MB to 1 GB of my memory just to load? With those things in mind, I decided to give Vista a try yet again and I must admit that it hasn't been as bad as the last few times.

First of all, most of my programs seem to work now. Either there are patches for them that give them Vista compatibility or the open-source equivalents give me the same functionality. I guess after an OS ages for a year and a half, things actually start to work (shouldn't that be the case earlier?).

Second, this time around I decided to give 64 bit a try again and was pleasantly surprised. Somebody decided to stick it to Microsoft (however minor it may be) and got around the stupid driver signing enforcement. ReadyDrive Plus installs itself into the MBR and automagically selects the Windows boot option to disable to the signing enforcement. Once I put that on there, all my drivers work well.

Third, I don't see Windows as quite as much of a resource hog now that my Laptop has three GB of RAM and my desktop has four. Besides, everyone has to admit that the GUI does look good even if the looks don't provide extra functionality.

Anyone who knows me knows that I've never been a proponent of Vista. I've preferred Windows XP for a long time now, but it seems like that might be changing. Scary, huh?