Hi, I'm Pete Karl. I love semicolons, bulleted lists, lines, boxes, and arrows — I make recipes for the Web.

Articles
Latest

Guide to writing smooth drag & drop Javascript (from scratch): Part I

May 2010

Do you really want to limit your JavaScript repertoire to what you can find in the jQuery plugin library? I'm going to explore (with code examples & practical knowledge) the world of JavaScript drag & drop, and expand what you're capable of. Let's build something completely awesome. From scratch.

see the full post »
Recent

Connect to the Foursquare API via OAuth, Python

Apr 2010

Everyone's talking about Foursquare, and everyone at my office is flipping obsessed. I chose to participate in the nerdiest way possible I guess. The following post will break down (and even explain, kinda) a connection to Foursquare's API using OAuth (and Python).

see the full post »

Updating a LinkedIn Status with a PUT request (using LinkedIn Profile API, Django, Python)

Mar 2010

As part of a recent project, we were asked to set up a system that allowed folks to authenticate using their LinkedIn credentials. We used LinkedIn's Oauth Authentication API, and plugged it into Django's built-in user admin using django-socialauth. I'm writing this short guide because the Internet seems woefully disorganized & underinformed on this topic.

see the full post »

Prevent content copying nicely with a friendly 'no copy' script

Jan 2010

It's miserable. There isn't any way to slice it. Hobbling browsers to keep people from copying your precious content is lame. During my tenure at GateHouse Media (newspaper company), I was asked to create & implement a script that would stop people from copying the content from our articles. "It's ludicrous", I said. If they're driven enough, people will find a way. Why mock them further?

see the full post »

Custom tabbed navigation with coda-slider 2.0

Jan 2010

Believe it or not, this was kind of a pain in the butt. Just enough so that I'm going to belt out a quick blog post about it. It comes down to changing a single line of code in the end, but there are some gotchas I'll share w/you along the way.

see the full post »

Generate Date & Time picking HTML with PHP

Sep 2009

Here's some PHP that generates date & time-picking drop-down menus.

Besides providing someone with a quick HTML-only solution to date/time picking, you can see how I generated the dates using PHP's mktime() and date() methods.

see the full post »
Tweets
spacer follow me
Recent

RT @khoi: Research confirms the totally obvious: homophobia is just repressed homosexuality. t.co/tultKacF

posted Sat, 28 Apr 2012 13:28:55 +0000

RT @newsyc150: Django is now (officially) on GitHub https://t.co/pTbqiTgk (t.co/aDm1fa5Q) #trending

posted Sat, 28 Apr 2012 13:28:32 +0000

RT @nicksergeant: Today is Popcorn.js day. t.co/XUTJLKru

posted Fri, 27 Apr 2012 12:22:01 +0000

me, this morning: t.co/rQeLYs1V

posted Fri, 27 Apr 2012 12:11:31 +0000

RT @Jack_Franklin: I bloody love @gruntjs

posted Fri, 27 Apr 2012 11:23:15 +0000

RT @Pv: "It's a sh*tshow, until it isn't." - wise words by @hnshah on early stage startups

posted Thu, 26 Apr 2012 14:10:46 +0000

Added a few more tracks to Barney Rubstep (my dubstep playlist) t.co/IUPnZoou

posted Wed, 25 Apr 2012 21:43:47 +0000

Renting some equipment from @lensrentals. It's a pleasure, as always. Fair prices, awesome care with shipping & expectations.

posted Wed, 25 Apr 2012 17:04:38 +0000

RT @beltzner: Comparison between TOS for Google Drive: t.co/Qe72oOyr (Google owns your stuff) & DropBox: https://t.co/dZqNbOR ...

posted Wed, 25 Apr 2012 10:35:35 +0000

I like the idea of @path_to, but have to wait for their CDN issues to clear up before I can have a looksie. t.co/RPPrpcx2

posted Tue, 24 Apr 2012 17:29:13 +0000

RT @google: Introducing Google Driveโ€”a place where you can create, share, collaborate & keep all of your stuff: t.co/dQ8ISTUF

posted Tue, 24 Apr 2012 16:43:58 +0000

Does anyone out there (in Boston) have a D700 I could borrow this weekend? I'd be ever so appreciative!

posted Mon, 23 Apr 2012 20:32:13 +0000

RT @ajdant: Miso made the news! Ta to

@flowingdata t.co/B63EAfSu

@SarahMarshall3 t.co/vylnxajy

@visualisingdata http: ...

posted Mon, 23 Apr 2012 18:31:30 +0000
Comments
Recent
I LOVE YOU!!!!!!!!!!
posted by Owen
go to comment »
Excelente!!!
posted by Alejandro
go to comment »
Excellent, thank you for this script. I do not want to stop people from using the Right Click for legitimate reasons, I just want to make it more difficult for low-down scrapers from taking the Home Page content of my high ranking sites and plastering it all over the web, rendering my unique content as just one in 50, and damaging my rankings :( Very much appreciated
posted by neil
go to comment »
Thank you soooo much!
posted by Aaron Hall
go to comment »
That's a simple and neat way of doing it.
posted by vidya
go to comment »
bravo! just used it and saved myself some bother. thanks
posted by CommentLuv
go to comment »
I love you, dude!
posted by @ladytellur
go to comment »
I was wondering if anybody knew how to change this from sliding left/right to top/bottom?
posted by Gary
go to comment »
heyyy!! thanks again! I just found the solutions for the highlighting issue. I had to go to coda-slider-2.0.css and change .coda-nav ul li a.current { background: #39c } to p.coda-nav a.current { background: #39c } thanks!
posted by Patricia
go to comment »
Great write-up on using the Yahoo Weather feed. Worked like a champ. Thanks!
posted by @markcoppock
go to comment »
Readin’
Recent (via Instapaper)
spacer Easel JS: A Javascript Library for Working with the HTML5 Canvas Element.
spacer Google Font Directory
spacer Delegation vs Inheritance in JavaScript | JavaScript, JavaScript
spacer Rosenfeld Media - A dash of agile, a dash of peer review: How we evaluate book proposals
spacer Beating the Averages
spacer Automatic client-side form validation in django - Tabbed Thinking
spacer Coding for the Mobile Web
spacer ot.lk - Search and Register - Domainr
spacer Typographic Map of Boston Poster from Zazzle.com
spacer How RequestContext works and why it's awesome. (django 1.2.1) - >>> import awesome
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.