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:
# Open the existing Xcode project | |
project_file = product_name + '.xcodeproj' | |
project = Xcodeproj::Project.new(project_file) | |
# Add a file to the project in the main group | |
file_name = 'Message.m' | |
group_name = product_name | |
file = project.new_file(file_name, group_name) | |
# Add the file to the main target |
Hi. My name is Sadayuki "Sada" Furuhashi. I am the author of the MessagePack serialization format as well as its implementation in C/C++/Ruby.
Recently, MessagePack made it to the front page of Hacker News with this blog entry by Olaf, the creator of the Facebook game ZeroPilot. In the comment thread, there were several criticisms for the blog post as well as MessagePack itself, and I thought this was a good opportunity for me to address the questions and share my thoughts.
To the best of my understanding, roughly speaking, the criticisms fell into the following two categories.
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 |
namespace :db do | |
namespace :sqlseed do | |
desc "drop database and reload seeds" | |
task :load do | |
# is this what im looking for? | |
# FileList['db/seed.sql'] | |
conf = Rails.configuration.database_configuration[Rails.env] | |
system "mysql -u#{conf['username']} #{conf['database']} <<ENDMYSQL |