Apr 25, 2008

If your friends jumped off a bridge ...

So Ben and Jon both did it, and I secretly did it, and am now going to blog it.


sugr:~ dante$ history 1000 | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
173 ls
171 cd
32 svn
31 rm
15 mv
12 pico
8 tar
7 scp
6 cp
6 clear


the direct correlation between ls and cd, and both being used magnitudes more frequently indicate I need better short-term memory skills. A lot of it is simply not looking at the path, actually. cd somethng/ ls _crap_ .. cd something/ ls ... you get the point.

good to see svn in the top three.

rm, mv - I do a lot of shifting around. Kind of a packrat that way. I also download a lot, and forget why, so do mass cleanups.

I am proud of my pico usage. Most times you don't need a whole editor, and to be honest, I've never quite figured out all the nuances of vi, nor had the desire to, in order to make it my editor of choice in the console.

cp, scp - mmm. I shift around [remotely,] and securely, apparently.

Mar 28, 2008

note to self:

IE sucks.

You see all these charts and graphs about how much of your life is spent sleeping or watching TV ... How your time is spent, this that and the other ... I measure time occasionally in multiples of frustration: How annoying was is to to said task = n, and perceived time spent on task equals n * acutualTimeSpent. It's a really simple formula.

In measure frustration-hours, Internet Explorer has cost me more productive hours than any other single task or project I have ever encountered. Today, it related to IE's interpretation of the <pre> element, and new-line.

For the record, and so I don't forget: IE [sic: sucks] mangles text within <pre> and <script> tags. In an experiment to parse inline text and code, I discovered this, and came up with a wonderful one-line workaround. The goal: split some <pre> element in the Dom into an Array of strings, one for each line.

All sane browsers are okay with:


var lines = node.innerHTML.split("\n");


Though, if node is a pre or code element, or contains a script element (this is as far as i've tested, so don't quote me on this), the regular character for newlines doesn't exists. Now it may exist as some other escaped sequence, but I don't care. Thankfully, IE leaves the innerText property alone, and Dojo provides really robust, though simple, browser detection:


var lines = node[(dojo.isIE ? "innerText" : "innerHTML")].split("\n");


It's just a little something that came up, and I found this quick workaround ... note to self, and now others.

Mar 15, 2008

i killed the rock.

I've had this stuck in my head all day. Here's to a band that wins my "best name for a band, evar", and who continually entertains me to no end:


i can handle this but i cant handle anything else
its my own mistake its based on me and not on my grades
its the little things in my pants that were all livin' for
i never really knew what that thing down there was used for
yo yo yo yo yo yo
i kill the rock rock rock rock rock
yo then she killed my brain brain brain brain brain brain brain brain
nothing hurts anymore
nevermind...then she killed my
you wicked gay but then today i think ill be hardcore
if i forget to take my medicine then ill be sick
im so hot to trot, i'm stealing all my beats from the blacks
and from all of the young girls is where i steal my act
yo yo yo yo yo yo
i kill the rock rock rock rock
yo then then she killed my brain brain brain brain brain brain brain brain
nothing hurts anymore
nevermind...then she killed my brain
i cant stand it
i cant stand it
i cant stand it
i cant stand it
if im so wonderful then why am i so misunderstood
everybody has a reason for it except me
its the little things in my pants that were all waiting for
i never really knew what that thing down there was used for
yo yo yo yo yo yo
ikill the rock rock rock rock rock
yo then she killed my brain brain brain brain brain brain brain brain
nothing hurts anymore
nevermind...then she killed my


Another band like that, I'm slightly disappointed in QuiVaH for not marketing their new album better. The scoop, normally priced CD, though is a 2-disc set, not had time to fully review the work (i've been waiting on this album for years, literally, and still don't have time) ... I don't get any personal props, so --quivah on that, but it's entertaining thus far.

Is Portland ready for Pete?

Jan 31, 2008

DDD:IV

Dojo is having it's fourth annual Dojo-developer-day next week in Mountain View, California. Google has graciously donated use of several facilities, which is cool enough by itself. This Dojo Developer Day (I propose "DDD:IV"), and will be happening Feb 7th and 8th. If you can make it, or happen to be in the Bay Area, you are more than welcome to attend. It's free, and is one of the rare occasions you will see 20 or so core Dojo committers in a room together. Day two is dedicated to community things (mini hack-a-thons, tutorials, etc) seemingly on an organic kind of life cycle. Meaning: I think whatever we end up wanting to do, we will do. Like I said, 20 or more of the core Dojo developers in a room (a sea of MacBooks), and hopefully a large number of supporters, community developers, and advocates. Tentatively, It looks like I'm even scheduled to say a few things, which could be interesting in and of itself. Day one is dedicated to "annual meeting" type things, which may be just as interesting, and again: everyone is invited. (though there will be no "support" officially part of this day, the face to face with the devs and to see and understand the motivations behind things is a wonderful experience in all places.

We promise: absolutely no API breaking / earth shattering changes. This is all about making Dojo better, more accessible, easier, faster, and to spread tidings of good dojo cheer.

And it's completely free! If you wish you attend, simply RSVP my sending an email to rsvp at dojotoolkit dot org giving us a heads up/head count/days attending notice, and we'll get you the details. Do not miss this opportunity to have that face to face with the devs and fellow users alike. Two days of Dojo, potentially a full day of free "training" and discussion: A dedicated "Community Day", so be there.

This is my first DDD, and am seriously looking forward to it (though I met a number of the core devs at TAE:Boston last October). Hope to see all the familiars, and a slew of new faces floating around.

Some links to the previous DDD's:

DDD I, II (3D2), and the "big 0.9 one": III (3D:NY)

Dec 1, 2007

poor smelly meli.

i'm sad. my 13 year-old rottweiler passed away this morning / late last night. It was seemingly painless, minus the obvious discomfort that comes when you have banana-sized tumors in your stomach. I suspect it was irritating her bladder, which is why she had to urinate so often. Anyhow, it's depressing. I've truly lost a loved one. She just wandered away, and laid down, and never got up. I fell down the hill attempting carry her home. This morning I have to find somewhere to have her cremated. There is a deceased dog quietly 'sleeping' on my laundry room floor. She was 13. she had a good life, or at least the couple of years I was apart of it.