Comments Back

Well it looks like the issues with MySQL 4.03 aren’t going to resolved anytime soon, and it was messing up other applications anytime a variant of SELECT DISTINCT was used so I went ahead and rolled the installation back to 4.02. So things should be working fine now; if you see any bugs drop me an email or something. I’m getting ready to put some new summer-themed pictures up, so keep your dials locked.

Postiecon

“So, PostieCon (a conference sponsored by PayPerPost) was among the most controversial things I’ve ever done. People really hated that I was speaking there. I got constant crap from my friends and foes alike because of my decision to speak there. But, it turned out they didn’t have enough attendees so they postponed it to November.” — Robert Scoble

Smart Quotes in PHP

One of the true joys I find in reading different websites is when the author of whatever text you see has taken the time to make his text typographically pleasing to the eye through the use of proper typographical elements. CSS has enabled designers to shape text on the web in ways that allow for far greater control over presentation than the creators of HTML ever envisioned. However, I see many sites where it’s obvious that great pain has been put into the layout and presentation of the text, but there are still things like single and double prime marks being used instead of true quotes or apostrophes. Part of the reason for this is it’s a pain to enter the proper entities in when you type, especially if the entry is being added through a normal text box like most blogging software use. While I’m not going to go start a society (more) I still have written a small function in PHP that will hopefully make the world a better place, one curly quote at a time :). Thanks to my dad, Mark Pilgrim for inspiration and the code that got me started, and Barrett for help.

A little background: This whole thing started a few hours ago when I was writing a paper and when I looked back to proofread I saw that there were a number of occurrences of words like it’s, where writing out the HTML entities had become so ingrained in me from various situations where I hand code that it was now translating into my ‘normal’ typing. At that moment I immediately thought of ten other reasons why it’s probably better for the content to be entered into the database as a single or double prime and then translated to its proper character on display. Most of all, it’s just easier, and the free flow of ideas into your writing is not impeded in any way. My mind also went back to an entry I read on Dive Into Mark early last month which addressed a similar issue, but from looking at the code I saw no easy way I could drop that into my site. And thus this very generic function was born. It can be dropped into any PHP application anytime you want to make some text display worthy. Without further ado: Update: fixed a display issue, and a small bug.

Continue reading Smart Quotes in PHP

ReadWriteWeb covers the WordPress.com / Federated Media deal which will give high-end bloggers access to run advertising from FM, which is significantly higher quality than alternatives like Google Adsense, which has been declining in quality and is no longer a great choice for bloggers. Proud to be part of the empowerment of the Independent Web, which is the dark matter of the internet.

“Apple Lossless, also known as ALAC, is a lossless audio codec Apple developed some time ago for digital music. The codec compresses music files anywhere from 40-60 percent of their original size with no discernible loss in audio quality or fidelity.” — Apples ALAC codec is now open source. About a year and a half ago I started re-ripping all my music in ALAC, it’s fantastic, especially now that iTunes can down-convert when syncing to iPhones / iPods.