News for hackers. Stuff that matters.
Re:Javascript hack weekend: Unique projects to inspire aweso... by geuis on Saturday April 09, 2011 @01:55AM (#2426626)
This is a project I wrote the weekend of the Japan earthquake. http://tensecondstotokyo.com/

I wanted to see what was happening in Japan live from the people who live there.

I used node and socket.io to provide a realtime view of photos posted to Twitpic on Twitter. The server stores the last 100 photos found, so that's the max that are ever seen. Just a stream of photos.

Other than a few friends at work and some folks at a node.js talk I gave a few weeks ago, no one else has seen this. Well, I did show it to Mikey from Instagram when I ran into him at a coffee shop.

I'm also working on integrating Instagram's photos too, but haven't finished that yet.

Couple of notes:

1) There's never been more than a handful of people accessing the site at a time, so I have no idea how well it will scale. There's almost no load, so I suspect it shouldn't be too much of a problem.

2) My url parsing regex fu needs some work. If you watch the stream with dev tools enabled, you'll see a number of 404s from Twitpic where non-existent photos are being accessed. Don't worry, these don't show up visually on the site though.

Would love people's feedback, suggestions, and complaints. Especially from design-type folks. I'd like to give it a better look.

Conact info: @geuis or [email protected]

Re:Javascript hack weekend: Unique projects to inspire aweso... by auxbuss on Saturday April 09, 2011 @05:54AM (#2426886)
Ideas:

- Add images a row at a time (threes), so that you don't lose track of an interesting image.

- Add options for other places, or to let the user enter it themselves

- Translate the tweets to a user selected language

(In case you've not seen it, take a look at TwitterNode (https://github.com/technoweenie/twitter-node), which makes using twitter's streaming API very easy in node.js.)

Re:Javascript hack weekend: Unique projects to inspire aweso... by auxbuss on Saturday April 09, 2011 @05:46AM (#2426873)
Is this for the whole of Japan or Tokyo only?
Re:Javascript hack weekend: Unique projects to inspire aweso... by geuis on Saturday April 09, 2011 @06:01AM (#2426894)
Whole of the country. Its geo centered on the Imperial palace in Tokyo though, but the range includes all of the country.
Re:Javascript hack weekend: Unique projects to inspire aweso... by alexkearns on Saturday April 09, 2011 @01:02PM (#2427497)
I don't know if this counts as a hack (certainly it took a lot longer than a weekend) but here's my web-based timeline software done mainly in JS: http://www.tiki-toki.com
Re:Javascript hack weekend: Unique projects to inspire aweso... by olegp on Saturday April 09, 2011 @07:21AM (#2426966)
If you don't need the real time element that NodeJS/NowJS offers, may I suggest you give http://www.akshell.com a go. Real time features are in the works, but aren't currently publicly available.

We're really keen to see people experiment with server side JavaScript on the platform and will instantly answer any queries you may have on our mailing list at http://groups.google.com/group/akshell

Re:Javascript hack weekend: Unique projects to inspire aweso... by faceplant on Saturday April 09, 2011 @07:24AM (#2426969)
What do you mean by "if you don't need the real-time element"?
Re:Javascript hack weekend: Unique projects to inspire aweso... by olegp on Saturday April 09, 2011 @07:30AM (#2426978)
I mean that if you're building a typical web app that uses the request/response cycle rather than requiring real time push from the server using Comet or WebSockets, Akshell, with it's synchronous I/O, should be easier to work with.
Re:Javascript hack weekend: Unique projects to inspire aweso... by faceplant on Saturday April 09, 2011 @07:32AM (#2426979)
Oh, I see. So it works as normal it just doesn't have server push yet. Gotcha.
Re:Javascript hack weekend: Unique projects to inspire aweso... by pokoleo on Saturday April 09, 2011 @10:28PM (#2428643)
Made a project last weekend using the raphael.js + the Facebook API.

http://shalecraig.com/friendspore

Since it's all local (no node + etc), your data stays with you.

Re:Javascript hack weekend: Unique projects to inspire aweso... by lux on Saturday April 09, 2011 @02:23PM (#2427715)
Similar to Popcorn.js but more for visual effects:

http://www.cacophonyjs.com/

(self plug :)