Eternalistic Designs

Network Redux - Open source hosting

General Advice

Know stuff? Try Aardvark

New Social Search Service Let's You IM For Answers

Last week, I was lucky enough to get an invite to test out a new "Social Search" application called Aardvark that was recently released into the wild.  Well, not completely into the wild (more on that in a sec), but wild enough that a no-talent hack like me managed to get an invitation (thanks again, @marshallk and @davidadewumi).

So here's how it works:

  1. You sign up.
  2. You tell Aardvark what types of questions you'd like to answer, rough categories like "Technology" or "Seattle."
  3. People ask questions through their IM client (Google Talk, AIM, Windows Live Messenger).
  4. Aardvark forwards that question along to a user on the network who's registered to answer questions about that topic.

You can tell Aardvark what times of day you're available to answer questions, and you always have the choice to Pass on one you can't answer.

A typical exchange might look something like this:

Aardvark Google Talk exchange

Asking questions is just as easy as answering them.  You just IM a question to the aardvark.im contact and poof, Aardvark does the rest. 

All in all, it's pretty damn cool, and extremely useful.  I can't wait to see what happens once they get more users with a wider knowledge base onboard.  Other than that, my only Wish List item would be Twitter support.

Now, getting back to that releasing-into-the-wild thing.  Right now, Aardvark isn't open to the public, so there are only a couple ways to get in on the fun:

References:

jQuery fun with lists and more lists

jQuery - So simple even a designer can do it!

This week I had the task of taking a rather long and complicated list and shortening it down into categories with sub lists. jQuery seemed like the best way to go as I've seen accordion style sliding list and things of that sort before. The only thing I hadn't come across was a list with a drop down menu which controlled the list and content below...so I set out to build one as well as teach myself some jQuery (I knew what it was, just never wrote my own jQuery code before).

So the idea here was I wanted a list to appear on the right side of my div which contained categories in which I could click on and have the content on the page, in lists, expand to show the selected list all while sliding away the previously displayed list.

This screenshot/mockup will help better explain the desired look and feel as well as functionality I was going for.

idea

Sounds quite tricky but after a bit of messing around with some basic jQuery code and functionality I was able to get everything working somewhat well.

I first started out by building the header area with the "MOST RECENT" list and "SORT BY CATEGORY" text. I made it so when you click on the "MOST RECENT" link it would drop down a menu with the category listings. These category listings control what is shown on the page, it controls what list will appear when you click on your desired category.

So once I got the header portion built, I then begin making a list wrapped in custom divs for each of the category lists' content. Being that I have five categories I had to make 5 custom wrapped divs. For these divs were controlled by the category drop down list on right.

References:

6 Tips: In the Know

So how do I stay 'in the know' and increase my Drupaliness?

I'll go ahead and warn the readers that this article won't have any fancy code snippets or super dark magic to turn your site into ten billion dollars of reoccurring ad revenue. What it WILL do is give you some great pointers in ramping up your Drupal knowledge as you begin to take over the world...one Drupal site at a time.

Muahahahahahaha....but I digress.

1.) Stay on the channels

While you probably need some clout to get anything answered or explained in #drupal, #drupal-support is where the n00bies flock...and flock often. Although I wouldn't consider myself any type of <air quote> expert </air quote>, I can say that I have learned a lot by seeing some of the questions float through the channel. If you've got something interesting to add, be sure to speak up and give your support. The Open Source world is live and let live, so if you're on, say hi! I'm caramelson, btw.

Other channels to check out are #drupal-dojo and #drupal-themes (for the themers in the house).

Note: For those that don't know what I mean by <air quote>channels</ air quote>, I'm talking about IRC.

2.) Groups

Drupal groups is a cool thing. I've played with other CMS platforms before (Plone, Wordpress), and I can say that groups.drupal.org is a great bonus to this particular CMS community! You can find discussions tailored to just about anything. From local meetups to other Drupalers looking to make the next Facebook, you learn a lot from the ideas being tossed around. Some of the n00bie groups include Drupal Dojo and Drupal for Evil (semi-n00bie), and often have neat websites that have a host of tutorials, screencasts, and podcasts.

3.) Lullabot

References:

Google Maps/Amazon/Banned Books Mashup - Part 2

Geocoding with Google Maps API

When we last heard from Our Hero, we’d begun the joyous process of creating a simple Google Maps/Amazon mashup.  We took a peek at what the finished product should look like, we obtained our Google Maps API key, and we created our database tables and populated them with some data.  All good things.

We also talked about geocoding, that process of converting a street address into the coordinates (longitude and latitude) that Google Maps digs.  Our LOCATIONS table has some street addresses and empty columns just hankerin’ for some longitude and latitude info.  Let’s do us some geocodin’.
This zip file contains the source for all the codin' we're doing today:

http://www.nerdliness.com/files/updatelnglat.zip

You'll need those files to follow along at home.  While I'll break 'em down pretty much completely in the paragraphs to follow, I won't be reposting them in their entirety.  If you try to just copy-and-paste from the text below, you'll be sadly disappointed when your efforts blow up because of a missing variable declaration, etc.

 

References:

Creating a Google Maps/Amazon.com/Banned Books Mashup

Part One of God Only Knows How Many Steps...

And now for something completely different…

Sorry to disappoint all the little nerdlings who come around here only for the Drupal goods, but today’s post won’t be at all related to our favorite CMS.  We’ve talked about different Drupaly topics for weeks, now it’s time to shake things up a little.  Today, kids, we’re going to make a basic Google Maps mashup.

Yeah, I know.  The world needs another Google Maps mashup like I need a hole in my head, right?  Who cares.  They’re fun, and we’ll try to make our sample a little more interesting by throwing in a little Amazon.com action and some AJAX-y goodness.

So here’s what we’re shooting for:

http://www.nerdliness.com/ajaxdemo/

First of all, don’t laugh.  Jeremy’s the form guy, I only do function.  Sure, it ain’t much to look at, but it works and it’s kinda cool.  And if we wanted it to look nice, we’d pay Jeremy his surprisingly reasonable freelance rate to pretty it up for us.

Ok, so what’s the big deal?  What are we doing on that page?   In a nutshell, we’re plotting, on the fly, the locations of every public school in Texas that, according to the ACLU of Texas, banned a book during 2006.  I took the data from a PDF they release annually (http://www.aclutx.org/projects/bannedbookspg.php?pid=45) and used it to populate a MySQL table with the various data you see by clicking on the assorted links. 

References: