Why I love Gmail

I manage 14 different email addresses through one single Gmail account. Any idea how many spam emails I get to those addresses in a 30-day period?

SimpleModal v1.1 Released

There are three new options and the handling of data has been revamped. For more details, including documentation, demos, tests and downloads, visit the project page. I’m finishing up a WordPress plugin based on SimpleModal, which should be ready soon. The Contact link above is powered by the new WordPress plugin.

jQuery bug – Ajax ‘no-cache’ parameter

In jQuery 1.2.1, when using the $.ajax function with cache: false, jQuery appends a parameter with the current timestamp to the URL. This parameter makes the URL unique and therefore prevents subsequent request from being retrieved from the browser cache. However, the code that adds this ‘no-cache’ parameter does not check to see if it […]

Comparison of JavaScript compression methods

While creating the build system for our Java web application, I set out to do some benchmarking on some of the different JavaScript compression methods. When our project builds, I configured our Ant build script to create three different version of our JavaScript files; full source, minified (comments and whitespace removed), and packed (compressed). I […]

Struts 2 bug – s:submit tag type=button rendering

In Struts 2.0.11, the s:submit tag with type=button does not render properly. While working on a project using Struts 2, I was attempting to create a HTML button that looked something like: <button type="button" class="button positive save"> <img src="/images/tick.png" alt="Save"> Save </button> I followed the Struts 2 Tag Reference for the submit tag and tried […]

Conditional page/post navigation links in WordPress (redux)

After more helpful input, I’ve decided to update my original solution. Instead of overriding four WordPress functions and adding two new ones in my functions.php file, I have slimmed it down to just one: /** * If more than one page exists, return TRUE. */ function show_posts_nav() { global $wp_query; return ($wp_query->max_num_pages > 1); } […]

Conditional page/post navigation links in WordPress

Update: This post has been replaced with an updated version. While creating a new theme for this site, I added some CSS styling around the page/post navigation links. For example, in my index.php page, I have the following HTML/WordPress code: <div class='navigation'> <span class='older'><?php next_posts_link('&laquo; Older Entries') ?></span> <span class='newer'><?php previous_posts_link('Newer Entries &raquo;') ?></span> </div> […]

New site design

I finally got around to updating the theme for this site. It was quite an adventure learning about WordPress Themes and its API. The more I use WordPress, the more I like it! Thanks to my brother-in-law, Max, for helpful tips on my new logo and also to Michael Heilemann for his default WordPress theme, […]

Eric Martin