background preloader

Twitter ♥ Open Source

Twitter ♥ Open Source

Here's Exactly What Twitter Earns Each Time You Look at Your Feed Twitter's pre-IPO filing is full of fascinating nuggets ready to be blurbed in 140 characters. But to me, the most interesting tidbit is all about how much money the company makes each time you hit refresh on your feed, and what it says about the value of American consumers versus the rest of the world. Twitter likes to measure its advertising revenue for every 1,000 timeline views, (for some reason, they call it "advertising revenue per timeline view," as if they're counting one at a time, but ignore that for now because it's confusing). What counts as a view? It's every timeline "requested when registered users visit Twitter, refresh a timeline or view search results while logged in," either from your desktop or mobile device. But all views are not worth the same.

Base Headings All HTML headings, <h1>through <h6>are available. h2. Heading 2 h3. Heading 3 h4. h5. h6. Body copy Bootstrap's global default font-size is 14px, with a line-height of 20px. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas sed diam eget risus varius blandit sit amet non magna. <p>... Lead body copy Make a paragraph stand out by adding .lead. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. <p class="lead">... Built with Less The typographic scale is based on two LESS variables in variables.less: @baseFontSize and @baseLineHeight. Emphasis Make use of HTML's default emphasis tags with lightweight styles. For de-emphasizing inline or blocks of text, use the small tag. This line of text is meant to be treated as fine print. <p><small>This line of text is meant to be treated as fine print. Bold For emphasizing a snippet of text with a heavier font-weight. Italics Heads up! Lists

Finagle: Asynchronous RPC by Twitter Finagle[ Finagle is a protocol-agnostic, asynchronous Remote Procedure Call (RPC) system for the Java Virtual Machine (JVM) that makes it easy to build robust clients and servers in Java, Scala, or any JVM-hosted language. Finagle supports a wide variety of request/response- oriented RPC protocols and many classes of streaming protocols. Finagle provides a robust implementation of: connection pools, with throttling to avoid TCP connection churn;failure detectors, to identify slow or crashed hosts;failover strategies, to direct traffic away from unhealthy hosts;load-balancers, including “least-connections” and other strategies; andback-pressure techniques, to defend servers against abusive clients and dogpiling. Additionally, Finagle makes it easier to build and deploy a service that

Downloads and Customization Complete Grab this version of Foundation if you want everything in the framework in simple, vanilla CSS and JS. Download Everything Essential A simple, lighter version that includes typography, the grid, buttons, Reveal and Interchange.**59kb (okay, plus dependencies). Download Essentials Custom Include or remove certain elements and define the size of columns, colors, font size and more. Custom Download Sass Foundation is built using SCSS, and you can work with it in the same way. Install via SCSS Twitter Heron: Stream Processing at Scale | the morning paper Twitter Heron: Stream Processing at Scale – Kulkarni et al. 2015 It’s hard to imagine something more damaging to Apache Storm than this. Having read it through, I’m left with the impression that the paper might as well have been titled “Why Storm Sucks”, which coming from Twitter themselves is quite a statement. There’s a good write-up of the history of Apache Storm on Nathan Marz’s blog – Nathan left Twitter in 2013. Twitter don’t use Storm anymore. At Twitter, Storm has been decommissioned and Heron is now the de-facto streaming system. Heron still supports the Storm API, but after evaluating their options Twitter decided that Storm was too badly broken for their needs to be fixed within the existing codebase. Guess you’d better take that Twitter logo off of the Apache Storm home page then Apache :(. So what was up with Storm then? …many limitations of Storm have become apparent. Let us count the ways… Enter the Heron Heron is a container-based implementation. Like this: Like Loading...

Foundation Docs: Sass System Requirements Before proceeding, you'll want to install the following on your system: Starting in Foundation 5, we've started using bower to manage the updating process of Foundation. It only needs to be installed one time using the following command: Bash [sudo] npm install -g bower grunt-cli Then you can install our CLI using the following command: gem install foundation Using Foundation With Grunt + Libsass At ZURB, we prefer to run Foundation with using Grunt in conjunction with Libsass, because it's the fastest way to compile your Sass stylesheets. Create a New Project First, navigate into the directory where you want to create your project. cd path/to/sites Next we'll use the Foundation CLI to create a new project: foundation new project_name --libsass Boom, your project is created! cd project_name grunt build New Project Updating Your Project cd MY_PROJECT foundation update Using Foundation With Compass Compass is the easiest way to get going with Sass. foundation new MY_PROJECT

Improving performance on twitter.com To connect you to information in real time, it’s important for Twitter to be fast. That’s why we’ve been reviewing our entire technology stack to optimize for speed. When we shipped #NewTwitter in September 2010, we built it around a web application architecture that pushed all of the UI rendering and logic to JavaScript running on our users’ browsers and consumed the Twitter REST API directly, in a similar way to our mobile clients. That architecture broke new ground by offering a number of advantages over a more traditional approach, but it lacked support for various optimizations available only on the server. To improve the twitter.com experience for everyone, we’ve been working to take back control of our front-end performance by moving the rendering to the server. On top of the rendered pages, we asynchronously bootstrap a new modular JavaScript application to provide the fully-featured interactive experience our users expect. No more #! Reducing time to first tweet What’s next?

jenkinsci/jenkins Storm: The Hadoop of Realtime Processing Storm[ Storm is a distributed realtime computation system. Similar to how Hadoop provides a set of general primitives for doing batch processing, Storm provides a set of general primitives for doing realtime computation. Storm is simple, can be used with any programming language, is used by many companies, and is a lot of fun to use! Three broad use cases for Storm: Stream processing: Storm can be used to process a stream of new data and update databases in realtime. A Storm cluster is superficially similar to a Hadoop cluster. There are two kinds of nodes on a Storm cluster: the master node and the worker nodes. Each worker node runs a daemon called the “Supervisor”.

Ruby QuickRef | zenspider.com by ryan davis Table of Contents Language General Tips These are tips I’ve given over and over and over and over… Use 2 space indent, no tabs. See for more. General Syntax Rules Comments start with a pound/sharp (#) character and go to EOL. Reserved Words alias and BEGIN begin break case class def defined? Types Basic types are numbers, strings, ranges, regexen, symbols, arrays, and hashes. Numbers 1231_234123.451.2e-30xffff 0b01011 0377 ? Strings In all of the %() cases below, you may use any matching characters or any single character for delimiters. %[], %!! 'no interpolation'"#{interpolation}, and backslashes\n"%q(no interpolation)%Q(interpolation and backslashes)%(interpolation and backslashes)`echo command interpretation with interpolation and backslashes`%x(echo command interpretation with interpolation and backslashes) Backslashes: Here Docs: Encodings: Waaaay too much to cover here. Symbols Internalized String. Ranges 1..101...10'a'..' Regexen "r"

Ambrose: Visualize your MapReduce Real-time Ambrose[ Twitter Ambrose is a platform for visualization and real-time monitoring of MapReduce data workflows. It presents a global view of all the map-reduce jobs derived from your workflow after planning and optimization. As jobs are submitted for execution on your Hadoop cluster, Ambrose updates its visualization to reflect the latest job status, polled from your process. Ambrose provides the following in a web UI: A chord diagram to visualize job dependencies and current stateA table view of all the associated jobs, along with their current stateA highlight view of the currently running jobsAn overall script progress barAmbrose is built using the following front-end technologies:d3.js - For chord diagram visualizationBootstrap - For layout and CSS support Ambrose is designed to support any Hadoop workflow runtime, but current support is limited to Apache Pig.

First Analysis Of Trends On China's Version Of Twitter In July 2009, the Chinese government banned its netizens from accessing Twitter. One month later, an alternative social networking site called Sina Weibo appeared in China. Today, Sina Weibo has more than 140 million users in China, almost as many as Twitter has in the rest of the world combined. Despite its popularity, Sina Weibo is more or less unknown in the west. That has presented Louis Yu and buddies at the Social Computing Lab at HP Labs in Palo Alto with an opportunity. They point out that while Twitter and other social networking sites have been extensively studied, nobody has looked at the pattern of posts on Sina Weibo. Given the influence of the Chinese government over activities on the web, it’s possible that the behaviour of users there are entirely different to those in the west. One problem, of course, is to collate and analyse data from Sina Weibo, which does not have a search API like Twitter’s. The differences were profound. Sina Weibo allows two types of tweeter.

Following dengue fever in Brazil with Twitter When dengue season begins in Brazil this November, social networking could help the country better control outbreaks by tracking the disease’s spread down to individual cities. New Scientist reports. According to the World Health Organization, about two-fifths of the world’s population are at risk of dengue. The mosquito-borne disease kills hundreds of people a year. A collaboration between two Brazilian National Institutes of Science and Technology, led by Wagner Meira of the Federal University of Minus Gerais, created software to identify a tight correlation between the time and place where people tweet they have dengue and the official statistics for where the disease appears each season. For example: “My mother is suspected of having dengue," tweets a woman in Rio de Janeiro. Dengue breaks out every year in Brazil, but exactly where varies every season. With increased access to the internet in Brazil, using Twitter messages could mean a much faster response, Meira says.

Related: