<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Foreigner's Guide to Rediscover Japan</title>
    <description>The Purpose of this website is to help you experience Japan not like a tourist. This include guiding you to discover new food and place; inspiring you to explore Japan in your own way without following a tour-guide. Helping you plan your trip to visit or stay in Japan; and encouraging you to try something very cultural -- so your experience will unique and one of a kind.
</description>
    <link>http://chow.red/</link>
    <atom:link href="http://chow.red/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Thu, 13 Sep 2018 08:35:31 +0000</pubDate>
    <lastBuildDate>Thu, 13 Sep 2018 08:35:31 +0000</lastBuildDate>
    <generator>Jekyll v3.8.3</generator>
    
      <item>
        <title>Auto publish test</title>
        <description>&lt;p&gt;This is a test again e.&lt;/p&gt;

</description>
        <pubDate>Sat, 18 Jun 2016 12:49:00 +0000</pubDate>
        <link>http://chow.red/jekyll/drupal/2016/06/18/test-post.html</link>
        <guid isPermaLink="true">http://chow.red/jekyll/drupal/2016/06/18/test-post.html</guid>
        
        
        <category>jekyll</category>
        
        <category>drupal</category>
        
      </item>
    
      <item>
        <title>This is a test update on my iphone</title>
        <description>&lt;h1 id=&quot;setup-my-iphone-to-upload-post-to-this-blog&quot;&gt;Setup my iphone to upload post to this blog.&lt;/h1&gt;
&lt;p&gt;Haven’t update my personal blog for a while now, but I will try to update it more often.&lt;/p&gt;
</description>
        <pubDate>Fri, 17 Jun 2016 16:43:00 +0000</pubDate>
        <link>http://chow.red/jekyll/drupal/2016/06/17/life-in-japan.html</link>
        <guid isPermaLink="true">http://chow.red/jekyll/drupal/2016/06/17/life-in-japan.html</guid>
        
        
        <category>jekyll</category>
        
        <category>drupal</category>
        
      </item>
    
      <item>
        <title>Move my website from Drupal to Jekyll</title>
        <description>&lt;p&gt;Since I work with cloud infrastructure and DevOps on a daily basis, slow websites and servers are always haunting me. I would like my all my websites to load quickly, even for my personal blog. Although I love to work with Drupal’s powerful framework, it costs too much time to keep up with the maintenance and plugin update.&lt;/p&gt;

&lt;p&gt;I decided to move my blog from Drupal to &lt;a href=&quot;http://jekyllrb.com&quot;&gt;Jekyll, a static website generator&lt;/a&gt;. The reason behind the migration is that I want to focus more on the blog’s content instead of server maintenance. After the migration, the response time went from 3000ms down to 40ms, Now that is what I called improvement. A blog should only have one function - delivery of a message to the audience, nothing more.&lt;/p&gt;

&lt;p&gt;One of the benefits of &lt;a href=&quot;http://jekyllrb.com&quot;&gt;Jekyll&lt;/a&gt; is its importer; it allows you to import your old posts from different platform without any difficulties.&lt;/p&gt;

</description>
        <pubDate>Fri, 28 Nov 2014 16:43:00 +0000</pubDate>
        <link>http://chow.red/jekyll/drupal/2014/11/28/move-website-from-drupal-to-jekyll.html</link>
        <guid isPermaLink="true">http://chow.red/jekyll/drupal/2014/11/28/move-website-from-drupal-to-jekyll.html</guid>
        
        
        <category>jekyll</category>
        
        <category>drupal</category>
        
      </item>
    
      <item>
        <title>Update this blog with SSL and alias domain with www redirect</title>
        <description>&lt;p&gt;First, I registered a new domain for this website - chow.red, short and simple, right? I know you will love it :D&lt;/p&gt;

&lt;p&gt;Second, for your security concern, I enabled Full SSL (strict) on CloudFlare alone with free “Class 1 SSL Certificate” on the server using StartSSL.
This is not an advertisement or anything like that, I just want to share freebie like this with you all.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;FREE SSL (startssl.com)&lt;/li&gt;
  &lt;li&gt;FREE CDN (CloudFlare.com)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Who don’t like freebies? I know I do :)&lt;/p&gt;

&lt;p&gt;Here is how I did it.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Sign up on  https://www.startssl.com/ and CloudFlare (Free SSL enabled on Oct 9)&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Create your key and certificate request (your_domain.csr) with the following code&lt;/p&gt;

    &lt;pre&gt;&lt;code&gt; openssl req -new -keyout your_domain.key -out your_domain.csr
&lt;/code&gt;&lt;/pre&gt;
  &lt;/li&gt;
  &lt;li&gt;Verify your domain with the “Validations Wizard” in startssl.com&lt;/li&gt;
  &lt;li&gt;Use “Certificates Wizard” to create your certificate, copy your_domain.csr and click next&lt;/li&gt;
  &lt;li&gt;copy the cert to your server your_domain.crt&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Setup your nginx config&lt;/p&gt;

    &lt;pre&gt;&lt;code&gt;//  Redirect all your www and non-www traffic to https non-www domain
server {
    listen 80;
    server_name  your_domain.com www.your_domain.com;
    rewrite ^(.*) https://your_domain.com$1 permanent;
}
server {
    listen 443 ssl;
    ssl on;
    ssl_certificate      /etc/ssl/certs/your_domainSSL.crt;
    ssl_certificate_key  /etc/ssl/certs/your_domain.key;
    ssl_client_certificate /etc/pki/tls/certs/ca-bundle.crt;
    server_name  www.your_domain.com;
    rewrite ^(.*) https://your_domain.com$1 permanent;
}

// Set up the SSL
server {
    listen 443 ssl;
    server_name your_domain.com;
    root   /var/www/your_domain.com/root;
    ssl on;
    ssl_certificate      /etc/ssl/certs/your_domainSSL.crt;
    ssl_certificate_key  /etc/ssl/certs/your_domain.key;
    ssl_client_certificate /etc/pki/tls/certs/ca-bundle.crt;
    location @rewrite {
          # Some modules enforce no slash (/) at the end of the URL
          # Else this rewrite block wouldn't be needed (GlobalRedirect)
          rewrite ^ /index.php last;
    }
    location @rewrite {
        rewrite ^/(.*)$ /index.php?q=$1;
    }
    location ~ ^/sites/.*/files/styles/ {
        try_files $uri @rewrite;
    }
}
&lt;/code&gt;&lt;/pre&gt;
  &lt;/li&gt;
  &lt;li&gt;Set you your CDN on CloudFlare, and enable FULL SSL (strict).&lt;/li&gt;
  &lt;li&gt;Enjoy looking at the green lock next to your URL.&lt;/li&gt;
&lt;/ol&gt;
</description>
        <pubDate>Tue, 14 Oct 2014 00:00:00 +0000</pubDate>
        <link>http://chow.red/2014/10/14/update-this-blog-with-ssl-and-alias-domain-with-www-redirect.html</link>
        <guid isPermaLink="true">http://chow.red/2014/10/14/update-this-blog-with-ssl-and-alias-domain-with-www-redirect.html</guid>
        
        
      </item>
    
      <item>
        <title>Chef Server Installation Guide for Amazon linux</title>
        <description>&lt;ul&gt;
 &lt;li&gt;Chef Server Installation Guide for Amazon linux&lt;/li&gt; 
First find the right version to install from http://www.getchef.com/chef/install/ as of this writing, I am usign 11.0.12.
&lt;code&gt;rpm -Uvh https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-server-11.0.12-1.el6.x86_64.rpm&lt;/code&gt;
// Run this to configure the sever, if you have problem checkout the trouble shooting guide below.
&lt;code&gt;chef-server-ctl reconfigure&lt;/code&gt;
// Check Chef server config
 &lt;code&gt;chef-server-ctl test&lt;/code&gt;
&lt;li&gt;Set /etc/hosts otherwise you may not be able to login on the web UI&lt;/li&gt;
&lt;code&gt;xx.xxx.xxx.xxx your.awesome.domain.com
127.0.0.1 localhost localhost.localdomain&amp;lt;/host&amp;gt;

If you are installing Chef server on Amazon Linux micro instace you may run across the following problem:
 &lt;li&gt;Stuck on ruby_block[supervise_rabbitmq_sleep] action run&lt;/li&gt; 

 Add the following line to /opt/chef-server/embedded/cookbooks/runit/recipes/default.rb will solve the problem.
&lt;code&gt; when &quot;amazon&quot;
  include_recipe &quot;runit::upstart&quot;
&lt;/code&gt; 


&lt;li&gt;Memory&lt;/li&gt; 
Make sure you have enough memory and swap space

// Run this command to create swap space
&lt;code&gt;dd if=/dev/zero of=/swap_1 bs=2048 count=1000000
mkswap /swap_1
swapon /swap_1
&lt;/code&gt;

// Add the follow line to /etc/fstab so it will auto mount after reboot
&lt;code&gt;/swap_1 swap swap defaults 0 0&lt;/code&gt;

// Now you should be able to see the swap space you just created with this command
&lt;code&gt;free -tom&lt;/code&gt;

&lt;li&gt;Dependency&lt;/li&gt;
You may have problem configure your Chef client(workstation) on your Mac,  when you run &quot;knife configure --initial&quot; it will show you the following error:
&lt;code&gt;Ohai::Exceptions::DependencyNotFound: Can not find a plugin for dependency os&lt;/code&gt;

That is the problem of chef client 11.12, try to install 10.32 first and install 11.12 again. This will bypass the problem in the mean time, when the patch will apply to the future release.(https://tickets.opscode.com/browse/CHEF-5211)

&lt;code&gt;curl -L https://www.opscode.com/chef/install.sh | sudo bash -s -- -v 10.32.2&lt;/code&gt; 
&amp;lt;/ul&amp;gt;
&lt;/code&gt;&lt;/ul&gt;
</description>
        <pubDate>Fri, 11 Apr 2014 00:00:00 +0000</pubDate>
        <link>http://chow.red/2014/04/11/chef-server-installation-guide-for-amazon-linux.html</link>
        <guid isPermaLink="true">http://chow.red/2014/04/11/chef-server-installation-guide-for-amazon-linux.html</guid>
        
        
      </item>
    
      <item>
        <title>Newrelic's nginx plugin install </title>
        <description>&lt;p&gt;Today,&amp;nbsp;Newrelic announced a new open platform for you to install your own plugin to monitor your own stack.&lt;/p&gt;

&lt;p&gt;It featured a list of default plugin&amp;nbsp;- http://newrelic.com/platform&amp;nbsp;that you can use. Since&lt;/p&gt;

&lt;p&gt;I use Nginx on my server, so I decided to give it a try.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;First the plugin require you to install Ruby and&amp;nbsp;&lt;span style=&quot;color: rgb(68, 68, 68); font-family: HelveticaNeueWeb, 'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif; font-size: 14px; line-height: 17.984375px;&quot;&gt;bundler for Ruby, after that you need to download the tar file from&amp;nbsp;&lt;/span&gt;http://nginx.com/nrform.html.&lt;/p&gt;

&lt;p&gt;Download the file to your server and decompress it, then run&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;bundle install&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you have problem with the gem&amp;#39;s json and see an error like this&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;mkmf.rb can&amp;#39;t find header files for ruby at /usr/share/ruby/include/ruby.h​&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Make sure you install ruby-devel and other require dependencies&amp;nbsp;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;sudo yum install ruby-rdoc ruby-devel&lt;/p&gt;

&lt;p&gt;yum install make&lt;/p&gt;

&lt;p&gt;yum install gcc&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Also the Gemfile&amp;#39;s&amp;nbsp;git repository path is incorrect, change it to use HTTPS. You may get a message similar to the follwoing:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;git clone git@github.com:/newrelic-platform/newrelic_plugin.git&lt;br /&gt;
Cloning into &amp;#39;newrelic_plugin&amp;#39;...&lt;br /&gt;
Permission denied (publickey).&lt;br /&gt;
fatal: Could not read from remote repository.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Change it to this.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;gem &amp;quot;newrelic_plugin&amp;quot;, :git =&amp;gt; &amp;quot;https://github.com/newrelic-platform/newrelic_plugin.git&amp;quot;, :branch =&amp;gt; &amp;#39;release&amp;#39;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now &amp;quot;build install&amp;quot; again and you should be fine. Remember to follow the README file and change the account id. I skip those steps, and just descripted the PROBLEM you may see during the installation here.&lt;/p&gt;
</description>
        <pubDate>Thu, 20 Jun 2013 00:00:00 +0000</pubDate>
        <link>http://chow.red/2013/06/20/newrelics-nginx-plugin-install.html</link>
        <guid isPermaLink="true">http://chow.red/2013/06/20/newrelics-nginx-plugin-install.html</guid>
        
        
      </item>
    
      <item>
        <title>Drupal 7 migration to Amazon AWS EC2 micro instance</title>
        <description>&lt;p class=&quot;p1&quot;&gt;Earlier this week my shared hosting for this blog was&amp;nbsp;almost at the end of its contract, so I decided to upgrade my server to a cloud VPS&amp;nbsp;hosting. This will improve the loading speed&amp;nbsp;for this blog and allow me to experiment&amp;nbsp;with my other websites. During the migration process there were&amp;nbsp;quite a few problems with the blog&amp;#39;s CMS system - Drupal 7, because earlier there was a lot of spam in this blog so I directly delete the spam users, blogs and comments in database. Ooooo boy, after that I realize it is not a good idea to directly edit the record in the database because the CMS system cannot update the record. The proper way to delete spam user and all of their contents is to use the administrator&amp;#39;s panel or type in this URL [www.yourWebsite.com]/admin/people&amp;quot;.&lt;/p&gt;

&lt;p class=&quot;p1&quot;&gt;Well, if you are here, that mean you have some trouble. Let get start and fix it, after you deleted the spam&amp;nbsp;comment&amp;nbsp;(truncate comment)&amp;nbsp;&amp;nbsp;in your database the record count in your database is not correct, you may noticed&amp;nbsp;the&amp;nbsp;comment counter&amp;nbsp;in your post is not updated and when you add a new comment the following error appear.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p class=&quot;p2&quot;&gt;&lt;i&gt;Undefined property: stdClass::$comment_count in comment_node_page_additions()&lt;/i&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p class=&quot;p3&quot;&gt;&lt;span class=&quot;s1&quot;&gt;This error mean that your&amp;nbsp;&lt;/span&gt;node_comment_statistics table is empty, in order to fix this problem we need to run a query in mysql database.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p class=&quot;p3&quot;&gt;INSERT INTO `node_comment_statistics` (`nid`, `cid`, `last_comment_timestamp`, `last_comment_name`, `last_comment_uid`, `comment_count`)&lt;br /&gt;
SELECT nid, 0, UNIX_TIMESTAMP(), NULL, 1, 0 FROM node&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p class=&quot;p3&quot;&gt;What this query doing is add a record to all the node in your database, this should fix the problem for you.&lt;/p&gt;
</description>
        <pubDate>Sat, 02 Feb 2013 00:00:00 +0000</pubDate>
        <link>http://chow.red/2013/02/02/drupal-7-migration-to-amazon-aws-ec2-micro-instance.html</link>
        <guid isPermaLink="true">http://chow.red/2013/02/02/drupal-7-migration-to-amazon-aws-ec2-micro-instance.html</guid>
        
        
      </item>
    
      <item>
        <title>Fix terminal set locale warning for Mac OS</title>
        <description>&lt;p&gt;When I try to ssh into my remote server using terminal it give me the following warning.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;span style=&quot;background-color:#ffff00;&quot;&gt;-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It doesn&amp;#39;t happen to every server, but just one particular server. In order to fix this problem, you need to add the following line &lt;font color=&quot;#333333&quot; face=&quot;Tahoma, Verdana, Arial, sans-serif&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 21.600000381469727px;&quot;&gt;into .bash_profile in your computer not your server.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;blockquote&gt;
&lt;div&gt;&lt;span style=&quot;background-color:#00ff00;&quot;&gt;export LC_CTYPE=en_US.UTF-8&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;background-color:#00ff00;&quot;&gt;export LC_ALL=en_US.UTF-8&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;

&lt;div&gt;&amp;nbsp;&lt;/div&gt;

&lt;div&gt;After that save and restart your terminal session, then try to ssh into your server again. You should not see the warning again.&lt;/div&gt;
</description>
        <pubDate>Fri, 03 Aug 2012 00:00:00 +0000</pubDate>
        <link>http://chow.red/2012/08/03/fix-terminal-set-locale-warning-for-mac-os.html</link>
        <guid isPermaLink="true">http://chow.red/2012/08/03/fix-terminal-set-locale-warning-for-mac-os.html</guid>
        
        
      </item>
    
      <item>
        <title>The second year in Japan</title>
        <description>&lt;p&gt;
	It is already been 2 years since I live and work in Japan, I can&amp;#39;t believe that I stay here for that long. At the beginning, I was a student who study aboard for one semester. At the end of the semester I decided to stay here and experience more, working and enjoying my live in Japan.&lt;!--break--&gt;The first year was tough, trying to adapt to the new environment and language. Then the second year was easier and more enjoyable as I make many new friends and get the hang of the language. Beginning from today I will try to write this blog as often as I can, increase the length in the post and put useful information about Japan. I hope this website will help people in many ways, so you can learn from my mistake.&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	After working in Japan for a little more then a year, I notice that management system in most Japanese companies are lack of flexibility and efficiency. Management hierarchy is deeply embedded into Japanese culture, lead to poor communication and lack of creativity. There is no doubt that Japanese companies are trying to introduce western management system into their company, but most worker are still believe in their traditional value and obedience to&amp;nbsp;senior level worker. The management system work for most westerner because employees are willing to express their own opinion and the employer are willing to listen. In the case of Japanese companies, most employees will not confront their superior&amp;nbsp;even they know there is a problem. Maybe I shouldn&amp;#39;t blame on the Japanese culture, it is more the problem of the poor management. I am sure this happen in companies around the world, but Japanese companies tend to have this problem more often.&lt;/p&gt;
&lt;p&gt;
	I work as a software engineer, mostly work with other engineer and designer. In this environment I personally think that a flat management system is quite important because we are creating a product together. I seem to run into many bottleneck because no one willing to listen my opinion because I am the youngest person in the development team, to be honest I am the one with the less experience but this doesn&amp;#39;t make my opinion less important. On most projects, the resource -- ( images or design) I request was not fill by anyone because the manager told me that the designer are busy and have more important project working on. I know all the designers personally and they told me that they have nothing to work on. This is one of the example of poor management system in Japan, my suggestion to improve the management system in Japan is to remove senior hierarchy system and create a more competitive environment at the same time. Employees will feel more motivated to work on their project and create a better product.&lt;/p&gt;
&lt;p&gt;
	One person I really admire is Steve Jobs, his management style is very strict and hard, but at the same time he is willing to listen to people. Some indie developer send him a email inquire about his app approval process, he personal reply the email and help this developer fix his problem. A CEO of a big company reply the email himself not happen very often.&lt;/p&gt;
&lt;p&gt;
	I think this is the end of today&amp;#39;s blog post, if you have any question about Japan or want to talk me about any thing. Feel free to reply below or send me an email.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
</description>
        <pubDate>Thu, 02 Aug 2012 00:00:00 +0000</pubDate>
        <link>http://chow.red/2012/08/02/the-second-year-in-japan.html</link>
        <guid isPermaLink="true">http://chow.red/2012/08/02/the-second-year-in-japan.html</guid>
        
        
      </item>
    
      <item>
        <title>Almost Friday~~</title>
        <description>&lt;p&gt;
	Made this website for a while now, I am still not sure what should I do with it. I tried to focus the topic on Japan, but honestly I am not a good writer or blogger. I just couldn&amp;#39;t keep writing article every week for more that a month.&lt;/p&gt;
&lt;p&gt;
	Is not like I hate writing, it just because no one is responding to an article I wrote. If you have any idea or topic please feel free to let me know, I will write some about it.&lt;/p&gt;
&lt;p&gt;
	Today I just realize how much I hate Facebook, it really like a prison. You just go around and look at other people&amp;#39;s wall but do you really understand that person, I don&amp;#39;t think so. Facebook just separated us from our friend even more that before. At least you will call that person and ask them to hang out. Now, you just send an invitation to all your &amp;quot;friends&amp;quot; and ask them to hang out. Do you really want everyone to go, no I don&amp;#39;t think so.&lt;/p&gt;
&lt;p&gt;
	What a meanness things to do, when you are be friend with another person. You need to communicate with them and interact with them. I am no whining about Facebook, it just doesn&amp;#39;t feel right and as comfortable as talk to another person face to face.&lt;/p&gt;
</description>
        <pubDate>Thu, 10 Nov 2011 00:00:00 +0000</pubDate>
        <link>http://chow.red/2011/11/10/almost-friday.html</link>
        <guid isPermaLink="true">http://chow.red/2011/11/10/almost-friday.html</guid>
        
        
      </item>
    
  </channel>
</rss>
