Note: This site might seem inactive… That’s because it is. Don’t worry though, I’m still coding webpages and stuff! If you’re interested, I suggest you get a translator and head over to Qiwi; or you could just check the latest site we’ve been working on: Apotheek Goethals – Debrabandere. Enjoy!
Topics: PHP
What’s wrong with my IRI scheme (13)
Every single post I add to this blog, gets a unique IRI of the form http://mathiasbynens.be/archive/yyyy/mm/post-slug. Though I used to be satisfied with that scheme — after all, it’s cruft-free — I lately began to think it doesn’t suit this site’s needs.
Alive and kickin’ (1)
Hell, I even did some work for Procurement Services. Some notes:
Read more →Formatting a number with grouped thousands (11)
In PHP, formatting a number with grouped thousands can easily peasily be done through the number_format() function. It’s a shame JavaScript doesn’t have such a function. Read more →
The basics of becoming a browser nazi (9)
On in what ways the world of web developers would be a better place if only IE wasn’t shit. Read more →
Using WordPress as a blogroll manager (11)
After blo.gs started to temporarily
disable their search feature, I got pissed. It’s been months since the last time I was able to add a site to my own feckin’ blogroll. That’s right, I was using a WP plugin to fetch my links from the rather slow blo.gs server every hour or so and cache the list locally. Read more →
Online CSS compressors (6)
Dave writes in on CSS optimization. I won’t get into the discussion on whether the optimization compression of CSS files is actually worth the effort or not; instead I’ll try to make a comparison of online tools that do this. The article I linked to (well, more the comments on it) contains some good links. I went and used my current CSS as a 10,241-byte test file. Most tools allow you to set some options, such as readability (i.e. compression rate) and whether or not long hex codes should be shortened if possible. I didn’t enable options just for the sake of it — only those I would use in a real-life situation. Read more →
WordPress plugin: Dunstan’s tag transformations (9)
It’s a well-known fact that Dunstan’s tag transformations move back and forth rock. Ever since that article was published, I’ve been using the code insertion script for erm… inserting code snippets in my posts. At first, I implemented the PHP functions by simply hacking the WordPress core files. Obviously — WP “Mingus” 1.2 didn’t have much of a plugin API. Those days are over now. Read more →
WordPress: How to enable HTML in post titles (16)
WordPress doesn’t allow you to embed HTML in your posts’s titles. In fact, this is not a WordPress problem, it’s more a lack of usability in Kubrick, the default WP theme. So, unless you’re following Anne’s A header should not be a link, stupid! logic, there is no way to embed code in your posts’s titles without breaking the title attributes of a certain amount of links, thus making your pages invalid. Read more →
XHTML content negotiation through PHP (17)
The most obvious one of the many perils of using XHTML properly, is of course the fact that IE cannot handle the application/xhtml+xml MIME type. Unless you don’t mind if your site can’t be visited through that wanna-be–browser, this means that you’ll have to serve up your XHTML pages as application/xhtml+xml where possible, but as text/html to the crappier ones. Stuff like this is called content negotiation. Read more →
Obfuscating email addresses (19)
John linked Stu Nicholls’s email address hiding method through CSS a couple of days ago, and I was amazed. Amazed by the few bytes of code wherewith you can prevent your email address from being spotted by some silly spam bot. Read more →