18 Jul '12, 1am

For real though, this Sinatra thing seems pretty cool.

# app running on http://example.com/example get '/foo' do t = %w[text/css text/html application/javascript] request.accept # ['text/html', '*/*'] request.accept? 'text/xml' # true request.preferred_type(t) # 'text/html' request.body # request body sent by the client (see below) request.scheme # "http" request.script_name # "/example" request.path_info # "/foo" request.port # 80 request.request_method # "GET" request.query_string # "" request.content_length # length of request.body request.media_type # media type of request.body request.host # "example.com" request.get? # true (similar methods for other verbs) request.form_data? # false request["SOME_HEADER"] # value of SOME_HEADER header request.referrer # the referrer of the client or '/' request.user_agent # user agent (used by :agent condition) request.cookies # hash of browser cookies request.xhr? # is this an ajax req...

Full article: http://www.sinatrarb.com/intro

Tweets

Sinatra, My New Favorite Microframework:

adam.heroku.com 17 Jul '12, 10pm

Sinatra apps are typically written in a single file. It starts up and shuts down nearly instantaneously. It doesn’t use mu...

Pre- and Post-Roll Ads Meet MMS Video, Is it Re...

reelseo.com 17 Jul '12, 7pm

Mogreet, this week, announced that they have launched AdStitch which allows advertisers to incorporate pre- and post-roll ...

Burt's Bees Helps the Real Thing: So, how was that crisp, delicious apple you enjoyed yesterday? Those crunchy

Burt's Bees Helps the Real Thing: So, how was t...

fashiontribes.typepad.com 18 Jul '12, 8pm

So, how was that crisp, delicious apple you enjoyed yesterday? Those crunchy cukes & carrots in your salad & avocado slice...

Punk Rock Pretty ... featuring @NotRatedShoes , @AbbeyDawn , @SteveMaddenUSA , & @ironfistclothng

Punk Rock Pretty ... featuring @NotRatedShoes ,...

high.heels.com 17 Jul '12, 1am

Music and fashion go hand in hand so it’s only natural that high heels are often inspired by a little rock ‘n roll style. ...

Complaining - to the right person - is actually a good thing

Complaining - to the right person - is actually...

straitstimes.com 18 Jul '12, 1pm

A file photo of shoppers at the Charles and Keith outlet at Wisma Atria. If there is one thing Singaporeans love to do, it...

More Americans Believe Climate Change is Real | Care2 Causes

More Americans Believe Climate Change is Real |...

care2.com 17 Jul '12, 9pm

Summer 2012 is breaking all sorts of records . On the bright side, one benefit of extreme weather is that it wakes people ...

Peace in Malaysia not what it seems to be - by ...

blog.limkitsiang.com 13 Jul '12, 1pm

— Adelene Teo The Malaysian Insider Jul 13, 2012 JULY 13 — Since Independence in 1957 from the British, Malaysia has gener...

[Blog] [Review] Sunplay Watery Cool Series

[Blog] [Review] Sunplay Watery Cool Series

daintyflair.net 14 Jul '12, 5am

Summer is here, it’s time to be more diligent with sunscreen application! The weather’s so hot these days, great time for ...

On the 110th birthday of air conditioning: Stay cool

On the 110th birthday of air conditioning: Stay...

grist.org 17 Jul '12, 3pm

A junior engineer from a furnace company figured out a solution so simple that it had eluded everyone from Leonardo da Vin...

Why There’s No Such Thing as Cheap SEO or Link Building

Why There’s No Such Thing as Cheap SEO or Link ...

searchenginejournal.com 12 Jul '12, 4pm

As the owner of a local search engine optimization (SEO) consulting agency, it seems to me that it’s almost every day I he...