declaratii de dragoste

declaratii de dragoste

webdis: HTTP + JSON API for Redis

thechangelog:

HTTP is the dial tone of the web. Apps that speak HTTP tend to grow in popularity, such as CouchDB whose built-in HTTP-based RESTful API makes it super easy to store and retrieve JSON data.

Nicolas Favre-Felix gives some web love to Redis fans with Webdis, an HTTP interface for Redis that serves up JSON. Built in C, Webdis aims to be fast like Redis itself. The URL structure takes the pattern of:

http://127.0.0.1:7379/COMMAND/KEY/[VALUE] 

Let’s look at some concrete examples:

curl http://127.0.0.1:7379/SET/hello/world → {"SET":[true,"OK"]} curl http://127.0.0.1:7379/GET/hello → {"GET":"world"} curl -d "GET/hello" http://127.0.0.1:7379/ → {"GET":"world"} 

While still early in development, the feature set is impressive. Webdis currently offers:

  • Support for GET and POST
  • JSON and JSONP parameter (?jsonp=myFunction).
  • Raw Redis 2.0 protocol output with .raw suffix
  • HTTP 1.1 pipelining
  • TCP or UNIX socket Redis connections
  • CIDR or HTTP Basic Auth security
  • Pub/Sub using Transfer-Encoding: chunked. Coupled with JSONP, Webdis can be used as a Comet server
  • Built-in support for json, txt, ‘html, xml, xhtml, png, and jpg
  • Custom Content-Type types based on file extension, or ?type=some/thing
  • Cross-origin XHR, if compiled with libevent2 (for OPTIONS support)
  • File upload with PUT, if compiled with libevent2 (for PUT support)

Check the README for the complete list. If you’d like to contribute, Nicolas is thinking about how to add other HTTP verb support like PUT and DELETE, Websockets, and Etags.

Also, if you missed it, be sure and catch Episode 0.4.5 with @antirez, the creator of Redis.

[Source on GitHub] [Comment on Hacker News]

(Source: thechangelog)

iheartmyart:

Ian Tweedy, Collapse, 2010, Wall drawing Installation view at Fondazione Sandretto Re Rebaudengo, Turin 

iheartmyart:

Ian Tweedy, Collapse, 2010, Wall drawing Installation view at Fondazione Sandretto Re Rebaudengo, Turin 

ifttt Blog: ifttt the beginning...

ifttt:

I’d like to humbly announce that the first beta invites for a project I’m incredibly excited about are out the door. The project is called ifttt, shorthand for “if this then that”. With this blog I hope to begin fleshing out some of the initial inspirations that led to the inception of ifttt…

fuckyeahoddities:

Abraham Lincoln was elected to Congress in 1846.
John F. Kennedy was elected to Congress in 1946.

Abraham Lincoln was elected President in 1860.
John F. Kennedy was elected President in 1960.

The names Lincoln and Kennedy each contain seven letters.
Both were particularly concerned with civil rights.
Both wives lost a son while living in the White House.

Both Presidents were shot on a Friday.
Both were shot behind the head.

Here is an interesting one…
Lincoln’s secretary was named Kennedy.
Kennedy’s secretary was named Lincoln.

Both were assassinated by Southerners.
Both were succeeded by Southerners.

Both successors were named Johnson.
Andrew Johnson, who succeeded Lincoln, was born in 1808.
Lyndon Johnson, who succeeded Kennedy, was born in 1908.

John Wilkes Booth, who assassinated Lincoln was born in 1839.
Lee Harvey Oswald, who assassinated Kennedy was born in 1939.

Both assassins were known by their three names.
Both names are made of fifteen letters.

Mr. Booth shot Lincoln in a Theatre called “Ford”.
Lee Harvey Oswald, shot Kennedy in a car called “Ford” Lincoln.

Booth ran from a theater and was caught in a warehouse.
Oswald ran from a warehouse and was caught in a theater.

Booth and Oswald were assassinated before their trials.

And last but not least,
A month before Lincoln was shot he was in Monroe, Maryland.
A month before Kennedy was shot he was with Marilyn Monroe.

(via ohyeahfacts)

brit:

This DIY kit lets you program your plants to tweet whenever they need water. Check it out and discover other nifty tech products in our latest edition of Tuesday’s Tech of the Week.

just-a-skinny-boy:

Take 2 minutes to smile :)

(Source: just-a-skinny-boy)