Day dreams

hmmm, [a job posting]
is that real !?
I wonder, lol
it coulb be… interesting for the least
some of the job postings are interesting on thedailywtf, but I’ll never get that lucky lol
why ? 🙂
you never know what awaits you
let me put it this way, if only 1 in every 1000 people got shit on by a pidgin, I’d probably be shit on 2ce lol

Sometimes I just crack myself up xD

I don’t know if the job listed I was looking at would fit me, or vice versa. But man, it would actually be nice to get hired on merit. Very few places that I’ve seen, will even give you the time of day without a stack of prerequisite (and expensive) papers :.

Sigh.

Writer’s Block: Year of the Ox

Happy Chinese New Year! The Year of the Ox starts today. What is your Chinese zodiac animal? Do you think you fit the description of the sign?

Live Journals Writer’s Block

http://www.chinesezodiac.com/dragon.php

Hmm, an earth dragon. I don’t believe in Astrology, but I must admit it is generally intriguing to parse.

Stress Buster

Well, with nothing to do, no inclination left to me for sleep… and quite far from in the mood to get any more work done (Dang it!) for the night, I figured I’d play a little bit of DooM. After sorting a little issue of loading the right IWAD, I noticed something interesting in ports: the Hell Revealed MegaWad for Doom II 🙂

So I installed the doom-freedoom Free Software IWAD for DooM II, and the doom-hr ports on my laptop. I haven’t tried UV, but from the soun do it, I wonder if after all these years, if I’d even get past the first room on UV, lol. I’ve played the shareware version of DooM from Id some time ago, and wished that I had a copy of the full version handy afterwards (very fun game). The thing that surprised me about revisiting classic DooM, was not only were the levels much like I remembered them, there was still a good “Oh !@#$, it’s a trap!” factor keeping you on ya toes for hosing down some baddies — applying [SAS] movement and room clearing techniques actually helped clear it, haha! Playing through HR, might be agood time paser for awhile :. It’s a very well known megawad, but it’s still my first encounter ;-).

DooM is like _t_h_e_ classic FPS shooter. I was never into it very much as a child, and usually just watched my brother play the various console ports. But in later years, I’ve come to regard it as a great way to relieve stress — switch brain off, and let the shells fly.

cvs / git cooperation

http://issaris.blogspot.com/2005/11/cvs-to-git-and-back.html

hmm, might be useful.

Somethings I’d like to work on, are using git, cvs, or svn. My own system here runs CVS, since that’s what OpenBSD comes with, but I’m more used to workign with Subversion. Git and Bazaar-ng are two programs I really should evaluate, since git is likely a program I would love using, and bzr is one I may find more useful in the wider world.

It also pays to know svn/cvs, hehe.

Grrr….

It seems, whenever I try to get some sleep during my ‘down’ hours, there is always something or someone to jar me awake… By the time I’m able to get back to sleep again, my brain is usually to “online” with being awake and thinking again, rather then being obediant to the rest of good sense that demands going back to sleep. If I actually do get back to sleep, I always end up with even less work done, and little time left to myself :

How many freaking years, do I have to go with a minimal of sleep….

Strange set of dreams tonight. In one realm, it involved work, gee what fun… day off in the morning, and dreaming about working my as off & being threated like dirt :. Like the last thing I want to think about, is going back to that, eh? In another phase there was a rather sudden, but interesting entanglement with an attractive woman to say the least, in retrospect I wonder who was trying to seduce who lol. But for better or worse, not enough privacy for much to come of it >_<. Hmm, almost thought I had forgoten how to kiss a girl like that... guess there are a few things, that ya never forget. And in the third cycle of dreams, having to out-think a few drunks to extricate myself from a sticky situation, an incident involving a big ass truck and its occupents had an intent for some viloence (Hmm, maybe she was married? lol). Had no luck in avoiding a fight, but not being one for like a six vs one fight (and maybe 2:0 or 3:0 guns), I managed to exploit their drunkeiness in order to take them suitably 'prisioner' until backup could arrive; join joined the arresting officers in a good hard laugh at how I tricked them into surrendering ^_^.
I have some crazy dreams, eh? In real life, I almost never end up in trouble… but in dreamland, it finds me lol.

GET SOME SLEEP SPIDEY01 !!!!!!

I’m wondering for an hour, why the frig I’m getting missmatched checksums…. then it hit me, and I feel like punching myself in the head lol.

I tried this:

sub checksum {
my $file = shift || return;

my $md5 = Digest->new("MD5");
my $sha = Digest->new("SHA-256");
open my $fh, $file or die "Can't checksum file: $!";
binmode($fh);

return ( MD5 => $md5->addfile($fh)->hexdigest();
SHA256 => $sha->addfile($fh)->hexdigest();
);
}

and then compared the output agaisnt checksums generated by FreeBSDs md5/sha256 utilities (they are actually the same program). The MD5 matched perfectly, but the SHA256 were different.

After much thinking, I figured it out….

sub checksum {
my $file = shift || return;

my $md5 = Digest->new("MD5");
my $sha = Digest->new("SHA-256");
open my $fh, $file or die "Can't checksum file: $!";
binmode($fh);
my $mh = $md5->addfile($fh)->hexdigest();
seek($fh, 0, 0); # <----- you've got to rewind it to the start of the file before the next I/O
my $sh = $sha->addfile($fh)->hexdigest();
return ( MD5 => $mh,
SHA256 => $sh,
);
}

The thing that really irks me, I was wondering if the Digest:: classes would be so nice, as to rewind the file handle when they were done, but I think that idea occured to me about 4 hours ago, lool. Actually, if I’ve got to rewind the fscking handle between objects, I may as well just walk the file and append the data to each as we go… then get the digests.

I really need more sleep….

EDIT: Take III

=pod internal

checksum FILENAME

Open filename, and return a hash containing ALGORITHM => check sum
key/value pairs, for each algorithm supported. Both MD5 and SHA256 will
always be supported.

=cut

sub checksum($) {
my $file = shift || return;

my $md5 = Digest->new("MD5");
my $sha = Digest->new("SHA-256");
open my $fh, $file or die "Can't checksum file: $!";
binmode($fh);

# suck the file, and Digest::add it. We would have to parse
# the entire file per object, and seek to 0,0 between calls other wise.
while (my $ln = <$fh>) {
$md5->add($ln);
$sha->add($ln);
}
close $fh;

return ( MD5 => $md5->hexdigest(),
SHA256 => $sha->hexdigest(),
);
}

Hmm you know you’re crazy when

instead of writing the file path, and using tab completion to view a file listed in a programs output: you pipe the programs output into a command to get the desired line, pipe then pipe that into AWK, so you can pipe that into xargs ….

or maybe it’s just being lazy….

Terry@dixie$ perl script-name project --debug | head -n 1 | awk '{ print $2 }' | xargs cat

Quote of the Day

This is a consequence rather than a goal. I abhor a system designed for the “user”, if that word is a coded pejorative meaning “stupid and unsophisticated”.

— Ken Thompson

Hmm, some how this makes me laugh when I think of ed and notepad (ed is like the most basic editor I’ve ever met, but it’s still 1000 times better then notepad)