<?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 Lance Jian on Medium]]></title>
        <description><![CDATA[Stories by Lance Jian on Medium]]></description>
        <link>https://medium.com/@lcltj?source=rss-606c31dd2d8d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*1kVj_ZxjFuOYreaX.</url>
            <title>Stories by Lance Jian on Medium</title>
            <link>https://medium.com/@lcltj?source=rss-606c31dd2d8d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:51:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lcltj/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[Run Remote Linux GUI Application from Windows with X11 Forwarding]]></title>
            <link>https://lcltj.medium.com/run-remote-linux-gui-application-from-windows-with-x11-forwarding-2cb30e6301a6?source=rss-606c31dd2d8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cb30e6301a6</guid>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Lance Jian]]></dc:creator>
            <pubDate>Wed, 06 Sep 2023 21:09:11 GMT</pubDate>
            <atom:updated>2023-09-08T05:55:52.050Z</atom:updated>
            <content:encoded><![CDATA[<p>This article supposed the remote Linux is Ubuntu 20.04 and above.</p><p>Needed Software in Windows:</p><ul><li><a href="https://sourceforge.net/projects/vcxsrv/">VcXsrv</a></li><li><a href="https://www.putty.org/">PuTTY</a></li></ul><p>Start PuTTY, configure SSH &gt; X11 &gt; Enable X11 forwarding:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*vyQmOjR0T3zvtJU23wBn5g.png" /></figure><p>In remote linux machine, change /etc/ssh/sshd_config:</p><pre>X11Forwarding yes<br>X11UseLocalhost no</pre><p>Restart remote SSH service:</p><pre>sudo systemctl restart ssh.service</pre><p>(Optional) Add in ~/.bashrc :</p><pre>export LIBGL_ALWAYS_INDIRECT=1</pre><p>To start the remote GUI application:</p><ol><li>Run XLaunch first in Windows</li><li>Run PuTTY, login your remote machine</li><li>Run xclock in the command line to test if it works.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cb30e6301a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Combine Javascript Generators with “yield”]]></title>
            <link>https://lcltj.medium.com/combine-javascript-generators-with-yield-8c9242721e8d?source=rss-606c31dd2d8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c9242721e8d</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Lance Jian]]></dc:creator>
            <pubDate>Wed, 06 Sep 2023 20:30:18 GMT</pubDate>
            <atom:updated>2023-09-06T20:32:20.743Z</atom:updated>
            <content:encoded><![CDATA[<h3>Combine Javascript Generators with yield</h3><p>It’s not appropriate to call yield anotherGenerator() inside a generator function to combine two sagas. In general, to combine two generators, we need to use yield* anotherGenerator().</p><pre>function* g1() {<br>  yield 2;<br>  yield 3;<br>  yield 4;<br>}<br>function* g2() {<br>  yield 1;<br>  yield g1(); // if not use yield* g1()<br>  yield 5;<br>}<br>const gen = g2();<br>console.log(gen.next()); // &gt; {value: 1, done: false}<br>console.log(gen.next()); // &gt; {value: g1, done: false} not as you expected <br>console.log(gen.next()); // &gt; {value: 5, done: false}</pre><p>If using <a href="https://redux-saga.js.org/">redux-saga</a>, we can also use its call or fork functions to combine generators:</p><pre>import { call } from &#39;redux-saga/effects&#39;;<br><br>function* g2() {<br>  yield call(g1);<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c9242721e8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Change Thunderbird Font Size on macOS]]></title>
            <link>https://lcltj.medium.com/change-thunderbird-font-size-on-macos-32597548e6b2?source=rss-606c31dd2d8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/32597548e6b2</guid>
            <dc:creator><![CDATA[Lance Jian]]></dc:creator>
            <pubDate>Sat, 31 Oct 2020 17:13:24 GMT</pubDate>
            <atom:updated>2020-10-31T17:24:44.548Z</atom:updated>
            <content:encoded><![CDATA[<p>This works on Thunderbird 78.4.0.</p><p>First, go to “Help” &gt; “Troubleshooting Information”, click the button “Show in Finder” next to “Profile Folder”. It will open the profiles folder.</p><p>Find the folder named xxxxxx.default-release, create a new folder chrome along side with the Mail folder.</p><p>Inside the chrome folder, create a file userChrome.css with following content:</p><pre>/*<br>* Do not remove the @namespace line -- it&#39;s required for correct functioning<br>*/<br>@namespace url(https://medium.com/&quot;http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul&quot;);<br>​<br>/* Set font size in folder pane */<br>#folderTree &gt;treechildren::-moz-tree-cell-text {<br>    font-size: 1.2rem !important; /* You can also use em, pt or other units here.*/<br>}<br>​<br>/* Set font size in thread pane */<br>#threadTree &gt;treechildren::-moz-tree-cell-text {<br>    font-size: 1.2rem !important;<br>}<br>​<br>/* Set height for cells in folder pane */<br>#folderTree &gt;treechildren::-moz-tree-row {<br>   height: 22px !important;<br>}<br>/* Set height for cells in thread pane */<br>#threadTree &gt;treechildren::-moz-tree-row {<br>   height: 22px !important;<br>}</pre><p>Next, you need to open “Preferences” &gt; “General” &gt; “Config Editor…”, accept the warning dialog.</p><p>Search for toolkit.legacyUserProfileCustomizations.stylesheets and double click it to set its value to true.</p><p>Finally, restart your Thunderbird.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32597548e6b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>