#Development


Separate Pings/Trackbacks from Total Comment Count in WordPress

After tak­ing a look at some search results and at Matt Martz’ arti­cle, Sep­a­rat­ing Pings from Com­ments in Word­Press 2.7, I still had some issues with par­tic­u­larly the com­ment count. There were also a prob­lem with how the func­tions I have added/modified are being car­ried across in my tem­plates (but prob­a­bly are mostly in the scope of this Blue­print theme). The files that we’re mostly going to deal with are these ones: comments.php, functions.php and single.php.

Any­ways, I just want to note here how I took care of them and what I ended up with.

Con­tinue reading →

Resize to a Specific Element’s Dimensions

Here’s a snip­pet to resize a back­ground image to the dimen­sions of an ele­ment. In this case, #bkgIm­age.

var resizeBkg = function() { 
    var h = self.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; 
    var w = self.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; 
    var e = document.getElementById('bkgImage'); 
    if (w > h) { 
        e.width = w; 
        e.height = w; 
    } else { 
        e.height = h; 
        e.width = h; 
    } 
} 

Obama iPhone and iPod Touch App

Woah. As if hav­ing the cre­ative likes of Obey Giant (Shep­ard Fairey), ISO50 (Scott Hansen), and Sarah Sil­ver­man weren’t enough, a cou­ple of iPhoneDe­v­Camp alumni vol­un­teered to cre­ate an iPhone and iPod Touch appli­ca­tion for Barack Obama.

You’ll have instant access to Barack’s posi­tions on impor­tant issues, as well as local and national cam­paign news as it hap­pens. Pho­tos and videos from the cam­paign trail are all here, too.

  • Call Friends: A great vol­un­teer­ing tool that lets you make a dif­fer­ence any time you want by talk­ing to peo­ple you already know. Your con­tacts are pri­or­i­tized by key bat­tle­ground states, and you can make calls and orga­nize results all in one place.
  • Call Stats: See nation­wide Obama ’08 Call Friends totals and find out how your call totals com­pare to lead­ing callers.
  • Get Involved: Do more. Find and con­tact your local Obama for Amer­ica HQ.
  • Receive Updates: Receive the lat­est news and announce­ments via text mes­sages or email.
  • News: Browse com­plete cov­er­age of national and local cam­paign news.
  • Local Events: Find local events, share by email and get maps and directions.
  • Media: Browse videos and pho­tos from the campaign
  • Issues: Get clear facts about Barack Obama and Joe Biden’s plan for essen­tial issues fac­ing Americans.

I won­der how the McCain camp will fol­low up on this. For some rea­son, every time I asso­ciate John McCain and the web, I seem to refer to Mike David­son pun­ish­ing McCain’s web team for hot link­ing images on John McCain’s MySpace page. Clas­sic.

Any­ways, enough of the rem­i­nisc­ing. I com­mend the iPhoneDe­v­Camp alumni amongst the other 4 who vol­un­teered their time to the project. It truly gives some boost and good press to the iPhone devel­op­ment plat­form and its every­day appli­ca­tion; whether it be check­ing your health, to learn­ing why to vote for a pres­i­den­tial candidate.

The app is avail­able at http://my.barackobama.com/page/content/iphone

Adobe Creative Suite 4 — Launch Broadcast

Since writ­ing about the Adobe CS4 live web broad­cast a cou­ple of days ago, I was for­tu­nate enough to finally view it. Enjoy!

You may view the video at a higher res­o­lu­tion via http://tv.adobe.com/#vi+f1556v1715. You may also find other related videos on that page with regards to CS4. The ones I am inter­ested in see­ing would prob­a­bly be the following:

All I can say is that this is going to be one very nice Suite, and should be fun to play/work with.