<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Taketo Matsunaga on Medium]]></title>
        <description><![CDATA[Stories by Taketo Matsunaga on Medium]]></description>
        <link>https://medium.com/@taketomatsunaga?source=rss-729bfa0b4dd5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*t4f1CqKIUd0nSPzg.</url>
            <title>Stories by Taketo Matsunaga on Medium</title>
            <link>https://medium.com/@taketomatsunaga?source=rss-729bfa0b4dd5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 13:29:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@taketomatsunaga/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How can we avoid GDPR if we use google kubernetes engine. Block EEA/EU users.]]></title>
            <link>https://medium.com/@taketomatsunaga/how-can-we-avoid-gdpr-if-we-use-google-kubernetes-engine-block-eea-eu-users-549229531ae0?source=rss-729bfa0b4dd5------2</link>
            <guid isPermaLink="false">https://medium.com/p/549229531ae0</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[gdpr]]></category>
            <category><![CDATA[ingress]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Taketo Matsunaga]]></dc:creator>
            <pubDate>Thu, 03 Sep 2020 13:52:22 GMT</pubDate>
            <atom:updated>2020-09-03T14:01:12.837Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://ec.europa.eu/info/law/law-topic/data-protection/eu-data-protection-rules_en">General Data Protection Regulation (GDPR)</a>. If you a business ownerEuropean Economic Area. It is something you must know.<br>I am not a lawer. But basically, if your system does some business to EU or EEA(European Economic Area) users through web sites, You must comply with GDPR, otherwise you can be fined €20 million (about £18 million) or 4% of annual global turnover — whichever is greater — for infringements.</p><p>Again I am now a lawyer, but I felt just scary when I launched websites before. So I will share how we can avoid for our system to be scoped for GDPR. (Please don’t suit me if you find problem below. I am not responsible.)</p><ol><li><strong>Premise</strong></li></ol><p><strong>1–1. Who is this article for?</strong><br> <br>Some one who build systems with following environments.</p><p>- Applications runs on Google Kubernetes Engine.<br>- Your application runs behind nginx and ingress.</p><p><strong>1–2. What we going to do.</strong></p><p>We will block all the https requests from EU/EEA countries.</p><p><strong>1–3. How we can proceed</strong></p><p>Procedure<br>1. Configure IAM Role 1min<br>2. Configure load balancer to send client country to backend services. 1min<br>3. Configure nginx to block requests from EU/EEA countries 5 min<br>4. Done！<br>Reference. Razer Blade Community</p><h3><strong>2.Block EU/EEA Users</strong></h3><p><strong>2–1. Configure IAM Role 1min</strong><br>Go to <a href="https://console.cloud.google.com/iam-admin">Google Cloud IAM Console</a> and find your service account to set up following steps from your console. If you don’t know? enter `gcloud info`, you will find account name in Current Properties section.<br>And set `Compute Admin` role to the user. It allows us to update load balancers in the next step.</p><p><strong>2–2. Configure load balancers to send client country to backend services. 1min</strong><br>Go to <a href="https://console.cloud.google.com/net-services/loadbalancing/loadBalancers/list">Google Cloud Load Balancer Console</a>. And check their names, for example `k8s-be-98765 — abcdef1234567891`.</p><p>Open console in your pc, and execute folllowing command. If you have more than two load balancers, execute the command for all of them. It makes your load balancer to set header client country code such as US for United States or JP for Japan as X-Client-Region and send it to backend services.</p><pre>gcloud compute backend-services update {name of load balancer} — global — custom-request-header ‘X-Client-Region:{client_region}’</pre><p><strong>2–3. Configure nginx to block requests from EU/EEA countries 5 min</strong><br>Now your enginx can receive country codes from google load balancer(ingress). So block requests if is is one of EU/EEA countries.</p><p>Configure your nginx.conf as follows and deploy it to your cluster.</p><pre>*****removed here ****</pre><pre>http {</pre><pre>map $http_x_client_region $allowed_country {<br>        default yes;<br>        AT no;<br>        BE no;<br>        BG no;<br>        HR no;<br>        CY no;<br>        CZ no;<br>        DK no;<br>        EE no;<br>        FI no;<br>        FR no;<br>        DE no;<br>        EL no;<br>        HU no;<br>        IE no;<br>        IT no;<br>        LV no;<br>        LT no;<br>        LU no;<br>        MT no;<br>        NL no;<br>        PL no;<br>        PT no;<br>        RO no;<br>        SK no;<br>        SI no;<br>        ES no;<br>        SE no;<br>        NO no;<br>        IS no;<br>        LI no;<br>    }</pre><pre>    server {<br>    *****removed here ****<br>     if ($allowed_country = no) {<br>         return 403;<br>     }<br>     *****removed here ****<br>    }<br>}</pre><p><strong>2–4. Done！</strong><br>Now test if requests from the listed countries are blocked by nginx. I assume that your are not in EU/EEA, so just add your country code in nginx.conf at the previous step. The if you try to access to your site, the 403 forbidden page will appear.</p><p>Congratulations!</p><h3>3.Tips</h3><p>If you search how to block requests from specific countries, you will find articles which uses <a href="https://www.maxmind.com/en/home">MaxMind</a>. It will be alternative solution.</p><h3>4.Links</h3><p>- <a href="https://cloud.google.com/load-balancing/docs/user-defined-request-headers#console">Google Cloud Load Balancer Creating user-defined request headers</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=549229531ae0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Long tail business is old? But it will change your business.]]></title>
            <link>https://medium.com/@taketomatsunaga/long-tail-business-is-old-but-it-will-change-your-business-9c5d35da49a3?source=rss-729bfa0b4dd5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c5d35da49a3</guid>
            <category><![CDATA[long-tail]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[scalability]]></category>
            <dc:creator><![CDATA[Taketo Matsunaga]]></dc:creator>
            <pubDate>Fri, 14 Jun 2019 13:46:55 GMT</pubDate>
            <atom:updated>2019-06-18T23:38:10.280Z</atom:updated>
            <content:encoded><![CDATA[<h3>Long tail business is outdated? But it will change your business.</h3><p>The word ‘<strong>Long Tail Business</strong>’ became well known with the emergence of Amazon in 2006. Because the theory completely renewed how we can do business with IT.<br>I remember that I was shocked by the possibility of long tail business. However, recently I feel that the market is forgetting the best practice, whereas IT industry focuses on ‘High Scalability’. But these two must be considered at the same time, well in my opinion.<br>So I am here to discuss with you again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*es7T6-y7pae8-KIc" /></figure><h4>What is long tail business?</h4><p>So <a href="https://en.wikipedia.org/wiki/Chris_Anderson_(writer)"><strong>Chris Anderson</strong></a><strong> </strong>wrote the book <a href="https://www.amazon.co.jp/Long-Tail-Future-Business-Selling/dp/1401302378"><strong>The Long Tail: Why the Future of Business is Selling Less of More</strong></a>.<br>He is explaining that the long tail concept considers less popular goods that are in lower demand. Plus these goods could actually increase in profitability because consumers are navigating away from mainstream markets. This theory is supported by the growing number of online marketplaces that alleviate the competition for shelf space and allow an unmeasurable number of products to be sold, specifically through the internet.</p><p>Before amazon came into the market, we often bought books at stores near our houses. So the total revenue can be A in the diagram, then if we want to buy technical books which are not in the stores nearby, we walk somewhere far. However the sum of the demand of those who buy something less popular such as technical books, the B area in the diagram, will be bigger than the one of the market A.</p><h3>Do we need to focus on the most popular market?</h3><p>It depends. But when we design business with IT, I highly recommend long tail business.</p><h3>What should be considered in terms of system</h3><p>As you can see in the diagram, if the tail is long enough, the revenue of B will be bigger than one of A.<br>So a lot of end user will use your system. According to the article <a href="http://highscalability.com/blog/2016/9/28/how-uber-manages-a-million-writes-per-second-using-mesos-and.html"><strong>How Uber Manages A Million Writes Per Second Using Mesos And Cassandra Across Multiple Datacenters</strong></a>, uber’s system have at least 1 billion request per second. Well how big is it?<br>If you think of internet banking system, the maximum transaction is normally less than 500 transactions per second. You can see how big number the uber’s transaction is.</p><p>So ‘High Scalability’ means that system can manage tons of transactions in response to the requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*zX7o82txIeBpVmYdAHJuAQ.png" /></figure><h3>How we can realize high scalable system?</h3><p>The answer is ‘<a href="https://kubernetes.io/"><strong>Kubernetes</strong></a>’.<br>It simply enable your system mange growth of your business and system transactions.</p><p>Thank you for reading my broken english! Appreciate!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c5d35da49a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Dual Boot Environment in Razer blade 15(2018) with Windows10 and Ubuntu18.04]]></title>
            <link>https://medium.com/@taketomatsunaga/create-dual-boot-environment-in-razer-blade-15-2018-with-windows10-and-ubuntu18-04-617e3042588d?source=rss-729bfa0b4dd5------2</link>
            <guid isPermaLink="false">https://medium.com/p/617e3042588d</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[dual-boot]]></category>
            <category><![CDATA[windows-10]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[razer]]></category>
            <dc:creator><![CDATA[Taketo Matsunaga]]></dc:creator>
            <pubDate>Sun, 30 Sep 2018 15:43:35 GMT</pubDate>
            <atom:updated>2018-09-30T15:44:13.537Z</atom:updated>
            <content:encoded><![CDATA[<h3>Create Dual Boot Environment in Razer Blade 15(2018) with Windows10 and Ubuntu18.04</h3><p>New Razer Blade 15 with GeForce1070 MaxQ Design finally came to Japan in this August.<br>In this post, I will show you how to set up dual boot environment with both pre-installed windows10 and ubuntu 18.04.<br>The key is that you need to upgrade BIOS driver to 1.05 to enable touch pad in ubuntu.<br>I will continue to organize the environment for ui design, server side application and analytics(GPU computation).</p><p><strong>Prerequisite</strong><br>1. External HDD 100GB up<br>2. USB Memory 32GB<br>3. USB Memory 4GB<br>4. New Razer Blade 15 MaxQ Design 512GB SSD 16GB Memory</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/1*MJmiURm0xq9dPToZ57tfaQ.png" /><figcaption>Razer Blade 15(2018)</figcaption></figure><p><strong>Procedure</strong><br>1. Windows Shrink volume 5min<br>2. Windows create recovery drive 5h<br>3. Windows create system image 30 min<br>4. Razer Blade 15 Driver update to v1.05 10 min<br>5. Create ubuntu 18.04 live USB memory 5 min<br>6. Ubuntu Installation<br>7. Done！<br>Reference. Razer Blade Community</p><h3>1. Windows Shrink volume 5min</h3><p>In my model, it has 460GB free out of 512GB volume. <br>I will split it into one for window and ubuntu as dual boot.<br>I eventually give 300GB to Ubuntu, so first you need to shrink windows volume for that amount.<br>However since it is more than half of the entire volume, we must use tool called ‘AOMEI Partition Assistant’</p><p>Following the guide . Please shrink windows volume. There is free version of the tool, so you can use it!</p><h3>2. Windows create recovery drive 5h</h3><p>For the hard disk issue, you might need to create recovery drive.<br>The 32GB memory is enough. Follow <a href="https://support.microsoft.com/en-us/help/4026852/windows-create-a-recovery-drive">Create a recovery drive</a>, please create a recovery drive.</p><h3>3. Windows create system image 30 min</h3><p>If you have add some tool or configuration in your pc, you might want to back up system image to restore them.<br>Follow <a href="https://answers.microsoft.com/en-us/windows/forum/windows_10/how-to-create-a-system-image-in-windows-10/84fa6683-e3ac-4e93-9139-368af9267869">How to: Create a system image in Windows 10</a>.</p><h3>4. Razer Blade 15 Driver update to v1.05 10 min</h3><p>If you skip this step, you will get stuck!<br>Without this step, ubuntu 18.04 does not recognize your touch pad due to bug in BIOS.<br>So you need to upgrade to at least version 1.05.</p><p>Go to razer support <a href="http://drivers.razersupport.com//index.php?_m=downloads&amp;_a=view&amp;parentcategoryid=766&amp;pcid=765&amp;nav=0,350,765">Support Center » Downloads » Razer Systems » Razer Blade 15” (2018) » Hardware Drivers</a>. And download ‘ [Blade 15&quot; 2018] BIOS Updater Guide 1.05’ and follow the guide! If there is fix pac for 1.06 or more, you should install them for sure.</p><h3>5. Create ubuntu 18.04 live USB memory 5 min</h3><p>Use <a href="https://unetbootin.github.io/">unetbootin tool</a> to create live boot usb memory. You can download iso file of ubuntu from <a href="https://www.ubuntu.com/download/desktop">here</a>.</p><h3>6. Ubuntu Installation</h3><p>Insert the live usb memory, and restart with F12 to go to boot selection. And select ‘Install Ubuntu’.</p><p>I will guide only important step.</p><h3>Install Option</h3><p>check normal installation with all the option. You can get useful tools at the same time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wp4lC5W7mQ5cWaJ3" /><figcaption>Installation Options</figcaption></figure><h3>Bool loader directory and partition</h3><p>Place the boot loader in ‘Windows Boot Manager’.<br>You need to git 1 to 2 times more than memory for swap. So I give 32GB swap for 16GB memory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KawLZLWRKZa3xUG0" /><figcaption>Partitioning for ubuntu swap</figcaption></figure><p>Allocate rest of it about 290GB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wmpkYsjjh0KMScdH" /><figcaption>Partitioning for ubuntu</figcaption></figure><h3>7. Done！</h3><p>Reboot and select ubuntu!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TBEGwfp2NIgNUHr7" /><figcaption>Done!</figcaption></figure><p>Reference. Razer Blade Community<br>You can get information regarding Razer Blade in the following links.<br>1. <a href="https://insider.razer.com/index.php?forums/support/&amp;_ga=2.93195034.608622230.1538146919-852409803.1538146919">Razer Support Community</a><br>2. <a href="https://discordapp.com/channels/448846881079164928/448847530265149440">Razer Blade@Discord App</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yJ3pG6k9YdQTgnGv" /><figcaption>Razer Blade Discussion at Discord App</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=617e3042588d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>