All posts tagged ‘tutorial’

File Under: APIs

Using the Delicious API

Who’s that with the catchy URL that’s getting all the clicks?

Why, it’s del.icio.us! No matter where you are on the “is-web-20.html Web 2.0” lash or backlash, the pervasive influence of this little bookmark aggregator can’t be denied. On the surface, it doesn’t do much more than the PHP tool I wrote back in 1999 to collect my bookmarks in a centralized location. So, you may ask (as I have asked myself repeatedly) why should I care, apart from the appe.al of spe.lli.ng ever.yth.ing like th.is? Well, the devil is in the details.

A few crucial features bear the responsibility for del.icio.us’s success. Most basically, it is a “social bookmarking” site – not social in the sense that you get to know whether your fellow users are Beck fans (although you might), but rather in that everybody’s bookmarks are in one big pool together. You can view your own or someone else’s. Or everybody’s.

Such a morass is ripe for confusion, which is where the next great innovation comes in: tagging. By now everybody uses tags to sort information, but their usefulness is easy to underestimate. Users can add any number of these descriptive keywords to their bookmarks. On del.icio.us, Webmonkey is tagged variously with web, webdesign, html, reference, css, programming, design, tutorial, tutorials, webdev, tips, resource, development – the list goes on. The proliferation of tags makes it easy to find links relevant to a particular subject: just go to http://del.icio.us/tag/webdev to find all links tagged with “webdev” – or triangulate by searching on the intersection of multiple tags: http://del.icio.us/tag/css+reference+webdev. Compared to the hierarchical limitations of putting things in folders, say, using intersecting tags is deliciously freeing.

Continue Reading “Using the Delicious API” »
File Under: APIs, Location

Using the Google Maps API

Google Maps is perhaps the biggest and most useful of all the common web APIs. Who doesn’t love clicking and dragging those sleek, clean maps? But it’s also one of the more complex APIs, which can be intimidating for newcomers. It’s also somewhat difficult to immediately recognize all the possibilities of the Google Maps API since there are literally hundreds of ways to use it.

We’re going to dive right in. But to keep things simple, we’ll start with a very common use: Adding a map to your site and displaying some markers.


Continue Reading “Using the Google Maps API” »

File Under: APIs, Location

Get Started With Fire Eagle

Yahoo Fire Eagle provides an online database which you can update with your latest geographical location. All of your social applications can access this centralized database for your geo-location instead of depending on you to log in to each one and update each one separately.

Why is Fire Eagle cool? Put simply, Fire Eagle takes care of all the geographical details so you don’t have to. On top of that, Yahoo has built an administrative layer, so user’s can hand-pick the people or applications accessing their updates.

There are many applications currently using Fire Eagle, with more to come …including yours. In this tutorial, you’ll learn the basics of setting up a Fire Eagle application and accessing the Fire Eagle API. Fired up and ready fly? Let’s go!

Continue Reading “Get Started With Fire Eagle” »

Detect Which Browsers Are Visiting Your Site

In a web designer’s dream world, all browsers would behave in the same way. They would all render HTML predictably and offer identical support for web standards.

But we don’t live in a web designer’s dream world, and we can’t expect to, of course. It would be silly, for example, to expect a text-based browser like Lynx to be able to handle all the same features as a wizzy graphical browser like Opera.

As a result, it has become common practice for web sites to tailor the HTML they send to different browsers. This can be done in a variety of ways — basically any way that you can dynamically generate HTML — but whether you do it with an ASP page, a Java servlet, or even by configuring your server itself, there must be some way for a browser to identify itself to your server.

That’s where the User-Agent string comes in.

Continue Reading “Detect Which Browsers Are Visiting Your Site” »
File Under: Databases, Programming

Build a Website With Flash and MySQL – Lesson 2

In Build a Website With Flash and MySQL – Lesson 1, we successfully created a MySQL database, filled it with blog entries, and learned how to query it. Now we’re going to move on to the fun stuff:creating a Flash container to display our blog entries as we pull them out of the database. I’m going to help you build something along the lines of what you’ll encounter at my own Flash blog site, Luxagraf.

Fire up Flash and create a new document. The first thing we need is a nice big text field to display our entries. You could create a text field in ActionScript if you like, using the createTextField() method. I don’t know about you, but my stomach for code is still full from yesterday, so I’ve just drawn a text field using the cursor tool and given it an instance name of entries_txt. In the Properties Inspector, set the text to be dynamic, multi-line, and HTML formatted. For safety’s sake, select the character option and click “embed all characters.” Flash has some issues with dynamic textfields that don’t have embedded characters, especially if you put your text under a mask. Continue Reading “Build a Website With Flash and MySQL – Lesson 2″ »