News for hackers. Stuff that matters.
Re:Building an API in 60 seconds, without any server setup by grimtrigger on Tuesday July 29, 2014 @05:12PM (#8105053)
Interesting. Whats a use case for this?
Re:Building an API in 60 seconds, without any server setup by donpinkus on Tuesday July 29, 2014 @05:24PM (#8105110)
I needed to do screenshots in my Rails app, and I couldn't get the screen shotting service to work in Ruby.

I already knew how to do screenshots in Python, and was tired of relearning this stuff in a different language for each project.

So I made an API that takes a screenshot, and now I don't need to learn it ever again :)

https://api.blockspring.com/users/mapsup/blocks/07b6410853fa...

Re:Building an API in 60 seconds, without any server setup by hackerews on Tuesday July 29, 2014 @05:29PM (#8105134)
I personally like the google reverse image search hack :).

I used to just run that python script manually on my computer. Now I can just call it from my front-end js when users upload images and return back some text about the image.

https://api.blockspring.com/users/pkpp1233/blocks/5a1b66ef20...

But you can do just about anything. Users have done r statistics from js. Or python sentiment analyses (lots of good libraries there) whenever they get user comments in their rails app.

Re:Building an API in 60 seconds, without any server setup by makeee on Tuesday July 29, 2014 @10:34PM (#8106121)
Was just looking today if google had an api for reverse image search, which they don't, so thank you :)
Re:Building an API in 60 seconds, without any server setup by hmsimha on Tuesday July 29, 2014 @11:43PM (#8106258)
I imagine they have an undocumented api for reverse image search. The team at Google has released this extension[1] for adding reverse image search to the context menu, which is currently the only extension that enables reverse image search for images only accessible while logged in (think if you want to reverse image search a preview of an image someone emailed to you).

I was thinking about intercepting the requests it makes and making an open source extension that does the same thing, but I haven't had the time yet.

[1] https://chrome.google.com/webstore/detail/search-by-image-by...