March 2008


I always hated writing big queries in php by concatenating strings. Its very ugly and can get hard to follow with quotes and double quotes. Heredoc to the rescue. If you’re unfamiliar with heredoc, its basically a syntax with php (and some other perl based languages) to type blocks of text without having to escape characters. This can also be useful when writting our big multi join/union/where/group/having/order by query. Here’s how:

$sql=<<<EOD
select *
from pages
where pagename='$pn'
EOD;

You have to be very cautious though with spacing. Heredoc does not like spaces on the lines with the opening and closing identifiers (EOD in this case), however everything in between can be spaced to suit your fancy. Give it a shot!

Thanks for the escape key contributions as well as catching and reporting other bugs.   To the best of my knowledge I have those fixed and updated the documentation(the rounded corner example as well).  Although these weren’t crucial fixes still may want to grab the latest.

PenguinI have to admit, I’ve tried a few different distros of linux lately, but none compare to Ubuntu. It is borderline capable of completely replacing Windows, but there are some limitations that are holding it back. You first off have to give linux in general a round of applause for its overall stability and security. You also have to admit the package managers and update managers like the ones found in Ubuntu are also far superior to any other operating system. There is a package for about anything you want to do with a computer, just check the box and click install. Brilliant! But they still seem to be skipping the most important aspects of today’s users.

User Interface and Multiple Monitors/Video Cards

I know the last couple releases have attempted to address these issues, and at the same time some of these issues may be more gnome related than Ubuntu related. These issue’s won’t stop me from using Ubuntu, I can work around most of these issues myself, but for the average joe, they will be lost, and more so dissapointed they reformatted their Windows machine with Linux. Many people and many businesses these days use multiple monitors. Non-tech related fields are falling into this trend quickly. This is a weak point with Ubuntu. Multiple monitors has improved dramatically, but multiple video cards is still a nightmare. I have to admit though Ubuntu did automatically find the nVidia driver, which was very convenient. Finally, the user interface in my opinion is not suitable for commercial use or the general public. It is too dark and the window chrome is too thick(plus its brown…). Most of this can be changed, but first impression means a lot!

I have to admit I would love to see the day Linux was the #1 Operating System, while still maintaining its strength, stability, and community support. I think the day is near that it becomes a legitimate competitor and a house hold name even for the average Joe.

TownNetWorks.comI finally put together my own little gig for web development, TownNetWorks.com.  I will be available for small to medium size websites.  If you or anyone you know is interested please contact me via the contact for on that site.  I would take on larger sites, but this isn’t my 8-5 job, more like my 7-12+ job.  I look forward to hearing from you!

We’ve been waiting on this for quite some time.  Skype for linux is now available with video! Check it out!

jQuery Impromptu is ready.  I made a few minor fixes mentioned in the comments:

  • like adding javascript:; to the iframe
  • it now properly returns the correct jquery object
  • iframe is now an option
  • I added a close button(hence another line of css)

Get it here!