The first cry of Atom

The people who are crazy enough to think thay can change the world, are the ones who do

Case Class for Swift

Last week, Apple new programming language Swift was released. From that time I keep considering Swift looks like Scala language. Scala has two sides as object-oriented-language and functional-programming-language. So there are many features you should learn from scala. One of the most powerful feature of scala is pattern matching. This feature in scala context can be applied to all type objects. It is called constructor pattern matching.

Welcome Open Source Movement in Hardware Company

Today is the first day of new era for Open Source movements.

All Our Patent Are Belong To You

Tesla Motor by Steve Jurvetsonflickr

Tesla is famous for its motor products. These opened patents includes EV technologies for the future. I think it will accelerate the speed of development of EV vehicles. So this decision plays a big role to progress the bright future of motor technologies.

Above all, as a software engineer, it is great thing to spread open source movement into hardware companies.

Hack NHK

Recently, there are a lot of hackathon in Japan. This word “Hackathon” also have been familiar word to non programmers. People want to use this type of event in order to solve any problems they have at office, home and life.

NHK is Japan’s national public broadcasting organization. The name is abbreviation of “Nippon Housou Kyoukai”. This organization keeps focusing to improve the quality of news broadcasting in terms of equality, accuracy and deepness. In this weekend, Hakathon is applied to the field of broadcasting. I attended.

http://www.nhk.or.jp/kokusaihoudou/hackathon/

What Is the Essential Factor of Autoencoder?

The other day, I wrote neural network which implements backpropagation algorithm. Following this program I write denoised autoencoder program by inheriting previous neural network. Backpropagation algorithm is generally good performance in spite of the simplicity. With this code, I can be ranked in at the 266th(May 20th, 2014). So I think this implementation has no bugs. However when I use this program as autoencoder the same is not true. With autoencoder, you should reduce dimension of input vector in order to extract essential characteristics. These essential characteristics might be also reduced so it cannot reconstruct the same vector to input vector. In fact after over-completed this network, I can better performance in terms of the number of accurate answers.

This is code.

Dear, O

Hello, nice to meet you. I am a novice software engineer who has worked for about 2 years. An ordinary man. I have no honor, no fame and no wealth. Of course you don’t know who I am. There is no connection between us such as email, facebook and twitter. The reason why I can mate your name and your face is no more than watching on TV. That’s all. So in this time I dare to say that I am not familiar with you completely. Unexpectedly I don’t know who you are in spite of writing this letter. For whom? I would like to tell the reason why I wrote this letter.

letters by liz west on flickr


Patterns About BFS in Competitive Programming

So let’s go back to English from today :)

I solved SRM612 Div1 for practice. This problem is this In this post, I left out the detail of this problem because main topic of this post is pattern of BFS. First I tried to solve this problem with some dynamic programming algorithm. But after trying, I found BFS is sufficient algorithm to solve. So now I rewrote my program as below.

Heart Bleedを読んだ

今日の日本時間13:00頃、OpenSSLに致命的なバグがあることがわかった。全世界で動いているSSLプロセスが影響を受ける。 簡単に言うと、メモリ上にある任意のデータを漏洩する可能性があるバグだ。 このバグはもう2年も前からあったらしいがGoogle Security TeamのNeel Mentaに見つけられたのはつい最近で、パッチがあたったのは十数時間前だ。

Add heartbeat extension bounds check.

基本的にはheartbleed.comに詳細が記載されていて、危険なOpenSSLのバージョン、ディストリビューションが書いてある。 対応方法も書いてある。今回はエンジニアとして、コードを読んでどういうバグだったのか理解してみたかったので書いてみる。

温泉津にて

「おやすみなさい」

なるほど、みんな地元の人達か。温泉津で過ごす夜は少し僕を戸惑わせた。 旅館に付属していない外湯と呼ばれる湯に入りにきたため、地元の人達の憩いの場にお邪魔してしまったようだ。


「じゃ、お先です」 「おやすみなさい」

そんなやりとりをして、みんな湯を上がっていく。僕はというとまだ湯につま先さえつけていない。何しろアツいのだ。 よくよく見てみるとみんな10秒くらいで出たり入ったりじゃないか。とりあえず入ってみるか。

少し鉄の味が残るアツい湯は体にいいらしいが、僕の頭にも強い刺激を与えたようだ。 この二、三日もやもやしていた気持ちが露わになってきた。

禅と手段と目的と

久しぶりに日本語で書いてみる。 言葉のリズムが日本語でないと掴めない箇所があるので、やっぱり自分の母国語は日本語なんだとつくづく感じた。 言葉のリズムというのはなかなか掴みづらくて、僕の中では「つい口ずさんでみたくなる言葉」が最もリズムのいい言葉だと思っている。一昔前でいうと『声に出して読みたい日本語』なんていうのが流行ったけれど、あれに近いかもしれない。ただ僕の感覚はもっと俗っぽくて巷で流れているくだらないCMソングなんかはわかりやすい「つい口ずさんでみたくなる言葉」なんじゃないかと。

さて、手段の目的化と禅のお話。

Next Tile on Tempai

I tried this problem.

Your program receives the hand of mahjong. Returns the “Waiting style” of this hand. But there are some conditions as below.

  • There are no Jihai, only Manzu
  • Make Juntsu, Kohtsu and Head
  • Regard different order waiting as the same
  • If there are no waiting, no output