A few are written in 日本語.

Mon, 28 Jan

Algorithms: Design and Analysis, Part 1

Finally Algorithms: Design and Analysis, Part 1 started on Coursera! I watched 3/15 videos today.

Korean Pop isn’t “kawaii” except for Japan

How Korean Pop Conquered Japan

K-Pop unit T-ara’s 2009 video for the song “Bo Peep Bo Peep” centered around a member of the girl group going to a club and hooking up with a guy in the bathroom, an elevator, and his apartment. The Japanese clip, in advance of T-ara’s official Japanese debut later this month, finds the members wearing cat ears and playing un-erotically with one another: the sexuality of the original replaced with Hello-Kitty-approved cuteness.

The Economist’s article about DeNA and GREE

Japan fights back (via @youkoseki)

Thu, 31 Jan

Why PSGI uses an array reference instead of a string in a response body?

I tweeted this question and got an answer from the designer, @miyagawa.

In WSGI (PEP 333), an response body is an iterable.

When called by the server, the application object must return an iterable yielding zero or more strings. This can be accomplished in a variety of ways, such as by returning a list of strings, or by the application being a generator function that yields strings, or by the application being a class whose instances are iterable. Regardless of how it is accomplished, the application object must always return an iterable yielding zero or more strings.

And the spec recommends a single-element list containg a single string.

The corresponding approach in WSGI is for the application to simply return a single-element iterable (such as a list) containing the response body as a single string. This is the recommended approach for the vast majority of application functions, that render HTML pages whose text easily fits in memory.

mod_wsgi explains what happens when you return a string instead of a list.

The worst case of this is where instead of returning a list containing strings, a single string is returned. The problem with a string is that when it is iterated over, a single character of the string is yielded each time.

The Twitter Stack

Johan Oskarsson explained about their stack from Finagle to jvmgcprof.

My favorite stories around GitHub

Sat, 02 Feb

I was a good blogger in January

[To see the graph, you need to have JavaScript enabled in your browser.]

I blogged something in here 15 days a month!

Mon, 04 Feb

Algorithms: Design and Analysis, Part 1

I watched 7 videos because I only watched 3 videos in the last week. For me, this class is harder than Scala class which I took last year.

Tab-separated the minutes of the Diet

国会会議録データセット(対話コーパス)

Etsy uses master-master replication on their MySQL shards

Etsy uses sharded MySQL but they use master-master replication on each shards. When Etsy ALTER table, they cut down half of the shards, apply the change to the half and do same steps on an other half of the shards.

Wed, 06 Feb

Algorithms: Design and Analysis, Part 1

I watched 3 videos yesterday.

Work From Home

Tokyo Trains Delayed, Traffic Slowed as Snowfall Hits City

Tokyo trains were delayed and expressway traffic slowed as snow started falling in the Japanese capital, with 5 centimeters (2 inches) forecast by tomorrow morning.

I was WFH (Work From Home) today.

Fri, 08 Feb

Algorithms: Design and Analysis, Part 1

I watched an one video again and finally started working on assignments yesterday.

These site make your email shorter

tricot

tricot is a Japanese four piece band. They uploaded 4 music videos but my most favorite is the first one still.

Vala

https://live.gnome.org/Vala

Vala is a new programming language that aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C.

Geary, a new email reader for GNOME, is written in Vala.

Sat, 09 Feb

Algorithms: Design and Analysis, Part 1

In my first try, I scored 5.0/5.0 on Programming Question #1, 4.0/5.0 on Problem Set #1. Unlike Scala class, there is a maximum number of attempts in this class. I can try two more times on the Problem Set.

Python

I used Python to solve Prgramming Question #1. Still I don’t prefer to write “return” explicitly but off-side rule reduces verbosity of my code.