Exclamation marks appearing in HTML email
Posted by Streetdaddy™ on November 11th, 2008 filed in GeekComment now »
If you’re getting random exclamation marks appearing in the source of HTML emails being sent using PHP’s built in mail() function, then your HTML may be exceeding the maximum line length (998) specified in RFC 2822 Internet Message Format.
I found the easiest way to deal with it is to use the PHP function wordwrap(), eg.
$someHtml = wordwrap($someHtml, 996);
mail(“someone@somewhere.com”, “My subject”, $someHtml, “MIME-Version: 1.0;\nContent-type: text/html; charset=iso-8859-1;\nFrom: someone@somewhere.com\n”);
I discovered this while I was tidying up some of the email templates for a web application at my work. There’s a long list of defects perpetrated by previous contributors, and I was tearing my hair out trying to work out why the content of a random table cell refused to center. So now I have a greater appreciation for HTML email template designers, or maybe I just feel sorry for them…
mod_php5.c:22: php_apache_http.h: No such file or directory
Posted by Streetdaddy™ on July 31st, 2008 filed in GeekComment now »
Whilst it may seem nonsensical to you, the title of this post could save someone else the headaches I had, but only if that someone is trying to compile apache v1.3.x with support for php5. So there’s this old server at my work that’s just been chugging away for years (since well before I started) and supposedly nobody has been game to touch it, until I came along and decided to try and get mod_deflate working. The seemingly simple task of recompiling apache came to a grinding halt with this failure:
mod_php5.c:22: php_apache_http.h: No such file or directory
1.3.33 is almost 3 years old now, and after trawling endless mailing lists and way to many./configure attempts, I gave up for long enough to make a late afternoon coffee, read a few inspiring quotes, and kept trying… Eventually I managed to get it to compile and render PHP pages with the following:
./configure \
--activate-module=src/modules/php5<strong>/libphp5.a</strong> \
<add your switches here>
The clincher was adding the correct source file reference, as I’d previously tried ‘src/modules/php5/libmodphp5.a’, or just ‘src/modules/php5’, none of which worked. If you found this helpful please let me know, because until then this is just 5 minutes of my life wasted…
Wintery bliss on the Gold Coast points
Posted by Streetdaddy™ on July 27th, 2008 filed in SurfComment now »
After a few weeks of sub-2’ slop, it was nice to finally get a good pulse of swell, because I really needed the exercise! Good buddy Fanta was out snapping a few pics (300 to be exact!) with his new baby: a 300mm lens. Just in time for Indo…
Pimp your user experience in 3 dimensions with PicLens
Posted by Streetdaddy™ on July 23rd, 2008 filed in Geek, Web1 Comment »
I hate feeling like I’ve been living in a cave, especially when I’ve in fact been religiously working through my Google Reader list on a daily basis… Somehow PicLens has snuck under my radar (for the last 6+ months!) and just today my boss called me over with a ‘You have to see this’ sort of tone which you’re never sure is good or bad until you’ve walked the green mile to look at his screen. Thankfully what he showed me was a full-screen quasi-3-dimensional image/video browser implemented as a Firefox addon, and I was very impressed!
It seems to me that it’s 99% eye candy, but the 1% usability could grow exponentially if it gains traction with heavy web-surfers and webmasters start PicLens-enabling their own resource portals. I’m already reading up on the requirements and pondering the possibilities for a web services consumption I’m prototyping at the moment… I’ve been trying to work out what the technology is behind the app, maybe someone else can enlighten me? My first thought was Flex, but I’m not so sure now… Other sites say native code, but I’d like to know more.
Could this be the coolest Firefox addon released so far? Definitely gets my vote!
Timing is everything
Posted by Streetdaddy™ on July 14th, 2008 filed in Life, SurfComment now »
3 months ago, our ‘08 Indo jaunt was looking to good to be true: dirt-cheap airfares with Rain Man’s airline of choice, 5-star accommodation at 2-star prices and a loose itinerary made up of epic waves and happy wives/girlfriends. Since then there’s been a few unavoidable slaps in the face, but the ones that really tang would have to be 1. a local protest-lead relocation of the Rip Curl Search WCT competition from Gnaraloo to Uluwatu, the end of its waiting period coinciding with the first three days of our trip, and now 2. a bunch of drunk taiwanese fisherman have parked their illegal fishing vessel on the reef at Padang Padang:
Taiwanese fishermen run aground at Padang Padang as locals make the best of a messy situation
“It didn’t take locals long to figure out that the Taiwanese boat had been illegally fishing in Indonesian waters. When the boat ran aground (Poor navigation? Too many Arak Attacks? Captain was wearing green? No one really knows why…), the entire crew of the vessel grabbed every bit of documentation they could and booked it on the Bukit. Gone. Audi 5000. Between the fines for illegal fishing and the cost of getting the boat off the reef, they were cutting their losses.”
What next?
Update: The intrigue increases…
And I’m selfishly rubbing my hands together at:
So maybe me having a bit of a whinge about it here will have some cosmic effect on the outcome. There’s also the possibility that they’ll move the waiting period forward so it’s smack bang in the middle of my trip! Blurg…
Silverstripe - Taking Mufti day to the next level
Posted by Streetdaddy™ on July 4th, 2008 filed in GeekComment now »
I’ve starting building yet another web app using Silverstripe, an open-source PHP CMS based on an MVC-like framework called Sapphire. I find it perfect for projects that require basic content management, have barely there specs, and tight timelines. Best of all, pants are optional!
Swellnet vs Coastalwatch
Posted by Streetdaddy™ on June 26th, 2008 filed in Surf4 Comments »
One of my work buddies sent me a link to the recently released (?) Google Trends web application. I was comparing a few different sites and decided to put the two Australian surf report juggernauts, Swellnet and Coastalwatch, head-to-head. I was expecting a reasonably close race, but oh how wrong I was! Yes, the site footer does claim that Google Trends provides insights into broad search patterns. Please keep in mind that several approximations are used when computing these results, but Swellnet definitely seems to have the upper hand for unique visitors.
So, which reporting site do use the most, and why? Post a comment!
Swellnet is light on content, but fast-loading and makes it simple to get to what most watermen want: quality daily surf reports and long-term forecasts.
Coastalwatch has a lot more content and interactivity and a lot more streaming surfcams, but perhaps all of this is making it hard for users to get to what they really want? Recent addition of Prototype-driven UI enhancements could explain why they’re so far behind?
A great picture of my chunky friend from back home
Posted by Streetdaddy™ on June 13th, 2008 filed in SurfComment now »
A fellow office-bound friend back in my home state just alerted me to today’s wave of the day on Swellnet. This sleeping giant doesn’t really do its thing very often, but when it does you can be sure there’ll be more than a few surfing tragics counting their sick days and waxing up the seven-oh… I’ve lost a few boards to it over the years, as have many others!
Off to a good start
Posted by Streetdaddy™ on June 13th, 2008 filed in Geek2 Comments »
This morning I’ve been building a conceptual diagram to describe a new application development and migration process, mostly because people seem to like them, but also because the coffee seems stronger than before. Of course I’ve started with the most important ingredient , but have also made sure to identify any missing elements that could improve the process.
Did I miss anything else?
Sweet genius
Posted by Streetdaddy™ on June 12th, 2008 filed in Food1 Comment »
Working in close proximity to a good bakery is perilous indeed, and is not made any easier by the free espresso a mere progress bar away. Chocolate donuts are a clear favourite for me, and nothing ruins my morning quite like the ‘chocolate icing stuck to the bag’ debacle which seems to unfairly target the highest calibre of super-sticky-sweet-iced-donut. Yes, I’d be the first in line to growl out the inside of the paper bag, but it just not becoming of a gentleman now, is it.
So it was with great pleasure that I opened my donut this morning to find it had a few mini donut shaped jelly babies stuck in the icing to prevent the inevitable stickage! My mind boggled … was it genius I was seeing? or maybe just a bored bakers creativity gone horribly right? Either way, my faith in the world’s ingenuity has been restored…


