Archive for the ‘Personal’ Category:
building sed for osx
I work in linux a lot… not bsd. So the OSX (bsd style) implementation of sed really throws me for a loop when I go text-file-spelunking, whats worse is that my scripts using sed aren’t portable between the two OSs.
A quick googling this morning landed me here: http://wiki.octave.org/wiki.pl?OctaveForMac which gives perfectly good instructions on installing sed. except it didnt work. I grabbed the latest version of sed (4.1.5) and got the error
sed: 1: "install_sh=/Users/apoka ...": command i expects \ followed by text sed: 1: "install_sh=/Users/apoka ...": command i expects \ followed by text
Ironic, huh? Well taking a guess that at some point sed hadcome to depend on its own functionality to configure itself I jumped back a version… Figuring i replace BSD sed with an out of date GNU sed, and then use the old GNU sed to build the new GNU sed. Which worked great. I Installed first sed-3.0.2, and then 4.1.5 in this manner:
./configure --prefix=/usr/ --with-included-regex --with-included-gettext && make && sudo make install
I’m happy with my -r again…
# date | sed -r s/'[0-9]‘/’?'/g Thu Apr ?? ??:??:?? PDT ????
Daemonize Anything
I hacked together this little C program from this other little c program. Basically acts as an execution wrapper that lets you fork() and detach and run a command in the background with a pidfile and log file for program output. So far I havent had any problems with it… but then I’m not a true C guy so any input is welcomed.
Well I’m Back
After a week (plus 2 days) vacation I’m back in thw swing of things… At least until the 20th when I take off to meet up with the gang once more. I’ll be glad when all this traveling is done… I’m something of a simple homebody and this shuffling from one place to another makes me itchy
The vacation was OK. It rained almost constantly, was cold. The drive up was the worst, it just happened to coincide with a huge storm, and we could hardly see the road as we drove through the mountains (thank God for GPS.) There was no fence so we had to stand out in the rain to let the dogs do their business. The shops were alright, a lot of them closed for THEIR vacations (being the tourist off season.) Before we left the window in the kitchen sprung a leak just in time for a huge rainstorm. Bella went into heat (again) and had to wear a diaper the whole time. The dogs didn’t behave well (dogs neverdo when cooped up for a week solid (on top of the hormone cocktail of bella going into heat.)) We did get about 3/4 of a day on the beach in the sun towards the end.
We’ll get bella fixed as soon as shes out of heat. We would have done so earlier but for various medical complications (eye surgery, then heat, then the new cat brought ringworm to the home with it, and now heat again.) Dont worry, we’re not planning on having our own puppies. Not at this juncture in our lives anyway.
All said, I was relieved to finally get home where things made sense, and even if bad things were to continue plaguing us we could deal with it in the known comforts of our own home.
Public Service Announcement
If you live and work by your phone
And you have indoor pets
Do not, under any circumstances, place your phone near and above a large glass of water.
We now return you to your regularly scheduled internet
And we’re off
So now back off to the vet to pick up the dog who’s gonna spend most of the next few weeks being MISERABLE because he’s gonna have to be crated a a LOT, wont be able to play with the other dogs at all for a while, and will have to wear a satellite-dish-collar. On the plus side he’ll have a drain installed in his ear and he’ll be leaking gross fluids form his head for a while. I guess theres ALWAYS a silver lining, insn’t there?!
quick update
Well… everything that could go wrong this weekend (outside work) has gone wrong.
My replay tv is dying
My wifes laptop is dying
I have one dog getting out of surgery right now because of a hematoma
I have one cat with ringworm
One cat got the crap beat up out of her in a fight
I had my tire punctured so badly it needs replacing (this was on the way to the vet yesterday night when we noticed the swelling in buddy’s ear (the hematoma))
The dogs chewed a hose
One dog ate my wifes flipflops while we were away and puked pieces of it up all over the house
We have to go back to Fremont sometime this week to return the old cable receiver and modem or get sent to collections
Oh, and the IRS sent us a letter about a form missing from my tax return (I used TaxCut to avoid exactly this kind of crap!)
On the plus side… We’re alive ![]()
Off to the vets office
Actually it’s an eye specialist. My poor Bella’s eye (which has a detached lens and possibly glochoma (sp?)) has really been acting up the last several days. Wish her (and my wallet) luck!

When simple plans attack!
Well at the zoo we lost a pair of glasses, so off to lensecrafters… no eye exam in 3 years… so eye exam… 2 hors for glasses… and WHAM a day thats supposed to end at 4:00pm ends at 9:00pm… sigh…
we now return you to your regularly scheduled blogging.
Subscribe to the comments for this post




