Oh, I got hot sause all over my bazito!

You know what this is? It's a brain sucker. You know what it's doing? Filing its tax return

If you wish to make an apple pie from scratch, you must first invent apple pie

The Adventures of Little Ed Brave

Tell airport security your name is McCannister because you can hide anything in a cannister.

You know what? Nobody notices when this changes anyway.

There are 10 types of people in the world: Those who understand binary, and STFU

What happens in a black hole stays in a black hole

The black hole draws you inexorably inward. Time slows. You are likely to be eaten by a grue.

I'd diddle little umdidlie... if she weren't my half-sister.

Abortion prevents pedophilia. In more ways than one!
Get Firefox!
I wrote a haiku

which I was about to share,

but then I thought, "screw it."
Level 1

Notice to all users of the Holodeck:

There are safety protocols in place that cannot be deactivated without the approval of two commanding officers or the captain to protect users of the Holodeck from potential harm. However, every time the Holodeck is ever used in a nontrivial manner, no matter what the safety protocols say, the Holodeck turns into a deathtrap.

Unless you believe yourself to be adept at constructing a forcefield from your communicator and 19th century Earth tools, or you're at the very least not wearing a red shirt, you are strongly advised not to attempt to use the Holodeck until a designer comes up with a safety protocol that doesn't kill you whenever somebody looks at it funny. Even when you're not on the holodeck. Or in the same quadrant. Or time period.

In fact, if you are wearing a red shirt, Starfleet may not be the job for you


Category: Programming

Pages: << 1 2 3 4 5 6 7 8 9 10 >>

When all you have is a nail...

Permalink 05/06/08 at 07:21:34 am, by Ed, 532 words   English (US)
Categories: School, Programming

You know the old adage "When all you have is a hammer, every problem looks like a nail". Well, I'm in my stagecraft class, and we regularly have to reverse that. That is, "When all you have is a nail, every tool looks like a hammer." Which I'm sure many of us have experienced in the past, driving in a nail with the but of a screwdriver, the battery of a cordless drill, a caster, a different piece of wood, a belt sander, a router, the butt of your hand, a jigsaw, or in the rare cases when you're feeling industrious, a hammer.

Honestly, the hammer is just about the simplest tool in any shop, and we rarely use them. We just take what we have and use that instead. Why don't they just put a ball peen on every power tool they make? It'd save us the trouble of getting up and actually fetching a hammer to drive the nail in all the way so that the jigsaw doesn't jump when it hits it, or the sand belt doesn't break when it files down the nail head into nothing, or god knows what would happen when the router comes near it.

But that's not the only place I've seen it. I've seen it in programming, having been guilty of doing it myself some times as well. Most recently, for example, I have a very simple "node" object which in ones mind one already knows what it is. It's a sub-object of a parent object that needs several objects arranged in a certain way. Nodes are used everywhere in programming. In this case, in a self-balancing binary search tree I've used for a project in a class. This node has grown to contain:

  • a left and right child node (indisposable in a binary tree)
  • a parent node (also very useful)
  • a value (what's the point of having a node without data?)
  • a key (okay, self-balancing trees need something to sort by)
  • a left and right child height (I guess it's okay to cache the height so as to not recalculate it every time)
  • an article count (okay, that makes s--What!?)
  • the current article (Wait up! I'm still stuck on the last one!)
  • the IDF (Random unexplained acronyms abound!
  • and the phrase length (I give up)

It should have been so simple! It should have gone no further than the key! Maybe have a child height, but no more! Every time we needed the program to do something else with the data, I stuck it into the node as a new data value. The IDF isn't even used in the first half. In fact, it isn't even used in relation to the self balancing tree! I reuse the nodes to get away from having to create a new object to create a list of items linked by parent and child. I'm essentially using a left-right node as a left-only node and foregoing all operations supplied by the tree entirely.

Like I said, when all I have to do is sort, every tool looks like a self-balancing tree node. Yeah, that's right! I pulled it all back together! Didn't see that coming did you?

On the Linux Pill

Permalink 04/29/08 at 07:53:11 am, by Ed, 158 words   English (US)
Categories: Programming

Well, I'm on Ubuntu now. It crashes sometimes when I am running the preinstalled Firefox, which I suppose is allowable, since it's a beta of Firefox 3. The most annoying part currently is that it seemingly randomly resets my visual effects preferences from "extra" to "none".

I've already gotten over several large humps, such as getting DVDs to play on my system, getting DVDs to play on my system without severe slowdown, getting .NET projects with OpenGL to run on my system, and getting Flash to play in Firefox. I haven't quite gotten to the point of getting Flash to play with sound yet, nor have I gotten to the point where my video card is satisfying. It's still glitchy and flickery with either video driver, but the proprietary one does seem better than the open one as far as the OpenGL projects go.

Anyway, I haven't booted into Windows for four days now, so things are looking good!

Linux is finally ready for me

Permalink 04/16/08 at 08:05:03 pm, by Ed, 289 words   English (US)
Categories: Programming

With the latest release of Ubuntu, planned for April 24th, it should finally be deemed not only ready for the masses and therefore be installed on any computer as a free alternative for windows, but also ready for me. I've tried on too numerous occasions to actually get Ubuntu, Kubuntu, Xubuntu, Knoppix, and straight Debian to work on my system, none of which have worked.

This is due to the fact that the developers choose not to include drivers for my graphics card (or any ATI card... which is about half of the market) in the distribution, which means somebody like me would have to figure out how to set that up myself. This is not easy. There have been guides I've followed, troubleshooters I've read over, and drastic measures I've taken, but nothing has ever, ever gotten Ubuntu working on my Radeon x800 card.

However, the release on the 24th is aimed at "finally" gearing itself toward mass user installation, that is, anybody who has installed Windows should be able to do the same with this setup, and it should work. It will even install drivers for any hardware it can find drivers for, even if they're "proprietary" and not "free as in free speech" despite the fact that they're all still "free as in beer", and here's the necessary bit: automatically.

So finally, some group of OSS developers is smart enough to care more about usability than the philosophy of open source, and this may be a big step in the right direction. Coupled with Vista's massive failure, Linux is looking much better than it ever has.

Hopefully they don't exclude CS majors from their automatic-happy setup because we "should know how" to do it our selves.

Permalink 04/01/08 at 08:01:49 am, by Ed, 57 words   English (US)
Categories: General, Media, Programming

Corn on the cob

I just found myself testing to see if that link worked in Internet Explorer. Now I feel dirty. Also, if you care to be rickrolled today, just click on any "featured video" on YouTube. A little April Fools prank I suppose. I'm far too high and mighty to carry out any of that.


Permalink 03/27/08 at 07:15:24 pm, by Ed, 248 words   English (US)
Categories: General, Programming

In a recent purchase from an audio store, I placed an order for an 1/8" mono audio cable and two 1/8" to 1/4" adapters. Specifically, I ordered:

  • 1x 3' Mono 1/8" - 1/8" Cable
  • 2x Mono 1/8" F - 1/4" Male Adapter

With these, obviously, I could make either an 1/8"-1/8" connection, with the cord itself:

Or an 1/8" to 1/4" with an adapter:

Or even a 1/4" to 1/4" with two adapters:

Unfortunately, they were apparently all out of 3' mono 1/8" to 1/8" cords, so they just gave me the best they could. That is to say, they gave me

  • 1x 3' mono 1/4" to 1/4" cable
  • 2x 1/4" to 1/8" adapters

Plus the other two adapters I had also ordered.

So in the end, I actually can do what I wanted to, that is, go from 1/4" to 1/4". It's just a bit round-a-bout:

That is to say, 1/4" - 1/8" - 1/4" - 1/4" - 1/8" - 1/4"

Of course, the whole point of this post is not that they sent me laughably numerous adapters, but the fact that I was able to use the same image and draw it horizontally reversed for the adapters (at least, if you're using firefox).

<< 1 2 3 4 5 6 7 8 9 10 >>