System Administrivia

by bob on January 17, 2010

My son is a crack sysadmin, but it’s never been my area of interest.  I’m a software developer.  I like that if something goes wrong with software I wrote, I know exactly who to blame (me) and who can do something about it (me).   With operating systems and hardware — I’m at the mercy of someone else’s design and may be prevented from taking steps I need to take by obtuse and broken interfaces.

I maintain a home network for a friend and they’ve got an HP color LaserJet that would print fine for awhile, and then print jobs would stack up in the print queue.  If you’d stop and restart the spooler service, your jobs would get printed for awhile, then they’d stop.

If you Google this kind of issue out in the ether you will find much weeping and wailing and gnashing of teeth.  Permission issues.  Driver corruption issues.  Network configuration issues.  Solutions that work for some people and not others.

In this case, it was a matter of disabling bidirectional printing on the USB port the printer was installed on, but it took a couple hours of trial and error to figure it out.  And of course now, six months later when we upgrade the computer the printer is attached to, the problem resurfaced but I couldn’t quite tease out of my brain the magic incantation I’d tracked down months earlier.  Moral of the story: keep a journal of this stuff.  Or blog it.  Hence this post.

Meantime I’d purchased a Hawking receiver to grab wireless signals out of the air and convert them to cabled Ethernet to feed to my desktop computer.  Worked fine in one location.  A few weeks ago I moved my office and it became unreliable.  My son suggested a workaround — keep a command window open and whenever I’d lose Internet connectivity, issue a series of ipconfig commands (/flushdns, /release, /renew).  It worked, but it was annoying to have to do it several times a day.

Tech support from Hawking suggested that the access point I’m using is switching broadcast channels on me, but that smelled like grasping at straws.  Besides, when scanning for WiFi signals I could see that the access point I was using wasn’t switching channels.

Finally I gave up and bought a Belkin USB wireless dongle that I’d had good success with elsewhere.  It was better, but still would drop and reconnect on its own from time to time, and the connect speed would vary from 54 mbps down to just 1 mbps.  Finally after Googling for just the right keywords, I found the answer: disable the Windows Zero Configuration Service, as it will interfere with some wireless receivers.  Why it wasn’t getting in the way at my other location, who knows.  Why a laptop running the same version of Windows sitting three feet away has no issue with it, who knows.  Why my Mac Pro is happy with the old Hawking receiver, who knows.  Anyway, all is now sweetness and light.

And I can get back to debugging my own code, where I have some control over my destiny and a reliable throat to choke, even if it’s only my own.

{ 0 comments }

Python: Unraveling the Snake

by bob on November 24, 2009

Something has been making me restless lately.  Maybe it’s the periodic need to shake things up; maybe it’s the growing sense that I may be getting a little parochial in the Microsoft-centric alternative reality that I’ve lived in for the past 15 years or so; maybe it’s simply indigestion.  Whatever the reason, I’ve been looking for a high-level language to add to my tool kit that is expressive, flexible, reliable, reasonably fast, and not strictly tied to Windows and Microsoft –nor, on the other hand, to a knee-jerk anti-Microsoft bias, either.  And I think I may have found it in Python.

[click to continue…]

{ 0 comments }

The Kindle DX — Is it Worth the Money?

November 19, 2009

As a purchaser of the original Kindle 1 back around November of 2007, I’m a relatively early adopter of Amazon.com’s eReader technology. In general, I’ve been well satisfied with it, for a first-generation device. I find the ability to purchase most books for $9.99 or less in a very readable / usable / [...]

Read the full article →

Advice for Self-Taught Programmers

October 19, 2009

Bob returns to blogging with some advice for noobs.

Read the full article →

Time To Jump Ship?

October 29, 2008

Does Redmond have any room left to redeem itself on the OS front?

Read the full article →

VB.NET Eye for the C# Guy

October 21, 2008

Coming to VB.NET from C#? Oh, behave!

Read the full article →

Good Typists Make Good Developers

September 10, 2008

Are typing skills really that much help to a developer? You bet.

Read the full article →

How Not To Remove Multiple Spaces From Strings

July 26, 2008

You think you’re removing all possible cases of multiple spaces … but you’re not.

Read the full article →

Case-Insensitive Regex Patterns in .NET

June 28, 2008

For some reason, I haven’t had to do this in a long time, so had to look it up.
There are three options for doing case-insensitive regular expressions in .NET.
The first is to use the RegexOptions enumeration to specify case-insensitive behavior:
Regex.IsMatch(”Fubar”,”^fubar”,RegexOptions.IgnoreCase)
The equivalent option is to put (?i) at the start of the expression. This is [...]

Read the full article →

Twitter Explained for Greybeards

June 17, 2008

My old friend Whil Hentzen, who is still somehow making a living in the FoxPro world with a side of Linux, posted a hilarious and enlightening explanation of Twitter, how it’s used in the real world, and why it might be necessary to indulge in even if you were born before dirt was invented.
I’m almost [...]

Read the full article →