Apr 18 2008
New rules:
- Wearing a $1.99 flag pin Made in China does not make you a Patriot.
- Putting a $1.99 ribbon sticker Made in China on your car does not make you a supporter of the troops.
Apr 18 2008
Apr 17 2008
Mar 09 2008
When attempting to implement Dylan Verheul’s excellent auto-complete jQuery plugin on a project, I ran into problems due to the fact that we are using noConflict mode for jQuery by calling noConflict(); A few quick minutes poking around jquery.autocomplete.js and I had updated it to work in both noConflict and standard modes. For those of you looking to use jquery.autocomplete.js in noConflict mode, I’ve made it available for download here: jquery.autocomplete.js
UPDATE: Dylan has updated jquery.autocomplete.js to be compatible with noConflict mode. It also contains additional bug-fixes and improvements. You can download it at: http://code.google.com/p/jquery-autocomplete/source/browse/trunk/jquery.autocomplete.js
—————-
Now playing: AFX - SteppingFilter 101
via FoxyTunes
Feb 18 2008
I received the following in my Apache error_log when attempting to load the ionCube loader in my php.ini file:
This is because ionCube must be loaded before any of the Zend extensions are. So if you have the Zend extension/optimizer loaded, your php.ini should look like this to get ionCube to work:
—————-
Now playing: Tommy McCook & The Aggrovators - A Loving Melody
via FoxyTunes
Dec 21 2007
Here’s a step-by-step guide to installing a network printer in Windows XP without having to install all the additional crappy software that vendors force onto your system. Often times installing all this additional software will compromise the stability of your system, slow it down, or both. These steps will bypass the vendor’s install disk and install only the drivers.
—————-
Now playing: My Bloody Valentine - What You Want
via FoxyTunes
Dec 18 2007
These days, religion and politics seem to be one in the same. The line has been blurred so much that I sure as hell don’t see a line any more. Most issues are constantly debated in terms of the Bible, whether its abortion (”life is sacred and granted by God”) or even the war in Iraq (”end of days” anyone?). As evangelicals have hijacked the GOP, they’ve installed a religious litmus test for candidacy: only the most pious may win. And the Democrats? Don’t vote for them, they’re a bunch of godless, druggie, homosexual, Mexican lovers. The GOP evangelicals often quote Bible passages to argue their points, the most obvious which is their stance on homosexuality. “Leviticus! Leviticus!” is the only evidence they use to argue that homosexuality is sin. Well, if we’re working under the assumption that the Bible is the law of the land, what about the part regarding immigrants, another hot-ticket wedge issue pimped by the GOP? Let us consult our trusty virtual Bible to find out…
Leviticus 19.33-34: When an alien resides with you in your land, you shall not oppress the alien. The alien who resides with you shall be to you as the citizen among you; you shall love the alien as yourself, for you were aliens in the land of Egypt: I am the Lord your God.
Or, the modern translation:
Leviticus 19.33-34: When the Mexicans are living in the USA, treat them with respect. Treat them as if they are an US citizen. You used to be an illegal alien too, you know. I’m the man!
Seems pretty obvious to me. If evangelicals followed the Bible as well as they claim, they’d be all about amnesty and helping out immigrants. Instead, we see the opposite: xenophobia, hatred, and racism. And yet the pundits still wonder why the GOP is bankrupt in more ways than one.
Dec 06 2007
I ran into trouble when trying to pass a urlencode()‘ed plus sign into a web address being processed by mod_rewrite.
This $url variable gets echo()’d as a link in a page, so once it’s clicked and loaded in the browser, I then needed mod_rewrite to translate that to the actual URL, which is:
Here is the RewriteRule I was using to match:
This rule should match http://www.server.com/browsealpha/name%2Bhas%2Bplus%2Bin%2Bit/ but for some reason it wouldn’t work. After hours of frustration, I found a few threads mentioning the need to urlencode the string twice, like so:
IT WORKS!!! Apparently this is because mod_rewrite automatically decodes the urlencoded URL, so if you pass in %2B, PHP sees it as %2B0. If you double encode, mod_rewrite decodes the first one, and PHP receives the second one (which is now %2B, which is what we want).
—————-
Now playing: Autechre - 444
via FoxyTunes