This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| From 14eb6d9e9120f973fc78ae495bd73f7824afa6ff Mon Sep 17 00:00:00 2001 | |
| From: rentzsch <[email protected]> | |
| Date: Thu, 10 Jan 2013 12:24:52 -0600 | |
| Subject: [PATCH] [FIX] Backport Rails 2.3.15 security fix for CVE-2013-0156 | |
| to Rails 2.2.2 since we're using | |
| https://github.com/michaeltyson/potionstore for its PayPal | |
| Website Payments Standard support and it's behind the | |
| times. | |
| --- |
| #define EMKStringableEnum(ENUM_NAME, ENUM_VALUES...) \ | |
| \ | |
| typedef enum { \ | |
| ENUM_VALUES \ | |
| } ENUM_NAME; \ | |
| \ | |
| \ | |
| \ | |
| static NSString * ENUM_NAME##ToString(int enumValue) { \ | |
| static NSString *enumDescription = @"" #ENUM_VALUES; \ |
<img src="https://path/to/mark-as-read?notificationId=1234&source=email" width="1" height="1" />
When that endpoint is hit from an email, delay the response for 5-10s and listen for the connection being terminated early from the client. If they make it past 5-10s, then mark the notification as read. If not, then either they skimmed it or it was a fluke request.
| #!/usr/bin/env bash | |
| rm -rf "${HOME}/Library/Caches/CocoaPods" | |
| rm -rf "`pwd`/Pods/" | |
| pod update |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
| #import <Foundation/Foundation.h> | |
| int main(int argc, const char * argv[]) | |
| { | |
| NSRunLoop * runLoop; | |
| CLIMain * main; // replace with desired class | |
| @autoreleasepool | |
| { | |
| // create run loop |
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
| { | |
| self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
| self.viewController = [[JBViewController alloc] initWithNibName:@"JBViewController" bundle:nil]; | |
| self.window.rootViewController = self.viewController; | |
| // ADD THIS LINE: | |
| [self.window setTransform:CGAffineTransformMakeScale(0.81, 0.81)]; | |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| The bridge is now located at https://github.com/fjolnir/TLC |