07 Feb '14, 8pm

Chat Example App Using Server-Sent Events:

Chat Example App Using Server-Sent Events Mason Fischer July 14, 2013 rails redis Rails 4 can stream data to the browser with ActionController::Live using server-sent events (SSEs) . I was curious how server sent events worked so I decided to use them to implement a simple chat application. Tiny-chat is a chat app I built using Goliath , Redis Pub/Sub and of course server-sent events . Subscribing to Events require 'goliath' require 'redis' class Subscribe < Goliath::API def response(env) EM.synchrony do @redis = Redis.new(Options::redis) channel = env["REQUEST_PATH"].sub(/^\/subscribe\//, '') # We pass the subscribe method a block which describes what to # do when we receive an event. # This block writes the message formatted as a server sent event # to the HTTP stream. @redis.subscribe(channel) do |on| on.message do |channel, message| @message = message env.stream_send(p...

Full article: http://robots.thoughtbot.com/chat-example-app-using-serve...

Tweets

Prevent email havesting in rails using the mail...

api.rubyonrails.org 06 Feb '14, 5pm

<%= button_to "New", action: "new" %> # => "<form method="post" action="/controller/new" class="button_to"> # <div><input ...

Facebook Custom Audiences: 7 Strategies Markete...

searchenginewatch.com 07 Feb '14, 12pm

At the end of January, Facebook announced the global rollout of Custom Audiences, an ad targeting and retargeting solution...

Events - Marina Run

timeoutsingapore.com 11 Feb '14, 4pm

This year’s Marina Run returns once again with a 5km, 10km and 21km route for both the casual and serious runner. The rout...

Controversy over how to think of public space in #BuenosAires. @globalsiteplans

Controversy over how to think of public space i...

One of the most appealing facets of Buenos Aires is the variety of cultural offerings that the city enjoys: concerts by in...

.@singlecoffee you are using one of my photographs on this page without permission: please remove it immediately.

.@singlecoffee you are using one of my photogra...

singleservecoffee.com 12 Feb '14, 3am

Frothing Milk and Single Serve Coffee Currently most single serve coffee machines simply do not have a milk frother and th...

grn_mini (0.5.0): Groonga(Rroonga) for using ea...

rubygems.org 11 Feb '14, 9am

Groonga(Rroonga) for using easily. You can add the data in the column without specifying. You can easy to use and persiste...

Live Chat: Mike Johnson on the 2014 Hot List

golfdigest.com 12 Feb '14, 4pm

How To Play Hit Your Irons Flush Rickie Fowler's advice for becoming a better ball-striker. Slideshow: Butch Harmon's Best...

How Should My Rails App Talk to Redis?

rubyflow.com 11 Feb '14, 6pm

How Should My Rails App Talk to Redis? Posted by justinweiss on February 11, 2014 — 0 comments While you’re writing your R...

This chat between @Revkin and departing head of...

dotearth.blogs.nytimes.com 10 Feb '14, 5am

By 2050 or so, the human population is expected to reach nine billion, essentially adding two Chinas to the number of peop...

Green News: New App Monitors Energy Use

greenbuildingadvisor.com 12 Feb '14, 10am

An app called Wattson could prove to be a nifty tool for monitoring home energy use, assuming it makes it as far as the Ap...

amcharts3-rails (0.0.2): Integrates amCharts v3...

rubygems.org 13 Feb '14, 7am

amcharts3-rails 0.0.2 Integrates amCharts v3 into your rails app. install gem install amcharts3-rails Download Documentati...

USGA to allow distance measuring devices in all its amateur events, but not in professional events: #pg…

USGA to allow distance measuring devices in all...

pga.com 06 Feb '14, 10pm

PINEHURST, N.C. – The United States Golf Association has approved the use of distance-measuring devices in all of its amat...

Featured on I-S Magazine events! Hurry! Limited slots left for yoga & singles networking this Saturday

Featured on I-S Magazine events! Hurry! Limited...

is.asia-city.com 10 Feb '14, 6am

Marina Run Enjoy scenic waterfront views as you race through the Bay East section of Gardens by the Bay. Choose from a 5K ...

Live Chat: Ashley Mayo on the 2014 Hot List

golfdigest.com 13 Feb '14, 4pm

How To Play Hit Your Irons Flush Rickie Fowler's advice for becoming a better ball-striker. Slideshow: Butch Harmon's Best...

Valentine's Day Live Chat with (Eco) Sex Expert and Sexual Healing Columnist Stefanie Iris Weiss

Valentine's Day Live Chat with (Eco) Sex Expert...

ecosalon.com 07 Feb '14, 7pm

Stefanie Iris Weiss is the author of nine books, including her latest title–”Eco-Sex: Go Green Between the Sheets and Make...