Sunday, July 24, 2011

Situation - Getting Better

The day before we left for Oklahoma was a series of domestic problems.

The washing machine refused to drain - the pump was issuing an ominous an ka-klunk ka-klunk noise.  Then the computer would decide to shut things down rather than continue doing whatever it was doing.

The garage door fell apart: three rollers missing, a fourth was off the track.

Couldn't stay around to fix it - family called.  Things needed to be done.

Tied the garage door up so it couldn't get any worse.  Told the kids to leave the washing machine alone.  Did a load of laundry by hand.  Spent the next day driving to Oklahoma. 

And man, nothing feels as empty as US 169 south of Iola, Kansas after dark.  There may be stuff out there, but I don't think I saw a single light until I hit Nowata.

When I got back I put off attending to those chores.  Intellectually, I know that when one's father dies it's going to cause a certain moodiness - to say the least - but I was unprepared for how badly this hit me.

Couldn't put it off anymore.  I need my garage, and I was down to my last clean pair of underwear.

Laid the washer down. Prepared myself to find a dead pump.  Found a mangled sock coiled up inside.  Removed sock.  Washing machine is back in working order.

Got new rollers from Menards.  Couldn't find my 7/16 socket.  Used vise-grips to unbolt the hinges.  Spent 30 minutes on one hinge, realized that was insane.  Got a new socket set from Wal-Mart.  Thirty minutes later the job is 90% done, with one pesky hinge up in the upper corner that requires some minor adjust before it will fit.  It was dark, dinner was ready.  Enough for the day.

And I'm no longer quite so down-in-the-dumps.   Getting something, anything, done was a big help.

 It still hurts, but I can breathe and move and think again.


Saturday, July 23, 2011

Out on the ranch . . .

Out on the ranch a cowboy is facing his horse.

Cowboy: Well, you're a pretty good hoss, I guess. Hard workin', that's a plus. You aint' the fastest critter I ever come across . . .

Horse: "No, stupid, not feed*back*. I said I wanted a feed*bag*.


Applescript to connect using SSH

Assume one has a Mac. Uses iTerm2. And that one spends a great deal of time managing a riot of Unix systems using SSH.

Now use this AppleScript to launch a new terminal window, then login to your remote host. Now - as the joke goes - you have four problems.

The interesting part were variables, which I did not know how to pass to Applescript. So I learned something: hey, hey hey.

Execution

$ s2.sh hostname

Scripts

#s2.scpt
on run argv
tell application "iTerm"
activate

-- This causes script to operate on current terminal (window)
-- set term to (current terminal)

-- make a new terminal
set term to (make new terminal)

-- Open a new tab
tell term
set Lsession to (make new session at the end of sessions)
tell Lsession
set name to (item 1 of argv)
exec command "ssh username@" & item 1 of argv & " "
end tell
end tell

end tell

end run


#s2.sh
#! /bin/bash
source $HOME/.conf/remote.conf
echo "-----------------------------"
echo "Take off, hoser"
echo "-----------------------------"
cd $HOME/bin
osascript $HOME/bin/s2.scpt $1

Thursday, July 21, 2011

Tab Clearing

Gary Johnson calls family leader pledge 'Offensive and Unrepublican'. “Government should not be involved in the bedrooms of consenting adults. I have always been a strong advocate of liberty and freedom from unnecessary government intervention into our lives. The freedoms that our forefathers fought for in this country are sacred and must be preserved. The Republican Party cannot be sidetracked into discussing these morally judgmental issues — such a discussion is simply wrongheaded. We need to maintain our position as the party of efficient government management and the watchdogs of the “public’s pocket book”.


Scared of Freedom. There are a lot of people who consider themselves freedom advocates, who, with righteous zeal and indignation, vehemently rail against the injustice, corruption and oppression "government" continually spews forth. However, many of those same people, when they hear someone suggesting life without the monstrosity called "government," will immediately go into turbo-backpedal mode, insisting that some "government" is needed, that we need to work to fix the system, and that we need a good "government," that just does good stuff, and protects us, and so on.


BYTE is back. It's too bad it won't live. But then again, what does?


The UN has a plan. Here is the world’s most powerful intergovernmental institution essentially arguing for the destruction of the global economy, enforced rationing, Marxist wealth redistribution, greater regulation, the erosion of property rights and global governance by a new world order of technocrats and bureaucrats.


Farewell To Space-Faring. The Final Shuttle Launch for Friday has been cancelled, but it’s still the end of an era. Actually it’s the end of several eras, particularly the America as a space-faring nation era inaugurated by John Kennedy. The twist is that Shuttle killed space-faring.


Eat our Peas: Command Economy. The President of the United States has spoken. It is time to compromise by giving in to what he wants. To the various Republican suggestions regarding the debt limit, he says: (click the link)


Beyond The Big City Blues. Racial problems in the US contributed to the particular history of the urban underclass and race can never be totally ignored in this country, but the inner city today is haunted by three serious problems, none of which is racial in nature: a lack of jobs, an advanced state of social disintegration and decay, and the presence of the illegal drug industry.


House-Wring Diagrams. One came with the house. It went god-knows-where sometime in the last few years. And it's now out of date, thanks to a new panel in the basement. Time to make a new one. And this is a big ol' barn of a house, built in three phases spanning decades: nooks and crannies and cruft everywhich-where.


The Node Beginner Book. More new crap to learn. I need to be twins.

Friday, July 15, 2011

Reasons Why I Like Unix Part Umpty

Instructions at work to download a backup copy of our documentation wiki for

Windows users

8 line Powershell script
2 lines to explain how to set this as an automated task
2 lines to explain who to run an unsigned script


OS X users

curl -O http://noc.domain.com/zipfilename.zip


Wednesday, July 13, 2011

Describe in single words only the good things that come into your mind about... your mother.


Leon: My mother?
Holden: Yeah.
Leon: Let me tell you about my mother.


Same to you, Jerk.



From the movie 'Blade Runner' of course.

Tuesday, July 12, 2011

Our Wobbly World - Crisis Magazine

The funny part is, our culture’s growing allergic reaction to the Christian tradition — and therefore to people who, you know, actually know something about pre-Christian paganism — makes the Allergic ignorant of the debt they owe the Christian tradition for preserving paganism. For it is, after all, the Church that preserved the wreckage
of high pagan civilization after low pagan barbarians destroyed it. Indeed, much of the “ancient mystical” paganism our culture tends to enthuse about (think Mists of Avalon, druids, Spinal Tap’s Stonehenge, various Celticized bits of rubbish, Wicca, etc.) is not Greco-Roman (which actually achieved something creative) but Anglo-Germanic and northern European in flavor. The thing is, northern European pagan patrimony to us is a few phallic standing stones. That’s because they spent most of their time getting drunk and stealing from each other, until they finally wandered in a raging stupor down to the Mediterranean to do a bit of raping and pillaging of the decadent Roman Empire.

Our Wobbly World - Crisis Magazine



Monday, July 11, 2011

You can have any color whoozit as long as it meets federal aesthetic guidelines

Let this roll around inside your head for a minute:

We are taking away a choice that continues to let people waste their own money.

That is Secretary Steven Chu.  Member of the Obama Administration.  A Nobel-prize-winning knows-better-than-you arrogant son-of-a-git who would prefer that the government waste your money instead of you.

The Obama Administration: knowing what's good for you better than you ever could.

Via.

Saturday, July 09, 2011

The right to keep and arm bears

Six months after Rep. Gabrielle Giffords was shot, the White House is preparing to propose some new steps on gun safety . . .


Gun safety. For the children, no doubt.

Dumb motherfuckers.

(Pardon my French.)

Guns are safe.   Keep your fingers off the trigger, they don't go bang.

Problem solved.  Next?


Thursday, July 07, 2011

Farewell Shuttle



shuttle_01_1920x1200.jpg




A gorgeous spectacle on launch.  Poetry in air gliding home.

Too complex, too expensive, not very good at any one thing.

But she was a by-God spaceship: such a sight to see.


War On Libya Day Mumblety

This just in: The War in Libya is

Still a disorganized cluster-fuck
Still illegal
Still a bad idea

This news flash has been brought to you by the Nifty News Fifty Info team and your local 'That's Obvious' mega-store.

Now, back to your regularly scheduled krep.


Gadhafi, like Hitler, is serious about attacking Europe


Sen. Lindsey Graham (R-S.C.) warned on Tuesday that Libyan dictator Moammar Gadhafi is "serious" about attacking European cities in order to pressure European officials to cease their airstrikes against Libya.
"He actually means it," Graham said of Gadhafi. "Hitler meant it. He means it."

He broke out the H-word.  He meant it, he really did.

How stupid does he think we are?  What is that, five, six, a dozen petite dictators who have been compared to the Austrian Corporal in the last generation?  Don't you think that, by now, comparing anyone to Hitler has gotten so devalued that it's lost any meaning whatsoever?


We might be charitable and assume Graham has got some secret-squirrel data from the Cee Eye Ay: hard intel, solid data on terrorist cells, dates, times, plans, hordes of shadowy fifth columnists sneaking about in the night ...

Fuck Europe.  If they're so damned supine and disorganized that an ass-fart of place like Libya represents a viable threat, then they deserve what they get.


A Personal Note

There are some things I just don't talk about on this blog. They are just none of your business.

Unless those things are funny. Or weird.

Mostly it's because a) that's not what this blog is for [1] and b) I don't do 'feelings' in public. Remorseless repression of emotion until a culturally-approved means to blow it off is the way I roll.


[1] If it can be said to be about anything.


Saturday, July 02, 2011

The art and craft and science of software

Software: art, craft, engineering?

... we've only been creating software half a century. We've only had academic departments devoted to it for half of that. And many of those still haven't figured out whether they're applied math departments, or electrical engineers who don't like bothering with all the soldiering and other messy stuff, or whether they want to teach students how software works so the students will be good at their future jobs, or because knowledge is its own reward. We haven't been making software or training programmers very long, so let's not throw in the towel on making coding into engineering yet.

SB7: Stack Exchange

It's only in the last century or so that the art of 'building stuff' has progressed from rule of thumb to engineering. And people have been building things for how long? A few thousand years. Software as engineering might happen.

But: Mike Mulligan does not have to deal with the mess made by some guy who built the old town hall on the rule of thumb method while digging the basement of the new town hall in Popperville. Nope: somebody else knocked the old building down before he even got there. [1]

Mr. Software Developer is - and will be for quite some time [2] - building his works on the foundations, if not right inside of, software developed by the rule-of-thumb craftsman method.


[1] I'm stretching a point: the site chosen for the new town hall was clearly a brand-new site: no prior construction.

[2] Thousands of years, if Vernor Vinge is right. In 'A Deepness in the Sky' the skills commanded by a programmer archeologist are very valuable indeed, guys who can dive into code hundreds or thousands of years [3] old and hack something up that works on existing problems.

[3] They use the Unix epoch as the basis for keeping time.



Epigrams

“I came here to hunt whales not my commander’s vengeance.  How many barrels of sperm oil will that vengeance yield?  What will it fetch on the New Bedford market?”

Starbuck - Moby Dick.


"It has been said an engineer is a man who can do for ten shillings what any fool can do for a pound...."

Nevil Shute - Slide Rule: Autobiography of an Engineer.


Friday, July 01, 2011

Long Week

90% of what I do professionally can be done by a chimp.  I earn my salary for the other 10%.

This week I earned my living.

Component isolation: learn it, love it, use it.





Tuesday, June 28, 2011

Pity the Dog

The boy needs no pity. He is sixteen and should know better than to leave a pound of bacon on the counter, near the edge, to thaw. Excellent, moderately expensive bacon that was to be bacon and lettuce and tomato sandwiches for dinner.

Pity instead the dog.


Marcus - Hot Dog - Nixie


A good dog. A dog who knows that food on the counter is inviolate. Who was left, alone, with a pound of thawing bacon. Dripping bacon-scented water on counter, and the floor. Getting warmer and tastier smelling by the minute, releasing it's tender meaty smell to the air. Where it flogged her her doggy nostrils, taunting her.

The torture must have been agony, waving a lit smoke under a tobacco addict's nose. In the end, her lust for raw meat overcame her inner good dog and it was gone. And she knew she done wrong: one look at her aspect when I arrived home and said 'I thought you said you had bacon out for dinner?' told the tale.

Poor ol' thang.

Tab Clearing

Simple Math: Taxes Aren't The Answer.  The point is that taxes are a symptom, not the real problem. Spending is (and has been) our problem all along. The size and scope of our government services needs to reflect our means to pay for them, just like anything else. Our politicians, both democrat and republican, want to sell us Ferraris, when we can just about afford Corollas.


Economic Freedom and Quality of Life (YouTube).  Excellent video.


Getting Truth's Pants On.  A peasant cannot stand to be reminded that there are free men out there... so watch your back.


RPG JS - Create your browser RPG in HTML5.  I need another new toy like I need a hole in my head - but oh so nifty looking.


Tigger - A beautifully simple, command-line based task management system that lives inside your git repo.  I like todo.txt but it's hard to push it off my computer to everyone else.


Haiku.  An open source operating system inspired by BeOS.  I need another new toy like I need a hole in my head . . .


Architectural Programming: research and decision-making process that identifies the scope of work to be designed. In prole terms, designing a building as if it were what it is: a system.  Throw in the inputs, out comes your design.  Fascinating.



Friday, June 24, 2011

A vulgar, upjumped, snake-oil-selling, midway-barker huckster

Congress asserted itself and declined to give the President legal cover to conduct a half-assed [1] war in Libya.  To which the Secretary of State Clinton [2] said

Whose side are you on?

The lady is doing her best to make people hate-hate-hate the current administration.  Also: fuck you, bitch.


I had to get my licks in, but I bow to Ken, who said it best, as only a finely trained legal mind with a mastery of the English language could. [3]

You vulgar, upjumped, snake-oil-selling, midway-barker huckster. You venal, amoral, mendacious harpy. You vile, preening, scheming hack. Whose side am I on? I’m on the side of fuck you, bitch. I’m on the side of the Constitution, limited government, limited executive power to kill people, limited executive power to put our armed forces at risk, and the rule of motherfucking law. I can’t believe there was a time when I couldn’t grasp why people despised you. Whose side am I on? You Senator, can you name a nanosecond when you’ve ever been on anyone’s side but your own?

That’s whose side I’m on. What’s it to you?


The shade of George Patton, who knew a thing two about language and the use of profanity in motivating men, is smiling.


[1] One of the worst parts about this whole mess in Libya is how god-awful badly it's being run.  Blow up Libyans, but not too much.  Aim at places where the Qadhafi is staying, but don't actually attempt to kill him.  Do it on the cheap, with airplanes, that don't actually win wars.  You could find better strategists at a comic book shop on Saturday afternoon than at the White House on a weekday.

[2] It is amusing that a chick who was a sort of hippie back in the day is now playing the part of Kissinger in a dirty, illegal, war.

[3] I hope Ken will forgive block quoting in it's entirety.  Excising a snippet did not do it justice.

Windows Powershell - the slimy vegetable of shells

Like a kid eating broccoli and hate-hate-hating it I had a run at Windows Powershell yesterday.

And just like that kid, my very first taste caused immediate retching and revulsion. Gross - people eat this stuff? Willingly?

Launching Powershell from the command line - how? 'ps'? No. 'psh'? No.


c:\> powershell [return]


Eight letters where two would do. And not eight letters in a row, or on the home row or anything useful but spread out all over the gawd-damned keyboard. Ruthlessly condensing commonly used commands to a few keystrokes is something only hairy unix dorks do for reasons that more enlightened beings can only guess at.

I'm surprised they didn't include letters from way up on the row where the number keys hang out in keyboard Siberia.