Shady Project

Geographic Product Finder

Posted by Shady Mon, 05 May 2008 05:30:00 GMT

So, another school project of mine ends up on the web: WorldBuy. It started life as my final project for CSE486 (Distributed Systems) but I liked it so much I decided to put it online.

Basically, you can click on a region and it will give you some general information about where you clicked. You can then search amazon for products related to that area. Products can be saved per region, and ranked so that a user can see what other people think are good products for a given place.

It's very, very, very beta at the moment. No user accounts, no per user places or products, and the search itself isn't particularly refined, but I think there is a lot of potential here.

It is also serving as a testbed for the new features I added to the geonames rubygem I wrote about in a previous blog post. The site makes use of both the paid account support, and the country info method. I made a custom rubygem with the new geonames features, and this site currently uses that.

I have a bunch of plans for features to add to this site, and I intend to keep working on this site. If you use it and like it, or don't like it, let me know!

Posted in , , , , ,  | Tags , ,

Best Rick Roll Ever

Posted by Shady Tue, 15 Apr 2008 18:15:00 GMT

Sometimes, slashdot isn't a complete waste of time:
//Both people are represented by an abstract class
public abstract class Person
{
  public bool StrangersToLove { get; set; }
  public bool KnowTheRules { get; set; }
}

//Possible thoughts
public enum Thought
{
  FullCommitment
}

//Class
public sealed class Me : Person
{
  public Thought Thinking()
  {
    return Thought.FullCommitment;
  }
}

//The target of the song, notice that GetThought can only be called by passing in an instance of Rick
//which satisfies that she can't get this from any other guy
public class You : Person
{
  private Thought whatHeIsThinking;
  public void GetThought(Me guy)
  {
    whatHeIsThinking = guy.Thinking();
  }
}

class Program
{
  //The first verse
  static void Main(string[] args)
  {

    var Rick = new Me() { KnowTheRules = true, StrangersToLove = false };

    var Girl = new You() { KnowTheRules = true, StrangersToLove = false };

   Girl.GetThought(Rick);
  }
}
Yes, it's a rick roll in code.

Posted in ,  | Tags , ,