In her article “Mobile UI performance considerations,” Estelle Weyl addresses memory and battery considerations when developing web applications for mobile devices. From embedding CSS and JavaScript into your HTML file (GASP!!!) on first load (and storing the code using localStorage), to minding the DOM and what you CAN’T see in the viewport of a mobile phone, this article is full of great ideas. A must read.
“When can I use…”: a CSS compatibility reference
Ever wonder when you can use the CSS rule inline-block, or PNG transparency, and what browsers supported? http://caniuse.com/ has a cool list of these and other rules!
Lesson learned: modifying your permalink structure WILL mess up your traffic data
A small change made to my site’s permalink structure spells DOOM (well, not really, but was pretty annoying =0 ).
WordPress: how to automatically convert custom fields to post tags
Convert your post’s custom fields into tags automatically in WordPress with this nifty script!!!
Testing Twitterfeed…
I’m letting Twitterfeed.com do the leg work… let’s see how it works =)
Web Dev tool of the week: JSFiddle.net
JSFliddle.net is a dream come true: a simple, free testing environment for your HTML, JavaScript and CSS. Perfect for sharing live examples of your code. Highly recommended!
Extend RSS2: a plugin to enhance your WordPress default RSS2 feed
Add thumbnails and custom-field data to your RSS2 feed!
New WordPress plugins available!
As part of my job, I have developed a few plugins to help in the development of sites, so more people can benefit from what was produced during hours and hours of development. Hopefully you’ll find them useful too. Here are a few of them!
How to add the excerpt box for pages in WordPress
Here’s how to enable the “excerpt” box for your WordPress pages.
WordPress: How to run PHP scripts only when logged in as admin
Here’s a new tiny function that will help you run PHP code in WordPress only when you (or other admin-level users) are logged in.
Lesson learned: You can’t access DOM elements within an external iFrame
That’s right, you CAN’T!
How to use CSS sprites to create custom bullets in HTML
The list-image CSS property can get you far when you want to create custom bullets in HTML, but what about performance? CSS Sprites are a great way to reduce the amount of images you need to use to customize your lists.
PHP – Safely serialize and unserialze arrays
Serializing arrays in PHP is a great way to format their content before storing it in a database. However, if the serialized content has certain characters (such as “;” or “:”) the resulting string won’t be read correctly by the unserialize() function, which is a huge bummer. So, here’s a workaround. http://davidwalsh.name/php-serialize-unserialize-issues
My response to Stackoverflow’s ““invalid label” Firebug error with jQuery getJSON” question
“Invalid label” Firebug error with jQuery getJSON
Smashing Magazine – jQuery Plugin Checklist: Should You Use That jQuery Plug-In?
Do you really need that plug-in? Maybe not, maybe yes…
WordPress: How to display all posts in one page
Although displaying all your latest posts in Wordpress may seem like a no-brainer (after all, the default home page already displays your “Latest Posts”), doing so is kind of tricky if you are trying to do it in on a custom page.
Here’s a little code that can help you accomplish that.
Sample content for WordPress theme development
A big part of the Wordpress theme development process is to asses what each possible HTML element will look like (images, tables, lists, paragraphs, etc). WPCandy.com has the right sample content for that.
Detect IE6 with PHP
Let’s say you want to server-side detect whether a user’s browser is the dreaded IE6 using PHP (instead of on the client side, which is usually done with conditional comments). Here’s how.
How to automatically add tags to WordPress posts
In WordPress, if you need to automatically add tags to a post via a PHP script, the best way to do it is via the wp_set_object_terms() function. There is no handy “wp_insert_tag()” function, or something like that, so look no further.
How to automatically login a user into WordPress
When developing for WordPress, sometimes you may need to create a PHP script that will automatically login a user so you can enable user functions. The WorpPress function wp_singon() is the perfect solution.