Journal

Archive for the 'programming' category.

Two for Web developers

Feb 26 | Posted by Jeffrey Barke | Add a Comment

I wrote a couple of posts recently that might be of interest to Web developers. The first was on canonical URLs and the second was on the Fileinfo extension for PHP.

Google, Yahoo and Microsoft now support a new value for the rel attribute of the link tag that allows one to publicly specify their preferred version of a URL. The value is "canonical" and it's simple to use: <link rel="canonical" href="http://your-site.com/preferred/url/" />. Read my post

The PHP Fileinfo extension is useful for determining the MIME types of files. The returned type is not based on a file's extension, but rather on certain byte sequences at specific positions within the file.

The first post I wrote describes how to compile and install Fileinfo on a Media Temple dedicated virtual server. The second talks about how to use Fileinfo and includes a wrapper class that might be helpful.

Lol! F**kingNDA.com, Apple!

Aug 7 | Posted by Jeffrey Barke | 1 Comment

I know Apple is quite restrictive about information, but I was a bit surprised to see how far the non-disclosure agreement (NDA) for the iPhone SDK goes: iPhone developers are legally banned from sharing programming tips, discussing code or asking questions of one another in forums or over e-mail!

From Webmonkey:

"F**KING NDA" has become a mantra on Twitter. Every time a developer posts about his or her latest run-in with the metaphorical brick wall that is Apple's NDA, the capitalized expletive is sounded off. "F**KING NDA" has become such a phenomenon, a website has sprung up at F**kingNDA.com to track the twisted tweets.

Apple's software development kit (SDK) for the iPhone is the primary set of tools for building apps for the iPhone, especially if the creations are to be included for sale in the device's App Store. The NDA, which must be agreed to before the SDK can be downloaded, prevents programmers from discussing the finer points of their code.

"There is no legal way for developers to talk about they are developing," Williams laments. "No way to post tutorials. No way to give code away. It's hard to interact with other developers and to write code without reinventing the wheel. Normally, you could post [a coding question] on Twitter and get an answer within minutes."

More info on why the iPhone NDA is no good:

NY Web Standards Meetup—Review of Google I/O

Jul 25 | Posted by Jeffrey Barke | 2 comments

Review of Google I/O at the New York Web Standards Meetup Group 24 July 2008 Notes and links from last night's Google I/O review at the New York Web Standards Meetup Group. Thanks to everyone who made it!

Note—There's a "curated" selection of Google I/O videos posted on my blog at http://jeffreybarke.net/tag/io2008/.

PowerPoint presentation

Demos/tutorials

Jeffrey Barke is senior developer and information architect at theMechanism, a multimedia firm with offices in New York, London and Durban, South Africa.

Secrets of JavaScript libraries panel discussion at SXSW

Mar 13 | Posted by Jeffrey Barke | Add a Comment

John Resig hosted a panel discussion on the "Secrets of JavaScript Libraries" yesterday. The slides are here and the original post is on John's blog at http://ejohn.org/blog/secrets-of-javascript-libraries-sxsw/.

NY Web Standards Meetup—Web Mapping Part Two: Google Maps and Beyond

Feb 22 | Posted by Jeffrey Barke | 6 comments

Notes and links from last night's presentation on web mapping and the Google Maps API to the New York Web Standards Meetup Group. Thanks to everyone who made it!

Please contact us if you'd like to present at the March or April meetup.

Listen to Part 1 of this event

Listen to Part 2 of this event

Subscribe to the podcast of the event

Feedburner podcast link

Web Mapping Part Two: Google Maps and Beyond

We'll discuss best practices, our favorite mashups, and what makes the good ones so good. We’d also like to see if anyone in the group has any experience with the Mapstraction library.

Google Maps Wrap-up

Last month we talked a little bit about web mapping in general and ran through a Google Maps tutorial. All of the materials from last month's meetup are available on our website, including a podcast of the presentation.

Any questions about developing Google Maps? Any observations?

Other Mapping APIs

Has anyone here worked with Yahoo! Maps, Live Earth, or MapQuest? If so, what do you think?

I remember that Marco was very concerned about the fact that Google is a corporation last month, but OpenLayers is an open source solution.

I briefly worked with MapQuest in 2006, prior to driving directions in Google Maps, but I found it kind of a pain and would stick with Google—their API is faster, cuter, and easier

When initially working with the the MapQuest OpenAPI, I had a lot of difficulty getting the map to render correctly. The culprit turned out to be the DOCTYPE directive! Remove it if you want your map to display at all in Firefox and correctly in IE. Not sure if this is still true.

Open Discussion

What are the best practices when doing a mashup? Is it using abstraction layers? What makes a good UI? What are people’s favorite mashups and why? What makes a good one so good?

Google has a New Year's Resolution to help produce more usable maps.

Favorite Mashups

Vincent Lim sent this one: http://www.onnyturf.com/subway/. Custom tiles. Stemless markers.

From Dominic Espinosa: Stamen Design: Oakland Crimespotting

They also released an open source interaction library called Modest Maps for displaying tile-based maps like Google's in Flash.

NYC bike maps
CrimeStat 2.0

MapCruncher

Mapstraction—Client-side abstraction layer

Search the Archives
Feeds
NYC Bunker Live Cam

O'Reilly user group program member

Add to Technorati Favorites

We endorse

Basecamp

Want to work with us yet? We’re ready when you are.