New year's resolutions for 2017
Posted on January 1, 2017
| 467 words
| Taka Nishida
New year’s day in Berlin I’m now at Berlin Germany with my wife and we stayed at the hotel at the new year’s countdown. In Germany, the 31st of December is the only day that fireworks are allowed, so people are playing with the fireworks in the streets. But it is like a dangerous place because too many fireworks and the rocket fireworks fly toward the people. We felt enough for the fireworks so we stayed at the hotel and I’m writing this now.
[Read More]Create Tag functions to Rails without gem
Posted on November 27, 2016
| 661 words
| Taka Nishida
Why I decided to make the Tag functions by myself If you’re developing with Rails, I think you’ve heard of this famous gem acts-as-taggable-on. You might ask me, “why don’t you use this gem?”. This gem helps you to create the Tags so easily, even you don’t need to think about the database structure because this gem will generate the basic one.
But there’s a weak point, as the other gem also has.
[Read More]Update Node.js version to V6 from V5 (CentOS)
Posted on November 15, 2016
| 157 words
| Taka Nishida
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
Posted on October 26, 2016
| 487 words
| Taka Nishida
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
Posted on September 30, 2016
| 341 words
| Taka Nishida
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
Posted on September 4, 2016
| 476 words
| Taka Nishida
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
Posted on August 20, 2016
| 494 words
| Taka Nishida
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
Posted on August 14, 2016
| 358 words
| Taka Nishida
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
Posted on May 22, 2016
| 247 words
| Taka Nishida
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]