Archive for the ‘snippets about…’ Category

Detecting retarded browsers using Ruby on Rails

Here is a small code snippet to check for retarded browsers in Ruby on Rails: user_agent = request.user_agent unless user_agent[/msie/i].nil? session[:browser] = ‘retarded’ else session[:browser] = ‘normal’ end

snippets about… Starling

Starling Starling is a light-weight persistent queue server that speaks the MemCache protocol. It was built to drive Twitter’s backend, and is in production across Twitter’s cluster.

snippets about… Erlang

Erlang general-purpose concurrent programming language and runtime system [...] Erlang is used in several large telecommunication systems from Ericsson. [...] terminate every expression with a DOT followed by a whitespace! [...] Example: -module(test). -export([fac/1]). fac(0) -> 1; fac(N) -> N * fac(N-1). JSON and JSON-RPC for Erlang

snippets about… Virtual Earth Development

Virtual Earth Development Virtual Earth Interactive SDK Virtual Earth examples at viavirtualearth.com

snippets about… Multiple hosts for assets in Rails

Multiple hosts for assets in Rails One other quick win Rails 2.0 will give you is multiple hosts for assets. Browsers will only have two concurrent connections open for any single host, but an easy way around that is to use multiple subdomains that resolve to the same domain. [...] config.action_controller.asset_host = ‘assets%d.YOUR_DOMAIN.com’ Now, if [...]

snippets about…Google Data (GData)

Google Data GData is a new protocol based on the Atom 1.0 and RSS 2.0 syndication formats, plus the Atom Publishing Protocol. [...] All sorts of services can provide GData feeds, from public services like blog feeds or news syndication feeds to personalized data like email or calendar events or task-list items. [...] GData provides [...]

snippets about…Microsoft Photosynth & Photo Tourism

Microsoft Photosynth & Photo Tourism PhotoSynth is the first prototype to come out of the new Microsoft Live Labs and is a great example of cool technologies made possible by corporate largess. [...] Using photos of oft-snapped subjects (like Notre Dame) scraped from around the Web, Photosynth creates breathtaking multidimensional spaces with zoom and navigation [...]

snippets about…Facebook Developer Application

Facebook Developer Application allows for easy access to application settings all within the Facebook environment [...] standards-based web service with methods for accessing and contributing Facebook data [...] uses a REST-based interface [...] Representational State Transfer (REST) is a style of software architecture for distributed hypermedia systems such as the World Wide Web [...] In [...]

snippets about… XML-RPC and Apache XML-RPC

XML-RPC and Apache XML-RPC It’s a spec and a set of implementations that allow software running on disparate operating systems, running in different environments to make procedure calls over the Internet [...] It’s remote procedure calling using HTTP as the transport and XML as the encoding. XML-RPC is designed to be as simple as possible, [...]

snippets about… Microsoft Silverlight

Microsoft Silverlight Microsoft® SilverlightTM is a cross-browser, cross-platform plug-in for delivering the next generation of .NET based media experiences and rich interactive applications for the Web. (more…) Microsoft Silverlight (code-named Windows Presentation Foundation/Everywhere or WPF/E) is a proprietary dual-platform XAML-based WPF technology for video, vector graphics, and animations. (more…) similar to Adobe Flash Microsoft Silverlight [...]