Marshmallow Stopwatch on Github This is the latest addition to the Marshmallows library. It’s a simple class I designed for getting a deeper analysis of user interaction timings in an app. The results are then reported to the app’s analytics. It supports “marks” (like the “lap” button on stopwatches) as well as pausing. An example…
http://attasi.com/labs/ipad/
1. In HTML5, there is no predefined hierarchy for <header>, <section> and <article> tags. Each can be nested within the other. It’s not one section per page or one article per page. Post stubs can be wrapped in <article> tags. Comments can be a <section> with each comment being an <article> with the author/date/time in ...
http://www.canvasdemos.com/
For the rebuild of the photographer Nick Fleming’s website, I was pleased to discover this treasure chest of incredible tools which have come about in recent years. The site employs many modern front-end web development techniques such as responsive design via media queries, font embedding, the HTML5 History API, HTML5 elements, and many CSS3 techniques ...
For the recent re-design of the photographer Nick Fleming’s website, I decided to make a bold decision to forgo worry about compatibility with the Ghosts of IE Past and focus on leveraging many of the modern tools of HTML5, CSS3 and other areas which many of us have been patiently window shopping but in-the-end, avoiding for ...
How To: Upload Media via URL Programmatically in WordPress Discover the useful media_sideload_image() and download_url() functions. Much abliged Konstantin!
It’s a slight drawback to the bulk post editor in WP at the moment that you may only add categoires to the selected posts but not remove them. I came across this post on the forum to which I had to make a few tweaks to get things working in WP3.2. Below is the result… ...
Credit to @Justin http://stackoverflow.com/questions/1663919/how-to-make-an-empty-anchor-tag-clickable-in-ie7
Recently, while doing the new build for www.nickfleming.com, I had a situation where I wanted to show excerpts for my related post stubs on the Tag templates but not on the Single templates. Doing an is_tag() strangely returned true for all contexts. Upon investigating I realised I was overriding the global $wp_query and with it, ...
HTML5 Saves You More Javascript Hackery with Prefetching/Prerendering
WordPress WP_Query’s get_posts() method takes a somewhat draconian approach to private posts on single and page views and strips them from the results even if you specify you want them with the query parameters. With it, goes the ability to distinguish between private pages and those which are true 404s. The snippet below overcomes this ...
This snippet disables content selection on all elements and then re-enables it for common text elements in ASIDE or ARTICLE (and a few other) contexts. If you want images to be selected, change : text; to : all; [EDIT] Mozilla blocks all children from overriding unless you use -moz-none for the value. Even so I ...
Converts MySQL Datetime formats… mysql2date( get_option(‘date_format’), $your_post->post_date ); (source: /wp-includes/functions.php)
One issue with starting in a new framework is learning and remembering all the functions implemented which are improved versions of, and therefore preferred over, their PHP built-in siblings. They are most commonly the ones associated with escaping and UTF-8, i18n, etc. This is another ongoing list for your and my general reference. In preference ...
I can’t seem to find it now, but there was a very helpful article on public/private methods for jQuery plugins – an improvement/extension over the one jQuery recommends at the bottom of http://docs.jquery.com/Plugins/Authoring. After writing a couple of plugins, I’ve re-vamped, tweaked and pimped it a bit to improve and simplify things. One key feature ...