Xthor’s World

It’s me. It’s a blog. Any questions?

Tuesday, June 10, 2008

I got a MacBook

If your first reaction is to smack me… you can kiss my ass and stop reading here.

I’ve been thinking about getting one for a while. Anyone who knows me well will tell you I bounce back and forth between Windows and Linux a lot… but, since I hate dual-booting, usually I end up reformatting one month… reinstalling Windows… hating it… and a couple of months later I go back to Linux. Everything goes well… until I find something that doesn’t work right. Last time, it was wireless issues. I was sitting in a meeting at work, and couldn’t get associated to the network. This had happened frequently. At home, I would just have to re-type the WPA key three or four times, and eventually it would associate. However, the WPA key at work is not something that can be remembered easily, and I had to keep typing it in. Frustrating. That drove me back to Windows.

(On a side note, in the newly released Fedora 9, NetworkManager now remembers the passphrase you typed if it fails to associate. Nice. Still wish they’d get it associating better. Maybe I should blame Intel.)

Anyhow, what I’m trying to say is this: I wanted a MacBook because OS X is rock-solid (from what I’ve read), all the hardware works (including suspend and resume!), and I can get Microsoft Office on it. (I’ve had problems interacting with others when I use OpenOffice in Linux.) However, it’s Unix at the core, and with Fink I can get a lot of the software I’m used to using in Linux, with a sweet terminal and a Bash prompt.

I was pretty surprised last week when my wife gave me the go-ahead to purchase it. The two years without interest at Best Buy helped… we had the cash on hand, but it’s a lot easier to swallow payments. So, despite the fact that I’d been up for almost 36 hours straight (working, we had just completed a move of 11 servers from one rack to another in our datacenter), I immediately perked up and ran to Best Buy.

I had decided on the white MacBook with 2GB RAM, a 160GB hard drive, and a superdrive. I had originally thought about purchasing the black model, but for an extra $200 it just didn’t seem worth it for only an extra 90GB space. (Plus, I’ve never filled a 160GB drive. Maybe if I copied my entire music & movie collection over…)

So far, I freaking love the thing. I have had exactly one crash, and that was when I idiotically burned the CD image of Office 2008 to a DVD. OS X didn’t like that.

I was pleasantly surprised to find that a lot of the software I had installed in Windows was available for OS X: nmap, wireshark, VLC, the MySQL GUI tools, FileZilla, and nessus were all downloaded and installed quickly. Instead of Pidgin, I decided to use Adium, and I found a VNC viewer and Smultron, a syntax-highlighting text editor that fit the bill great.

Parallels worked a lot better than I expected it to… though, firing up more than one virtual instance kicks you into swap mode damn quick. I had just purchased Money 2008, unfortunately, so this was a nice find.

Spaces is very, very cool. I was looking forward to using Expose, but had no idea Spaces had come along till I played around with settings. Finally, virtual desktops like I’m used to in Linux! I sure wish Expose would list all windows open on all spaces, though.

Terminal.app is OK, but the key bindings annoy me. iTerm was a godsend!

Finally, Time Machine is a cool idea. I read somewhere you could download a 3rd-party tool to make it use network locations as backup media, but that it was buggy. I’m happy to use my external hard drive for now, but I’ll be happy when Apple does finally make that part of Time Machine.

I don’t plan on becoming a Mac zealot or anything, but I really like the Mac world. It just works.

posted by xthor at 11:13 pm  

Saturday, February 16, 2008

CentOS/RHEL and mdadm issues…

This little bitty had me going for about 20 minutes. One of the drives in my file server at home failed, it’s got a RAID1 (with a spare) for /boot and a RAID5 for /. Removing the old drive from the array was easy:

mdadm --manage /dev/md0 -r /dev/sdc1
mdadm --manage /dev/md1 -r /dev/sdc2

Then, I shut the machine down, replaced the failed drive, and booted the server again. I figured this would do the trick:

mdadm --manage /dev/md0 -a /dev/sdc1
mdadm --manage /dev/md1 -a /dev/sdc2

But after both of those commands, nothing was printed to the screen… and it was obvious (from /proc/mdstat) that nothing had happened. Hrmm…

Google found me a forum where some Gentoo users were complaining about this problem. The solution?

mdadm /dev/md0 --add /dev/sdc1
mdadm /dev/md1 --add /dev/sdc2

The man page states:

If  a  device  is  given  before any options, or if the first option is
--add, --fail, or --remove, then the MANAGE mode is  assume[sic].   Anything
other than these will cause the Misc mode to be assumed.

Nice.

posted by xthor at 4:23 pm  

Monday, December 3, 2007

The Qube is dead… Long live the Qube!

Except… well, unlike when a new monarch is crowned… I’m not calling the Qube’s replacement a Qube. :)

A few months ago, I became fascinated (read: obsessed) with low-power mini ITX systems. I blame this on the fact that my power bill this summer was completely insane. Yes, I realize that EVERYONE’S power bill was insane, but still.

At the time, I was running a Sun Cobalt Qube 3 as my firewall. I got lucky and picked this up from my previous job. We really had no use for it there, and when our chief architect decided he was tired of using it as a dev machine, I took it home. (In retrospect, I should have given him first dibs on it, but oh well… as you’ll soon see…)

I noticed a couple of oddities with this device. First off, I couldn’t get CentOS to install on it (using the Strongbolt installer). It kept barfing up a “Kernel panic!” error. The serial cable I had wouldn’t work, either, so I was unable to determine what was causing the kernel panic. The power button wouldn’t turn the unit on half the time, either — I had to repeatedly push it on and off till finally, the system decided to power on.

I ended up swapping out the RAM on a hunch, and got lucky. The system booted, and I was able to get in and start configuring. But guess what? The stock kernel didn’t come with NAT compiled in. I tracked down the source, and after a lot of pain, managed to get it working. It served me well for several months.

However, the pain I’d gone through to get CentOS running on the thing in the first place (and the weird power button issue) made me a bit leery of relying on it long-term. The mini ITX machine used a lot less power (especially when combined with a CF to IDE adapter) and was easier to get a stock CentOS installation running on. (Aside from having to roll a new kernel to support the onboard NIC, anyhow.) I got the new router up and running, and changed the IP on the Qube. And then I did something very, very stupid — I flushed the iptables rules.

Ever played with a Cisco router? Know what happens when you drop an ACL that’s applied to an interface? Yeah… an implied “deny deny” rule. Same thing that happens when your default iptables policy is DROP on input, and you run iptables -F. Ouch.

I figured… hey, I can fix this. I just need a working null modem cable, according to sources online. So I pop over to Newegg and pick one up for… OUCH! $20?? Man, you’d think these things would be cheaper. Still… $20 to make the system work… it’ll be handy, I can finally debug any issues I’m having without having to pop the case and yank the hard drive! Sweet!

Only I’m not so lucky. :) The new null modem cable doesn’t work AT ALL. On ANY of my machines, in Windows OR Linux. Sigh.

So, I popped the case, and attached the drive to my USB converter. I removed /etc/sysconfig/iptables, and made sure the network interfaces are configured properly. I unmounted the partitions, and put the drive back in the Qube.

And what am I greeted with? The infamous “Kernel panic!” on the LCD screen.

I’ve tried new RAM, and a new hard drive. I can’t get any further. Even after wiping the drive and reinstalling with the Strongbolt ISO.

Poor Qube. We hardly knew thee.

posted by xthor at 12:26 am  

Thursday, November 1, 2007

WSUS 3.0, Windows Internal Database, and Memory Usage

I’m posting this here, not because I think anyone will care, but because if I ever have to do this again I want to be able to remember it!

With the release of WSUS 3, Microsoft switched from MSDE to Windows Internal Database. I did the upgrade for a client on Tuesday, and came back to finish patching some of his systems today… lo and behold, the sqlservr.exe process was eating 1.6GB of RAM. Thanks, Microsoft.

I’d seen this before with the full versions of the SQL Server product, and was pretty sure I could fix it… till I realized that it was no longer MSDE. Initially, googling showed me how to do this with OSQL… but guess what? It wasn’t present in the Binn directory where sqlservr.exe was running. Thanks again, Microsoft… I mean, why would ANYONE need to reconfigure a running instance? Let’s save space and not include management tools.

After more googling, here’s what I found:

1) Install the management tools for SQL Server. You can find the necessary files here: Microsoft SQL Server Native Client and Microsoft SQL Server 2005 Command Line Query Utility.

2) Run the sqlcmd utility and change the config options.

c:\Program Files\Microsoft SQL Server\90\Tools\binn\SQLCMD.EXE -S -E \MICROSOFT##SSE
1> sp_configure 'show advanced options', 1;
2> reconfigure;
3> go
Configuration option 'show advanced options' changed from 0 to 1. Run the RECONFIGURE statement to install.
1> sp_configure 'max server memory', 512;
2> reconfigure;
3> go
Configuration option 'max server memory (MB)' changed from 2147483647 to 512. Run the RECONFIGURE statement to install.
1> exit

Voila. No more freaking RAM for you, sqlservr.exe. :P

posted by xthor at 6:35 pm  

Monday, October 1, 2007

Fedora 7 on the HP Compaq 8510w

I started a new job recently, and had the chance to pick out a brand-new HP laptop to use.

I chose the HP Compaq 8510w. I probably should have done a tiny bit more research, but when I saw that it was certified to run with SuSE, I figured Fedora would run fine on it. It does work, but it’s not flawless. Since I couldn’t find anything using Google about installing Linux on this laptop, I decided I’d post this on my blog.

I guess I should mention, I’m running Fedora 7 on this laptop.

The first issue I ran into was with the DVD-ROM drive. In the BIOS, you’ll have to change the “SATA Native” option to “Disabled” otherwise the installer can’t see the DVD drive.

The next issue I ran into may or may not be strictly related to the docking station. When I booted to the DVD and started the graphical installer, my Samsung 226bw went totally blank and indicated it had lost signal with the video card. I know the Quadro FX 570M is a newer chipset, so I assumed that the installer just plain didn’t know how to deal with it, and proceeded to install in text mode. Then, I booted to single mode, and added the Livna repo, installed the nVidia Linux drivers. I rebooted, expecting it to show me the RHGB screen and boot into X flawlessly. To my surprise, the display went blank again.

After checking the Xorg logs and scratching my head for a while, I had an epiphany from when I installed Linux on my Dell D820 laptop ages ago… nVidia’s Linux drivers address the laptop display and your external displays separately. Sure enough, when I opened the laptop lid — GDM was staring me in the face. I had to add some tweaks to my xorg.conf file to make it play nicely…


Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DFP-1: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

The main change was the “metamodes” line: DFP-1 is the DVI port on the docking station.

However, this introduced a new challenge… I need two xorg.conf files, one to use while I’m docked, and another to use while undocked. I did NOT want to have to manually swap out the files and then restart X every time I booted my laptop, so I wrote a little script to do it for me. The basic premise is that on boot, it looks at the lid switch status (through ACPI) to determine if you’re docked or not. Then it symlinks /etc/X11/xorg.conf to the proper config file, either /etc/X11/configfiles/xorg.conf.(docked|undocked). It’s a bit hackish, but I’m not much of a hacker and don’t know how to determine dock status otherwise.

BTW, the script installs with chkconfig once you’ve tossed it into /etc/init.d.

Another video-related issue I had is that Xorg seemed very choppy. I had Beryl installed, and blamed it on that initially. However, I noticed that what was slow was things like switching tabs in Firefox, and updating the title bar in Gnome Terminal. I did some searching, and found a link that indicated that there were some slowness issues related to the 8800GTX card. I don’t have any real evidence for the assumption that these problems are also affecting the Quadro FX 570M chipset, other then the fact that the behavior described in that link is exactly what I am experiencing. I hope to see a new driver from nVidia soon addressing the bug mentioned in that forum, to see if it fixes my problem, before I file a bug.

Yet another video-related issue… if I boot with RHGB enabled, it fails to start, and after the screen flickers the text-mode boot is incredibly blurry. Then, X will not start, and I’m forced to power the system down. Removing RHGB from the grub.conf fixes this problem.

After booting undocked for the first time, I noticed that the Intel 4965AGN wireless card was not recognized. After installing the correct kernel module, it worked fine. I simply added this line to /etc/modprobe.conf:


alias wlan0 iwl4965

Why the installer didn’t do it for me, I am not sure.

The SD/MMC card reader isn’t working for me. I am not sure why. I believe I have the same type in my Dell XPS M1210, and it’s working fine there. I haven’t researched it enough to figure out why it’s not working.

posted by xthor at 10:08 pm  

Friday, September 14, 2007

The Big Snip

Well, last Friday, I finally took the plunge and had a vasectomy.

I’ll be honest… I was pretty nervous. I mean, I understood the procedure. I’d talked to friends about the procedure, and even googled a bit to see what other guys had said about it, and how their procedure went. Overall, everyone was positive about it, and said the pain was minimal. Still… the idea of the urologist slicing open my testicles wasn’t the most appealing.

But, despite my misgivings (and the fact that I was ready to stop having children!), I dragged my sorry self outta bed at the butt crack of dawn last Friday and headed to the urologist’s office. On a side note, I wonder why they only schedule these at 7am. Maybe the sperm are less active in the morning or something. LOL

I’ll spare you the gory details, but the only painful part of the whole thing was the injection of the anesthesia. Other then that, it wasn’t bad at all. I spent the entire day sitting on my butt, being waited on hand and foot by my awesome wife, just taking it easy.

I haven’t had much pain, either, and the little I have had could be classified as mild.

posted by xthor at 9:36 am  

Thursday, May 10, 2007

Utah Humor

I thought this was pretty funny. According to the email I got with the attachment, the lady doing the traffic that morning was strung-out on cold medicine. :)

Check it out.

posted by xthor at 4:57 pm  

Monday, March 19, 2007

Life Updates

Man, it has been several months since I wrote anything here. Just shows where my priorities are. :)

First, let me start with the most important update of all — an addition to our family. Isabella Jeanne Brown was born January 17th, 2007.

This means we now have four kids, three of which are under 4. :) (Yes, in case you are wondering, I’m going to be joining the V club in June.)

In other news, the company I work for has decided that having two offices isn’t ideal, and is closing our Utah County office. This is really good news for me — that office is 50 miles from home, as opposed to 25 miles from our Salt Lake county office. Granted, I only had to go there once a week, but that was bad enough. (Oddly enough… I used to work out of that office full-time till December ‘05, and it didn’t bother me till we opened the closer office… go figure.)

posted by xthor at 9:20 pm  

Sunday, August 13, 2006

Lame.

People have way too much time on their hands, I swear. I have the WikiHowto on my personalized Google homepage. Some of the topics are pretty interesting, but others are just plain lame.

posted by xthor at 8:18 pm  

Monday, August 7, 2006

Jury Duty

I had an interesting experience this past week. I was selected for jury duty.

I had been told by others that I would probably not even be required to show up. After all, they said, cases get settled all the time, sometimes at the last minute. So when I called in the night before to check, I wasn’t surprised when I was told my group did not have to report. In fact, I was pretty sure that the next day, I would be just as lucky and avoid the whole unpleasant thing all together.

That next morning, though, I got a call from the jury clerk. She told me my group was required to appear, and gave me all the details. I probed a bit, asking her how many were in my group, and how many were needed on the jury. I was told that 20 people were in the group, but they only needed 4. The odds were in my favor — I was sure I would show up and be sent home, and friends and family agreed.

On Thursday, July 27th, I showed up at the courthouse. I was directed where to check in, and was presented a huge $18.50 check for my troubles. I sat with three other people whom I assumed were in my jury group. After six of us had arrived, we were taken by the baliff to another courtroom.

We sat there for about 2 hours. I think I would have died of boredom, if I hadn’t had my Nintendo DS. (I had specifically asked the jury clerk if it was OK to bring it, and was surprised when she said “Yes.”) But, still, after 2 hours and 20 minutes of Super Mario World DS, I was bored again.
At about 10:30 AM, the jury clerk entered the courtroom. She read off the list to make sure everyone was present, and had us sit ordered by number. Turned out we had one no-show. Apparently there is a penalty of $100 or 3 days in jail for not showing up for jury duty when selected.

After another short wait, the baliff entered and took us all to another courtroom. It felt a lot like elementary school, because we had to line up in the same order the jury clerk had put us in. We ended up standing in the hall outside this next courtroom for about 15 minutes, while we waited for whatever was going on inside. For the first time, I got to chat a little with the people around me. I was juror #6. Juror #5 was a nice lady who worked for the postal service. She couldn’t have been much older then me. #4 said she was a secretary. We all talked about our kids for a while, and then the baliff directed us into the courtroom.

You know how you see jury selection on TV sometimes, and it looks all serious and dramatic? Well, for this case, it wasn’t. The first thing we were asked was if we knew any of the witnesses, the defendant, or either of the laywers. I assume that if someone had indicated that they knew any of the people involved in the trial, they would have been dismissed for cause. We then all had to stand up, introduce ourselves, and answer a few simple questions the judge asked. We were asked to tell the court what we did for a living, our spouses’ name, and how many kids we had. After that, the judge asked if any of us, or relatives, had been convicted of a felony. Several people had past DUI’s, and several others had family who clearly had had trouble with the law. The judge asked every one of them, in turn, if their experiences would make it difficult to be unbiased in this case. When she got to the first potential juror who had mentioned a DUI, she indicated that the case involved driving under the influence.

Then, the judge directed the lawyers to pick their jurors. There was a lot of papers passed back and forth between the defense and the prosecution, and a lot of whispering and chattering. The judge talked through most of it, though I got the feeling the only reason she did it was to make it so we couldn’t hear what was being said.

Finally, both sides gave their papers to the judge, and she read off the names. I was picked as juror #2. The 15 other lucky folks got to go home. It was now 11:15 AM.

I won’t bore you with a blow-by-blow recount of what happened in the courtroom. Although, I still have my notes, and could probably tell you. Despite the fact that I was not happy with being chosen as a juror, I figured that I’d give it my best shot. Basically, this is what the case was about:

  • Late last December, at 4AM, a state trooper spotted a vehicle off the side of I-80 westbound, on the frontage road. The trooper could see the vehicle’s lights were on, and upon approaching the vehicle, noticed the vehicle was running.
  • He exited his vehicle, and walked to the driver’s door. He observed the defendant, asleep at the wheel, with his seatbelt still on.
  • The trooper knocked on the window, and woke the defendant up. The defendant rolled down the window, and the trooper smelled alcohol.
  • Later, after being arrested (the defendant couldn’t pass the first field sobriety test, and then refused to take the others), he blew a .148 on the breathalyzer.
  • The defense claimed that since the defendant wasn’t driving at the time, and that he had not been drunk when he drove to that location, that he had not committed a DUI.
  • The prosecution said that it didn’t matter, because Utah’s DUI statute indicated that it did not matter if the person was driving or not, but rather if they were in actual, physical control of the vehicle. The prosecutor clearly believed that the defendant was, in fact, in said control because he was asleep at the wheel.

We sat and listened to the lawyers wrangle for hours. The defense spent a lot of time arguing about HGN (which is a nice abbreviation for horizontal gaze nystagmus, the condition where your eyes can’t smoothly follow an object moved slowly in front of your face), and even asked if the trooper who performed the HGN test was an eye doctor. The prosecution talked for ages about this cool math formula they could put together, which clearly proved that the defendant couldn’t have gotten a .148 on 3 bottles of beer (which was supposed to disprove his claim that he had pulled over and had 3 beers, and fallen asleep). The only problem was, there were parts of the formula that he couldn’t explain… such as why males merit a 14 in the equation, and why females get an 11.

At the end of closing arguments, we were given several instructions from the judge. One was a copy of the statute, which I’ve linked to above. When we got back to the jury room, we all agreed — you don’t get to .148 on three beers, and if you’re behind the wheel with the engine running and the lights on, you’re in actual, physical control of the vehicle.

Since I was the first to speak, the other three voted that I should be the foreman, despite the fact that I was the youngest in the group. So I got to deliver the verdict, which was slightly nerve wracking, but interesting nonetheless. I didn’t look at the defendant, but I was told by the other jurors that when I read the guilty verdict, he actually started laughing to himself.

There were a couple of items I found quite interesting. One, the first trooper to testify indicated that there was only one empty beer bottle in the truck, and no empty cans or bottles outside, inside, or around the truck. The prosecution brought this up to show that the defendant must have been drunk before driving to this location and passing out. The defense fought tooth and nail to keep these facts out of evidence. In fact, later on in the trial, when the prosecutor made his closing arguments, there was a sidebar over an objection made when the prosecutor brought this up. I really didn’t understand why they spent so much energy on it, considering the trooper was allowed to testify about this early on.

The second interesting point was when the math formula was brought into evidence. First off, the trooper testifying didn’t seem to know the topic well enough. As I indicated earlier, he could not explain parts of the formula where he used the number 11 if the subject in question was a male, and a 14 if it was a female. Second off, the defense made a huge deal about how external factors (alcohol absorption, food in the stomach, etc) could affect blood alcohol content. And, finally, the defense talked a lot about how the beer was from Wyoming, which apparently has a much higher alcohol content then beer sold in Utah. At least, it was enough to make this dude blow a .148 after only “two or three” of them.

All in all, it was interesting. Definitely not something I want to do again, but interesting. I wonder if all defense attorneys think jurors are stupid. This one sure seemed to think we were.

posted by xthor at 9:38 pm  
Next Page »

Powered by WordPress