Optimal Telelicious Coding From AK To CT
 

Posts Tagged ‘Uncategorized’

Finding Duplicate Lines with Regex

Monday, January 21st, 2008

If you are looking to remove duplicate lines from an alphabetized list this code will do the trick:

Find the duplicate lines

    ^(.*)(\r?\n\1)+$

Replace with a single line

    $1

Symfony - Map apps to subdomains

Friday, June 15th, 2007

Looking to load different symfony apps for various subdomains? Something like this: domain.com -> frontend dev.domain.com -> frontend_dev backend.domain.com -> backend backend.dev.domain.com -> backend_dev

Code

(more…)

Server Switch

Saturday, November 4th, 2006

Sorry about the down time. I’ve switched hosting providers and took some time to get everything back up.

Jon

IE Repeats Text In Last Float

Monday, October 16th, 2006

Are you having problems with text being duplicated at the end of one of your floated div tags? It might not really be your fault. After spending about an hour verifying that my code was in fact OK I stumbled upon an article about the IE Duplicate Characters Bug.

(more…)

How To use Cookies with RSSFeed Scanner & Azureus

Tuesday, October 10th, 2006

For those of you who use bit torrent to download various tv shows, podcasts, videocasts or any other type of periodicly updated media there is now a way to automate the process. I use azureus for my bit torrent download client and have added the RSSFeed Scanner Plugin which you can learn about how to install from zeropaid. While they certainly do a great job of telling you how to install the plugin they leave out the details of how to download from a site that requires a login. I’ll explain how this can be done with cookies.

(more…)

Photos from Switzerland

Wednesday, September 20th, 2006
Switzerland Photos

I’m starting to upload the photos from the trip. The photos you see are some of the best I took during the days of the conference. Most are taken near where I was staying and not so near the conference itself.