Categories: /coding /computitude /linux /narcissism /net_addict /outdoors_man /philosophy /wacko
Links: RSS feed Sites near me Berners Family Pics Engines of Creation
Categories: /coding /computitude /linux /narcissism /net_addict /outdoors_man /philosophy /wacko
Links: RSS feed Sites near me Berners Family Pics Engines of Creation
/linux: Firehol and KVM
I beat my head against Firehol/iptables and KVM for several hours today. To spare others the pain, here is an example Firehol rule that does work (for my setup):
router vm_network inface eth0 dst 1.2.3/24 policy acceptWhere:
/computitude: iTunes Wakeup Script
I didn't like any of the existing iTunes-based alarm clocks out there, so I made my own. The features:
To use it, you will need to:
/outdoors_man: Annoying Garden Hoses
Won't someone invent a threadless garden hose coupler? It is such a pain to unscrew threaded garden hose ends. I'd like to see something compression based, so all you need to do is pull a lever to separate the two ends, and then push the lever down to re-connect them. That would be great, mm-kay?
/computitude: The Annoyances of Ticketing Systems
Of the various ticketing systems I've used (RT, Mantis, custom-built), they all had two significant flaws:
/computitude: My Verizon-Provided D-Link Airport Extreme Bites the Dust
Recently my internet connection has become increasingly erratic. Lately I've been seeing dropped internet connections every 10-30 minutes. Very annoying. Verizon is sending out a replacement router; good on 'em!
Meanwhile, I was thinking about setting up my old SMC to tide me over. Just one problem: I need the PPOE user name and password. I don't know what they're supposed to be. So while I was talking to tech support about the router, I also asked about the PPOE user name and password. It turns out you can put anything in these fields that you want!
So if you have a Verizon router, and are futzing with it, and it is using PPOE with a user name and password, just put whatever you want in those fields. Note that I haven't actually tried this yet.
/linux: The difficulty of instructing brutes
Crush! Kill! Munch! Oom the troll strikes again with his child-killing club. Sadly, he is as wont to kill the indispensable SSH children as the true gluttons. Telling Oom not to touch SSH doesn't seem to work. Perhaps he is hard of hearing? Or maybe just dense. Sigh. Time to reboot.
/net_addict: Advertisements in Gmail spam folder
This is just funny: if you have a Gmail account, go to your Spam folder. Look in the advertisements section at the top of the message list. I am seeing various recipes containing spam in this section. Classic non sequitur.
/computitude: Rsync retry wrapper script
At the Library we transfer large numbers of files in "batches" to different servers using rsync. The machines we do this on sometimes suffer from interrupted network connections, which causes the rsync to give up and fail. No problem, just retry the rsync, right?
Well, there are a few annoying problems with this approach: since the batches contain thousands of files, rsync has to go through each existing file and re-verify it. Also, the rsync has to be manually restarted. Others have asked about this multiple times, but I found no solutions to both problems.
It would be nice if rsync supported various graceful resolution options for these types of failures. Since it doesn't, and I don't want to wade through the rsync code to patch it, I wrote a simple perl wrapper script around rsync instead. It does the following:
I have posted the rsync retry script here in the hope that it will be useful for someone else encountering the same problems. It is invoked thus:
rsync_retry.pl rsync --log-file=rsync.log --exclude-from=rsync_exclude.txt <rest of rsync command>
Some notes:
Hacks/comments welcomed!
/net_addict: 1 and 1 web hosting is TEH SUCK!!
Many years ago the hosting scam known as 1 and 1 had a deal where you would get free web hosting for 3 years. Not knowing any better at the time, I bit on their hook. Their service was actually not terrible, but little did I then know about their billing practices.
Fast forward to last August or September. I started receiving mysterious pre-recorded messages on my telephone answering machine from NCO Financial sayig "this is an attempt to collect a debt". Then the message gave a number I was supposed to call. At the time, I thought it must be some kind of scam, as of course I had no un-paid debt. So I ignored the (numerous) messages.
Then late last year I received two ominous-looking letters stating more about this supposed amount that I owed, and finally tying it into 1and1.com. So I logged in to 1and1, and noticed nothing untoward. At the time, it looked as though I were paid up (my domains worked, and my billing page showed no outstanding bills). So, I figured it was an extension of the scam, and decided to once again do nothing.
Finally, last week my domain names stopped working. I wasn't sure what was going on, so I looked at my 1and1 admin page, and saw that I had been billed, the billing had failed due to a changed credit card number, and the bill had unceremoniously been sent to collections.
I called 1and1 to see why they hadn't sent me a notice. Their response? "We emailed you, it bounced, so we sent it to collections". Email?? For official correspondence? Who ever heard of such a thing? I asked them why they don't send paper mail or call, and their response was a simple "We don't do that". Completely unsatisfactory.
So now I'm going to have to pay this collections company the original amout, PLUS 1and1's penalty, PLUS whatever the collections company wants to charge me. Of course I looked around the net for suggestions, and found MANY other people with the exact same experience as me!
Some select pages talking about this:
/linux: Why isn't there an easy solution for "Offline Uncorrectable Sectors"?
So, I see this in my logs recently:
"Device: /dev/sdb, 2 Offline uncorrectable sectors"
Apparently Smartd notices something amiss with the drive.
Point 1: Why doesn't Smartd consider this an error condition? And if not, why should it even notify me? Should I be worried? No authoritative answers to be found on Google. Could you Smartd people please make a FAQ?
Point 2: OK, so I guess I'll consider this an error worthy of fixing. So how do I fix it? Google gives some possible answers (again, FAQ, O Smartd uber-geniuses?), such as the Bad Block HowTo. But... 3 pages of tests/mitigations? Come on guys, make it easy for me. Most of this stuff is scriptable, so please, can you make a script/utility for me?
/linux: Ubuntu Security and Laziness
If there's one thing I love about Ubuntu (and Debian, to a certain degree), it is the packaging system, which "just works". Having used Windows, OS X, FreeBSD, Solaris, Red Hat Linux, Gentoo Linux, Suse Linux, etc, it is the one thing that coddles sysadmins the most. Only in Ubuntu/Debian can I set up a server, install what I want from the packaging system, and then easily ensure all the installed software has the latest security patches. I have seen no other system that does all of this from one, easily-scriptable place.
I have been able to use this to my advantage at the Library to:
I have thus automated many tedious steps and saved loads of time. The only thing I as an admin have to do, is choose which updates to apply, whether they should be applied now or in the future, and then update a text file. No other available OS can do all of these things in such a simple, non-interactive way.
/philosophy: Unreasonable Search
So I just heard the news that DC Metro is going to be doing random bag searches at entrances to Rail/Bus facilities. Surreal. What part of the 4th amendment do they not understand: "The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no Warrants shall issue, but upon probable cause, supported by Oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized."
No probable cause, unreasonable search of effects. I am astounded by how far we in the US have strayed from the constitution.
I submitted a complaint at the Metro feedback page. If you care about your liberty, I suggest you do the same.
/wacko: Ice cream causes flu symptoms?
Geez, this is depressing: http://www.earthclinic.com/CURES/sinus_infections_and_ice_cream.html. Moral of the story: know what's in your food, and if you don't know, don't buy it. Oh, and chemistry sets belong in the lab, not the kitchen.
/linux: How about 32-bit?
So, what about 32-bit-only hardware? How will this work on large NFS exports? I can't exactly upgrade to a 64-bit OS, since the hardware doesn't support it. I'm a bit worried about this. We'll see how it goes once I start generating file checksums.
/linux: 64-bit NFS
64-bit NFS servers do not work happily with 32-bit NFS clients. Hint: 64-bit inodes have a much larger address space, leading to duplicates on 32-bit nfs clients.
/computitude: New MacBook 2.4 GHz
My iBook broke 6 months ago, so I've been plodding along on the old G4 for a while. My wife and kids were also using the G4, via fast-user switching. This made for a very slow computer-using experience. What with my new job, I needed a laptop, so earlier this week I sprung for a MacBook 2.4 GHz machine.
This thing is pretty cool. It's responsive and runs the apps I want: Google Sketchup, etc. While playing around with it (PhotoBooth: hours of pointless fun), I realized again what I like most about OS X: feeling like I'm in control.
In Windows, OEM's load up all kinds of garbage to up-sell you to their latest partner promotions, plus there are pointless animations and notices popping up all over the place. To be fair, I'm an un-MS fan-boy.
So let's look at Linux, which would thus be a better comparison. Sorry, OS X still gives me the feeling of being in control. No weird driver breakage, no hour-long forays into obscure service setup. I love Debian (and recently Ubuntu), but from an everyday desktop experience I'd definitely choose a Mac with OS X.
/coding: Streamlined XServe Query Script
Recently I needed to pull out various bits of data about some XServes I am admin'ing. I found a pre-made script for doing this, but it didn't break out the various bits of information, and wasn't consistently working for me. So I wrote my own, which shall henceforth be a downloadable XServe query script for your querying enjoyment. Download, chmod 755, then see what arguments can be passed with "xserve_query.pl -h".
/computitude: Google Sketchup
I was looking for decent architecture software for over a year, and eventually stumbled upon Google's Sketchup. It works on Mac/Win-doze. I really like this piece of software!
I've been talking to a contractor about expanding my house, and after using Sketchup I was able to skip the whole architect step, saving considerable time and money. I'll still need a structural engineer and drafter of course.
Benefits:
Drawbacks:
With that said, here's my house plan. This will change as I update it.
/wacko: A Bad T-Shirt
So how about this one: "CSS writers do it with style".
/coding: CSS Pointers
When I first started trying to code web pages using CSS, I had quite a bit of trouble figuring out "the basics". Since I'm now pretty comfortable with CSS, I'll share some beginner's tips that I wish I'd known when I started. These pertain to positioning boxes in various spots on the page, since this is what I had the most trouble grasping.
To start with, all your boxes should appear in divs, like this:
<div>This is a box</div> <div>This is a box appearing underneath it</div>
<div style="float: left;">This is a box</div> <div style="float: left;">This is a box appearing to its right</div>
<div style="float: left; width: 100px">This is a box</div> <div style="float: left; width: 100px">This is a box appearing to its right</div>
<div style="float: left; width: 100px">This is a box</div> <div style="float: left; width: 100px">This is a box appearing to its right</div> <div style="clear: left"><!-- --></div>The "clear: left" can also be "clear: both" or "clear: right" if you have other divs floated right. The html comment in the otherwise-empty div fixes a bug where Internet Explorer 6 ignores the clear div because it's empty.