Update Node.js version to V6 from V5 (CentOS)

Background I have been using Node V5 inside the AWS EC2. This time I need to update it but I got in problem, this is the memo how I solved it. Environments AWS EC2 ElasticBeanstalk Centos The Problem I need to update to Node V6 from V5, so I tried to yum install the Node from the new repository. The yum keep using the old repository and does not use the new one, even I registered the new V6 repository for install. [Read More]

'timely': Created CLI tool made by Golang

I made a CLI tool to get the timely info for the engineers. Github - takp/timely Concept of timely Day by day, the information about the new technologies that the web engineer should follow are increasing. They are news, articles, blogs, facebook posts, twitter and so on. Now it is not easy to follow the all info. What is the best way to get the timely info quickly and easily. It may be useful to use the CLI tool that can get the timely info by hit just 1 line code. [Read More]

How to get a MySQL slow query log from AWS RDS

It is very important to know which query is slow and cause the slow response. MySQL can output the slow query logs so we can optimize the queries. I’m using the AWS RDS for my database, so I explain how to set up to RDS. Activate MySQL slow query log At first, go to AWS RDS dashboard, and go to “Parameter Groups”. slow_query_log You can set the “slow_query_log” to “1” and save it. [Read More]

Application Load Balancer - AWS ElasticBeanstalk Setting

What is Application Load Balancer? The Application Load Balancer works at the layer 7 (application layer), and the standard load balancer works at the layer 4 (transport layer). There are many benefits with it. It enables more sophisticated load balancing, like multiple port to certain paths. But for me, the most biggest benefit is I can use HTTP/2 with it. Configuring an Application Load Balancer AWS - Application Load Balancer Details The AWS official document explains more in detail. [Read More]

Rails Architecture with Service and Decorator

Architecture After we start to develop the application, we continue to develop and the application become bigger. Then you may encounter to the problem like “fat controller” or “fat model”. If you need to put the business logic, but it’s not related to any model or related to more than 2 models, where are you gonna locate it? And if the models got fat, how are you gonna make it slim? [Read More]

Boilerplate for Rails 5

Needs for Rails 5 Boilerplate I’ve been working with Ruby on Rails more than 3 years and I started feel I need a good template to make a rocket start. What I need for the boilerplate is… New Rails version UI: Bootstrap, FontAwesome Nice template engine (Slim or Haml) Includes only basic functions (not fancy features) MySQL Better to have a basic user authentication (Devise gem) I could find some good boilerplate for Rails, but they’re a bit different from my needs. [Read More]

Why I started the English blog

English blog? I’ve been writing the blog in Japanese for 5 years or more, writing about my life, programming, work, everything. After I changed my place to Bangkok, I became to feel I need to spread information more. Even I work in Thailand, I’m still in Japanese society. I mostly work with Japanese people. There are many reasons though, the main reason is that I’m Japanese (of course) and I met with one Japanese engineer and started to work together. [Read More]