The First Cry of Atom Today is the first day of the rest of my life.

Generator comprehension

As you may know, Python has list comprehension syntax. >>> [i for i in range(1, 10)] [1, 2, 3, 4, 5, 6, 7, 8, 9] The expression is not only applied to list but also dictionary and even generator! In case of dictionary, we can use like this. >>> {str(v): v * v for v in range(1, 4)} {'2': 4, '1': 1, '3': 9} We get the map... Read more

How to build TensorFlow on macOS

I tried to build TensorFlow on my macOS. It was not difficult for me as a result. I could build the TensorFlow according to the official instruction. So I’ll add the tiny tips for building TensorFlow in addition to original instruction. Clone the repository First you need to download the source code of TensorFlow. I downloaded TensorFlow under... Read more

functools for cache

functools was introduced from Python3. This library provides the utility for creating higher-order functions in Python. I didn’t have any experience of using functools. But today I read the useful article and tried lru_cache functionality by myself. It was introduced in Python 3.2. So please upgrade your Python if 3.x is not installed. It must ... Read more

Always on SSL of GitHub Pages

Though I have longed for Always on SSL in this site, I hesitated to do that because it looks troublesome and cost me some money. Yesterday, I found a nice article about enabling Always on SSL on GitHub Pages. “Move to GitHub Pages” by takuti Thanks to Cloudflare, we can easily enable Always on SSL on our GitHub Pages for free. The instruction ... Read more

Stars in travel

TOURIST TRAP! This is the word I saw many times in this vacation travel. I travelled to Spain and Portugal in this GW (GW is the long vacation in Japan) with my wife. Since we had several experience to travel abroad, we are obtaining some knowledge how to avoid danger or how to avoid scamming. Nevertheless, we faced some situation when we shou... Read more