noise dept.
Today's Document
Lint Roller? I Barely Know Her

Game Changer & Make Some Noise
The Bowery Presents
hello vonnie
"I'm Dorothy Gale from Kansas"
Doug Jones
TMBGareOK. The Official They Might Be Giants tumblr
Sweet Seals For You, Always
tumblr dot com
One Nice Bug Per Day

Jar Jar Binks Fan Club
h
taylor price
art blog(derogatory)
The Bright Sessions
EXPECTATIONS

Jimmy Eat World
KIROKAZE
seen from United Kingdom

seen from United States
seen from United States
seen from Philippines
seen from United States

seen from United Kingdom
seen from India
seen from Spain
seen from South Korea

seen from Norway

seen from Spain
seen from Malaysia
seen from Malaysia
seen from United States

seen from Argentina

seen from United States

seen from United States
seen from United States

seen from Russia
seen from United States
@keke-ta-blog
Now, when a user clicks the download button, the server:
Enumerates all the requested images in that album.
Immediately writes to the client’s http response the http headers to say it’s a download and the file name is.zip.
zipstream writes the header bytes of zip container.
Creates an http request to the first image in S3.
Pipes that into zipstream (we don’t actually need to run deflate as the images are already compressed).
Pipes that into the client’s http response.
Repeats for each image, with zipstream correctly writing envelopes for each file.
zipstream writes the footer bytes for the zip container
Ends the http response.
This is so much better than before, as:
The download is now immediate, with only a second or two of latency.
The pipeline ensures that the whole process only runs as fast as the slowest bottleneck, which is usually the client download speed. It’s auto throttling.
Everything is in memory, and nothing ever touches disk. Only as much work as needed is ever done. eg Aborting a 1 GB download at 1MB, will only waste 1MB of CPU processing and IO bandwidth.
We can run many thousands of downloads concurrently on one server, as at each point in time a download only takes minimal resources: 2 http requests and a few JS stream objects.
Alternatively, we can run smaller cheaper servers, and get the same experience.
The code is significantly simpler, no need to manually throttle, no need to clean up temp directories after, no work queues.
No need for a cache, as we only stream what we need. Again less code to maintain.
JavaScript における new 演算子の動作は大まかにいって以下のとおりである。(new F() とした場合。) 1. 新しいオブジェクトを作る。 2. 1 で作ったオブジェクトの ||Prototype|| 内部プロパティ (__proto__ プロパティ) に F.prototype の値を設定する。 ※F.prototype の値がオブジェクトでないのなら代わりに Object.prototype の値を設定する。 3. F を呼び出す。このとき this の値は 1 で作ったオブジェクトとし、引数には new 演算子とともに使われた引数をそのまま用いる。 4. 3 の返り値がオブジェクトならそれを返す。そうでなければ 1 で作ったオブジェクトを返す。
Morris.js - Simple Graph Library Powerd By jQuery and Raphael.js.
Awesome PyPy Introduction by David Beazley. (PyCon US 2012)
tornado.stack_context.StackContext()とwithを使ってtornadoにコンテキストの管理をやってもらう
StackContext()に渡すコンテキストファクトリはリクエスト単位で固定のコンテキストを返す関数を渡す
自前のコンテキストの__enter__ではグローバル変数に自身を設定する
グローバル変数に設定することでリクエスト処理中のどこからでもコンテキストにアクセス可能
グローバル変数使えるのはユーザが実装したリクエスト処理部分はシングルスレッドで実行されるから
もしtornado自体をマルチスレッドで動かすなら、グローバル変数じゃなくてスレッドローカルな変数にすること
まああまり無いと思うけど・・・
実行結果は $ node example.js series 1 parallel 1 parallel 2 parallel 3 done. waterfall 1 parallel 3 done. parallel 2 done. series 1 done. series 2 parallel 1 done. parallel all done. 1,2,3 waterfall 1 done. waterfall 2 series 2 done. series 3 waterfall 2 done. waterfall 3 series 3 done. series all done. 1,2,3 waterfall 3 done. waterfall all done. という感じ。 seriesは名前の通り引数に渡されたfunction配列の順番に実行。予め渡されるcallbackが呼ばれると次のものが呼ばれる、という仕組み。 parallelはseriesと同じ形式で渡されたものを全部並行で走らせる。 waterfallはseriesに近いけど前の関数から引数を受け取ることができる。順番に処理したいけど前の処理で得たデータを使用したい、というときに便利かも。 いずれもすべての関数の実行が終了したタイミングで第2引数で渡された関数が呼び出される。
Broadway.js - JSでH.264のビデオをデコード再生できる
github: https://github.com/bemasc/Broadway
Windows Phone - MicroSoftがWeb上でWindows Phoneのデモ体験を提供
LIst.js - List.js makes your plain HTML lists flexible, sortable, searchable and filterable on client side. That's really simple!
Animate.css - cool, fun, and cross-browser animations for you to use in your projects. No JavaScript.
Overtone - a musical programming library written in Clojure.
VimRoom - 左揃えのコードを中央揃えにするVimプラグイン
Stripe - instant payment processing for developers
Font-Embedding Icon - CSSで作られたフォントセットのアイコン