Schmalls » Blog » 2006

2006

Eclipse PHP IDE

I have been using PHPEclipse for quite some time. I have used the Eclipse Java debugger and was impressed with how much debugging time it saved. However, when I tried to get the debugger working in PHPEclipse, I ran into some problems. This might have something to do with using the latest version of Eclipse, but I never spent the time to figure it all out. I had some spare time today, and decided to try out the Eclipse PHP IDE.

→ Read more...

2006-12-28 23:36 · Josh Thompson · 2 Comments · 0 Linkbacks

Prototype-based programming in PHP

For those who have been doing a lot of Javascript programming, you know what prototype-based programming is all about. The basic idea is that functions can be added to classes dynamically. In Javascript functions can be added to a static class (using prototype) and it will be added to all instances of the class, or they can be added to a specific instance and only be added to that instance.

Anyway, lets get to the point. I decided to try adding this functionality to PHP. I'm not sure why its a good idea, or if it even is, but I'll let you be the judge of that.

→ Read more...

2006-11-06 21:33 · Josh Thompson · 7 Comments · 0 Linkbacks

Double Your DVD Collection

I was having a conversation with my friend the other day when he suggested that the best thing about getting married was merging the two DVD collections. This was funny by itself, until my other friend gave his counter-argument of the other obvious benefits of being married. I won't give you the exact words, because it would make it less funny for me, and I believe it will be more humorous to you if you just imagine what he said.

Anyway, the conversation didn't end here. Then I said something about my DVD collection, and he said that it may be the reason I am single, because everyone knows that women are just looking for a guy with all the right DVDs. I thought about arguing against this, but then I realized the DVD collection is a perfect scapegoat for singleness. Just blame it on the DVD collection, not your other inadequacies. So for all the single people out there, its not your fault, its your DVD collection's.

Proof That Money Is Imaginary

So I finally thought of something to write here. I'm sure a lot of people have heard the following proof that girls are evil:

First we state that girls require time and money.

Girls = Time * Money

And as we all know, time is money.

Time = Money

Therefore:

Girls = Money * Money = Money 2

And because money is the root of all evil:

Money = Evil 1/2

Therefore:

Girls = (Evil 1/2)2

And we are forced to conclude that:

Girls = Evil

Well I want to prove that money is imaginary.

We know that money is the root of all evil:

Money = Evil 1/2

And I doubt anyone would disagree that evil is negative:

Evil < 0

We know that the square root of a negative number is imaginary:

(-1)1/2 = i

And so money is imaginary:

Money = i * ( | Evil | )1/2

blog/2006/home.txt · Last modified: 2009-09-19 22:49 by Josh Thompson