& != &&

•May 11, 2010 • Leave a Comment

Jesus christ, what a stupid fucking bug. Even worse, it’s MINE. Obviously the operator & is nowhere even the same meaning as the operator &&. Looked over the same piece of code over and over and over again. Don’t quite remember what made it “click” for me.

Nevertheless it was a stupid, stupid, stupid (fucking) bug.

element plugins for browsers

•July 30, 2008 • Leave a Comment

here’s what we need, not sure if it’s a *good* idea tho.   allow browser plugins that can interpet custom tags.  this way browser can be extended with new tags, but then what about competing or non-compatable tags, how would one stop this?  seems like it would create more problems than it’s worth :(

computing makes our lives easier?

•July 16, 2008 • Leave a Comment

where did this notion come from?  all computers are guarantee to do (other than taking up space) is process some set of instructions really really fast (hopefully faster than we can, otherwise what’s the point?).  Depending on the circumstances, even computing the wrong answer is still the right answer, that is the intent.

been awhile…

•May 19, 2008 • Leave a Comment

it’s been a while since my last post, busy on this crazy project from the 9th level of hell.  despite the craziness, I managed to find time to create my very own RESTful engine.  It currently encodes and decodes several formats, effectively separating the front-end and back-end from the middle.  That’s a helluva 3-some in programming terms :-)

Handling POST data in bash cgi scripts

•February 21, 2008 • Leave a Comment

Handling incoming POST data in a bash script is no-brainer.   Just keep in mind all the same rules about dumping the contents of a variable differs depending on which (or lack there of) quotes you use.

—-[snip]——————————————————————————

#!/bin/bash

echo “Status: 200 OK”
echo “”

POST_DATA=$(</dev/stdin)

echo “${POST_DATA}”
—-[snip]——————————————————————————-

this is beyond easy

cgi scripts in bash…w00t

•February 21, 2008 • Leave a Comment

Imagine my delight when I realized that anything executable by the OS can be a cgi script (well not sure about Windows, don’t care either).   One of my favorite scripting languages to use for prototyping on a daily basis is Bash.  This combination makes it insanely easy to construct RESTful resources.

Some of you, and quite a few at my work are like oh noes!@#!$  y0u g0tz noez sekurity when y0u use teh BASH.   Excuse me Mr. (php|ruby|c|perl|python|dotNet) code monkey?!?  That issue exists for anything that can be executed as a cgi script, so go away.

The bad thing about using cgi scripts is that it reloads the whole thing in memory for every request.  It’s not the reloading that really sucks, it’s the incurring the cost of disk access.  )-;  This is easily mitigated by moving them to a ram disk (including the she-bang) upon every reboot.  Just make sure you preserve the same ownership and file modes, otherwise you will get 0wned.

Improving Mac OSX GUI: Window on Top

•February 20, 2008 • Leave a Comment

At the turn of the century an IBM commercial featuring  dude that played Commander Sisko from DS:9 demanded to know where his flying car was; how come there were no flying cars; where were the flying cars?!?

After all isn’t this the 21st century??

Leopard came and went.  Spaces isn’t too bad, but come the fuck on Apple.  WHERE IS MY WINDOW ON TOP FEATURE?  WHERE’s A REAL VIRTUAL DESKTOP SOLUTION.  The current shit is so broke even after 10.5.2.  It sucks balls.   Ok fine, you don’t have to implement it (right), but at LEAST allow us to fix your broken crap before we start confusing you with Microsoft.

And no, i’m not installing Insanity crapware.   I shouldn’t have to, this is basic feature of any x11 window manager, even the retarded one support it and sloppy focus.  Yeah I know this isn’t X11, but it underpinnings is STILL UNIX.

I long for the day of a hybrid gnome desktop with apple finishing touches too.  Except for the fool that did the finishing touches for the “stacks” in the initial leopard release, you should be fired for leaving out LIST view option.  Classic example of NOBODY at apple really uses this worthless feature.

bad apple

about damn time i got something accomplished

•February 20, 2008 • Leave a Comment

Just spent 36 hours, littered with countless smoke breaks, fueled on 12 double espressos, and my very own coca-cola pyramid.  Promised myself I wouldn’t pull all-nighters this week after spending the last 3 weeks working non-stop at a minimum of 96 hours per week.  Yikes!!! But it was TOTALLY WORTH the effort as the last of the business requirements are tricking in to help complete and tie together the design of an inordinate number of jigsaw pieces created over the last 6 months.  May not be pretty but it definitely a super model when compared to my first wife.

what time is it? it’s beer:30!

•November 12, 2007 • Leave a Comment

My boss (Darren) always jokes around that the time is beer:30, that is it’s always time for a beer. Even when it’s clearly 10:30 in the morning. ;-) So, goofing around on my macbook (instead of working) I came up with the Darren O’Clock that much more accurate than just always saying it’s beer:30. It of course always says beer, followed by the current minutes of the hour. Now whether this type of resolution really matters is up for debate, but i’m pretty sure after a few beers it really doesn’t (think beer goggles). It even handles O’clock correctly, and if there is a leading digit in the minute (e.g. 2:03 pm), it will even say it properly as beer-Oh-3. Oh yeah, as for whether it’s am or pm, there’s no real point in say ing that, as it’s always time for beer according to my boss. ;-)

—-[snip]——————————————————————————————–

#!/bin/bash
# author : donald ray moore jr.
# revision: 0.02
# date : 10/31/2007
# purpose : to announce the time for beer:thirty
say “the time is beer ” + $(date +”%M” | sed -e ‘s/^0/O/;s/O0/O Clock/’)

—-[snip]——————————————————————————————–

yes the ratio of comments to code is out of wack, that’s just my style. As for it being at revision 0.02, had to adjust the sed expression a bit to include the o’clock and Oh-[0-9].

Update 11-12-07 1:44pm: It would seem that WordPress doesn’t allow you to upload audio files as it’s classified as a “security risk”. This just makes baby jesus cry. )-;

dental implants…the pain..

•September 20, 2007 • Leave a Comment

It’s been 10 years since I had felt any real dental pain due to losing my teeth in an accident. The emotional pain was much more trying, relearning how to eat, talking and not drooling all over my self. Overcoming each obstacle became a personal milestone. Without any teeth, not only does eating make you look funny, it also makes you the center of attention in public. It’s can be humiliating and degrading.

The most important milestone I overcame is the humiliation. Right to the point that I could really careless what you think of me appearance wise. Besides, there are other aspects to my appearance that people often feel the need to share with me how they feel embarrassed for me. Oh really??? Great…you go right ahead and do just that.

You are more likely to notice my forked tongue than the absence of embedded calcium deposits in my mouth. There are people still to this day that are amazed to discover I don’t have any teeth. Of course, my nine inches (calm down ladies) of red goatee goodness helps conceal this fact.

Let’s get back to the pain…I’m definitely no stranger to pain. I’ve probably experienced some of the most horrifying pain known to man, willingly and unwillingly. The only difference between the two is the former you think to yourself, my god what the fuck was I thinking? It is that conscience awareness that seems to magnify the intensity of the pain a million times. Got nobody to blame, or complain to…you think to yourself ‘I chose to do this, suck it up, deal with it…move on’. Yeah right…whine…someone baby me please! ;-)

Last Tuesday, 09/18/2007, I took the plunge and had 10 dental implants installed. Four posts on the bottom jaw, six on the upper jaw. The entire procedure was estimated to take 4 long grueling hours while under a twilight sedation. Not completely knocked out, and very unlike a dissociative like Special K. Just a big dreamy state, where you really don’t care what’s going on, but are still able to respond to the dentist if the need arises. No problem, right? NOT!

I woke up 15 minutes into the procedure. Not just any kind of awake, I’m like super wide awake (which is very unusual for me consider I have to take a pill to keep my ass awake, but that’s another post for another time). The dentist wanted to abort the procedure, but continued at my insistence, as no pain was being experienced.

The absence of pain, but the awareness of the dentist drilling into my jaw was rather intriguing. It was no different than drilling into a block of wood. Drill a little bit, pull out, brush away the cruft then repeat until the drill bit no longer feels any resistance but breaks thru the other side. In this case, the wood is my jaw, and the other side is my sinus cavity. Wow, a spinning spiral shaped metal rod is rotating in my sinus cavity, wow…that’s a thought. Then a implant, which oddly resembles a thumb screw for the back of server cases, is twisted by hand into the freshly created hole, followed by a 5 to 7 good twists from a ratchet to ensure it’s securely placed. Now repeat that 9 more times. The only bad part was I kept wanting to gag because of the bone fragments sitting on the back of my throat.

Amazingly, everything went very smoothly. The entire procedure took about 30 minutes. Sometimes when screwing in implants, they break or worse yet , fracture your jaw. I was feeling pretty good after the surgery. My good buddy from work, Travis swung by and picked me up. Half-way back to the office, is when the pain started in. Oh screw this, I’m going home.

It felt like someone shoved a football up my nose. As the novacaine started to wear off, the burning sensation spread to my eyes and my ears. It was completely unbearable. No problem, call the dentist and get different pain meds I thought. Great idea! Except for the fact I sounded like Corky and could barely talk. Luckily for me, they knew who was calling and why, and took care of me.

Next week I’ll go back in for my first check-up. They’ll x-ray me, make sure there are no fractures, and that the implants are securely in place and not loose. If all goes well, they will pop my dentures in! Lemme tell ya, in the last 10 years is when I really began to notice how important nice looking teeth makes for a person’s face. I convinced myself that I didn’t need them, but you know what…I don’t, but damnit, I want to be able to have a nice smile.

I have to say hats off to a couple of supportive folks, Travis Thomsen. He made sure I got to and from the dentist. Charnell Pugsley for being supportive emotionally and in sensibility (she strongly discourages me from getting another bike). :)

Plus all my co-workers at the Beach. Thanks guys you r0x0r.

 
Follow

Get every new post delivered to your Inbox.