Subscribe to RSS Feed

Archive for the 'Programming' category

Concatenating PDFs with PHP on the fly

One of my projects I was working on required PDFs to be concatenated/built on the fly from a stock set of 20 PDFs. Based on questionnaire answers, any 4 of the 20 + a core PDF would be concatenated together and provided for either email or download. The first solution I saw was just to [...]

Read the article

Code Snippets: Edit hosts file in Mac OS X 10.5 Leopard

I do a lot of development in Leopard. Typically for most projects there is a sandbox set up to mirror the production server. I’ve found the easiest way and best practice to work on the sandbox is to change the IP to forward to the production domain. What you do is open Terminal, which is [...]

Read the article

Code Snippets: Add comma’s to a string

Pretty commonly I’ll need to display a string of text that needs to be comma delineated using PHP.  This is the easiest way I have found to accomplish this. <?php $string = “test test2 test3 test4 test5 “; echo substr(str_replace(” “, “, “, $string), 0, -2); //outputs test, test2, test3, test4, test5 ?> Make sure [...]

Read the article

Happy Halloween

I get into work this morning and I’m greeted by a fancy textmate Halloween easter egg. I upgraded first as I was prompted too. Pretty funny though. In other news Hawk and Ananth drew me into one of their cartoons over at Applegeeks. Its funny and yes I do have a fudgem’s costume. Basically its [...]

Read the article