Every now an then the need for fine-grained whitespace control pops up in the smarty forums. While Smarty itself doesn't offer whitespace control functionality, we can easily implement it ourselves.
Continue reading "Smarty - Whitespace Control"
The MacPorts update I ran a couple of weeks ago caused my git to upgrade to 1.7.10.2 - and switch from English to German. The workaround to make git speak English again while not chaning the locale of the entire system is rather trivial. But since I'm terrible at remembering that sort of stuff, documenting it might help with the next update… ☺
Continue reading "Changing The Language Of A Specific Program"
A couple of weeks ago it seemed my daily business became sorting DOMElements. This quickly became boring enough to be investigated more thoroughly. So this post sums up everything you should know about sorting DOMElements in Javascript (… using jQuery, of course).
Continue reading "Sorting - We're Doing It Wrong"
»It works!« is a state any piece of code needs to achieve. It's the goal most developers have in order to get the job done. But sadly »It works!« is more often than not, simply insufficient. It's a state that's only true for the moment. This post explains a few problems found in your average jQuery-based code.
Continue reading "jQuery - The Little Things"
For the release of Smarty 3.1.0 I refactored most of Smarty's disk access. As this optimization from September 2011 kept popping up questions on the Smarty forums, I finally felt the need to explain what I did. Although Smarty is the reason I discovered this, this post applies to PHP in general, not Smarty in particular. This post is all about laying the groundwork for you to realize two things:
- Your operations are not atomic
- Avoid accessing the hard disk unnecessarly
Continue reading "Improving Disk I/O in PHP Apps"