<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Adam00 on Medium]]></title>
        <description><![CDATA[Stories by Adam00 on Medium]]></description>
        <link>https://medium.com/@adamw00?source=rss-d7c7a0b97f2b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0l4LIERNKBtfYESszDZjlQ.png</url>
            <title>Stories by Adam00 on Medium</title>
            <link>https://medium.com/@adamw00?source=rss-d7c7a0b97f2b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 17:40:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adamw00/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I configure one hand operation+]]></title>
            <link>https://adamw00.medium.com/how-i-configure-one-hand-operation-4763df886683?source=rss-d7c7a0b97f2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4763df886683</guid>
            <category><![CDATA[samsung]]></category>
            <category><![CDATA[s23ultra]]></category>
            <category><![CDATA[one-hand-operation-plus]]></category>
            <dc:creator><![CDATA[Adam00]]></dc:creator>
            <pubDate>Sun, 08 Oct 2023 06:11:38 GMT</pubDate>
            <atom:updated>2023-10-08T09:44:56.360Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I configure the one-hand operations+ (Samsung Galaxy S23U)</h3><p>I found it quite useful to set up the phone with one hand operations. Especially Galaxy S23U is a big phone. it is inconvenient to use both hand to whole and push the keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*ME2t9o9fTBe-KlANUrOeVQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*53nch0PTcyUqqhztr20dtA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*yaZEdE52fDFpKOTTT6GrMQ.jpeg" /><figcaption>Settings on <strong>One Hand Operation+</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*_4yD_1q2uCjGzXm0p-yGbw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*pOJ-yeGdeNw424XlU-gd0Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*OetcdjXjnjthbXUvqGpA9w.jpeg" /><figcaption>Widgets</figcaption></figure><p>Screens</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*ZaqNeIJvfPJKy-E54Uka2A.jpeg" /><figcaption>Related to work</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4763df886683" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cucumber for Javascript]]></title>
            <link>https://adamw00.medium.com/cucumber-for-javascript-4090fcd29b9?source=rss-d7c7a0b97f2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4090fcd29b9</guid>
            <category><![CDATA[bdd-development]]></category>
            <category><![CDATA[bdd-testing]]></category>
            <category><![CDATA[cucumber]]></category>
            <dc:creator><![CDATA[Adam00]]></dc:creator>
            <pubDate>Sun, 20 Nov 2022 14:25:26 GMT</pubDate>
            <atom:updated>2022-11-24T02:42:40.712Z</atom:updated>
            <content:encoded><![CDATA[<h4>Notes on tutorials of Cucumber School</h4><p>The focus on cucumber is in BDD style. It emphaizes on nontechnical documentation with code support for verification.</p><p><em>Code examples are from Cucumber School.</em></p><h4>1. Use Cucumber Expression rather than Regular Expression</h4><p>It is more intuitive to non-programmers.</p><pre>(?:I/You) have {int} cucumber(s) in my belly/stomach \(amazing!)<br><br># {int} - type (int, float, word, string, and {} as any<br># (s) - optional<br># belly/stomach - either belly or stomach<br># \(amazing!) - escape match `(amazing!)` in text<br># (?:I/You) - optional, and it is not capture as a parameter</pre><p>Try the expression <a href="https://cucumber.github.io/try-cucumber-expressions/">here</a> <br>Check the syntax <a href="https://github.com/cucumber/cucumber-expressions#readme">here</a></p><h4>2. Try Custom Parameters to clean your step definition</h4><pre>import { defineParameterType } from &#39;@cucumber/cucumber&#39;;<br><br>defineParameterType({<br>    name: &#39;color&#39;,<br>    regexp: /red|blue|yellow/,<br>    transformer: s =&gt; new Color(s),<br>});</pre><h4>3. Group similar steps together</h4><pre>Feature: a feature<br>  Scenario: a scenario<br>    Given a table step<br>      | Vegetable | Rating |<br>      | Apricot   | 5      |<br>      | Brocolli  | 2      |<br>      | Cucumber  | 10     |</pre><pre>import { Given } from &#39;@cucumber/cucumber&#39;;<br>import * as assert from &#39;assert&#39;;<br><br>Given(/^a table step$/, function(table) {<br>  const expected = [<br>    {&#39;Vegetable&#39;: &#39;Apricot&#39;, &#39;Rating&#39;: &#39;5&#39;},<br>    {&#39;Vegetable&#39;: &#39;Brocolli&#39;, &#39;Rating&#39;: &#39;2&#39;},<br>    {&#39;Vegetable&#39;: &#39;Cucumber&#39;, &#39;Rating&#39;: &#39;10&#39;},<br>  ];<br>  assert.deepEqual(table.hashes(), expected);<br>});</pre><p>Check <a href="https://github.com/cucumber/cucumber-js/blob/main/features/data_tables.feature">here</a> to further details</p><h4>4. Function declaration Over Arrow Function</h4><p>Global states can be shared and be accessed across step definition using function declaration.</p><pre>When(<br>  &quot;{?:person} go(es) to {destination} by {vehicle}&quot;,<br>  function (destination, vehicle) {<br>    const vehicle = Vechicle();<br>    this.timeTaken = vehicle.travelTime(destination);<br>  }<br>);<br><br>Then(<br>  &quot;It spends {time}&quot;,<br>  function(expectedTime) {<br>     assert.equal(this.timeTaken, expectedTime);<br>  }<br>);<br></pre><h4>5. Using re-run plugin for BDD to reduce additional re-run</h4><p>Run the test suite with formatter <strong>rerun</strong></p><pre>npm test -- -f rerun:@rerun.txt # will export the result to rerun.txt</pre><p>Say the scenario failed, the filererun.txt will be generated with the following content (using the line number filtering format)</p><pre>http://features/hear_shot.feature:38</pre><p>You can re-run the failed scenario by</p><pre>npm test -- @rerun.txt</pre><h4>6. Make use of <strong>BRIEF heuristics</strong></h4><p>Think carefully whether cucumber is a testing tool or documentation tool. A lengthy steps have no benefit as a dcoumentation. If you want someone to go for it, you need to know how to write a prose in gherkin.</p><pre>B is for Business Language<br>use plain language, avoid domain jargon<br><br>R is for Real Data<br>use more approachable names (like Peter, Mary)<br><br>I is for Intention Revealing<br>only reveal relevant detail, usually those will be observed by users<br><br>E is for Essential<br>further refined/removed steps after the intention revealing<br><br>F is for Focused<br>make it precise</pre><h4>7. Declarative Over Imperative</h4><p>When you are <strong>imperative</strong>, you are exactly instructing in details.<br>Like programming, imperative style is to command the computer sequence entirely.</p><p>However, if you are going for declarative you only need to describe the actual outcome, things like the execution sequence, or how the computer achieves the outcome, you might not have a full context. It is very good for nontechnical people to know that.</p><h4>8. BDD Terms to go further</h4><p>Three Amigos — Tester, Developer and Product Owner<br><a href="https://dannorth.net/2010/08/30/introducing-deliberate-discovery/">Example Mapping</a> — Set up an example to go further (Business Rules, Real Life Examples, Questions and Assumptions, Simplify the rules)<br>Incidental Details<br>Discovery, formulation and Automation — find unknown unknown<br>Deliberate Discovery</p><h3>Resource:</h3><p><a href="https://school.cucumber.io/courses/take/bdd-with-cucumber-javascript">Cucumber School (JS)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4090fcd29b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hotwire — Turbo + Stimulus + Strada]]></title>
            <link>https://adamw00.medium.com/hotwire-turbo-stimulus-strada-72c8647bceb5?source=rss-d7c7a0b97f2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/72c8647bceb5</guid>
            <category><![CDATA[monolith]]></category>
            <category><![CDATA[hot-wires]]></category>
            <category><![CDATA[rails]]></category>
            <dc:creator><![CDATA[Adam00]]></dc:creator>
            <pubDate>Tue, 28 Sep 2021 23:45:15 GMT</pubDate>
            <atom:updated>2021-09-28T23:48:58.915Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hotwire — Turbo + Stimulus + Strada</h3><p><a href="https://hotwired.dev/">HTML Over The Wire | Hotwire</a></p><p>Hotwire is the latest technology stack Basecamp announced based on Rails.</p><p>It aims to provide a collection of tools for developers to build an <strong>interactive</strong>, <strong>real-time</strong> application, while you do not have to build a separate frontend application (SPA).</p><p>The benefits of using Hotwire are as follows:</p><ul><li>reduces the time developer set up an infrastructure for both frontend and backend applications</li><li>reduces the integration tests to be run for testing the interfaces between frontend and backend</li><li>supports real-time push of the application</li></ul><h3>The Architecture</h3><p>It provides three separate libraries</p><ul><li>Turbo — working on <strong>Server Side</strong> to deliver HTML fragment to web browsers by websocket</li><li>Stimulus — working on Client Side Browsers to do an interactive change without the need of server</li><li>Strada — for mobile application processing the HTML fragments to native components. It is not official yet. <a href="https://www.hey.com/">Hey.com</a> is using that on its <a href="https://www.hey.com/apps/">mobile applications</a>.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F601432371%3Fh%3D5cf5bffc13%26app_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F601432371%3Fcolor%3Dc8c8c8&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1237424461-8944eee9de0d9e66ab51f845303aa21bfcce5f0c7803efc82872458e5e41f18f-d_1280&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1280" height="720" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f1b99a695e8912869b7bd76bbab8e58/href">https://medium.com/media/2f1b99a695e8912869b7bd76bbab8e58/href</a></iframe><p>From <a href="https://pragmaticstudio.com/courses/hotwire-rails">pragmatic studio</a></p><h3>Demo</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FeKY-QES1XQQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DeKY-QES1XQQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FeKY-QES1XQQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/911a56d9036e781fb11830f9d634e1b8/href">https://medium.com/media/911a56d9036e781fb11830f9d634e1b8/href</a></iframe><p>By Basecamp</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72c8647bceb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install elixir and erlang in RPI]]></title>
            <link>https://adamw00.medium.com/how-to-install-elixir-and-erlang-in-rpi-5413ca16a2b?source=rss-d7c7a0b97f2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5413ca16a2b</guid>
            <dc:creator><![CDATA[Adam00]]></dc:creator>
            <pubDate>Sat, 11 Sep 2021 01:44:32 GMT</pubDate>
            <atom:updated>2021-09-11T01:48:22.735Z</atom:updated>
            <content:encoded><![CDATA[<p>The official guide in elixir site is not up-to-date.</p><p>Install Erlang (extract from <a href="https://elinux.org/Erlang">https://elinux.org/Erlang</a>)</p><pre>sudo apt-get update<br>sudo apt-get install wget<br>sudo apt-get install libssl-dev<br>sudo apt-get install ncurses-dev<br>wget http://www.erlang.org/download/otp_src_24.0.tar.gz<br>tar -xzvf otp_src_24.0.tar.gz<br>cd otp_src_24.0/<br>./configure<br>make<br>sudo make install<br>cd ..<br>rm otp_src_24.0.tar.gz<br>sudo rm -R otp_src_24.0/</pre><p>Install Elixir from source:</p><pre>wget <a href="https://github.com/elixir-lang/elixir/archive/v1.11.4.tar.gz">https://github.com/elixir-lang/elixir/archive/v1.12.3.tar.gz</a><br>tar -xvzf <a href="https://github.com/elixir-lang/elixir/archive/v1.11.4.tar.gz">v1.12.3.tar.gz</a><br>make install</pre><p>Please install elixir v1.11.x for phoenix 1.5.x</p><p>Refernece: <a href="https://github.com/elixir-lang/elixir-lang.github.com/issues/1510#issuecomment-830746952">https://github.com/elixir-lang/elixir-lang.github.com/issues/1510#issuecomment-830746952</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5413ca16a2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 things you need to remember in Elixir]]></title>
            <link>https://adamw00.medium.com/5-things-you-need-to-remember-in-elixir-c8c480ab0fdf?source=rss-d7c7a0b97f2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8c480ab0fdf</guid>
            <category><![CDATA[elixir]]></category>
            <dc:creator><![CDATA[Adam00]]></dc:creator>
            <pubDate>Sun, 28 Mar 2021 08:25:57 GMT</pubDate>
            <atom:updated>2021-03-28T08:37:35.241Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Single quotes vs double quotes<br>A lot of modern programming languages, like ruby, javascript and python, will treat&#39;string&#39; the same as&quot;string&quot; . In Elixir, however, it is not the case</li></ol><pre>&gt; &#39;string&#39; == &quot;string&quot;<br>false</pre><pre>&gt; IEx.Info.info(&#39;string&#39;)<br>... {&quot;Data type&quot;, &quot;List&quot;} ...</pre><pre>&gt; IEx.Info.info(&quot;string&quot;)<br>... {&quot;Data type&quot;, &quot;BitString&quot;} ...</pre><p>2. function clause for idiomatic elixir</p><pre>defmodule AnimalSoundEmitter do<br>  def emit(:dog), do: :bark<br>  def emit(:cat), do: :meow<br>  def emit(:snake), do: :hiss<br>  def emit(:lion), do: :roar<br>end</pre><p>3. guard clause</p><pre>defmodule Calculator do<br>  def plus(a, b) <strong>when is_number(a) and is_number(b),</strong> do: a + b<br>  def minus(a, b) <strong>when is_number(a) and is_number(b),</strong> do: a - b<br>  def multiply(a, b) <strong>when is_number(a) and is_number(b),</strong> do: a * b<br>  def divide(a, b) <strong>when is_number(a) and is_number(b),</strong> do: a / b<br>end</pre><p>4. assignment vs matching</p><p>assignment variable &lt; is on the left side of the expression<br>matching &lt; no error throws<br>matching with destructing, from Common Lisp<br>can match just a part of values</p><p>5. eex treats if/for as an expression</p><p>in ruby erb, no = applies before if/for</p><pre>&lt;% if true %&gt;<br>  This is correct<br>&lt;% else %&gt;<br>  This is not<br>&lt;% end %&gt;</pre><p>in elixir eex, a = is required</p><pre>&lt;%= if true %&gt;<br> This is correct<br>&lt;% else %&gt;<br> This is not<br>&lt;% end %&gt;</pre><p>Use haml, if you do not like eex</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8c480ab0fdf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sinatra Recipes Online]]></title>
            <link>https://adamw00.medium.com/sinatra-recipes-online-828c161b17f0?source=rss-d7c7a0b97f2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/828c161b17f0</guid>
            <dc:creator><![CDATA[Adam00]]></dc:creator>
            <pubDate>Thu, 01 Oct 2020 04:13:00 GMT</pubDate>
            <atom:updated>2020-10-11T06:33:53.384Z</atom:updated>
            <content:encoded><![CDATA[<p>Since there is no online version of Sinatra Recipes available to public right now.<br>I try to host one on Heroku. The source code should be in sync to the original <a href="https://github.com/sinatra/sinatra-recipes">repo</a>.</p><p><a href="https://sinatra-receipes.herokuapp.com/">Sinatra Recipes</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=828c161b17f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to set up your headless Raspberry pi]]></title>
            <link>https://adamw00.medium.com/how-to-set-up-your-headless-raspberry-pi-c75d2b10add8?source=rss-d7c7a0b97f2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c75d2b10add8</guid>
            <category><![CDATA[headless-pi]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <dc:creator><![CDATA[Adam00]]></dc:creator>
            <pubDate>Fri, 21 Aug 2020 15:43:00 GMT</pubDate>
            <atom:updated>2020-10-31T09:11:34.685Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to set up your headless Raspberry pi 4 (for MasOS)</h3><p>It is pretty clumsy to connect monitor, mouse and keyboard for just setting up raspberrypi. Here is the way to avoid it.</p><h4>Set up Raspberry OS, wifi and ssh support</h4><ol><li>Download <a href="https://www.raspberrypi.org/downloads/"><strong>Raspberry Pi Imager</strong></a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LVZYvYN6ePHrM3zFFgKbVA.png" /></figure><p>2. Run <strong>Raspberry Pi Imager</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KLSJhAqmO8CimwbiGhk4qw.png" /></figure><p>3. Select the followings, and then click <strong>WRITE</strong><br>- <strong>Operating System: </strong>Raspberrypi OS<br>- <strong>SD Card</strong>: &lt;your SD card storing your OS&gt;</p><p>You may need to wait for more than 20 mins</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ZANcmsMN-TJuhxaTDYOSA.png" /></figure><p>4. Turn on your terminal, type the followings:</p><pre>$ df -h</pre><p>Find out which file system is your SD card, go to that partition, say</p><pre>$ cd /dev/disk1s1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1gOFNi2DQ3NhmdH6z6UhWw.png" /></figure><p>5. Go to /boot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*THIwU_DE59Q-QHlPiuWosQ.png" /></figure><p>6. Modify the script headless-pi.sh below with your ssid and psk . Run the script in /boot.<br>The script will create two files — ssh and wpa_supplicant.conf. It will enable your pi ssh and wifi connection.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/db8a2c2a56218d3f5cb7ae530dbafd85/href">https://medium.com/media/db8a2c2a56218d3f5cb7ae530dbafd85/href</a></iframe><p>Now you can put your SD card to raspberry pi and run it.</p><h4>Connecting to raspberry pi through SSH</h4><p>You can use ssh directly, but I would prefer sshpass that can store my password.</p><ol><li>Install sshpass</li></ol><pre>$ brew install hudochenkov/sshpass/sshpass</pre><p>2. Download and run the script rpi.sh</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3a86eb848ef473aea1b3e0d95ebbc2d8/href">https://medium.com/media/3a86eb848ef473aea1b3e0d95ebbc2d8/href</a></iframe><p>3. You can now access your raspberrypi!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eEaSb0BNzlsq9BP3J-Y7mQ.png" /></figure><h3>Done!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c75d2b10add8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Postgres]]></title>
            <link>https://adamw00.medium.com/postgres-6d708006c1b4?source=rss-d7c7a0b97f2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d708006c1b4</guid>
            <dc:creator><![CDATA[Adam00]]></dc:creator>
            <pubDate>Fri, 29 May 2020 00:11:43 GMT</pubDate>
            <atom:updated>2020-06-04T00:04:16.972Z</atom:updated>
            <content:encoded><![CDATA[<h3>Postgres 書單 技術文</h3><p>How to start</p><ul><li><a href="https://ruby-china.org/topics/37815">It&#39;s never too late to learn Postgres · Ruby China</a></li><li><a href="https://blog.csdn.net/weixin_34318272/article/details/90622954?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase">德哥的PostgreSQL私房菜 - 史上最屌PG资料合集_git_weixin_34318272的博客-CSDN博客</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdocs.google.com%2Fpresentation%2Fembed%3Fid%3D1gBLOy-ZkOMSD7YkEIr_D51cIRRKORmT-E4_NLIRhHJw%26size%3Dl&amp;display_name=Google+Docs&amp;url=https%3A%2F%2Faccounts.google.com%2FServiceLogin%3Fservice%3Dwise%26passive%3D1209600%26continue%3Dhttps%3A%2F%2Fdocs.google.com%2Fpresentation%2Fd%2F1gBLOy-ZkOMSD7YkEIr_D51cIRRKORmT-E4_NLIRhHJw%2Fedit%26followup%3Dhttps%3A%2F%2Fdocs.google.com%2Fpresentation%2Fd%2F1gBLOy-ZkOMSD7YkEIr_D51cIRRKORmT-E4_NLIRhHJw%2Fedit%26ltmpl%3Dslides&amp;image=https%3A%2F%2Fssl.gstatic.com%2Faccounts%2Fui%2Favatar_2x.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=google" width="700" height="559" frameborder="0" scrolling="no"><a href="https://medium.com/media/e827c27c8743c4cc524da5d25d54d2c5/href">https://medium.com/media/e827c27c8743c4cc524da5d25d54d2c5/href</a></iframe><p>Website</p><ul><li><a href="https://use-the-index-luke.com/">SQL Indexing and Tuning e-Book for developers: Use The Index, Luke covers Oracle, MySQL, PostgreSQL, SQL Server, ...</a></li><li><a href="https://modern-sql.com/">Modern SQL: A lot has changed since SQL-92</a></li></ul><p>Reference Books</p><ul><li><a href="https://book.douban.com/subject/35005283/">深入浅出PostgreSQL</a></li><li><a href="https://book.douban.com/subject/33477094/">PostgreSQL指南：内幕探索</a></li><li><a href="https://book.douban.com/subject/30256561/">PostgreSQL技术内幕：查询优化深度探索</a></li><li><a href="https://book.douban.com/subject/21363149/">SQL Performance Explained</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d708006c1b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Derailed Benchmarks — 監察系統如何分配記憶體]]></title>
            <link>https://medium.com/%E5%AF%A6%E7%94%A8%E7%9A%84rubygems/derailed-benchmarks-%E7%9B%A3%E5%AF%9F%E7%B3%BB%E7%B5%B1%E5%A6%82%E4%BD%95%E5%88%86%E9%85%8D%E8%A8%98%E6%86%B6%E9%AB%94-134d363127c3?source=rss-d7c7a0b97f2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/134d363127c3</guid>
            <dc:creator><![CDATA[Adam00]]></dc:creator>
            <pubDate>Tue, 28 Apr 2020 10:38:10 GMT</pubDate>
            <atom:updated>2020-10-03T01:57:25.726Z</atom:updated>
            <content:encoded><![CDATA[<h3>Derailed Benchmarks — 監察系統如何分配記憶體</h3><p>Ruby on Rails追求開發追度，提供各種組件予開發員直接使用。龐大既組件嚴重佔用系統的記憶體，稍一不慎，會拖慢原本效率已經非常一般的系統。</p><p>解決方法不外乎加強軟件配置，或者是改善系統代碼的質素。<br>改善代碼需要的知識很多，垃圾處理，何時製造物件，需要非常悉識各種方法。</p><h3>GitHub Gem專頁</h3><p><a href="https://github.com/schneems/derailed_benchmarks">schneems/derailed_benchmarks</a></p><h3>設定</h3><p>(1) 安裝Derailed Benchmarks</p><pre>$ bundle add derailed_benchmarks stackprof --group &quot;development&quot;</pre><p>完成！</p><h3>使用</h3><p>執行以下指令檢查gem使用了多少記憶體。</p><pre>$ derailed bundle:mem</pre><h3>後記</h3><p>長遠來說，該考慮的是代碼是否適合使用Ruby on Rails，或者你需要使用另一種程式語言，以微服務來分拆功能。至於如何傳遞服務間的Session，又是另一個問題了。</p><h3>延伸閱讀</h3><p><a href="https://pragprog.com/book/adrpo/ruby-performance-optimization">Ruby Performance Optimization</a><br>Ruby效能調節詳解。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=134d363127c3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E5%AF%A6%E7%94%A8%E7%9A%84rubygems/derailed-benchmarks-%E7%9B%A3%E5%AF%9F%E7%B3%BB%E7%B5%B1%E5%A6%82%E4%BD%95%E5%88%86%E9%85%8D%E8%A8%98%E6%86%B6%E9%AB%94-134d363127c3">Derailed Benchmarks — 監察系統如何分配記憶體</a> was originally published in <a href="https://medium.com/%E5%AF%A6%E7%94%A8%E7%9A%84rubygems">實用的RubyGems</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shape up]]></title>
            <link>https://adamw00.medium.com/shape-up-c1f71c7895de?source=rss-d7c7a0b97f2b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1f71c7895de</guid>
            <dc:creator><![CDATA[Adam00]]></dc:creator>
            <pubDate>Wed, 04 Mar 2020 10:04:52 GMT</pubDate>
            <atom:updated>2020-03-04T10:48:23.359Z</atom:updated>
            <content:encoded><![CDATA[<h3>Shape up (Unedited)</h3><p><a href="https://basecamp.com/shapeup">Shape Up: Stop Running in Circles and Ship Work that Matters</a></p><p>Execution is not always everything. A team needs to care about people as well.</p><p>A wrong project work can lead to:</p><ul><li>destroy morale</li><li>grind teams down</li><li>erode trust</li><li>crunch gears</li><li>wreck the machinery of long-term progress</li></ul><p>Cost($ &amp; Manpower) &lt;-&gt; Time &lt;-&gt; Features &lt;-&gt;</p><p>What shape up what to solve</p><ul><li>End the project within definite timebox</li><li>Think about how the product will grow in long terms</li><li>???</li></ul><p>Six-week cycles<br>Shape the work (define key elements of a solution)<br>Targeting risk <br>- not shipping on time<br>- building the correct thing</p><p>Shaping — preparing of work before schedule<br>Betting — pitching projects to do for next product iterations<br>Building — track known versus unknown, and FINISH the project ON TIME</p><p>Shaping (pre-work) <br>Wireframes too concrete -&gt; implementation cannot map the actual work<br>Words are too abstract -&gt; wrong understanding of requirements</p><p>Issue: hierarchical executor vs planner (Be aware)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1f71c7895de" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>