Getting the share count of a URL

At work I’m working on a project in which we need to track the share count of a URL. Below are my quick notes. In all examples I’m getting the share count of https://www.facebook.com/. Note that I’m using the jq notation to extract the actual result from the response. Just GET it Facebook Request: curl […]

Facebook Engineering: Introducing 6-pack, the open hardware modular switch

The “6-pack” platform is the core of our new fabric, and it uses “Wedge” [a custom built network switch] as its basic building block. It is a full mesh non-blocking two-stage switch that includes 12 independent switching elements. Each independent element can switch 1.28Tbps. We have two configurations: One configuration exposes 16x40GE ports to the […]

How I Hacked Facebook with a Word Document

An XML External Entity (XXE) vulnerability was found on the Facebook Careers page by Mohamed Ramadan. The OWASP XXE Definition reads: An XML External Entity attack is a type of attack against an application that parses XML input. This attack occurs when XML input containing a reference to an external entity is processed by a […]

Pop – Extensible iOS and OS X animation library

POPSpringAnimation *anim = [POPSpringAnimation animation]; … [layer pop_addAnimation:anim forKey:@”myKey”]; Pop is an extensible animation engine for iOS and OS X. In addition to basic static animations, it supports spring and decay dynamic animations, making it useful for building realistic, physics-based interactions. It’s a mature and well-tested framework that drives all the animations and transitions in […]

Looking back on “Look Back” videos

The Facebook Engineering Team, on how they catered their infrastructure to support the “Look Back” videos which popped up early February: To plan for even more load, we began with some educated guesses, put them through some back-of-the-envelope math, and decided to plan for 25 million videos shared within a day of the anniversary. We […]

The Psychology of Waiting, Loading Animations, and Facebook

When Facebook users were presented with a custom loading animation in the Facebook iOS app they blamed the app for the delay. But when users were shown the iOS system spinner, they were more likely to blame the system itself. The Psychology of Waiting, Loading Animations, and Facebook →

Facebook’s Paper photo tilt feature in HTML5

Possible thanks to the Device Orientation Events. Facebook’s Paper photo tilt feature in HTML5 →photoTilt Demo →photoTilt Source (GitHub) → Did you know that this doesn’t work on a Retina MacBook Pro, but does on the previous MacBook Pro model? It’s the Sudden Motion Sensor which affords orientation detection, yet one cannot find that sensor […]