A blog probably of interest only to nerds by John Morton.


Auto­mate dai­ly data­base back­ups with crontab and SFTP and be the mas­ter your domain.

I recent­ly worked on a site which saved data in it’s local data­base which need­ed to be col­lect­ed and sent each day to a remote serv­er via SFTP for analy­sis. Need­less to say, I didn’t want to man­u­al­ly do this process every day, but I had nev­er ful­ly explored cron jobs, so I had to teach myself about cron jobs while I fig­ured out the prob­lem at hand. Here’s how I end­ed up automat­ing… + read on


    Google Ana­lyt­ics, Ghostery, and Event Tracking

    At the time I write this post, Google Ana­lyt­ics has a new ver­sion in beta called Uni­ver­sal Ana­lyt­ics”. It’s basi­cal­ly Google Ana­lyt­ics ver­sion 3. This means that code you may have relied on dur­ing the ver­sion 2 of Google ana­lyt­ics may no longer work. Google sug­gests that all new projects moved to ver­sion 3 now. It does offer real time” ana­lyt­ics, so you can see who is on your site at that very moment… + read on


      Use a cook­ie to iter­ate between vis­its with PHP.

      Here’s a small code snip­pet that I use to incre­ment a val­ue between vis­its using a PHP cook­ie. I use it, for exam­ple, when I have 3 dif­fer­ent images that could go on a page, and I want to serve up the next one in the sequence on sub­se­quent vis­its to the page. I just use the “$num” where appro­pri­ate. You can edit the 2’ in line 14 to change the wrap around val­ue… + read on


        MAMP and Nav­i­cat and Char­ac­ter Set Hell.

        I’ve used Nav­i­cat for years. I’ve used MAMP Pro for years. Both tools are must-haves as far as I’m con­cerned, but I had been hav­ing prob­lems with spe­cial char­ac­ters being cor­rupt­ed for near­ly 6 months. Every curly quote, m‑dash or umlaut was tor­tur­ous. Briefly, the prob­lem was that those spe­cial char­ac­ters (like curly quotes) would be changed to ques­tion marks in my data­base after I had migrat­ed it to or from my local devel­op­ment… + read on


        Auto Print an HTML Page

        I recent­ly worked on a project for a client who want­ed to allow a user to view and print a num­ber of recipes direct­ly from a Flash ban­ner. There were all the oth­er ways of inter­act­ing with the recipes as well, like email­ing, shar­ing on Face­book, and shar­ing on Twit­ter. (I don’t go into those oth­er thing in this post, but you can find me talk­ing about how to do things like that else­where… + read on


          Untan­gling MX: Set­ting up DNS records for a web site with dif­fer­ent mail server.

          I recent­ly had to set up an MX record for a client and although I’ve set them up before, it sud­den­ly made sense to me in a way that it hadn’t before. Per­haps my sto­ry will help some­one else have a sim­i­lar epiphany. Basic name serv­er set up. My client had their site and their mail all han­dled by the same serv­ing com­pa­ny. This meant their name serv­er records were basic. There were … + read on


            A Quick Way To Pass­word Pro­tect a Web Page.

            There are a vari­ety of ways to pass­word pro­tect pages online. Per­haps the eas­i­est is to use an .htac­cess file. The rea­son this is the eas­i­est way is because it’s built into the con­trol pan­el at many host­ing com­pa­nies. I use Dreamhost and it’s con­trol pan­el makes it auto­mat­ic. Sweet. If you don’t have that as part of your host­ing pack­age, check out this arti­cle at htm­l­lite for a walk through on do it… + read on


              The Pass­ing of Michael Jack­on and Mass Media.

              Yes­ter­day was Michael Jackson’s Memo­r­i­al ser­vice. The world mourned. Yes, the world mourned. As I watched TV with much of the world, I won­dered what we were mourn­ing. I didn’t ask that as a way of dis­parag­ing Michael’s tal­ents. I’ve been a fan of his music like you prob­a­bly have too. But the fact that I can even say that you were prob­a­bly a fan of his music is what I think we’re mourn­ing… + read on


                Being a Geek on Elec­tion Night

                I spent elec­tion night using tech­nol­o­gy to an extreme. Twit­ter, Face­book, Text Mes­sage, and a vari­ety of sites and wid­gets. My friend Eduar­do, aka Dudu, in Brazil and I, in New York, exchanged quite a few tweets about the night’s out­come emerged. Social tech­nol­o­gy allowed this great night to be enjoyed by a huge num­ber of peo­ple all across the globe and I’m very hap­py to have been a part of it. Dudu asked… + read on


                  Dig­i­tal Evan­ge­lists Round­table, Round 1

                  This past Thurs­day night I was lucky to be part of group of peo­ple got togeth­er to talk about the state of dig­i­tal adver­tis­ing, tech­nol­o­gy and what the future holds for mar­ket­ing in the dig­i­tal age. John Haake, from Eye­blaster, was the host at Val­Bel­la. The evening wasn’t pre­sent­ed as an Eye­blaster event though. No one talked about their tech­nol­o­gy or what they were sell­ing. It was just a dis­cus­sion amongst peo­ple who care… + read on