Mozilla's 4096 Character TextNode Limit

Ugh, I hate it when one browser works different than all the rest of them and displays some unexpected behavior. Believe it or not, no, I'm not talking about IE this time, it's Mozilla that's giving me a headache. Mozilla is the only major browser that imposes a 4096 character limit on TextNodes in its DOM structure.

> Read More
Category:

Flag Burner? Not Me

If you're visiting this site to learn more about the embattled would-be flag burner at LSU, I'm sorry to say that I'm not your guy, I just merely share a name with him. I support the young man's right to free speech, but the truth is I don't know enough about the facts of this case to make a statement one way or the other. I just know that I could never grow a beard as bushy or impressive as his. I haven't even been to Louisiana since that New Orleans visit way back in 1999, the one where the street psychic told me and my at-the-time girlfriend that we were destined for a happy marriage and many kids. Oops.

Brooklyn Botanic Garden, May 2011

Marci and I made our inaugural trip to the Brooklyn Botanic Garden as members this past Saturday, just in time to view the lilacs in full bloom.

> Read More

Testing out the Beer Cooler Sous Vide Hack

I've been wanting to try to replicate J. Kenji Lopez-Alt's now-famous Beer Cooker Sous Vide Hack for over a year now, and I finally had an opportunity last night. The results were impressive, if you consider that all it took was hot water from my sink (and a lot of time) to cook a steak.

> Read More
Category:

Using Apache's mod_rewrite for Maintaining Advanced and Classic Mobile Websites

These days it's not enough to just have a single mobile website. With fragmentation of handheld devices, operating systems, and browsers, your site's visitors have a wider range of a viewing capabilities than ever. My HTC Incredible for example, running Android 2.2, delivers a much richer browsing experience than my old BlackBerry Curve (you know the one - everyone used to have it in the pre-iPhone days - it's the one everyone was playing BrickBreaker on while riding the subway). To be truly considerate of your site's visitors, you should have a feature-rich "advanced" mobile site for advanced handhelds (iPhone, iPad, Android, etc.), and a simpler, more text-centric "classic" site for older handhelds. The challenge, then, is how to route users to the appropriate site without annoying them. This is where Apache's .htaccess and mod_rewrite come in handy.

> Read More
Category:

AMF and PHP with Drupal and Flex

At my company we're working on a project where we're using Drupal as an administrative-facing data storage and content management system, and Flex as a client-facing user interface. We knew conceptually that this should be an easy task, since we knew we can create and expose an API to Drupal via the Services module. We were initially concerned, though, that we might have some difficulty getting Flex to work smoothly with these API. Turns out though, that our fears were unfounded -- with the help of the AMFPHP module, it couldn't have been easier.

> Read More
Category:
Tags: , ,

How to Hide Drupal's "Request New Password" Tab

Sometimes your site only has one or two users (like this site!), and you have no need for the built-in Drupal "Request new password" tab on the user login block. It's really quite easy to disable this tab. All you have to do is have a custom module, and implement hook_menu_alter.

> Read More
Category:
Tags:

Accessing web services via AJAX by creating an Apache pass-through proxy on Windows

I've been working with a certain client for several years, and in that time I've built quite a few web sites for this client. Each of these sites connects to a web service that I developed and maintain. This web service delivers real-time numerical data, which the individual client sites use to populate charts and tables.

> Read More
Category:

Drupal 6 Site Build Checklist

This is my checklist for the beginning stages of building a new Drupal 6 site. Your checklist may certainly vary — this is a list of steps that I personally found myself repeating many times. This checklist assumes you have already come up with a development plan, with custom content types, custom urls, etc., having been defined.

> Read More
Category:
Tags:

Windows 7, localhost, and Drupal

I recently bought a new Windows 7 laptop. Along with all the other basic programming tools, I immediately installed Apache, PHP, and MySQL. One of the first things I wanted to do was to try to install Drupal. I spent two days fighting the white screen of death on Drupal installation, though, and I finally figured out why -- and I can blame it on Windows.

> Read More
Category:
Syndicate content