<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>acotie.me</title>
    <description>focussed on sales, programming and startup, quality photography.</description>
    <link>https://acotie.me//</link>
    <atom:link href="https://acotie.me//en/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Sun, 14 Jun 2026 02:56:07 +0000</pubDate>
    <lastBuildDate>Sun, 14 Jun 2026 02:56:07 +0000</lastBuildDate>
    <generator>Jekyll v3.8.7</generator>
    
      <item>
        <title>I Built ROKUYO, a Simple iOS Wallpaper Service for More Mindful Days</title>
        <description>&lt;p&gt;&lt;img src=&quot;/img/rokuyo-rokuyo-dev-06-13-2026_08_52_pm.png&quot; alt=&quot;ROKUYO - MINIMAL LOCK SCREEN WALLPAPERS FOR MORE MINDFUL DAYS&quot; title=&quot;ROKUYO - MINIMAL LOCK SCREEN WALLPAPERS FOR MORE MINDFUL DAYS&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Over the past weekend — two weekend days plus one weekday — I built a website called &lt;strong&gt;ROKUYO&lt;/strong&gt; (&lt;a href=&quot;https://rokuyo.dev/&quot;&gt;https://rokuyo.dev/&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;That said, I had already created a rough base beforehand, so the actual work was more like spending two to three hours each day on layout adjustments, testing, and final tweaks.&lt;/p&gt;

&lt;p&gt;I paired with generative AI along the way, kept the momentum going, released it, and even bought the domain.&lt;/p&gt;

&lt;h1 id=&quot;what-can-you-do-with-it&quot;&gt;What can you do with it?&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;ROKUYO&lt;/strong&gt; (&lt;a href=&quot;https://rokuyo.dev/&quot;&gt;https://rokuyo.dev/&lt;/a&gt;) currently offers two types of wallpapers. Both are, of course, free to use.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;ROKUYO Calendar&lt;/strong&gt; - A wallpaper that displays today’s date, the rokuyo in kanji, and lucky days such as Ichiryumanbaibi.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;ROKUYO Year Calendar&lt;/strong&gt; - A minimalist year calendar wallpaper that shows the progress of the year and the number of days remaining, starting from today’s date.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;-rokuyo-kanji-calendar---a-wallpaper-that-displays-todays-date-the-rokuyo-in-kanji-and-lucky-days-such-as-ichiryumanbaibi&quot;&gt;① ROKUYO KANJI Calendar - A wallpaper that displays today’s date, the rokuyo in kanji, and lucky days such as Ichiryumanbaibi&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;https://rokuyo.dev/rokuyo-kanji-wallpaper&quot;&gt;https://rokuyo.dev/rokuyo-kanji-wallpaper&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/rokuyo_top_kanji_1.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;-rokuyo-year-calendar---a-minimalist-year-calendar-wallpaper-that-shows-lucky-days-the-progress-of-the-year-and-the-number-of-days-remaining&quot;&gt;② ROKUYO Year Calendar - A minimalist year calendar wallpaper that shows lucky days, the progress of the year, and the number of days remaining&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;https://rokuyo.dev/year-calendar&quot;&gt;https://rokuyo.dev/year-calendar&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/rokuyo_top_year_1.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h1 id=&quot;how-to-use-and-set-it-up&quot;&gt;How to use and set it up&lt;/h1&gt;

&lt;h2 id=&quot;step-1&quot;&gt;Step 1&lt;/h2&gt;

&lt;p&gt;First, open &lt;strong&gt;ROKUYO&lt;/strong&gt; (&lt;a href=&quot;https://rokuyo.dev/&quot;&gt;https://rokuyo.dev/&lt;/a&gt;) on your iPhone.&lt;/p&gt;

&lt;p&gt;Tap the &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Install&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;on&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;iPhone&lt;/span&gt;&lt;/code&gt; button. You will then be taken to the setup screen.&lt;/p&gt;

&lt;p&gt;In the &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;iPhone&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Model&lt;/span&gt;&lt;/code&gt; section, select your iPhone model. Then, in the &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Generated&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;URL&lt;/span&gt;&lt;/code&gt; section, tap the &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Copy&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;URL&lt;/span&gt;&lt;/code&gt; button.&lt;/p&gt;

&lt;h2 id=&quot;step-2&quot;&gt;Step 2&lt;/h2&gt;

&lt;p&gt;Open the Shortcuts app on your iPhone and go to the &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Automation&lt;/span&gt;&lt;/code&gt; tab.&lt;/p&gt;

&lt;p&gt;Next, tap the &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;/code&gt; button in the top-right corner to create a new automation.&lt;/p&gt;

&lt;p&gt;If this is your first automation, tap &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Create&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Personal&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Automation&lt;/span&gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Choose &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Time&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;of&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Day&lt;/span&gt;&lt;/code&gt;, then configure it as follows and tap &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Next&lt;/span&gt;&lt;/code&gt;.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Time: 6:00 AM
    &lt;ul&gt;
      &lt;li&gt;Any time is fine, but I recommend choosing a time when you can check it after waking up.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Repeat: Daily&lt;/li&gt;
  &lt;li&gt;Run Immediately&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;step-3&quot;&gt;Step 3&lt;/h2&gt;

&lt;h3 id=&quot;create-a-new-shortcut&quot;&gt;Create a new shortcut&lt;/h3&gt;

&lt;p&gt;After setting the time, you will be taken to the next screen.&lt;/p&gt;

&lt;p&gt;Tap &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;New&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Blank&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Automation&lt;/span&gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Depending on your iOS version, this may appear as &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Create&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Blank&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Automation&lt;/span&gt;&lt;/code&gt; instead.&lt;/p&gt;

&lt;h3 id=&quot;3-1-get-contents-of-url&quot;&gt;3-1. Get Contents of URL&lt;/h3&gt;

&lt;p&gt;Type &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;URL&lt;/span&gt;&lt;/code&gt; into the search bar.&lt;/p&gt;

&lt;p&gt;You should see an action called &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Get&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Contents&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;of&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;URL&lt;/span&gt;&lt;/code&gt; with a green icon. Tap it.&lt;/p&gt;

&lt;p&gt;Then tap the blue &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;URL&lt;/span&gt;&lt;/code&gt; text so you can enter text there. Paste the URL you copied from the &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Generated&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;URL&lt;/span&gt;&lt;/code&gt; section in Step 1.&lt;/p&gt;

&lt;h3 id=&quot;3-2-set-the-wallpaper&quot;&gt;3-2. Set the wallpaper&lt;/h3&gt;

&lt;p&gt;Next, tap the action search field below and type &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Wallpaper&lt;/span&gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You should see an action called &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Set&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Wallpaper&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Photo&lt;/span&gt;&lt;/code&gt; with a light blue icon. Tap it.&lt;/p&gt;

&lt;p&gt;Tap the blue &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Wallpaper&lt;/span&gt;&lt;/code&gt; text, and you will be asked which wallpaper you want to use. Choose your preferred wallpaper. You should then see something like &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Wallpaper&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;/code&gt; set in the shortcut.&lt;/p&gt;

&lt;h3 id=&quot;3-3-set-it-for-the-lock-screen-only&quot;&gt;3-3. Set it for the lock screen only&lt;/h3&gt;

&lt;p&gt;Then tap the blue text that says &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Lock&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Screen&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Home&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Screen&lt;/span&gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Uncheck &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Home&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Screen&lt;/span&gt;&lt;/code&gt;, so that only &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Lock&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Screen&lt;/span&gt;&lt;/code&gt; remains selected. Then tap &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Done&lt;/span&gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You do not need to change the URL field here.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important note:&lt;/strong&gt;&lt;br /&gt;
Next to &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Set&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Wallpaper&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Photo&lt;/span&gt;&lt;/code&gt;, there is a small arrow icon inside a circle. Tap it, and make sure to turn off the following options:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Show Preview: change from On to Off&lt;/li&gt;
  &lt;li&gt;Crop to Subject: change from On to Off&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Finally, tap &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Done&lt;/span&gt;&lt;/code&gt; in the top-right corner, and you’re all set.&lt;/p&gt;

&lt;h1 id=&quot;why-i-made-this&quot;&gt;Why I made this&lt;/h1&gt;

&lt;p&gt;I created this service because I wanted to treat each passing day with a little more care.&lt;/p&gt;

&lt;p&gt;Have you ever set vague goals at the beginning of the year, only to realize later that you haven’t really made progress on them?&lt;/p&gt;

&lt;p&gt;Something recently reminded me again that time is finite. Since then, I’ve felt strongly that I want to live each day without regret.&lt;/p&gt;

&lt;p&gt;I also sometimes find myself wondering, “When is this year’s Ichiryumanbaibi again?”&lt;/p&gt;

&lt;p&gt;I’m not overly superstitious, but if there’s a small bit of good luck I can carry with me, I’m the kind of person who would like to carry it.&lt;/p&gt;

&lt;p&gt;I’ve bought planners that show the rokuyo, and I occasionally check calendars for lucky days. But I also felt that building a habit of actively going out to look for that information every time was a little too much friction.&lt;/p&gt;

&lt;p&gt;So I wanted to make something that quietly brings that information to me instead.&lt;/p&gt;

&lt;h1 id=&quot;inspiration-and-refinement&quot;&gt;Inspiration and refinement&lt;/h1&gt;

&lt;p&gt;I came across a web service shared on social media by an overseas minimalist tech creator.&lt;/p&gt;

&lt;p&gt;I was struck by both the creativity and the beautifully refined design.&lt;/p&gt;

&lt;p&gt;What impressed me even more was that the idea worked through Apple’s native iOS Shortcuts app, while the URL it accessed was hosted on Vercel.&lt;/p&gt;

&lt;p&gt;That combination felt simple, elegant, and very inspiring.&lt;/p&gt;

&lt;p&gt;If you have any feedback or questions, feel free to reach out to me on X at @acotie or through the Contact page: &lt;a href=&quot;https://acotie.me/contact/&quot;&gt;https://acotie.me/contact/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That said, I may not be checking social media or email very actively, so LinkedIn messages might be the fastest way to reach me.&lt;/p&gt;
</description>
        <pubDate>Sat, 13 Jun 2026 04:45:00 +0000</pubDate>
        <link>https://acotie.me//developed-rokuyo-wallpaper</link>
        <guid isPermaLink="true">https://acotie.me//developed-rokuyo-wallpaper</guid>
        
        
        <category>coding</category>
        
      </item>
    
      <item>
        <title>365+ Days of Journaling Made Me Fall in Love with Pocket-Sized Notebooks</title>
        <description>&lt;p&gt;&lt;img src=&quot;/img/スクリーンショット-2026-06-07-19.19.36.png&quot; alt=&quot;habit-tracker&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Some of my old acquaintances and friends—and perhaps a few people who used to read my old blogs—may already know this about me: I have always had a deep passion for planners, notebooks, and pens, and I take them very seriously.&lt;/p&gt;

&lt;p&gt;In the past, I used to run a personal blog under a different domain, where I wrote essay-like posts about my life and thoughts. I also had a Hatena Diary blog where I mostly wrote about studying programming. The Hatena blog still exists, and I do have a quiet desire to start writing there again someday.&lt;/p&gt;

&lt;p&gt;Since I stopped updating social media and blogs frequently as an engineer, some people may have wondered, “What has @acotie / Yokoyama been up to?” I would love to write about those old stories and past chapters another time.&lt;/p&gt;

&lt;p&gt;For now, I would like to start writing here in a more casual way.&lt;/p&gt;

&lt;h1 id=&quot;recently-i-have-been-completely-obsessed-with-pocket-sized-notebooks&quot;&gt;Recently, I Have Been Completely Obsessed with Pocket-Sized Notebooks&lt;/h1&gt;

&lt;p&gt;I have always been more of a serious planner person, and since my twenties, I have loved writing things by hand.&lt;/p&gt;

&lt;p&gt;Even in my recent work life, I usually carry two or three notebooks with me, and in my private life, I also keep one to three notebooks on hand. I take notes constantly.&lt;/p&gt;

&lt;p&gt;What do I write about?&lt;/p&gt;

&lt;p&gt;Mostly, I write down daily highlights and emotional records—how I felt about things. I keep track of my sleep, what I ate, books I read, reading notes, things I noticed, my actions, and my emotional reactions when something happens.&lt;/p&gt;

&lt;p&gt;This is what I carry around with me.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/img_4737.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Notebooks I keep buying—and sometimes even give away to other people.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/l1420700.jpg&quot; alt=&quot;Moleskine Notebook&quot; title=&quot;Moleskine Notebook&quot; /&gt;&lt;/p&gt;

&lt;h1 id=&quot;how-i-fell-in-love-with-planners&quot;&gt;How I Fell in Love with Planners&lt;/h1&gt;

&lt;p&gt;When I was working as a junior programmer, one of my senior colleagues recommended and lent me &lt;em&gt;The 7 Habits of Highly Effective Teens&lt;/em&gt;. The book had many sticky notes in it, and I found myself strongly resonating with it. I later bought my own copy.&lt;/p&gt;

&lt;p&gt;After that, the company president at the time gave every employee a Franklin Planner starter kit as a gift. Very generous.&lt;/p&gt;

&lt;p&gt;The ideas behind Franklin Planner are based on &lt;em&gt;The 7 Habits of Highly Effective People&lt;/em&gt;, and since I had just read the teen edition, the philosophy made perfect sense to me and was easy to accept.&lt;/p&gt;

&lt;p&gt;However, the planner refill I received was the “two pages per day” format, which is quite advanced for a beginner. I ended up giving up before the habit fully settled in.&lt;/p&gt;

&lt;p&gt;After that, I started learning more and researching all kinds of planner brands. Eventually, I found my way to vertical planners.&lt;/p&gt;

&lt;h1 id=&quot;how-i-got-hooked-on-pocket-notebooks-this-time&quot;&gt;How I Got Hooked on Pocket Notebooks This Time&lt;/h1&gt;

&lt;p&gt;I have always liked computers and gadgets, and I also love lifelogging and keeping records. So naturally, I became interested in journaling and started researching it almost every day.&lt;/p&gt;

&lt;p&gt;After I entered the workforce—especially in the latter half of my career as a software engineer—I also started gaining experience in project management. By the time I began my career as a consultant, I was already buying large quantities of grid notebooks.&lt;/p&gt;

&lt;p&gt;For a long time, I often used the following setup. In particular, I loved the design and paper quality of Maruman’s Mnemosyne series, and I used it for the longest period of time.&lt;/p&gt;

&lt;h2 id=&quot;my-setup-for-the-past-eight-years-or-so&quot;&gt;My Setup for the Past Eight Years or So&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;I switched from the Filofax Eaton to Plotter, a slim six-ring leather binder, because it was lightweight. I used to carry both A5 and Bible-size binders.&lt;/li&gt;
  &lt;li&gt;I loved Maruman’s Mnemosyne series and bought many A5 grid ring notebooks for task management.&lt;/li&gt;
  &lt;li&gt;I also became a fan of KOKUYO’s PERPANEP series and used it alongside my other notebooks.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;discovering-minimalist-journalers-overseas&quot;&gt;Discovering Minimalist Journalers Overseas&lt;/h1&gt;

&lt;p&gt;Around March 2025, I started searching every day for keywords such as “journaling,” “journal,” and “minimalist.”&lt;/p&gt;

&lt;p&gt;At the time, I was completely consumed by work. I was working so much that I had become distant from the people around me, and I believed that this was the right thing to do.&lt;/p&gt;

&lt;p&gt;Around May last year, a video was uploaded on YouTube by Peter McKinnon, a well-known photographer.&lt;/p&gt;

&lt;p&gt;He clearly has a strong love for stationery and is very particular about the things he owns. He was using several Japanese-made pens. With those pens, he was creating part of what could be called a bullet journal, using his own unique format.&lt;/p&gt;

&lt;p&gt;Then he said, with sparkling eyes, that continuing journaling had changed his life for the better.&lt;/p&gt;

&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/ZV0EgdBdJ14?si=wSFEliCy4ErKkEvZ&amp;amp;start=979&quot; title=&quot;YouTube video player&quot; frameborder=&quot;0&quot; allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;

&lt;p&gt;&lt;strong&gt;Below is an excerpt from the transcript, translated into English:&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;1:38&lt;/strong&gt; And I just start writing. There are so many things you can write about. Over the past few years, I have documented my journey of trying to get into journaling.&lt;/p&gt;

  &lt;p&gt;&lt;strong&gt;1:46&lt;/strong&gt; I gradually came to love it, and I have continued documenting how I use it today. This feels like the culmination of those years.&lt;/p&gt;

  &lt;p&gt;&lt;strong&gt;1:54&lt;/strong&gt; I can now say with confidence that this has changed my life for the better. It is completely part of my routine now, and I will never take it out of my routine.&lt;/p&gt;

  &lt;p&gt;&lt;strong&gt;2:03&lt;/strong&gt; When I think about the changes it has brought, the various things it has introduced into my life, and how it has improved my life, there is no reason to go back.&lt;/p&gt;

  &lt;p&gt;&lt;strong&gt;2:12&lt;/strong&gt; So in today’s video, I want to dig into a few things: how habit tracking completely changed my fitness and mental state.&lt;/p&gt;

  &lt;p&gt;&lt;strong&gt;2:20&lt;/strong&gt; How continuing journaling made me more creative, how my handwriting actually improved quite a bit, my favorite pens, and the small and large notebooks I like to use.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1 id=&quot;it-started-with-habit-trackingand-then-i-fell-deep-into-it&quot;&gt;It Started with Habit Tracking—and Then I Fell Deep into It&lt;/h1&gt;

&lt;p&gt;I decided to try it right away.&lt;/p&gt;

&lt;p&gt;First, I realized I had a business trip coming up in June, and since I would also be staying over the weekend, I thought I should start with a small notebook.&lt;/p&gt;

&lt;p&gt;A small notebook also appeared in Peter’s video. That made me realize: maybe all I need is a main A5 notebook and a pocket-sized notebook.&lt;/p&gt;

&lt;p&gt;Until then, most of my notebooks were either Bible-size planners, A5 ring notebooks, or notebooks large enough that I had to put them in a bag. I had also bought smaller memo pads before, but some of them felt a little too expensive, which made me hesitate to use them freely.&lt;/p&gt;

&lt;h2 id=&quot;i-realized-that-notebooks-should-not-be-too-cheap-or-too-expensive&quot;&gt;I Realized That Notebooks Should Not Be Too Cheap or Too Expensive&lt;/h2&gt;

&lt;p&gt;I eventually settled on buying a lot of Moleskine notebooks thanks to information from other stationery lovers.&lt;/p&gt;

&lt;p&gt;As I continued searching every day for terms like “journal minimalist,” I came across many videos by serious journalers overseas who leaned toward a minimalist style. I was influenced by them quite a bit.&lt;/p&gt;

&lt;p&gt;Eventually, I arrived at the idea that buying many notebooks from the same brand, in the same size, was just cool.&lt;/p&gt;

&lt;p&gt;Could I use notebooks from a 100-yen shop? Could I use MUJI or other brands?&lt;/p&gt;

&lt;p&gt;Technically, yes. But for me, they did not excite me in the same way.&lt;/p&gt;

&lt;p&gt;If a notebook is too cheap, it does not feel special enough. If it is too expensive, I feel a slight mental block about using it casually. I start calculating in my head, thinking, “Each page costs this much…” and that makes it harder to write freely.&lt;/p&gt;

&lt;p&gt;For now, Moleskine notebooks feel like the right balance for me.&lt;/p&gt;

&lt;h1 id=&quot;my-current-setup&quot;&gt;My Current Setup&lt;/h1&gt;

&lt;p&gt;At home, I have two main notebooks, and for carrying around, I use several pocket notebooks.&lt;/p&gt;

&lt;p&gt;My ever-growing collection of notebooks and pens at home. lol&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/img_4767.jpg&quot; alt=&quot;Moleskine Notebook&quot; title=&quot;Moleskine Notebook&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;habit-tracker&quot;&gt;Habit Tracker&lt;/h2&gt;

&lt;p&gt;I have been using the exact format shown in the video. It has now been almost one full year.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.nitoms.com/products/stalogy_note_365days/&quot;&gt;NITOMS STALOGY 365Days Notebook Black A5 Grid&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;daily-journal&quot;&gt;Daily Journal&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.moleskine.co.jp/ja-jp/%E3%82%B7%E3%83%A7%E3%83%83%E3%83%97/%E3%83%8E%E3%83%BC%E3%83%88%E3%83%96%E3%83%83%E3%82%AF/the-original-notebook/%E3%82%AF%E3%83%A9%E3%82%B7%E3%83%83%E3%82%AF-%E3%83%8E%E3%83%BC%E3%83%88%E3%83%96%E3%83%83%E3%82%AF-%E3%83%96%E3%83%A9%E3%83%83%E3%82%AF-9788883701122.html&quot;&gt;Moleskine Classic Notebook, Hard Cover, Black, Pocket Size, Plain&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.moleskine.co.jp/ja-jp/%E3%82%B7%E3%83%A7%E3%83%83%E3%83%97/%E3%83%8E%E3%83%BC%E3%83%88%E3%83%96%E3%83%83%E3%82%AF/the-original-notebook/%E3%82%AF%E3%83%A9%E3%82%B7%E3%83%83%E3%82%AF-%E3%83%8E%E3%83%BC%E3%83%88%E3%83%96%E3%83%83%E3%82%AF-9788883701122.html&quot;&gt;Moleskine Classic Notebook, Hard Cover, Black, Pocket Size, Plain&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;bullet-journal&quot;&gt;Bullet Journal&lt;/h2&gt;

&lt;h3 id=&quot;base-notebook&quot;&gt;Base Notebook&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.moleskine.co.jp/ja-jp/%E3%82%B7%E3%83%A7%E3%83%83%E3%83%97/%E3%83%8E%E3%83%BC%E3%83%88%E3%83%96%E3%83%83%E3%82%AF/the-original-notebook/%E3%82%AF%E3%83%A9%E3%82%B7%E3%83%83%E3%82%AF-%E3%83%8E%E3%83%BC%E3%83%88%E3%83%96%E3%83%83%E3%82%AF-%E3%83%96%E3%83%A9%E3%83%83%E3%82%AF-9788883701122.html&quot;&gt;Moleskine Classic Notebook, Hard Cover, Black, Large Size, Dotted&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;daily-tracker&quot;&gt;Daily Tracker&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.kokuyo.com/stationery/category/notebook-paper/ring-notebook/3175/&quot;&gt;KOKUYO Soft Ring Clear Soft Ring Notebook A6, 5mm Grid Dot Ruled, 80 Sheets&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After writing all of this, I realized once again that my enthusiasm for notebooks, planners, and pens is far too intense—and that I still have so much more to say.&lt;/p&gt;

&lt;p&gt;There is still plenty left, so I will write about it another time.&lt;/p&gt;
</description>
        <pubDate>Sun, 07 Jun 2026 10:04:00 +0000</pubDate>
        <link>https://acotie.me//365-days-of-journaling-made-me-love-pocket-sized-notebooks</link>
        <guid isPermaLink="true">https://acotie.me//365-days-of-journaling-made-me-love-pocket-sized-notebooks</guid>
        
        
        <category>life</category>
        
      </item>
    
      <item>
        <title>Actually Made This Blog Multilingual Three Years Ago</title>
        <description>&lt;p&gt;This is a continuation of the blog rebuilding article.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://acotie.me/en/re-builded-the-blog-with-jekyll-netlify-github&quot;&gt;Re-Builded the Blog with Jekyll + Netlify + Github | acotie.me&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;first&quot;&gt;First&lt;/h2&gt;

&lt;p&gt;I would like to write this article as memorandum, which was actually created on this blog three years ago and was already published with multilingual implementation already in place.&lt;/p&gt;

&lt;h2 id=&quot;why-do-i-want-to-make-it&quot;&gt;Why do I want to make it?&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Wanted to write in English to study English.&lt;/li&gt;
  &lt;li&gt;I wanted to make it in English because I was working for a foreign company at the time and had many opportunities to get to know people from overseas&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;libraries-in-used&quot;&gt;Libraries In Used&lt;/h2&gt;

&lt;p&gt;After trying several libraries that can be extended for Jekyll, I decided to use this library called polyglot.  &lt;a href=&quot;https://github.com/untra/polyglot&quot;&gt;untra/polyglot: :abc: Multilingual and i18n support tool for Jekyll Blogs&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;candidate-libraries&quot;&gt;Candidate Libraries&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/untra/polyglot&quot;&gt;untra/polyglot: :abc: Multilingual and i18n support tool for Jekyll Blogs&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/kurtsson/jekyll-multiple-languages-plugin&quot;&gt;kurtsson/jekyll-multiple-languages-plugin: I18n support for Jekyll and Octopress&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;until-added&quot;&gt;Until Added&lt;/h2&gt;

&lt;p&gt;Follow the instructions in the polyglot README&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/untra/polyglot?tab=readme-ov-file#installation&quot;&gt;untra/polyglot: installation&lt;/a&gt;&lt;/p&gt;

&lt;h3 id=&quot;add-gem-jekyll-polyglot-to-group-jekyll_plugins-in-gemfile&quot;&gt;Add &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;gem&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;jekyll-polyglot&quot;&lt;/span&gt;&lt;/code&gt; to group :jekyll_plugins in &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Gemfile&lt;/span&gt;&lt;/code&gt;&lt;/h3&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;c1&quot;&gt;# If you have any plugins, put them here!&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;group&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:jekyll_plugins&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt;

  &lt;span class=&quot;n&quot;&gt;gem&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;jekyll-polyglot&quot;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;add-the-following-to-plugins-in-_configyml&quot;&gt;Add the following to plugins in &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;_config&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;yml&lt;/span&gt;&lt;/code&gt;&lt;/h3&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;na&quot;&gt;plugins&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
&lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;jekyll-polyglot&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;add-the-following-settings-to-_configyml-referring-to-configuration&quot;&gt;Add the following settings to &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;_config&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;yml&lt;/span&gt;&lt;/code&gt; referring to Configuration&lt;/h3&gt;

&lt;p&gt;In &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;languages&lt;/span&gt;&lt;/code&gt; add an array of languages you want to support, and in &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;exclude_from_localization&lt;/span&gt;&lt;/code&gt; specify the folders and files you want to exclude based on the template.&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;c1&quot;&gt;# Lang&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;languages&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;ja&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;en&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;default_lang&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;ja&quot;&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;exclude_from_localization&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;img&quot;&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;js&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;javascript&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;images&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;css&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;public&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;fonts&quot;&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;parallel_localization&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;sass&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;sourcemap&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;never&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;lang_from_path&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;true&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;usage&quot;&gt;Usage&lt;/h2&gt;

&lt;p&gt;When you create a post in Jekyll, you add a Markdown file to your blog post in the &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;_posts&lt;/span&gt;&lt;/code&gt; folder. As an example, here’s what it looks like (File names are taken from How To Use It)&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Old: _posts/2010-03-01-salad-recipes.md&lt;/li&gt;
  &lt;li&gt;New: _posts/2010-03-01-salad-recipes-en.md&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you create a new &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;_posts&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2010&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mo&quot;&gt;03&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mo&quot;&gt;01&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;salad&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;recipes&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;en&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;md&lt;/span&gt;&lt;/code&gt;, add &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;o&quot;&gt;*-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;en&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;md&lt;/span&gt;&lt;/code&gt; i18n for the language you want to support multilinguality to the end of what was normally date+title.md.&lt;/p&gt;

&lt;p&gt;If you do this, add the following to the actual &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;_posts&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2010&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mo&quot;&gt;03&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mo&quot;&gt;01&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;salad&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;recipes&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;en&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;md&lt;/span&gt;&lt;/code&gt; article content.&lt;/p&gt;

&lt;p&gt;&lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;ss&quot;&gt;permalink: &lt;/span&gt;&lt;span class=&quot;sr&quot;&gt;/salad-recipes&lt;/span&gt;&lt;/code&gt; and &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;ss&quot;&gt;lang: &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;en&lt;/span&gt;&lt;/code&gt; are required.&lt;/p&gt;

&lt;p&gt;Example:
_posts/2010-03-01-salad-recipes-en.md&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;na&quot;&gt;permalink&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;/salad-recipes&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;lang&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;en&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;extend-further&quot;&gt;Extend further&lt;/h2&gt;

&lt;p&gt;Based on the following sample code in the translation permalink information in page section, incorporate it into your template.&lt;/p&gt;

&lt;p&gt;Add it to &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;_layouts&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;post&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sidebar&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;html&lt;/span&gt;&lt;/code&gt; of the template to create the article switch section.&lt;/p&gt;

&lt;p&gt;__layouts/post-sidebar.html&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;        &lt;span class=&quot;o&quot;&gt;&amp;lt;!&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;--&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Lang&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Switcher&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;--&amp;gt;&lt;/span&gt;
        
        &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;span&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;style&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;font-size:1.8rem&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;a&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;ferh&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;/add-multiple-lang-for-blog&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ja&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;sr&quot;&gt;/a&amp;gt; |&amp;lt;/s&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pan&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;
        
        &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;span&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;style&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;font-size:1.8rem&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;style&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;font-weight: bold;&quot;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ferh&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;/en/add-multiple-lang-for-blog&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;en&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;sr&quot;&gt;/a&amp;gt; |&amp;lt;/s&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pan&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;
        
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I was able to create a switcher like this that the language of the menu within the article post!&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/img/acotieme-blog-sample.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
</description>
        <pubDate>Sat, 06 Jul 2024 01:00:00 +0000</pubDate>
        <link>https://acotie.me//add-multiple-lang-for-blog</link>
        <guid isPermaLink="true">https://acotie.me//add-multiple-lang-for-blog</guid>
        
        
        <category>coding</category>
        
      </item>
    
      <item>
        <title>Review of the Leica Q2</title>
        <description>&lt;p&gt;Since I bought the Leica Q2 in the summer of 2020, I’d like to give a quick review of its further photographic charms.&lt;/p&gt;

&lt;p&gt;&lt;a data-flickr-embed=&quot;true&quot; href=&quot;https://www.flickr.com/photos/acotie/50129312587/in/dateposted-public/&quot; title=&quot;#leicaq2 #leica #camera&quot;&gt;&lt;img src=&quot;https://live.staticflickr.com/65535/50129312587_88419120fa_c.jpg&quot; width=&quot;800&quot; height=&quot;600&quot; alt=&quot;#leicaq2 #leica #camera&quot; /&gt;&lt;/a&gt;&lt;script async=&quot;&quot; src=&quot;//embedr.flickr.com/assets/client-code.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/p&gt;

&lt;p&gt;&lt;a data-flickr-embed=&quot;true&quot; href=&quot;https://www.flickr.com/photos/acotie/51031919581/in/dateposted-public/&quot; title=&quot;#leica #leicaq2&quot;&gt;&lt;img src=&quot;https://live.staticflickr.com/65535/51031919581_9b67ede745_c.jpg&quot; width=&quot;800&quot; height=&quot;600&quot; alt=&quot;#leica #leicaq2&quot; /&gt;&lt;/a&gt;&lt;script async=&quot;&quot; src=&quot;//embedr.flickr.com/assets/client-code.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/p&gt;

&lt;h2 id=&quot;whats-leica-q2&quot;&gt;What’s Leica Q2?&lt;/h2&gt;

&lt;p&gt;Official Site: &lt;a href=&quot;https://us.leica-camera.com/Photography/Leica-Q/Leica-Q2&quot;&gt;Leica Q2 // Leica Q // Photography - Leica Camera AG&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Leica Q2 is a compact digital camera with a 47.3-megapixel 35mm full-frame sensor. It is the successor to the Leica Q and is dustproof and splashproof. It uses the bright, high-performance Leica Zmilux f/1.7/28mm ASPH. lens, has an OLED electronic viewfinder, and is capable of 4K video recording.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Introducing the new Leica Q2 – a perfect symbiosis of the essentials with innovation, pristine performance with connectivity, and resilience balanced with elegance. With its newly developed, 47.3 megapixel full frame sensor, extremely fast Summilux 28 mm f/1.7 ASPH. prime lens, fast autofocus, innovative OLED technology, and timelessly elegant design, the Leica Q2 elevates the tradition established by its predecessor, the Leica Q.&lt;/p&gt;

  &lt;p&gt;source: &lt;a href=&quot;https://us.leica-camera.com/Photography/Leica-Q/Leica-Q2&quot;&gt;Leica Q2 // Leica Q // Photography - Leica Camera AG&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;accessories-what-i-bought&quot;&gt;Accessories, what I bought&lt;/h2&gt;

&lt;p&gt;Prices are for July 2020 at the time of purchase, so there may be price fluctuations now.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Protecting filters for LCD panels ¥3,570
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://amzn.to/3glK8WN&quot;&gt;Deff Professional GLASS for LEICA 東京カメラ部推奨モデル (LEICA 03)
&lt;/a&gt;
&lt;a href=&quot;https://www.amazon.co.jp/Deff-Professional-GLASS-LEICA-%E6%9D%B1%E4%BA%AC%E3%82%AB%E3%83%A1%E3%83%A9%E9%83%A8%E6%8E%A8%E5%A5%A8%E3%83%A2%E3%83%87%E3%83%AB/dp/B01M4KMV72?&amp;amp;linkCode=li3&amp;amp;tag=heartbeat00-22&amp;amp;linkId=f5a3f0eda6447e24564b66c630712390&amp;amp;language=ja_JP&amp;amp;ref_=as_li_ss_il&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;amp;ASIN=B01M4KMV72&amp;amp;Format=_SL250_&amp;amp;ID=AsinImage&amp;amp;MarketPlace=JP&amp;amp;ServiceVersion=20070822&amp;amp;WS=1&amp;amp;tag=heartbeat00-22&amp;amp;language=ja_JP&quot; /&gt;&lt;/a&gt;&lt;img src=&quot;https://ir-jp.amazon-adsystem.com/e/ir?t=heartbeat00-22&amp;amp;language=ja_JP&amp;amp;l=li3&amp;amp;o=9&amp;amp;a=B01M4KMV72&quot; width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;border:none !important; margin:0px !important;&quot; /&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Leica Lens Filters ¥15,400
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://amzn.to/3AUXFfu&quot;&gt;Leica Filters E49 UVa II Black&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;

    &lt;p&gt;&lt;a href=&quot;https://www.amazon.co.jp/%E3%83%A9%E3%82%A4%E3%82%AB-%E3%83%95%E3%82%A3%E3%83%AB%E3%82%BF%E3%83%BC-E49-UVA-49mm/dp/B01CHHA12K?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A&amp;amp;dchild=1&amp;amp;keywords=%E3%83%95%E3%82%A3%E3%83%AB%E3%82%BF%E3%83%BC+E49+UVa+II+%E3%83%96%E3%83%A9%E3%83%83%E3%82%AF&amp;amp;qid=1629552840&amp;amp;s=electronics&amp;amp;sr=1-1&amp;amp;linkCode=li3&amp;amp;tag=heartbeat00-22&amp;amp;linkId=6db29b67e22cfd7bf84935cff166fafd&amp;amp;language=ja_JP&amp;amp;ref_=as_li_ss_il&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&amp;amp;ASIN=B01CHHA12K&amp;amp;Format=_SL250_&amp;amp;ID=AsinImage&amp;amp;MarketPlace=JP&amp;amp;ServiceVersion=20070822&amp;amp;WS=1&amp;amp;tag=heartbeat00-22&amp;amp;language=ja_JP&quot; /&gt;&lt;/a&gt;&lt;img src=&quot;https://ir-jp.amazon-adsystem.com/e/ir?t=heartbeat00-22&amp;amp;language=ja_JP&amp;amp;l=li3&amp;amp;o=9&amp;amp;a=B01CHHA12K&quot; width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;border:none !important; margin:0px !important;&quot; /&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Hard Graft Camera Strap ¥19,658 (Product:¥16600 + Shipping:¥3,058)
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.hardgraft.com/ja/products/duotonecamerastrap-classic&quot;&gt;Duotone Camera Strap . Classic – hardgraft&lt;/a&gt;&lt;br /&gt;
&lt;img src=&quot;https://cdn.shopify.com/s/files/1/0075/8682/products/duetone-classic-2018_1400x.jpg?v=1569255617&quot; style=&quot;width: 300px;&quot; /&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;about-my-impressions&quot;&gt;About my impressions&lt;/h2&gt;

&lt;h3 id=&quot;appearance-and-state-of-mind&quot;&gt;Appearance and state of mind:&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;The box was too gorgeous, like a little closet.&lt;/li&gt;
  &lt;li&gt;The form is really cool. It’s massive and simple and cool.&lt;/li&gt;
  &lt;li&gt;I bought it as a reward, so just putting it in the box makes me excited.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;functionality&quot;&gt;Functionality:&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;The Leica Q2 is splash-proof and dust-proof, so I feel safe outside.&lt;/li&gt;
  &lt;li&gt;I think the battery life is good, I can take more than 1000 pictures with it. I heard that it has a big battery for Leica SL.&lt;/li&gt;
  &lt;li&gt;The official Leica app integration is convenient; the Bluetooth integration is smooth and I can immediately retrieve photos taken with the Q2 from the app to my phone. You can immediately share your photos on the go.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;impressions-after-using-the-camera&quot;&gt;Impressions after using the Camera:&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;The Leica SUMMILUX lens, which can be set from f/1.7, is bright and I was impressed with how nicely the background blurred out when shooting. I feel like everything becomes more nostalgic.&lt;/li&gt;
  &lt;li&gt;When I take pictures with the Q2, everything looks more atmospheric, and I feel like I’m getting better at it.&lt;/li&gt;
  &lt;li&gt;I didn’t read the instruction manual very much, so I didn’t notice the macro mode until later. It’s good to be able to easily take pictures of flowers and such.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;sample-images&quot;&gt;Sample images&lt;/h2&gt;
&lt;p&gt;image1
&lt;a data-flickr-embed=&quot;true&quot; href=&quot;https://www.flickr.com/photos/acotie/50143045936/in/dateposted-public/&quot; title=&quot;Clock monsieur in Tokyo, Japan #Clockmonsieur #Tokyo #leicaq2 #leica&quot;&gt;&lt;img src=&quot;https://live.staticflickr.com/65535/50143045936_71df483f42_c.jpg&quot; width=&quot;800&quot; height=&quot;534&quot; alt=&quot;Clock monsieur in Tokyo, Japan #Clockmonsieur #Tokyo #leicaq2 #leica&quot; /&gt;&lt;/a&gt;&lt;script async=&quot;&quot; src=&quot;//embedr.flickr.com/assets/client-code.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/p&gt;

&lt;p&gt;image2
&lt;a data-flickr-embed=&quot;true&quot; href=&quot;https://www.flickr.com/photos/acotie/50142516883/in/dateposted-public/&quot; title=&quot;#Tokyo #night #Japan #leicaq2 #leica #monochrome #blackandwhite&quot;&gt;&lt;img src=&quot;https://live.staticflickr.com/65535/50142516883_3c03fde828_c.jpg&quot; width=&quot;800&quot; height=&quot;534&quot; alt=&quot;#Tokyo #night #Japan #leicaq2 #leica #monochrome #blackandwhite&quot; /&gt;&lt;/a&gt;&lt;script async=&quot;&quot; src=&quot;//embedr.flickr.com/assets/client-code.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/p&gt;

&lt;p&gt;image3
&lt;a data-flickr-embed=&quot;true&quot; href=&quot;https://www.flickr.com/photos/acotie/50415942937/in/dateposted-public/&quot; title=&quot;Graffiti and stickers in Shibuya, Tokyo. #leica #leicaq2 #street #graffiti #sticker #shibuya #Tokyo #japan&quot;&gt;&lt;img src=&quot;https://live.staticflickr.com/65535/50415942937_fbb1f28eb3_c.jpg&quot; width=&quot;800&quot; height=&quot;534&quot; alt=&quot;Graffiti and stickers in Shibuya, Tokyo. #leica #leicaq2 #street #graffiti #sticker #shibuya #Tokyo #japan&quot; /&gt;&lt;/a&gt;&lt;script async=&quot;&quot; src=&quot;//embedr.flickr.com/assets/client-code.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/p&gt;

&lt;p&gt;image4
&lt;a data-flickr-embed=&quot;true&quot; href=&quot;https://www.flickr.com/photos/acotie/50790305141/in/dateposted-public/&quot; title=&quot;At Asakusa, Sensoji Temple, Tokyo #leica #leicaq2 #tokyo #Japan #temple #asakusa #sensoji #sensouji&quot;&gt;&lt;img src=&quot;https://live.staticflickr.com/65535/50790305141_99216e873b_c.jpg&quot; width=&quot;800&quot; height=&quot;534&quot; alt=&quot;At Asakusa, Sensoji Temple, Tokyo #leica #leicaq2 #tokyo #Japan #temple #asakusa #sensoji #sensouji&quot; /&gt;&lt;/a&gt;&lt;script async=&quot;&quot; src=&quot;//embedr.flickr.com/assets/client-code.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/p&gt;

&lt;p&gt;image5
&lt;a data-flickr-embed=&quot;true&quot; href=&quot;https://www.flickr.com/photos/acotie/51214181380/in/dateposted-public/&quot; title=&quot;At the Hotel. #fruits #hotel #tokyo #japan #leica #leicaq2&quot;&gt;&lt;img src=&quot;https://live.staticflickr.com/65535/51214181380_2c2eecbb04_c.jpg&quot; width=&quot;800&quot; height=&quot;534&quot; alt=&quot;At the Hotel. #fruits #hotel #tokyo #japan #leica #leicaq2&quot; /&gt;&lt;/a&gt;&lt;script async=&quot;&quot; src=&quot;//embedr.flickr.com/assets/client-code.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/p&gt;

&lt;p&gt;image6
&lt;a data-flickr-embed=&quot;true&quot; href=&quot;https://www.flickr.com/photos/acotie/51031190438/in/dateposted-public/&quot; title=&quot;#sunset #yokohama #japan #leica #leicaq2&quot;&gt;&lt;img src=&quot;https://live.staticflickr.com/65535/51031190438_951801ca4b_c.jpg&quot; width=&quot;800&quot; height=&quot;534&quot; alt=&quot;#sunset #yokohama #japan #leica #leicaq2&quot; /&gt;&lt;/a&gt;&lt;script async=&quot;&quot; src=&quot;//embedr.flickr.com/assets/client-code.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;&lt;/p&gt;
</description>
        <pubDate>Tue, 17 Aug 2021 15:00:00 +0000</pubDate>
        <link>https://acotie.me//review-of-the-leica-q2</link>
        <guid isPermaLink="true">https://acotie.me//review-of-the-leica-q2</guid>
        
        
        <category>photo</category>
        
        <category>life</category>
        
      </item>
    
      <item>
        <title>Re-Builded the Blog with Jekyll + Netlify + Github</title>
        <description>&lt;p&gt;Last week, I rebuilt a new Blog in a &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Jekyll&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Forestry&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;io&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Netlify&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Github&lt;/span&gt;&lt;/code&gt; environment.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://forestry.io/uploads/2018/12/draft-post-editor.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;what-i-was-able-to-achieve&quot;&gt;What I was able to achieve&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;To update the blog online with a CMS-like interface based on a Jekyll-based blog template, and after updating, to execute the update in conjunction with Git + Github up to publishing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;summary-new-blog-configuration&quot;&gt;Summary: New blog configuration&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Blogging system: Jekyll&lt;/li&gt;
  &lt;li&gt;CMS for blog posting: Forestry&lt;/li&gt;
  &lt;li&gt;Deployment: Netlify (previously Forestry)&lt;/li&gt;
  &lt;li&gt;Hosting: Netlify (previously AWS S3)&lt;/li&gt;
  &lt;li&gt;Source code repository: Github&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what-is-jekyll&quot;&gt;What is Jekyll?&lt;/h2&gt;

&lt;p&gt;One of the static site generators (Static Site Generator), made of Ruby.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Jekyll is a static site generator. It takes text written in your favorite markup language and uses layouts to create a static website. You can tweak the site’s look and feel, URLs, the data displayed on the page, and more.&lt;/p&gt;

  &lt;p&gt;&lt;strong&gt;PrerequisitesPermalink&lt;/strong&gt;&lt;/p&gt;

  &lt;p&gt;Jekyll requires the following:&lt;/p&gt;
  &lt;ul&gt;
    &lt;li&gt;Ruby version 2.4.0 or higher&lt;/li&gt;
    &lt;li&gt;RubyGems&lt;/li&gt;
    &lt;li&gt;GCC and Make
Ref. &lt;a href=&quot;https://jekyllrb.com/docs/&quot;&gt;Quickstart | Jekyll - Simple, blog-aware, static sites&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;what-is-forestryio&quot;&gt;What is Forestry.io?&lt;/h2&gt;
&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br /&gt;
Forestry.io is a Git-backed CMS (content management system) for websites and web products built using static site generators. Forestry bridges the gap between developers and their teams, by making development fun and easy, while providing powerful content management for their teams.&lt;/p&gt;

  &lt;p&gt;&lt;strong&gt;What is Forestry?&lt;/strong&gt;&lt;br /&gt;
The main thing to understand is that Forestry – unlike other content management systems – is entirely backed by Git.
To put it simply, Forestry is an editor-friendly interface over Git. This means that developers and editors can now use the same workflow and tool set.
This also means that all of your content and code always belongs to you, and is not stored in a database in the cloud out of your reach.&lt;/p&gt;

  &lt;p&gt;&lt;strong&gt;Advantages&lt;/strong&gt;&lt;br /&gt;
Choosing to build a static site and use a Git-backed CMS comes with a multitude of advantages over the traditional Monolithic CMS:&lt;br /&gt;
Ref. &lt;a href=&quot;https://forestry.io/docs/welcome/&quot;&gt;Introduction | Forestry.io&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;what-made-me-decide-to-rebuild&quot;&gt;What made me decide to rebuild&lt;/h2&gt;

&lt;p&gt;Originally, I used &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Jekyll&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Forestry&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;io&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;AWS&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;S3&lt;/span&gt;&lt;/code&gt;. It looked good, but I haven’t been able to update it for a while after creating it, and for the first time in two years, I got into the swing of things and created a multi-language plugin [kurtsson/jekyll-multiple-languages-plugin](&lt;a href=&quot;https://github.com/kurtsson/jekyll-&quot; title=&quot;https://github.com/kurtsson/jekyll-&quot;&gt;https://github.com/kurtsson/jekyll-&lt;/a&gt; After installing the multiple-languages plugin &lt;a href=&quot;&quot;&gt;kurtsson/jekyll-multiple-languages-plugin&lt;/a&gt;, I noticed that the data was not reflected in S3.&lt;/p&gt;

&lt;p&gt;I decided to rebuild it again after the following events occurred.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;The deployment function had been removed from the Forestry side for some time.&lt;/li&gt;
  &lt;li&gt;As a result of merging major customizations such as multi-language support, the contents and articles of each page are no longer reflected on the &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Forestry&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;io&lt;/span&gt;&lt;/code&gt; screen.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what-i-wanted-to-achieve&quot;&gt;What I wanted to achieve&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Easily Update. Update my blog from mobile devices etc.&lt;/li&gt;
  &lt;li&gt;Write in Markdown + WYSIWYG.&lt;/li&gt;
  &lt;li&gt;Customize CSS.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;steps-to-rebuild-and-switch-a-web-site&quot;&gt;Steps to rebuild and switch a web site&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Create a new &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Github&lt;/span&gt;&lt;/code&gt; repository for the blog.&lt;/li&gt;
  &lt;li&gt;Link the newly created Github repository to &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Forestry&lt;/span&gt;&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;Port the settings of the old blog while running &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Jekyll&lt;/span&gt;&lt;/code&gt; locally * Port the CSS and layout&lt;/li&gt;
  &lt;li&gt;Update the &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Forestry&lt;/span&gt;&lt;/code&gt; configuration.
    &lt;ul&gt;
      &lt;li&gt;Configure category pages&lt;/li&gt;
      &lt;li&gt;Adjust blog post content.&lt;/li&gt;
      &lt;li&gt;Check and update settings such as Settings &amp;gt; Sidebar&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Create and set up a &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Netlify&lt;/span&gt;&lt;/code&gt; account&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;formspree&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;io&lt;/span&gt;&lt;/code&gt; Make your contact form dynamic.&lt;/li&gt;
  &lt;li&gt;Testing&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;no&quot;&gt;Netlify&lt;/span&gt;&lt;/code&gt; domain switching (DNS switching)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;ref&quot;&gt;Ref.&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Jekyll
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://jekyllrb.com/docs/&quot;&gt;Quickstart | Jekyll • Simple, blog-aware, static sites&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://jekyllrb.com/docs/ruby-101/&quot;&gt;Ruby 101 | Jekyll • Simple, blog-aware, static sites&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Forestry.io
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://forestry.io/docs/git-sync/&quot;&gt;Connecting to a Source Provider | Forestry.io&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://forestry.io/docs/git-sync/github/&quot;&gt;GitHub | Forestry.io&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://forestry.io/docs/settings/content-sections/&quot;&gt;Sidebar Configuration | Forestry.io&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Netlify
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://docs.netlify.com/configure-builds/get-started/&quot;&gt;Get started with build configuration | Netlify Docs&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.netlify.com/blog/2016/09/29/a-step-by-step-guide-deploying-on-netlify/&quot;&gt;A Step-by-Step Guide: Deploying on Netlify | Netlify&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Wed, 26 May 2021 15:00:00 +0000</pubDate>
        <link>https://acotie.me//re-builded-the-blog-with-jekyll-netlify-github</link>
        <guid isPermaLink="true">https://acotie.me//re-builded-the-blog-with-jekyll-netlify-github</guid>
        
        
        <category>coding</category>
        
      </item>
    
      <item>
        <title>Setup for WSL / Windows Subsystem for Linux + Ubuntu</title>
        <description>&lt;p&gt;Windows Subsystem for Linux + Ubuntu Setup&lt;/p&gt;

&lt;h3 id=&quot;reference-site&quot;&gt;Reference site.&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://qiita.com/kikuchi_kentaro/items/9dc441f64c17a38aad96&quot;&gt;Rebuilding a WSL + Hyper + fish shell environment on Windows - Qiita&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://laboradian.com/installation-and-setting-of-wsl/&quot;&gt;Installing and setting up WSL (Windows Subsystem for Linux) \blur.pl&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://glodia.jp/2017/12/28/WSL/&quot;&gt;Using WSL to run Linux on Windows 10 - Glodia Corporation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;run-from-powershell-with-administrative-privileges&quot;&gt;Run from PowerShell with administrative privileges&lt;/h2&gt;

&lt;p&gt;powershell.exe&lt;/p&gt;

&lt;div class=&quot;language-powershell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;err&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Start-Process&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;powershell.exe&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;-Verb&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;runas&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Run as administrator&lt;/p&gt;

&lt;div class=&quot;language-powershell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;n&quot;&gt;Enable-WindowsOptionalFeature&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;-Online&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;-FeatureName&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;Microsoft-Windows-Subsystem-Linux&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;You will be asked to reboot. then reboot.&lt;/p&gt;

&lt;h2 id=&quot;search-for-linux-from-windows-app-store-install-ubuntu-from-the-featured-page&quot;&gt;Search for Linux from Windows App Store, install Ubuntu from the featured page&lt;/h2&gt;

&lt;p&gt;Start Ubuntu&lt;/p&gt;

&lt;p&gt;Change Username and Password&lt;/p&gt;

&lt;p&gt;Update as is&lt;/p&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get update
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get upgrade
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Install libraries&lt;/p&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;curl jq git openssl 
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;ag-command-installation&quot;&gt;ag command installation&lt;/h3&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;silversearcher-ag
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;command available&lt;/p&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;ag &lt;span class=&quot;nt&quot;&gt;-a&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;test&lt;/span&gt; ~/Documents/
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;configure-shortcuts&quot;&gt;Configure shortcuts&lt;/h2&gt;

&lt;p&gt;Put symbolic links to the desktop and documents&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Reference: &lt;a href=&quot;https://www.clear-code.com/blog/2017/11/8.html&quot;&gt;Using Windows Subsystem for Linux (WSL) in Windows 10 on a daily basis - Cukurog (2017-11-08)&lt;/a&gt;&lt;/p&gt;

    &lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ln&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;s&lt;/span&gt; &lt;span class=&quot;sr&quot;&gt;/mnt/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Users&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;akiko&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;yokoyama&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Documents&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;sr&quot;&gt;/Documents
$ ln -s /mn&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;t&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Users&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;akiko&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;yokoyama&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Desktop&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;sr&quot;&gt;/Desktop
$ ls -la ~/&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Desktop&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;lrwxrwxrwx&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;yokoyama&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;yokoyama&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;35&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Mar&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;4&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;home&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;yokoyama&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Desktop&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&quot;sr&quot;&gt;/mnt/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Users&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;akiko&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;yokoyama&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Desktop&lt;/span&gt;
&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ls&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;la&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;sr&quot;&gt;/Desktop
lrwxrwxrwx 1 yokoyama yokoyama 35 Mar 4 10:20 /&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;home&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;yokoyama&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Desktop&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&quot;sr&quot;&gt;/mnt/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Users&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;akiko&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;yokoyama&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Desktop&lt;/span&gt;
&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ls&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;la&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;sr&quot;&gt;/Desktop/&lt;/span&gt;
&lt;span class=&quot;no&quot;&gt;Atom&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;lnk&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Postman&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;lnk&lt;/span&gt;
&lt;span class=&quot;no&quot;&gt;Search&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;by&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Everything&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;lnk&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Slack&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;lnk&lt;/span&gt;
&lt;span class=&quot;no&quot;&gt;Fork&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;lnk&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;desktop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;ini&lt;/span&gt;
&lt;span class=&quot;no&quot;&gt;GitHub&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Desktop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;lnk&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;change-the-color-scheme-of-the-terminal&quot;&gt;Change the color scheme of the terminal&lt;/h2&gt;
&lt;p&gt;It was published officially by windows and was so easy!&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/Microsoft/console/releases&quot;&gt;https://github.com/Microsoft/console/releases&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sidenote: Color theme for console, makes WSL easier to read! - lisz-works &lt;a href=&quot;https://www.lisz-works.com/entry/ms-color-tool#%E5%85%A5%E6%89%8B&quot;&gt;https://www.lisz-works.com/entry/ms-color-tool#入手方法&lt;/a&gt; %E6%96%B9%E6%B3%95)&lt;/p&gt;

&lt;h2 id=&quot;install-pyenv&quot;&gt;Install Pyenv&lt;/h2&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;   &lt;span class=&quot;mi&quot;&gt;47&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;git&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;clone&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;https&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;:/&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;github&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;com&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pyenv&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pyenv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;git&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;~&lt;/span&gt;&lt;span class=&quot;sr&quot;&gt;/.pyenv
   48 ls -la
   49 echo &apos;export PYENV_ROOT=&quot;$HOME/&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;pyenv&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&apos; &amp;gt;&amp;gt; ~/.bash_profile
   50 ls -la
   51 echo &apos;export PATH=&quot;&lt;/span&gt;&lt;span class=&quot;vg&quot;&gt;$PYENV_ROOT&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bin&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;vg&quot;&gt;$PATH&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&apos; &amp;gt;&amp;gt; ~/.bash_profile
   52 echo &apos;eval &quot;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pyenv&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;init&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&apos; &amp;gt;&amp;gt; ~/.bash_profile
   53 source ~/.bash_profile
&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;install-redis&quot;&gt;Install Redis&lt;/h2&gt;

&lt;p&gt;Install&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;apt&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;redis&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Startup test&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;redis&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;server&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;startup&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;set / get sample&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;redis&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cli&lt;/span&gt;
&lt;span class=&quot;mf&quot;&gt;127.0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;6379&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hoge&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;fuga&lt;/span&gt;
&lt;span class=&quot;no&quot;&gt;OK&lt;/span&gt;
&lt;span class=&quot;mf&quot;&gt;127.0&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;6379&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;get&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hoge&lt;/span&gt;
&lt;span class=&quot;s2&quot;&gt;&quot;fuga&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;install-mysql&quot;&gt;Install MySQL&lt;/h2&gt;
&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;mysql-server
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I’m kind of stumped, because I stopped MySQL halfway through.&lt;/p&gt;

&lt;p&gt;Thanks to this, I think I can manage it &lt;a href=&quot;https://askubuntu.com/a/1091405&quot;&gt;https://askubuntu.com/a/1091405&lt;/a&gt;&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;no&quot;&gt;Ok&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;I&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;will&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;answer&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;my&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;question&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;thanks&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;the&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;help&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;so&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;what&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;I&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;have&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;done&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;after&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;many&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;try&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;error:
&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;First&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;ensure&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;you&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;can&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;run&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;these&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;commands&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;without&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;any&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;error: &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;don&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;&apos;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;t&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hesitate&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;reboot&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;avoid&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;locks&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;apt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;apt&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;remove&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;purge&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;mysql&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;apt&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;update&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;apt&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;update&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;apt&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;upgrade&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;apt&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;autoremove&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;apt&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;autoclean&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dpkg&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;configure&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;a&lt;/span&gt;
&lt;span class=&quot;no&quot;&gt;Delete&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;backup&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;before&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;you&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;want&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;but&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;no&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;leave&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;the&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;files&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;these&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;directories&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;even&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;with&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;bak&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;old&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;extensions&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;sr&quot;&gt;/etc/m&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ysql&lt;/span&gt;
    &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;sr&quot;&gt;/var/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lib&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mysql&lt;/span&gt;
&lt;span class=&quot;no&quot;&gt;If&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;you&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;have&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;an&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;error&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;mentioning&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;alternatives&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;run: &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;replace&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;my&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;cnf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;by&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;the&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;file&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;indicated&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;the&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;error&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;message&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;update&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;alternatives&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;remove&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;my&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;cnf&lt;/span&gt;
&lt;span class=&quot;no&quot;&gt;Then&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;reinstall:
&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Then&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;reinstall: &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;apt&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;mysql&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;server&lt;/span&gt;
&lt;span class=&quot;no&quot;&gt;Check&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;now&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;at&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;least&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;the&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;mysql&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;service&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;is&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;running:
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;service&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;mysql&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;status&lt;/span&gt;
&lt;span class=&quot;no&quot;&gt;If&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;still&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;not&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;OK&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;try&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;force&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;reinstall:
&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;If&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;still&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;not&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;OK&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;try&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;force&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;reinstall: &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;apt&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;mysql&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;server&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;reinstall&lt;/span&gt;
&lt;span class=&quot;no&quot;&gt;And&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;reconfigure:
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dpkg&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;reconfigure&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;mysql&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;server&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;hyper-configuration&quot;&gt;Hyper configuration&lt;/h2&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;no&quot;&gt;Add&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;the&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;following&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Pulugins&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&apos;hyper-material-theme&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&apos;hyperlinks &apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&apos;hypercwd&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&apos;hyper-search&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&apos;hyper-statusline&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It’s a list of cool plugins.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://bnb.github.io/awesome-hyper/&quot;&gt;Awesome Hyper&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Hyper configuration file path&lt;/li&gt;
  &lt;li&gt;vim /mnt/c/Users/yokoyama/.hyper.js&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Tue, 15 Jan 2019 13:00:00 +0000</pubDate>
        <link>https://acotie.me//setup-for-wsl-windows-subsystem-for-linux-ubuntu</link>
        <guid isPermaLink="true">https://acotie.me//setup-for-wsl-windows-subsystem-for-linux-ubuntu</guid>
        
        
        <category>coding</category>
        
      </item>
    
      <item>
        <title>Setting hubot adapter slack &amp; chatwork</title>
        <description>&lt;p&gt;How to link Slack and chatwork after installing hubot&lt;/p&gt;

&lt;h1 id=&quot;whats-adapter&quot;&gt;What’s Adapter?&lt;/h1&gt;
&lt;p&gt;ref. &lt;a href=&quot;https://github.com/hubotio/hubot/blob/master/docs/adapters.md&quot;&gt;hubot/adapters.md at master · hubotio/hubot&lt;/a&gt;&lt;/p&gt;

&lt;h1 id=&quot;connect-to-slack&quot;&gt;Connect to Slack&lt;/h1&gt;
&lt;h2 id=&quot;install-adapter-hubot-slack&quot;&gt;install Adapter &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;hubot&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;slack&lt;/span&gt;&lt;/code&gt;&lt;/h2&gt;
&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;npm &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;hubot-slack &lt;span class=&quot;nt&quot;&gt;--save&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;install-adapter-hubot-chatwork&quot;&gt;install Adapter &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;hubot&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;chatwork&lt;/span&gt;&lt;/code&gt;&lt;/h2&gt;
&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;npm &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;hubot-chatwork &lt;span class=&quot;nt&quot;&gt;--save&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;setting-system-enviorment&quot;&gt;setting system enviorment&lt;/h2&gt;
&lt;p&gt;create new shell script in the hubot directory.&lt;/p&gt;
&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;c&quot;&gt;# slack&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;HUBOT_SLACK_TOKEN&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=[&lt;/span&gt;API_TOKEN]

&lt;span class=&quot;c&quot;&gt;# chatwork&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;HUBOT_CHATWORK_TOKEN&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;[CHATWORK_TOKEN]&quot;&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;HUBOT_CHATWORK_ROOMS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;[CHATWORK_ROOM_ID]&quot;&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;HUBOT_CHATWORK_API_RATE&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;350&quot;&lt;/span&gt;

&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;start-hubot-for-slack&quot;&gt;Start hubot for slack&lt;/h2&gt;
&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;./bin/hubot &lt;span class=&quot;nt&quot;&gt;-a&lt;/span&gt; slack &lt;span class=&quot;nt&quot;&gt;-n&lt;/span&gt; sample-hubot
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;start-hubot-for-chatwork&quot;&gt;Start hubot for chatwork&lt;/h2&gt;
&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;./bin/hubot &lt;span class=&quot;nt&quot;&gt;-a&lt;/span&gt; chatwork &lt;span class=&quot;nt&quot;&gt;-n&lt;/span&gt; sample-hubot
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;create-new-scripts&quot;&gt;create new scripts&lt;/h2&gt;

&lt;p&gt;create sample script and a little something extra&lt;/p&gt;

&lt;p&gt;scripts/posting-sample.coffee&lt;/p&gt;
&lt;div class=&quot;language-coffee highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;
&lt;span class=&quot;nx&quot;&gt;module&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;exports&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;robot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;

  &lt;span class=&quot;nx&quot;&gt;robot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;hear&lt;/span&gt; &lt;span class=&quot;sr&quot;&gt;/badger/i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nx&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;send&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Yes, more badgers please!&quot;&lt;/span&gt;

  &lt;span class=&quot;nx&quot;&gt;robot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;hear&lt;/span&gt; &lt;span class=&quot;sr&quot;&gt;/I like pie/i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nx&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;send&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;makes a freshly baked pie&quot;&lt;/span&gt;

  &lt;span class=&quot;nx&quot;&gt;robot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;hear&lt;/span&gt; &lt;span class=&quot;sr&quot;&gt;/hello/i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nx&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;reply&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Hello  &lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;message&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;user&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;profile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;first_name&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;&lt;/span&gt;

  &lt;span class=&quot;nx&quot;&gt;robot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;hear&lt;/span&gt; &lt;span class=&quot;sr&quot;&gt;/get random color/i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nx&quot;&gt;colors&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&apos;red&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&apos;blue&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&apos;yellow&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&apos;white&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&apos;black&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
    &lt;span class=&quot;nx&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;reply&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;random&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;colors&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;reply-to-message-in-chatwork&quot;&gt;reply to message in chatwork&lt;/h2&gt;
&lt;div class=&quot;language-coffee highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nx&quot;&gt;module&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;exports&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;robot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;

  &lt;span class=&quot;nx&quot;&gt;robot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;hear&lt;/span&gt; &lt;span class=&quot;sr&quot;&gt;/(\[To:12345678\]*)/i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;msg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nx&quot;&gt;envelope&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;room&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;process&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;env&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;HUBOT_CHATWORK_ROOMS&lt;/span&gt;
    &lt;span class=&quot;nx&quot;&gt;sendMsg&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Hi, I&apos;m bot :)&quot;&lt;/span&gt;
    &lt;span class=&quot;nx&quot;&gt;robot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;send&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;envelope&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;sendMsg&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

</description>
        <pubDate>Thu, 15 Mar 2018 00:00:00 +0000</pubDate>
        <link>https://acotie.me//hubot-connect-adapter-slack</link>
        <guid isPermaLink="true">https://acotie.me//hubot-connect-adapter-slack</guid>
        
        
        <category>coding</category>
        
      </item>
    
      <item>
        <title>How to install and setting hubot</title>
        <description>&lt;p&gt;I was able to install Hubot, set it up, and check it works, so I’ll write it down.
The actual integration with Slack, etc. will follow in the next article.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://avatars.githubusercontent.com/u/480938?v=4&quot; alt=&quot;hubot&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;whats-hubot&quot;&gt;What’s Hubot?&lt;/h2&gt;
&lt;blockquote&gt;
  &lt;p&gt;What is Hubot?
Hubot is your friendly robot sidekick. Install him in your company to dramatically improve employee efficiency.&lt;/p&gt;

  &lt;p&gt;No seriously, what is Hubot?
GitHub, Inc., wrote the first version of Hubot to automate our company chat room. Hubot knew how to deploy the site, automate a lot of tasks, and be a source of fun around the office. Eventually he grew to become a formidable force in GitHub, but he led a private, messy life. So we rewrote him.
Today’s version of Hubot is open source, written in CoffeeScript on Node.js, and easily deployed on platforms like Heroku. More importantly, Hubot is a standardized way to share scripts between everyone’s robots.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://hubot.github.com/&quot;&gt;HUBOT | Hubot is your friendly robot sidekick. Install him in your company to dramatically improve employee efficiency.&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;install-generator-hubot&quot;&gt;Install generator-hubot&lt;/h2&gt;
&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;npm &lt;span class=&quot;nb&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-g&lt;/span&gt; yo generator-hubot


npm WARN deprecated CSSselect@0.4.1: the module is now available as &lt;span class=&quot;s1&quot;&gt;&apos;css-select&apos;&lt;/span&gt;
npm WARN deprecated CSSwhat@0.4.7: the module is now available as &lt;span class=&quot;s1&quot;&gt;&apos;css-what&apos;&lt;/span&gt;
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/usr/local/bin/yo-complete -&amp;gt; /usr/local/lib/node_modules/yo/lib/completion/index.js
/usr/local/bin/yo -&amp;gt; /usr/local/lib/node_modules/yo/lib/cli.js

&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; spawn-sync@1.0.15 postinstall /usr/local/lib/node_modules/yo/node_modules/spawn-sync
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; node postinstall


&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; yo@2.0.1 postinstall /usr/local/lib/node_modules/yo
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; yodoctor


Yeoman Doctor
Running sanity checks on your system

✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ Node.js version
✔ No .bowerrc file &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;home directory
✔ No .yo-rc.json file &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;home directory
✔ npm version

Everything looks all right!
+ yo@2.0.1
+ generator-hubot@0.4.0
added 715 packages &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;25.991s
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;install--setup-with-yo-hubot-command&quot;&gt;Install &amp;amp; setup with &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;yo&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hubot&lt;/span&gt;&lt;/code&gt; command.&lt;/h2&gt;
&lt;p&gt;The following should be entered using the command line interface. The owner seems to be taken from the git configuration.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;? Owner Akiko Yokoyama &lt;a href=&quot;mailto:test@example.com&quot;&gt;test@example.com&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;? Bot name sample-hubot&lt;/li&gt;
  &lt;li&gt;? Description A simple helpful robot for your Company&lt;/li&gt;
  &lt;li&gt;? Bot adapter campfire&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;yo hubot

? &lt;span class=&quot;o&quot;&gt;==========================================================================&lt;/span&gt;
We&lt;span class=&quot;s1&quot;&gt;&apos;re constantly looking for ways to make yo better!
May we anonymously report usage statistics to improve the tool over time?
More info: https://github.com/yeoman/insight &amp;amp; http://yeoman.io
========================================================================== Yes
                     _____________________________
                    /                             \
   //\              |      Extracting input for    |
  ////\    _____    |   self-replication process   |
 //////\  /_____\   \                             /
 ======= |[^_/\_]|   /----------------------------
  |   | _|___@@__|__
  +===+/  ///     \_\
   | |_\ /// HUBOT/\\
   |___/\//      /  \\
         \      /   +---+
          \____/    |   |
           | //|    +===+
            \//      |xx|

? Owner Akiko Yokoyama &amp;lt;xxxx@gmail.com&amp;gt;
? Bot name sample-hubot
? Description A simple helpful robot for your Company
? Bot adapter campfire
   create bin/hubot
   create bin/hubot.cmd
   create Procfile
   create README.md
   create external-scripts.json
   create hubot-scripts.json
   create .gitignore
   create package.json
   create scripts/example.coffee
   create .editorconfig
                     _____________________________
 _____              /                             \
 \    \             |   Self-replication process   |
 |    |    _____    |          complete...         |
 |__\\|   /_____\   \     Good luck with that.    /
   |//+  |[^_/\_]|   /----------------------------
  |   | _|___@@__|__
  +===+/  ///     \_\
   | |_\ /// HUBOT/\\
   |___/\//      /  \\
         \      /   +---+
          \____/    |   |
           | //|    +===+
            \//      |xx|

npm WARN deprecated coffee-script@1.6.3: CoffeeScript on NPM has moved to &quot;coffeescript&quot; (no hyphen)
npm WARN deprecated connect@2.30.2: connect 2.x series is deprecated
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN hubot-help@0.2.2 requires a peer of coffee-script@^1.12.6 but none is installed. You must install peer dependencies yourself.

+ hubot-heroku-keepalive@1.0.3
+ hubot-diagnostics@0.0.2
+ hubot-google-translate@0.2.1
+ hubot-help@0.2.2
+ hubot-google-images@0.2.7
+ hubot-pugme@0.1.1
+ hubot-scripts@2.17.2
+ hubot@2.19.0
+ hubot-maps@0.0.3
+ hubot-redis-brain@0.0.4
+ hubot-rules@0.1.2
+ hubot-shipit@0.2.1
added 151 packages in 6.652s
&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;try-to-run-hubot-locally-with-binhubot-command&quot;&gt;Try to run hubot locally with &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;bin&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hubot&lt;/span&gt;&lt;/code&gt; command&lt;/h2&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;bin/hubot

npm WARN hubot-help@0.2.2 requires a peer of coffee-script@^1.12.6 but none is installed. You must &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;peer dependencies yourself.

up to &lt;span class=&quot;nb&quot;&gt;date &lt;/span&gt;&lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;1.105s
sample-hubot&amp;gt; &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Tue Mar 06 2018 20:23:40 GMT+0900 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;JST&lt;span class=&quot;o&quot;&gt;)]&lt;/span&gt; WARNING Loading scripts from hubot-scripts.json is deprecated and will be removed &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;3.0 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;https://github.com/github/hubot-scripts/issues/1113&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;favor of packages &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;each script.

Your hubot-scripts.json is empty, so you just need to remove it.
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Tue Mar 06 2018 20:23:40 GMT+0900 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;JST&lt;span class=&quot;o&quot;&gt;)]&lt;/span&gt; ERROR hubot-heroku-keepalive included, but missing HUBOT_HEROKU_KEEPALIVE_URL. &lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;heroku config:set &lt;span class=&quot;nv&quot;&gt;HUBOT_HEROKU_KEEPALIVE_URL&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;heroku apps:info &lt;span class=&quot;nt&quot;&gt;-s&lt;/span&gt; | &lt;span class=&quot;nb&quot;&gt;grep &lt;/span&gt;web.url | &lt;span class=&quot;nb&quot;&gt;cut&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-f2&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Tue Mar 06 2018 20:23:41 GMT+0900 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;JST&lt;span class=&quot;o&quot;&gt;)]&lt;/span&gt; INFO hubot-redis-brain: Using default redis on localhost:6379
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;execution-sample&quot;&gt;Execution sample&lt;/h2&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;sample-hubot&amp;gt; sample-hubot &lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;hello&quot;&lt;/span&gt;
sample-hubot&amp;gt; &lt;span class=&quot;s2&quot;&gt;&quot;hello&quot;&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;sample-hubot&amp;gt; sample-hubot ping
sample-hubot&amp;gt; PONG
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
</description>
        <pubDate>Tue, 06 Mar 2018 00:00:00 +0000</pubDate>
        <link>https://acotie.me//install-and-setting-hubot</link>
        <guid isPermaLink="true">https://acotie.me//install-and-setting-hubot</guid>
        
        
        <category>coding</category>
        
      </item>
    
      <item>
        <title>Trying to train a Machine learning use word2vec model using as a corpus a Wikipedia</title>
        <description>&lt;p&gt;word2vecがMacで動く環境までと、wikipediaのデータを加工して学習させるまで。&lt;/p&gt;

&lt;h2 id=&quot;参考サイト&quot;&gt;参考サイト&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;wikipediaのデータを加工するまで
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://qiita.com/tsuruchan/items/7d3af5c5e9182230db4e&quot;&gt;word2vecを使って、日本語wikipediaのデータを学習する - Qiita&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;word2vecのインストール、実行まで
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://nzigen.com/ysawa/word2vec-install/&quot;&gt;今からでもword2vecを触ってみよう - わいさわのエンジニアリング&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;word2vecにmecabで分かち書きしたwikipediaを学習させる
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://qiita.com/quvo/items/9ef250d58971eadf6e1a&quot;&gt;Word２Vec, MeCab, ComeJisyo で病気の症状類似語を出してみた - Qiita&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;word2vecのインストール&quot;&gt;word2vecのインストール&lt;/h2&gt;
&lt;p&gt;word2vecはこちらからgit cloneしたらうまく行った&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/dav/word2vec&quot;&gt;dav/word2vec: This tool provides an efficient implementation of the continuous bag-of-words and skip-gram architectures for computing vector representations of words. These representations can be subsequently used in many natural language processing applications and for further research.&lt;/a&gt;&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;git clone git@github.com:dav/word2vec.git word2vec
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;word2vecデモコードの実行&quot;&gt;word2vecデモコードの実行&lt;/h3&gt;
&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;scripts &lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; ./demo-word.sh

&lt;span class=&quot;nt&quot;&gt;--&lt;/span&gt;
Enter word or sentence &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;EXIT to &lt;span class=&quot;nb&quot;&gt;break&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: venture

Word: venture  Position &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;vocabulary: 6603

                                              Word       Cosine distance
&lt;span class=&quot;nt&quot;&gt;------------------------------------------------------------------------&lt;/span&gt;
                                          ventures		0.599036
                                           company		0.483345
                                       investments		0.458870
                                            buyout		0.451463
                                        subsidiary		0.431377
                                         companies		0.430938
                                              firm		0.421534
                                            unocal		0.414683
                                              amex		0.414066
                                      conglomerate		0.413784
                                             joint		0.396755
                                              nyse		0.396211
                                        mitsubishi		0.384251
                                      crosscountry		0.383103
                                           bechtel		0.382134
                                           kleiner		0.379211
                                   daimlerchrysler		0.378791
                                          marketer		0.376548
                                              coms		0.376233
                                         financing		0.374592
                                         investors		0.373564
                                             matra		0.373524
                                            invest		0.370923
                                          sumitomo		0.369687
                                      subsidiaries		0.369541
                                              tata		0.369004
                                            paypal		0.366303
                                               psa		0.364887
                                              corp		0.364374
                                         investing		0.363979
                                          keiretsu		0.363619
                                             nynex		0.363340
                                        contractor		0.360837
                                            prisma		0.359162
                                             lycos		0.357675
                                               plc		0.357285
                                          refinery		0.356072
                                       corporation		0.354995
                                     conglomerates		0.354956
                                          holdings		0.353605




Enter word or sentence &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;EXIT to &lt;span class=&quot;nb&quot;&gt;break&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: programming

Word: programming  Position &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;vocabulary: 876

                                              Word       Cosine distance
&lt;span class=&quot;nt&quot;&gt;------------------------------------------------------------------------&lt;/span&gt;
                                         scripting		0.638737
                                         smalltalk		0.609791
                                               tcl		0.600699
                                            matlab		0.577854
                                           fortran		0.532493
                                           iverson		0.532436
                                              lisp		0.531992
                                       applescript		0.529222
                                       prototyping		0.522920
                                               &lt;span class=&quot;nb&quot;&gt;awk		&lt;/span&gt;0.522085
                                      polymorphism		0.520571
                                             mumps		0.514660
                                              rexx		0.514517
                                          intercal		0.514188
                                              bcpl		0.512607
                                             ocaml		0.512148
                                       concurrency		0.511565
                                        programmer		0.509215
                                               oop		0.507332
                                           haskell		0.506930
                                               clu		0.506697
                                           jscript		0.505970
                                       interfacing		0.502187
                                               vba		0.493627
                                            markup		0.492610
                                       programmers		0.488856
                                        stroustrup		0.488107
                                           niklaus		0.486320
                                               apl		0.482244
                                              cweb		0.480151
                                          software		0.479891
                                              vhdl		0.479674
                                          blitzmax		0.478465
                                          datatype		0.477591
                                            prolog		0.475617
                                    implementation		0.473823
                                             booch		0.473752
                                         assembler		0.473023
                                         compilers		0.472527
                                            modula		0.472105
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;wikipediaデータ関連&quot;&gt;Wikipediaデータ関連&lt;/h1&gt;
&lt;h2 id=&quot;wikipediaの日本語データのダウンロード&quot;&gt;Wikipediaの日本語データのダウンロード&lt;/h2&gt;
&lt;p&gt;2.4GBあり、1時間くらいかかった&lt;/p&gt;
&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;curl&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;https&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;:/&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dumps&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;wikimedia&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;org&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;jawiki&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;latest&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;jawiki&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;latest&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pages&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;articles&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;xml&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;bz2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;o&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;jawiki&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;latest&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pages&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;articles&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;xml&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;bz2&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;データの加工のためのruby製wp2txtインストール&quot;&gt;データの加工のためのruby製&lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;wp2txt&lt;/span&gt;&lt;/code&gt;インストール&lt;/h2&gt;
&lt;p&gt;WikipediaのデータがXMLのため、txtに変換させるライブラリをインストールする&lt;/p&gt;
&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;n&quot;&gt;gem&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;wp2txt&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;bundler&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;wp2txtを実行しxmlをテキストにコンバート加工する&quot;&gt;wp2txtを実行しXMLをテキストにコンバート、加工する&lt;/h2&gt;
&lt;p&gt;実行完了まで1時間以上かかる。 517ファイル作られていた。&lt;/p&gt;
&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;wp2txt&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;input&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;file&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;jawiki&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;latest&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pages&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;articles&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;xml&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;bz2&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# 実行結果：こんな感じの連番のファイルが生成される&lt;/span&gt;
&lt;span class=&quot;ss&quot;&gt;start:  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;jawiki&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;latest&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pages&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;articles&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;xml&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mo&quot;&gt;001&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;txt&lt;/span&gt;  
&lt;span class=&quot;ss&quot;&gt;finish: &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;jawiki&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;latest&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pages&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;articles&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;xml&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;517&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;txt&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;連番のファイルをひとつのファイルにまとめる&lt;/p&gt;
&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;cat &lt;/span&gt;jawiki-latest-pages-articles.xml-&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; jawiki_wakati.txt
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;mecabを使ってコーパスファイルの作成&quot;&gt;mecabを使ってコーパスファイルの作成&lt;/h1&gt;

&lt;p&gt;テキストにはコンバートできたけど、実際に使うためには文章がダラダラと書かれている状態なので
mecabを使って、単語だけを切り出すように加工する。&lt;/p&gt;

&lt;h2 id=&quot;homebrewを使ってmecabのインストール&quot;&gt;homebrewを使ってmecabのインストール&lt;/h2&gt;
&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;brew&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;mecab&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;mecab実行コマンドを試すmecabの分かち書きコマンド-mecab--owakatiを実行&quot;&gt;mecab実行コマンドを試す：mecabの分かち書きコマンド &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;mecab&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Owakati&lt;/span&gt;&lt;/code&gt;を実行&lt;/h2&gt;
&lt;p&gt;コンソール的な標準入力・標準出力なモードになるので、適当な文章を入れる。・&lt;/p&gt;
&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
8
9
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;mecab&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Owakati&lt;/span&gt;

&lt;span class=&quot;err&quot;&gt;＜入力待機状態＞&lt;/span&gt;

&lt;span class=&quot;err&quot;&gt;今日はお疲れ様でした。明日も頑張りましょう。&lt;/span&gt;            &lt;span class=&quot;err&quot;&gt;←&lt;/span&gt;  &lt;span class=&quot;err&quot;&gt;入力した文章&lt;/span&gt;
&lt;span class=&quot;err&quot;&gt;今日&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;は&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;お疲れ様&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;でし&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;た&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;。&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;明日&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;も&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;頑張り&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;ましょ&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;う&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;。&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;←&lt;/span&gt;  &lt;span class=&quot;err&quot;&gt;結果&lt;/span&gt;

&lt;span class=&quot;err&quot;&gt;こんにちは、私の名前は横山&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;彰子です。&lt;/span&gt;                   &lt;span class=&quot;err&quot;&gt;←&lt;/span&gt;  &lt;span class=&quot;err&quot;&gt;入力した文章&lt;/span&gt;
&lt;span class=&quot;err&quot;&gt;こんにちは&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;、&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;私&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;の&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;名前&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;は&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;横山&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;彰子&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;です&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;。&lt;/span&gt;           &lt;span class=&quot;err&quot;&gt;←&lt;/span&gt;  &lt;span class=&quot;err&quot;&gt;結果&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;mecabを使って単語だけ抽出する&quot;&gt;mecabを使って単語だけ抽出する&lt;/h2&gt;
&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
7
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;mecab&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Owakati&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;jawiki_wakati&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;txt&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;o&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;jawiki&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mecab&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;txt&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;input&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;buffer&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;overflow&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;The&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;line&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;is&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;split&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#SIZE option.&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;input&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;buffer&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;overflow&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;The&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;line&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;is&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;split&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#SIZE option.&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;input&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;buffer&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;overflow&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;The&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;line&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;is&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;split&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#SIZE option.&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;input&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;buffer&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;overflow&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;The&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;line&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;is&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;split&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#SIZE option.&lt;/span&gt;

&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;何度も &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;input&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;buffer&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;overflow&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;The&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;line&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;is&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;split&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#SIZE option.&lt;/span&gt;&lt;/code&gt;が出てしまった。&lt;/p&gt;

&lt;h2 id=&quot;バッファサイズ指定し再実行-bオプションを使い再挑戦&quot;&gt;バッファサイズ指定し、再実行&lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;オプション&lt;/span&gt;&lt;/code&gt;を使い再挑戦&lt;/h2&gt;
&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;mecab&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Owakati&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;100000&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;jawiki_wakati&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;txt&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;o&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;jawiki&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mecab&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;txt&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;word2vecにmecabの分かち書きデータを学習させる&quot;&gt;word2vecにmecabの分かち書きデータを学習させる&lt;/h1&gt;
&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;time&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;word2vec&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;jawiki&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mecab&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;txt&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;output&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;jawiki_wakati_mecab&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;bin&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cbow&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;200&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;window&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;5&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;negative&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hs&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sample&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;1e-3&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;binary&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;バックアップ&quot;&gt;バックアップ&lt;/h1&gt;
&lt;p&gt;これは古い方。 Wikipediaデータの学習、単語だけじゃなくてフルだから結果おかしくなった&lt;/p&gt;
&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;word2vec &lt;span class=&quot;nt&quot;&gt;-train&lt;/span&gt; jawiki_wakati.txt &lt;span class=&quot;nt&quot;&gt;-output&lt;/span&gt; jawiki_wakati.bin &lt;span class=&quot;nt&quot;&gt;-size&lt;/span&gt; 200 &lt;span class=&quot;nt&quot;&gt;-window&lt;/span&gt; 5 &lt;span class=&quot;nt&quot;&gt;-sample&lt;/span&gt; 1e-3 &lt;span class=&quot;nt&quot;&gt;-negative&lt;/span&gt; 5 &lt;span class=&quot;nt&quot;&gt;-hs&lt;/span&gt; 0 &lt;span class=&quot;nt&quot;&gt;-binary&lt;/span&gt; 1
&lt;span class=&quot;nt&quot;&gt;--&lt;/span&gt;
Starting training using file jawiki_wakati.txt
Vocab size: 1213139
Words &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;train file: 157879973
Alpha: 0.000005  Progress: 100.00%  Words/thread/sec: 182.72k  %
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;wikipediaの分かち書き&lt;/p&gt;
&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;n&quot;&gt;word2vec&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;distance&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;jawiki_wakati&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;bin&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
</description>
        <pubDate>Thu, 22 Feb 2018 00:00:00 +0000</pubDate>
        <link>https://acotie.me//machine-learning-word2vec-wikipedia</link>
        <guid isPermaLink="true">https://acotie.me//machine-learning-word2vec-wikipedia</guid>
        
        
        <category>coding</category>
        
      </item>
    
      <item>
        <title>How to Rails share virtual host at localhost by Pow + xip.io</title>
        <description>&lt;p&gt;You can easily change the virtual host to &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;project&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;dev&lt;/span&gt;&lt;/code&gt; just by adding a symbolic link.
If you use xip, you can also easily share it with people in the same network.&lt;/p&gt;

&lt;h1 id=&quot;install-pow&quot;&gt;Install Pow&lt;/h1&gt;
&lt;p&gt;Official site: &lt;a href=&quot;http://pow.cx/&quot;&gt;Pow: Zero-configuration Rack server for Mac OS X&lt;/a&gt;
&lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;curl&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;pow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;cx&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sh&lt;/span&gt;&lt;/code&gt;.&lt;/p&gt;

&lt;h1 id=&quot;install-anvil&quot;&gt;Install Anvil&lt;/h1&gt;
&lt;p&gt;Official site: &lt;a href=&quot;https://anvilformac.com/&quot;&gt;Anvil for Mac - Run your sites locally&lt;/a&gt;&lt;/p&gt;

&lt;h1 id=&quot;what-is-xipio&quot;&gt;What is xip.io?&lt;/h1&gt;
&lt;blockquote&gt;
  &lt;p&gt;It is a domain that resolves names to the IP address itself if you put the IP address in a subdomain, created by a DNS server that can use PowerDNS as a backend for various things.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;blockquote&gt;
  &lt;p&gt;For example, you can access your localhost with a URL like the following (which resolves to 127.0.0.1)
&lt;a href=&quot;http://ngyuki.hatenablog.com/entry/2015/04/20/211410&quot;&gt;Easy Virtual Hosting with xip.io - ngyuki’s Diary&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;check-local-ip-address-with-ifconfig&quot;&gt;Check local IP address with ifconfig&lt;/h2&gt;
&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;table class=&quot;rouge-table&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;rouge-gutter gl&quot;&gt;&lt;pre class=&quot;lineno&quot;&gt;1
2
3
4
5
6
&lt;/pre&gt;&lt;/td&gt;&lt;td class=&quot;rouge-code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ifconfig&lt;/span&gt;

&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;skip&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;

&lt;span class=&quot;ss&quot;&gt;en0: 
 &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;inet&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ip&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;adress&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;With the combination of pow + xip.io, I was able to share my local pow configuration &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;repository&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;dev&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;/code&gt; to other people with &lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;repository&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;local&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;IP&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;address&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;xip&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;io&lt;/span&gt;&lt;/code&gt;. xip.io is useful.&lt;/p&gt;

&lt;p&gt;&lt;code class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;span class=&quot;err&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;curl&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;curl&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;XPOST&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;v&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;H&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;Content-Type: application/json&apos;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;http&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;:/&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;project&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;local&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ip&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;address&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;xip&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;io&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;api&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;v1&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;auth&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sign_in&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;email&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;test@example.com&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;password&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;testtest&quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;

</description>
        <pubDate>Sat, 17 Feb 2018 00:00:00 +0000</pubDate>
        <link>https://acotie.me//rails-share-virtual-host-at-local</link>
        <guid isPermaLink="true">https://acotie.me//rails-share-virtual-host-at-local</guid>
        
        
        <category>coding</category>
        
      </item>
    
  </channel>
</rss>
