<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://xuafeng.win/blogs/feed.xml" rel="self" type="application/atom+xml" /><link href="https://xuafeng.win/blogs/" rel="alternate" type="text/html" /><updated>2025-08-26T00:29:49+00:00</updated><id>https://xuafeng.win/blogs/feed.xml</id><title type="html">Xuan FENG’s Log</title><subtitle>my logs.</subtitle><author><name>Xuan FENG</name></author><entry><title type="html">My workflow and notes</title><link href="https://xuafeng.win/blogs/2022/08/22/workflow.html" rel="alternate" type="text/html" title="My workflow and notes" /><published>2022-08-22T15:01:55+00:00</published><updated>2022-08-22T15:01:55+00:00</updated><id>https://xuafeng.win/blogs/2022/08/22/workflow</id><content type="html" xml:base="https://xuafeng.win/blogs/2022/08/22/workflow.html"><![CDATA[<h3 id="polish-the-workflow">polish the workflow</h3>
<ul>
  <li>pick 1password &amp; update my weak passwords</li>
  <li>icloud sync for OB</li>
  <li>NetNewsWire for rss</li>
</ul>

<h3 id="interesting-theme">interesting theme</h3>
<ul>
  <li>https://github.com/riggraz/no-style-please/network/dependents</li>
  <li>https://inputusername.github.io/zola-hook/</li>
  <li>https://prataprc.github.io</li>
  <li>https://samkaj.github.io</li>
  <li>https://yeatse.github.io/</li>
  <li>https://everylittlefox.github.io</li>
  <li>https://davidebrie.github.io/Gesko/</li>
  <li>https://trickgorospe.com</li>
  <li>https://riggraz.dev</li>
</ul>]]></content><author><name>Xuan FENG</name></author><category term="notes" /><summary type="html"><![CDATA[polish the workflow pick 1password &amp; update my weak passwords icloud sync for OB NetNewsWire for rss]]></summary></entry><entry><title type="html">This a test post.</title><link href="https://xuafeng.win/blogs/2022/08/22/new-blog.html" rel="alternate" type="text/html" title="This a test post." /><published>2022-08-22T10:34:55+00:00</published><updated>2022-08-22T10:34:55+00:00</updated><id>https://xuafeng.win/blogs/2022/08/22/new-blog</id><content type="html" xml:base="https://xuafeng.win/blogs/2022/08/22/new-blog.html"><![CDATA[<p>This post is new format test.</p>]]></content><author><name>Xuan FENG</name></author><category term="test" /><summary type="html"><![CDATA[This post is new format test.]]></summary></entry><entry><title type="html">Markdown cheatsheet</title><link href="https://xuafeng.win/blogs/2021/10/07/markdown.html" rel="alternate" type="text/html" title="Markdown cheatsheet" /><published>2021-10-07T12:34:55+00:00</published><updated>2021-10-07T12:34:55+00:00</updated><id>https://xuafeng.win/blogs/2021/10/07/markdown</id><content type="html" xml:base="https://xuafeng.win/blogs/2021/10/07/markdown.html"><![CDATA[<h3 id="markdown">Markdown</h3>

<p>Markdown is a lightweight and easy-to-use syntax for styling your writing. It includes conventions for</p>

<div class="language-markdown highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Syntax highlighted code block

<span class="gh"># Header 1</span>
<span class="gu">## Header 2</span>
<span class="gu">### Header 3</span>
<span class="p">
-</span> Bulleted
<span class="p">-</span> List
<span class="p">
1.</span> Numbered
<span class="p">2.</span> List

<span class="gs">**Bold**</span> and _Italic_ and <span class="sb">`Code`</span> text

<span class="p">[</span><span class="nv">Link</span><span class="p">](</span><span class="sx">url</span><span class="p">)</span> and !<span class="p">[</span><span class="nv">Image</span><span class="p">](</span><span class="sx">src</span><span class="p">)</span>
<span class="gt">
&gt; Blockquotes</span>

<span class="p">[</span><span class="nv">Link</span><span class="p">](</span><span class="sx">url</span><span class="p">)</span> and !<span class="p">[</span><span class="nv">Image</span><span class="p">](</span><span class="sx">src</span><span class="p">)</span>
<span class="p">
-</span> [x] this is a complete item
<span class="p">-</span> [ ] this is an incomplete item

</code></pre></div></div>

<p>For more details see <a href="https://guides.github.com/features/mastering-markdown/">GitHub Flavored Markdown</a>.</p>

<ul>
  <li>GitHub supports emoji! To see a list of every image we support, check out the <a href="https://github.com/ikatyang/emoji-cheat-sheet/blob/master/README.md">Emoji Cheat Sheet</a>.</li>
</ul>]]></content><author><name>Xuan FENG</name></author><category term="markdown" /><summary type="html"><![CDATA[Markdown]]></summary></entry><entry><title type="html">Fossil Syntax</title><link href="https://xuafeng.win/blogs/2021/10/07/fossil.html" rel="alternate" type="text/html" title="Fossil Syntax" /><published>2021-10-07T10:34:55+00:00</published><updated>2021-10-07T10:34:55+00:00</updated><id>https://xuafeng.win/blogs/2021/10/07/fossil</id><content type="html" xml:base="https://xuafeng.win/blogs/2021/10/07/fossil.html"><![CDATA[<h2 id="fossil-syntax">Fossil Syntax</h2>

<h4 id="general-work-flow">General Work Flow</h4>

<div class="language-markdown highlighter-rouge"><div class="highlight"><pre class="highlight"><code>fossil init REPOSITORY-DIR/new-repository
fossil open REPOSITORY-DIR/new-repository
fossil changes/diff/info/status/ls
fossil timeline
fossil add/rm files-or-directories
fossil commit -m "commit message"
fossil ui
</code></pre></div></div>

<h4 id="branch-and-merge">Branch and Merge</h4>
<div class="language-markdown highlighter-rouge"><div class="highlight"><pre class="highlight"><code>fossil commit -branch "branch-name"
fossil update trunk
fossil merge featureX
fossil commit
</code></pre></div></div>

<h4 id="share-changes-autosync-is-off">Share changes (autosync is off)</h4>
<div class="language-markdown highlighter-rouge"><div class="highlight"><pre class="highlight"><code>fossil push URL
fossil pull URL
fossil sync URL
fossil update VERSION
</code></pre></div></div>
<p>See more details at Fossil <a href="https://fossil-scm.org/home/doc/trunk/www/quickstart.wiki">Quick Start</a>.</p>]]></content><author><name>Xuan FENG</name></author><category term="coding" /><summary type="html"><![CDATA[Fossil Syntax]]></summary></entry><entry><title type="html">Github Flow</title><link href="https://xuafeng.win/blogs/2021/09/09/github-flow.html" rel="alternate" type="text/html" title="Github Flow" /><published>2021-09-09T10:34:55+00:00</published><updated>2021-09-09T10:34:55+00:00</updated><id>https://xuafeng.win/blogs/2021/09/09/github-flow</id><content type="html" xml:base="https://xuafeng.win/blogs/2021/09/09/github-flow.html"><![CDATA[<h1 id="github-flow">Github Flow</h1>

<p>The common github flow is described in this <a href="https://guides.github.com/introduction/flow/">document</a>.</p>

<ul>
  <li>Create a branch</li>
  <li>Add commits</li>
  <li>Open a Pull Request</li>
  <li>Discuss and review your code</li>
  <li>Deploy</li>
  <li>Merge</li>
</ul>

<p>Some common command is showing below:</p>

<div class="language-markdown highlighter-rouge"><div class="highlight"><pre class="highlight"><code>git clone https://github.com/felixxfeng/blogs.git
cd blogs
git checkout -b test-pr
git add . &amp;&amp; git commit -m "test-pr"
git push origin test-pr
</code></pre></div></div>
<p>You also can use the Github Desktop. It is more user-friendly.</p>]]></content><author><name>Xuan FENG</name></author><category term="git" /><category term="coding" /><summary type="html"><![CDATA[Github Flow]]></summary></entry><entry><title type="html">Code Quality</title><link href="https://xuafeng.win/blogs/2021/09/08/code-quality.html" rel="alternate" type="text/html" title="Code Quality" /><published>2021-09-08T10:34:55+00:00</published><updated>2021-09-08T10:34:55+00:00</updated><id>https://xuafeng.win/blogs/2021/09/08/code-quality</id><content type="html" xml:base="https://xuafeng.win/blogs/2021/09/08/code-quality.html"><![CDATA[<h1 id="code-quality">Code Quality</h1>

<h2 id="coding-style">Coding style</h2>
<ul>
  <li>Be consistent in the style</li>
  <li>Coding standard
    <ul>
      <li><a href="https://google.github.io/styleguide">Google Style Guides</a></li>
      <li><a href="https://www.python.org/dev/peps/pep-0008/">PEP 8 – Style Guide for Python Code</a></li>
    </ul>
  </li>
  <li>Static code analysis
    <ul>
      <li>Pylint is integrated into Visual Code</li>
      <li>Find guidance <a href="https://code.visualstudio.com/docs/python/linting">here</a>.</li>
    </ul>
  </li>
</ul>

<h2 id="testing">Testing</h2>
<ul>
  <li>Unit test and system test
    <ul>
      <li>Unit test is efficient</li>
      <li>System test is thorough</li>
    </ul>
  </li>
  <li>Test tools
    <ul>
      <li>Unit test for Python
        <ul>
          <li>https://docs.python.org/3/library/unittest.html</li>
          <li>https://docs.python.org/3/library/unittest.mock.htmlP</li>
        </ul>
      </li>
    </ul>
  </li>
</ul>

<h2 id="pull-request-pr">Pull Request (PR)</h2>
<p>You can find detail guidance (https://google.github.io/eng-practices/). We summarize three items in the following.</p>
<ul>
  <li>Submit a complete PR (Tested code with tests)</li>
  <li>Clear description (“Fix bug” is an inadequate CL description. What bug? What did you do to fix it? )</li>
  <li>One PR one task</li>
  <li>Examples:
    <ul>
      <li><a href="https://google.github.io/eng-practices/review/developer/cl-descriptions.html#:~:text=enough%20useful%20information.-,Good%20CL%20Descriptions,-Here%20are%20some">Good CL Descriptions</a></li>
    </ul>
  </li>
</ul>]]></content><author><name>Xuan FENG</name></author><category term="coding" /><summary type="html"><![CDATA[Code Quality]]></summary></entry></feed>