Wednesday, February 27, 2013

Twitter: Introducing Flight: A web application framework

Introducing Flight: a web application framework: Last year we rolled out a major reimplementation of the Twitter website. In addition to shifting the rendering of our page content to the server (which achieved significant performance gains), we re-envisioned the entire client-side infrastructure with a clean, robust and easy-to-learn framework which we call Flight. Today we're making Flight available to the open source community under the liberal MIT license as a framework for structuring web applications.
 Hm, vetefan. Demo-app här:

Friday, February 22, 2013

SensioLabs Security Advisories Checker

Nytt initiativ från SensioLabs.
The website explains how it works in details (, but basically, this initiative gives you several ways to check for security issues in your project dependencies based on the information contained in you composer.lock file (you are using Composer to manage your dependencies, right?):
  • The website itself allows you to upload a composer.lock to check for vulnerabilities;
  • A web service can used with curl or to integrate that tool into your own continuous integration process (it returns its results as plain text or as a JSON array);
  • A command line tool gives you the same feature as the web service and the website but nicely packaged as a simple Symfony command.

Tuesday, February 19, 2013



A PHP VM implementation written in PHP.
This is a basic VM implemented in PHP using the AST generating parser developed by @nikic
To see what's supported so far, check out the opcodes.
Right now, functions (definitions and calls) are supported, if statements (with basic boolean operations), if statements, as are variables and some basic variable operations...
To see the current state of the implementation versus the Core Language Test Suite, check out the test results file.

Monday, February 18, 2013

IKEAHackers: Förvaringshylla

Use MANDAL to store your LEGO bricks for quick & easy building:

Materials: MANDAL headboards, GLIS boxes, binder clips

Description: I needed some space to store my LEGO brick but have them accessible as well when I want to use them. When we came across some MANDAL headboards in the IKEA as-is section, I slowly figured out what to do.

Sunday, February 17, 2013

Twitter: Right-to-left Support

Right-to-left support for Twitter Mobile: Thanks to the efforts of our translation volunteers, last week we were able to launch right-to-left language support for our mobile website in Arabic and Farsi. Two interesting challenges came up during development for this feature:

1) We needed to support a timeline that has both right-to-left (RTL) and left-to-right (LTR) tweets. We also needed to make sure that specific parts of each tweet, such as usernames and URLs, are always displayed as LTR.

2) For our touch website, we wanted to flip our UI so that it was truly an RTL experience. But this meant we would need to change a lot of our CSS rules to have reversed values for properties like padding, margins, etc. — both time-consuming and unsustainable for future development. We needed a solution that would let us make changes without having to worry about adding in new CSS rules for RTL every time.

In this post, I detail how we handled these two challenges and offer some general RTL tips and other findings we gleaned during development.
Twitter om implementation av RTL-språkstöd.