<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Home on Xianying&#39;s Blog</title>
    <link>https://shrektan.com/en/</link>
    <description>Recent content in Home on Xianying&#39;s Blog</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 05 Aug 2026 01:00:00 +0800</lastBuildDate>
    <atom:link href="https://shrektan.com/en/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>The Other Half of Intuition</title>
      <link>https://shrektan.com/en/post/2026/08/05/the-other-half-of-intuition/</link>
      <pubDate>Wed, 05 Aug 2026 01:00:00 +0800</pubDate>
      <guid>https://shrektan.com/en/post/2026/08/05/the-other-half-of-intuition/</guid>
      <description>&lt;p&gt;&amp;ldquo;Trust your intuition.&amp;rdquo; We have all heard this. But maybe not many of us have stopped to ask: what is intuition, and why is it worth trusting?&lt;/p&gt;&#xA;&lt;p&gt;We all learned about evolution in school. Counting backwards, we are Homo sapiens, and before that apes, and before that mammals and reptiles, and if you keep going, the origin was probably some single-celled thing in the water, roughly the shape of a paramecium. An enormous amount had to happen between a cell like that and a living, thinking human being. And whatever carried that line of life all the way to today is still sitting inside our bodies.&lt;/p&gt;</description>
    </item>
    <item>
      <title>It All Comes Down to Taste</title>
      <link>https://shrektan.com/en/post/2026/04/14/it-all-comes-down-to-taste/</link>
      <pubDate>Tue, 14 Apr 2026 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2026/04/14/it-all-comes-down-to-taste/</guid>
      <description>&lt;p&gt;Steve Jobs once said the real problem with Microsoft wasn&amp;rsquo;t the engineering — it was that they had no taste. I used to read that as a jab. The more I use AI for the actual work I care about — research, writing, small tools I build for myself — the more I think it was the whole point.&lt;/p&gt;&#xA;&lt;p&gt;Taste isn&amp;rsquo;t a vibe. It isn&amp;rsquo;t &amp;ldquo;design sense&amp;rdquo; in the narrow, aesthetic meaning. Taste is the compressed output of everything a person knows — their experience, their empathy for the people they build for, their feel for what actually works and what doesn&amp;rsquo;t. It shows up in a thousand small decisions: what to include, what to leave out, where to push, where to stop. None of it is copyable.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Build Your Own Skill</title>
      <link>https://shrektan.com/en/post/2026/04/04/build-your-own-skill/</link>
      <pubDate>Sat, 04 Apr 2026 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2026/04/04/build-your-own-skill/</guid>
      <description>&lt;p&gt;Garry Tan&amp;rsquo;s &lt;a href=&#34;https://github.com/garrytan/gstack&#34;&gt;gstack&lt;/a&gt; has been everywhere lately — nearly 20,000 stars on GitHub, trending #1 on Product Hunt, discussed all over the place. Using this set of Skills, he averaged 10,000 lines of code and 100 pull requests per week over a 50-day stretch.&lt;/p&gt;&#xA;&lt;p&gt;I installed it. Used it seriously for a while. Then deleted all of it.&lt;/p&gt;&#xA;&lt;p&gt;Not because it was bad. There are genuinely useful ideas in gstack. The &lt;code&gt;/plan-ceo-review&lt;/code&gt; Skill, for example, has the AI evaluate a feature from a CEO and product perspective — I found that valuable, since I tend to think in product terms rather than pure engineering. But after using it for a while, I realized the judgment framework behind it was Garry Tan&amp;rsquo;s — his experience, the kinds of projects he&amp;rsquo;s been exposed to, his decision-making preferences. It felt somewhat old-school, and didn&amp;rsquo;t quite match how I think.&lt;/p&gt;</description>
    </item>
    <item>
      <title>After All These Years, Still data.table</title>
      <link>https://shrektan.com/en/post/2026/04/03/data-table-is-the-best/</link>
      <pubDate>Fri, 03 Apr 2026 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2026/04/03/data-table-is-the-best/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://shrektan.com/zh/post/2026/04/03/data-table-is-the-best/cover.jpg&#34; alt=&#34;The bracket syntax of data.table&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve spent serious time with all the mainstream DataFrame tools over the years &amp;ndash; dplyr, Pandas, Polars. After all that, I&amp;rsquo;ve come to believe that data.table is simply the best data analysis tool out there. Nothing else comes close.&lt;/p&gt;&#xA;&lt;p&gt;R has its strengths. Python has its strengths. No argument there. But when it comes to DataFrame operations themselves &amp;ndash; filtering, transforming, grouping, joining &amp;ndash; that&amp;rsquo;s what data analysis boils down to day-to-day. That&amp;rsquo;s all I&amp;rsquo;m talking about here.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Feedback Is Evolution</title>
      <link>https://shrektan.com/en/post/2026/02/28/feedback-is-evolution/</link>
      <pubDate>Sat, 28 Feb 2026 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2026/02/28/feedback-is-evolution/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve always sensed that feedback matters, but I never really understood &lt;em&gt;why&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Over the past couple of years, a mix of reading and lived experience has gradually reshaped my thinking. Feedback isn&amp;rsquo;t an evaluation. It isn&amp;rsquo;t some workplace technique. It&amp;rsquo;s the only way we extract information from the real world, the foundation of every action we take — and arguably one of the most fundamental mechanisms by which the world operates.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Knowledge Is a Network</title>
      <link>https://shrektan.com/en/post/2026/02/28/knowledge-is-a-network/</link>
      <pubDate>Sat, 28 Feb 2026 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2026/02/28/knowledge-is-a-network/</guid>
      <description>&lt;p&gt;The way we&amp;rsquo;re educated from childhood tends to leave an impression that knowledge is a collection of discrete &amp;ldquo;dots&amp;rdquo; — a formula here, a definition there, a conclusion somewhere else. Memorize them, and you&amp;rsquo;ve got it.&lt;/p&gt;&#xA;&lt;p&gt;This understanding is flawed.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;The brain is not a warehouse where you simply dump things in. It&amp;rsquo;s more like a multidimensional structure where pieces of knowledge are interconnected. Any new piece of information must form connections with what you already know in order to truly stick. Knowledge without connections just floats in the void — even if you force-memorize it, it&amp;rsquo;ll slip away within days.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Rubik&#39;s Cube Litmus Test</title>
      <link>https://shrektan.com/en/post/2026/02/17/rubiks-cube-litmus-test/</link>
      <pubDate>Tue, 17 Feb 2026 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2026/02/17/rubiks-cube-litmus-test/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve been learning to solve a 3x3 Rubik&amp;rsquo;s cube with my kid recently.&lt;/p&gt;&#xA;&lt;p&gt;I already knew the basic layer-by-layer method — enough to solve it, but painfully slow. This time, I wanted to take the opportunity of playing with my child to upgrade the last layer from the beginner method to CFOP — specifically, learning the OLL and PLL algorithms. Stanford has a two-or-three-page &lt;a href=&#34;https://cube.stanford.edu/class/files/rubiks_cube_solution.pdf&#34;&gt;tutorial&lt;/a&gt; that covers exactly this in the second half: which algorithm goes with which pattern, how to identify orientations — all laid out clearly. Following along, it&amp;rsquo;s not hard at all.&lt;/p&gt;</description>
    </item>
    <item>
      <title>From R Shiny to FastAPI &#43; React</title>
      <link>https://shrektan.com/en/post/2025/05/05/from-r-shiny-to-fastapi-react/</link>
      <pubDate>Mon, 05 May 2025 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2025/05/05/from-r-shiny-to-fastapi-react/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://shrektan.com/zh/post/2025/05/05/from-r-shiny-to-fastapi-react/images/image1.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;During the May Day holiday, I took a few days of annual leave, originally planning to spend quality time with my kid. To my surprise, starting from the very first morning, my child came down with acute gastroenteritis&amp;mdash;days of vomiting, diarrhea, and zero appetite. While caring for the little one, I found some time to explore the FastAPI + React + Tailwind tech stack. &lt;strong&gt;My gut feeling is that, combined with &amp;ldquo;Vibe Coding&amp;rdquo; (AI-assisted programming), this stack is better suited for production work environments than R Shiny, even when the use case is primarily data reporting and visualization.&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Growing Together</title>
      <link>https://shrektan.com/en/post/2025/05/05/grow-together/</link>
      <pubDate>Mon, 05 May 2025 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2025/05/05/grow-together/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://shrektan.com/zh/post/2025/05/05/grow-together/images/image2.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;My daughter turned five. Since she first began to babble, the time I&amp;rsquo;ve spent with her has grown ever richer. I want her childhood to be carefree and joyful — to leave the most beautiful memories in life&amp;rsquo;s most innocent chapter. At the same time, I hope she can build a solid foundation for the road ahead: an optimistic outlook, a resilient character, and an unquenchable curiosity about the world.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Why Is the Temperature of an Ice-Water Mixture Zero Degrees?</title>
      <link>https://shrektan.com/en/post/2024/07/07/ice-water-mixture-temperature/</link>
      <pubDate>Sun, 07 Jul 2024 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2024/07/07/ice-water-mixture-temperature/</guid>
      <description>&lt;p&gt;Back in middle school physics class, I had a question that bugged me: why is the temperature of an ice-water mixture always zero degrees?&lt;/p&gt;&#xA;&lt;p&gt;For instance, if I take a big block of ice out of the freezer at minus 18 degrees and pour some tap water over it, does the temperature instantly become zero? Or if I press my hand against ice and a tiny bit melts at that spot, is the temperature right there zero degrees? What does &amp;ldquo;the temperature is zero degrees&amp;rdquo; even mean? What exactly is going on with an ice-water mixture?&lt;/p&gt;</description>
    </item>
    <item>
      <title>Bits and Pieces</title>
      <link>https://shrektan.com/en/post/2022/05/04/7788/</link>
      <pubDate>Wed, 04 May 2022 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2022/05/04/7788/</guid>
      <description>&lt;h2 id=&#34;mindset&#34;&gt;Mindset&lt;/h2&gt;&#xA;&lt;p&gt;Just before the May Day holiday, something at work made me particularly angry. Since the &lt;a href=&#34;https://shrektan.com/post/2022/02/08/self-reflection-the-man-who-cannot-stop/&#34;&gt;&amp;ldquo;minor epiphany&amp;rdquo;&lt;/a&gt; I had during the Spring Festival, I hadn&amp;rsquo;t been this unsettled. Fortunately, I hadn&amp;rsquo;t lost all my hard-won composure. Looking back, the root cause was that my mindset had slipped again — three months of endless meetings and trivial matters had thrown me off balance.&lt;/p&gt;&#xA;&lt;p&gt;When your mindset is off, if it&amp;rsquo;s not one thing nagging at you, it&amp;rsquo;s another making you furious — so there&amp;rsquo;s no point dwelling on it. I actually wrote a journal entry about it, but on second thought, I deleted it.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Render Rnw and Email PDF reports in RStudio Connect</title>
      <link>https://shrektan.com/en/post/2022/03/30/render-rnw-and-email-pdf-reports-in-rstudio-connect/</link>
      <pubDate>Wed, 30 Mar 2022 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2022/03/30/render-rnw-and-email-pdf-reports-in-rstudio-connect/</guid>
      <description>&lt;h1 id=&#34;background&#34;&gt;Background&lt;/h1&gt;&#xA;&lt;p&gt;RStudio Connect is great. It allows you to deploy Shiny Apps and share RMarkdown reports in minutes with minimal costs. It provides user-access control, app / report&amp;rsquo;s version controls, fixing package version, periodical report generating, alarming you when something wrong, tracing user usage stats, the audit log, etc. With RStudio Connect, a Shiny developer can focus his/her energy on &amp;ldquo;developing ideas&amp;rdquo; instead of IT infrastructure setting-up or boring maintenance related works. Moreover, RStudio Connect has a user-friendly UI, so deploying a new content no longer costs an expert (that is me in our company)&amp;rsquo;s precious time.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Some Notes on LaTeX</title>
      <link>https://shrektan.com/en/post/2022/03/11/note-on-latex/</link>
      <pubDate>Fri, 11 Mar 2022 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2022/03/11/note-on-latex/</guid>
      <description>&lt;p&gt;Every language contains &amp;ldquo;hidden knowledge&amp;rdquo;. Without knowing it, you may find it&amp;rsquo;s very difficult to use the language. Here, I write some knowledge on &lt;code&gt;$LaTeX$&lt;/code&gt;, according to my experience recently, so that the readers and the future-myself can save some time.&lt;/p&gt;&#xA;&lt;h2 id=&#34;texlive-installing&#34;&gt;Texlive installing&lt;/h2&gt;&#xA;&lt;p&gt;Just use Yihui&amp;rsquo;s &lt;a href=&#34;https://github.com/rstudio/tinytex&#34;&gt;tinytex&lt;/a&gt;. Either &lt;a href=&#34;https://github.com/rstudio/tinytex-releases&#34;&gt;installing&lt;/a&gt; the classical one with Internet connectivity, or installing the full one when full capacity is required. Do not try to &lt;code&gt;tlmgr install scheme-full&lt;/code&gt;. It&amp;rsquo;s broken, based on my experience. The error message is not understandable. Do not waste time on it.&lt;/p&gt;</description>
    </item>
    <item>
      <title>GitHub Calendar</title>
      <link>https://shrektan.com/en/post/2022/01/08/github-calendar/</link>
      <pubDate>Sat, 08 Jan 2022 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2022/01/08/github-calendar/</guid>
      <description>&lt;h1 id=&#34;why&#34;&gt;Why&lt;/h1&gt;&#xA;&lt;p&gt;Today, while replying to a comment from my friend Yihui, I suddenly realized that since I started hanging around GitHub in mid-2015, I&amp;rsquo;d never gone this long without writing code — which tells you just how rough 2021 was. So I pulled up my GitHub contribution calendars&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt; from these years for a little retrospective, as a keepsake.&lt;/p&gt;&#xA;&lt;h1 id=&#34;2015&#34;&gt;2015&lt;/h1&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://shrektan.com/zh/post/2022/01/08/github-calendar/images/%E6%88%AA%E5%B1%8F2022-01-08%2000.54.21.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;I started my internship in 2012 and discovered a deep, genuine love for coding. From Excel to VBA to VB.NET to R, from writing simple scripts to solve problems to systematically learning coding standards, studying R packages, and reading professional books and documentation. In mid-2015, I went to Greece for my honeymoon. On the flight there, I started writing my first R package (for internal company use). The 10-plus-hour flight felt like nothing.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Sense and Proof</title>
      <link>https://shrektan.com/en/post/2021/11/27/sense-and-proof/</link>
      <pubDate>Sat, 27 Nov 2021 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2021/11/27/sense-and-proof/</guid>
      <description>&lt;p&gt;Today, YouTube recommended a video titled &lt;a href=&#34;https://youtu.be/dZdBoACtv3Q&#34;&gt;&lt;em&gt;Academician Lin Qun: Textbooks Make It Too Complicated &amp;ndash; You Only Need One Example to Learn Calculus&lt;/em&gt;&lt;/a&gt;. Curious, I clicked in.&lt;/p&gt;&#xA;&lt;h2 id=&#34;a-story-about-learning-calculus&#34;&gt;A story about learning calculus&lt;/h2&gt;&#xA;&lt;p&gt;Why was I curious? Because when I was studying calculus as an undergraduate, I noticed something: the textbooks and lecturers would launch straight into proof after proof from the very beginning, spending an entire class session deriving formulas on the board. I thought to myself, these formulas are all in the book already &amp;ndash; what&amp;rsquo;s the point of re-deriving them in class? More importantly, all that energy and attention got swallowed up by lengthy proofs, while the motivation and reasoning behind the theorems were glossed over in a sentence or two. After a full semester, all I remembered were formulas &amp;ndash; forget about knowing how to apply any of it flexibly in real life or at work.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Using DT Behind a Load Balancer</title>
      <link>https://shrektan.com/en/post/2020/10/05/use-dt-behind-a-load-balancer/</link>
      <pubDate>Mon, 05 Oct 2020 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2020/10/05/use-dt-behind-a-load-balancer/</guid>
      <description>&lt;p&gt;Over the past two years, users have been intermittently complaining that DT doesn&amp;rsquo;t work behind a load balancer, constantly throwing errors, such as &lt;a href=&#34;https://github.com/rstudio/DT/issues/849&#34;&gt;rstudio/DT#849&lt;/a&gt; and &lt;a href=&#34;https://github.com/rstudio/DT/issues/642&#34;&gt;rstudio/DT#642&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Regarding &amp;ldquo;load balancing,&amp;rdquo; I actually hadn&amp;rsquo;t used it before and only had a rough understanding of the basic principles out of interest. It&amp;rsquo;s essentially something similar to a reverse proxy that distributes incoming client requests to different backend servers according to certain rules.&lt;/p&gt;&#xA;&lt;p&gt;However, my technical intuition served me well. As soon as I saw it was an Ajax-related error, I immediately thought of a possibility: in server-side processing mode, DT registers a data object within Shiny that can handle data requests from the browser &amp;ndash; all of this happens on server A. However, the Ajax request sent by the browser gets routed by the load balancer to server B, which causes the error. The solution would be to configure the load balancer so that all requests from the current session are directed to the same server. After a quick search, I found that this setting has a specific term: sticky session. So I replied to the users, hoping they would try using sticky sessions to resolve the issue.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Trap of &#34;Five Minutes&#34;</title>
      <link>https://shrektan.com/en/post/2020/04/01/the-trap-of-you-can-do-it-in-five-minutes/</link>
      <pubDate>Wed, 01 Apr 2020 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2020/04/01/the-trap-of-you-can-do-it-in-five-minutes/</guid>
      <description>&lt;p&gt;Today, someone privately emailed me asking if I could help solve a problem. I ignored it. Later, he reached out again via WeChat. I knew I could probably give him the answer in five minutes, while it might take him an hour or two. But I resisted the impulse of &amp;ldquo;it&amp;rsquo;s no big deal, just five minutes.&amp;rdquo;&lt;/p&gt;&#xA;&lt;h3 id=&#34;is-it-really-five-minutes&#34;&gt;Is It Really Five Minutes?&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;The messy reality:&lt;/strong&gt; Under normal circumstances, yes, it&amp;rsquo;s five minutes. But as I &lt;a href=&#34;https://shrektan.com/post/2019/11/14/r-in-insurance-amc/&#34;&gt;mentioned before&lt;/a&gt;, the defining characteristic of data in the asset management industry is that it&amp;rsquo;s &amp;ldquo;fragmented, volatile, and messy.&amp;rdquo; New edge cases can pop up at any time, and before you know it, you&amp;rsquo;ve spent an hour just tracking down the root cause.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Indulgence</title>
      <link>https://shrektan.com/en/post/2020/03/31/dotage/</link>
      <pubDate>Tue, 31 Mar 2020 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2020/03/31/dotage/</guid>
      <description>&lt;p&gt;A year ago, Yihui&amp;rsquo;s post &lt;a href=&#34;https://yihui.org/cn/2019/07/excessive-empathy/&#34;&gt;&lt;em&gt;Excessive Empathy&lt;/em&gt;&lt;/a&gt; struck a deep chord with me, and the feeling has only grown stronger since.&lt;/p&gt;&#xA;&lt;p&gt;Perhaps it&amp;rsquo;s genetic (my parents are the same way, and so is my three-month-old daughter) — there&amp;rsquo;s an impatient, hot-tempered side to my personality, and I&amp;rsquo;m extremely sensitive (or, to put it positively, perceptive). When something bothers me, I can feel every organ in my body clench up. At the same time, I have an intense sense of empathy. Because I feel other people&amp;rsquo;s feelings so strongly, at work I always push myself to help others, and push myself to do my work as well as I can, so as not to cause trouble for anyone else.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Self-Indulgence</title>
      <link>https://shrektan.com/en/post/2020/03/27/self-enjoyment/</link>
      <pubDate>Fri, 27 Mar 2020 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2020/03/27/self-enjoyment/</guid>
      <description>&lt;p&gt;A couple of days ago, I received a file shared in a WeChat group about data issues found in the C-ROSS Phase II pilot market risk filings across various insurance companies. I counted them up — a staggering 125 companies had data problems of one kind or another, with nearly every mid-to-large insurer prominently on the list. Yet I couldn&amp;rsquo;t help but feel a quiet smugness: my company was not among them.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Feel of Happiness</title>
      <link>https://shrektan.com/en/post/2020/03/19/the-feel-of-happiness/</link>
      <pubDate>Thu, 19 Mar 2020 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2020/03/19/the-feel-of-happiness/</guid>
      <description>&lt;p&gt;In the blink of an eye, I&amp;rsquo;m already approaching forty, yet my sense of happiness keeps fading, and negative emotions surface from time to time.&lt;/p&gt;&#xA;&lt;h1 id=&#34;work&#34;&gt;Work&lt;/h1&gt;&#xA;&lt;p&gt;I still remember my early days at work. I pulled all-nighters constantly, but I often felt genuinely happy. The reason was simple: a newly established company, severely understaffed, with mountains of miscellaneous tasks waiting to be done. It was exhausting, but my supervisors and colleagues felt like they were all pulling in the same direction, working together wholeheartedly to get things done. Perhaps because I happened to be a jack-of-all-trades, I could deliver decent results on tasks regardless of whether they were in my wheelhouse. The recognition from supervisors and colleagues, combined with constantly pushing my own boundaries, gave a young man in his early twenties a real sense of accomplishment and joy.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Don&#39;t Use Tidyverse in Production</title>
      <link>https://shrektan.com/en/post/2019/11/14/use-no-tdv-in-production/</link>
      <pubDate>Thu, 14 Nov 2019 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2019/11/14/use-no-tdv-in-production/</guid>
      <description>&lt;p&gt;Every time I systematically upgrade R packages, my biggest concern is the tidyverse-related code, because from time to time there are all kinds of &amp;ldquo;break the existing code&amp;rdquo; upgrades that give me headaches. Sure enough, previously valid code threw an error once again:&lt;/p&gt;&#xA;&lt;h3 id=&#34;this-code-now-errors-but-it-didnt-before&#34;&gt;This code now errors (but it didn&amp;rsquo;t before)&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-r&#34; data-lang=&#34;r&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;dplyr&lt;span style=&#34;color:#f92672&#34;&gt;::&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;mutate_at&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;data.frame&lt;/span&gt;(a &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;), &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;a&amp;#34;&lt;/span&gt;, .funs &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;list&lt;/span&gt;(&lt;span style=&#34;color:#f92672&#34;&gt;~&lt;/span&gt;as.character))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;you-have-to-change-it-to-the-following&#34;&gt;You have to change it to the following&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-r&#34; data-lang=&#34;r&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;dplyr&lt;span style=&#34;color:#f92672&#34;&gt;::&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;mutate_at&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;data.frame&lt;/span&gt;(a &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;), &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;a&amp;#34;&lt;/span&gt;, .funs &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;list&lt;/span&gt;(as.character))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;or&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-r&#34; data-lang=&#34;r&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;dplyr&lt;span style=&#34;color:#f92672&#34;&gt;::&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;mutate_at&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;data.frame&lt;/span&gt;(a &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;), &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;a&amp;#34;&lt;/span&gt;, .funs &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;list&lt;/span&gt;(&lt;span style=&#34;color:#f92672&#34;&gt;~&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;as.character&lt;/span&gt;(.)))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I started using dplyr around January 2014. It is somewhat closer to SQL, which makes it friendlier for beginners, and it is indeed significantly more efficient than the base R functions. On top of that, I was once &amp;ldquo;brainwashed&amp;rdquo; by the fantasy that &lt;em&gt;&amp;ldquo;you can operate on databases directly using dplyr syntax &amp;ndash; thus avoiding writing SQL statements yourself&amp;rdquo;&lt;/em&gt;, and for a period of one to two years I used tidyverse extensively (mainly dplyr, really).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Practical Applications of R in Insurance Asset Management</title>
      <link>https://shrektan.com/en/post/2019/11/14/r-in-insurance-amc/</link>
      <pubDate>Thu, 14 Nov 2019 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2019/11/14/r-in-insurance-amc/</guid>
      <description>&lt;h1 id=&#34;background&#34;&gt;Background&lt;/h1&gt;&#xA;&lt;p&gt;In mid-October, at the invitation of a former professor, I went back to my department to share some applications of R in insurance asset management, primarily to introduce what R can do. Since I&amp;rsquo;m not great at impromptu speaking, I prepared a written script in advance. I spent several days carefully preparing it, so I&amp;rsquo;ve lightly organized and shared it here.&lt;/p&gt;&#xA;&lt;h1 id=&#34;r-can-play-an-important-role-in-every-stage-of-data-modeling&#34;&gt;R Can Play an Important Role in Every Stage of Data Modeling&lt;/h1&gt;&#xA;&lt;h2 id=&#34;reproducibility-is-crucial-for-both-research-and-work-efficiency&#34;&gt;&amp;ldquo;Reproducibility&amp;rdquo; Is Crucial for Both Research and Work Efficiency&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Research is about constant trial and error, and work involves continuous repetition and improvement. &amp;ldquo;Codification&amp;rdquo; can greatly enhance the ability to make things reproducible;&lt;/li&gt;&#xA;&lt;li&gt;Compared to expressing ideas through natural language, code forces us to specify every detail clearly and precisely—otherwise we get incorrect results;&lt;/li&gt;&#xA;&lt;li&gt;Code is the model and computational logic. Given the same data and the same execution environment, it is guaranteed to produce the same results. Feed it new data, and it automatically produces new results;&lt;/li&gt;&#xA;&lt;li&gt;Real-world work is about continuously building new workflows to address new problems. If a new workflow can be codified, machines can be relied upon to repeat the same tasks, ensuring both accuracy and speed—thus improving work efficiency;&lt;/li&gt;&#xA;&lt;li&gt;Code is text, so every improvement to a model can be faithfully recorded (thanks to version control software like Git), and even if a change turns out to be wrong, it can be easily reverted.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;steps-of-data-modeling--data-analysis&#34;&gt;Steps of Data Modeling / Data Analysis&lt;/h2&gt;&#xA;&lt;p&gt;Data analysis work, at a high level, can be summarized in three steps: &lt;strong&gt;Data Preparation (Input) -&amp;gt; Data Modeling (Modeling) -&amp;gt; Data Output (Output)&lt;/strong&gt;. Of course, this is an iterative process—after obtaining results, we need to examine and analyze them, then adjust the data and model accordingly, repeating the cycle. After nearly 30 years of development, R has built a powerful software ecosystem that provides solid support for every stage of data analysis.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The only few Git commands that I use</title>
      <link>https://shrektan.com/en/post/2019/07/28/the-only-few-git-commands-that-i-use/</link>
      <pubDate>Sun, 28 Jul 2019 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2019/07/28/the-only-few-git-commands-that-i-use/</guid>
      <description>&lt;p&gt;Git is great but quite complicated to fully master&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt;. Fortunately, being familiar with a few commands is usually enough. Here&amp;rsquo;s basically all the git commands that I use.&lt;/p&gt;&#xA;&lt;p&gt;(First of all, I need to claim that I prefer using a GUI. I either use RStudio&amp;rsquo;s Git panel or Git&amp;rsquo;s GUI.)&lt;/p&gt;&#xA;&lt;h2 id=&#34;clone&#34;&gt;Clone&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;git clone {git-url} {local-folder}&lt;/code&gt;: clone a remote repository to local&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;branch&#34;&gt;Branch&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;git checkout {branch-name}&lt;/code&gt;: checkout to a branch&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;git checkout -b {new-branch-name}&lt;/code&gt;: create a new branch and checkout to it&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;git branch -d {branch-name}&lt;/code&gt;: delete a local branch (should use &lt;code&gt;-D&lt;/code&gt; if the branch hasn&amp;rsquo;t been merged)&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;git merge {another-branch}&lt;/code&gt;: merge the content of another branch to the current branch&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;repository&#34;&gt;Repository&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;git remote -v&lt;/code&gt;: display all the remote repository&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;git remote add/rm {repo-alias} {git-url}&lt;/code&gt;: add or remove a remote repository&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;local---remote&#34;&gt;Local - Remote&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;git fetch {repo-alias}&lt;/code&gt;: fetch the content from the remote repository&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;git push {repo-alias} {branch-name}&lt;/code&gt;: push the local content to remote&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;git push -u {repo-alias} {branch-name}&lt;/code&gt;: push and set the remote branch as the upstream, which means you don&amp;rsquo;t have to specify the remote repo and branch when using &lt;code&gt;git pull&lt;/code&gt; and &lt;code&gt;git push&lt;/code&gt; later&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;git pull {repo-alias} {branch-name}&lt;/code&gt;: equals to &lt;code&gt;git fetch&lt;/code&gt; first then &lt;code&gt;git merge {repo-alias/branch-name}&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;commit&#34;&gt;Commit&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;git commit -a -m &amp;quot;your message&amp;quot;&lt;/code&gt;: commit all the code changes with a message.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;clean-up&#34;&gt;Clean up&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git branch -d &lt;span style=&#34;color:#66d9ef&#34;&gt;$(&lt;/span&gt;git branch --merged&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;master | grep -v master&lt;span style=&#34;color:#66d9ef&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git fetch --prune&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;advanced&#34;&gt;Advanced&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;git reset --hard HEAD~n&lt;/code&gt;: discard the last n commits &lt;em&gt;hardly&lt;/em&gt;. &lt;code&gt;--hard&lt;/code&gt; means reverting to the previous status. Often used when you think your last n commits are nonsense.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;git reset --soft HEAD~n&lt;/code&gt;: discard the last n commits &lt;em&gt;softly&lt;/em&gt;. &lt;code&gt;--soft&lt;/code&gt; means keeping the changes. Often used when you want to squash the commits or remove the just-unintentionally-included files.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;git revert HEAD&lt;/code&gt;: generates a new commit to revert the change of that commit. It&amp;rsquo;s similar to &lt;code&gt;git reset&lt;/code&gt; with th difference that &lt;code&gt;git reset&lt;/code&gt; erase commit but &lt;code&gt;git revert&lt;/code&gt; add commit.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;git merge --abort&lt;/code&gt;: imagine you pull from the upstream and a CONFLICT happens. You can solve the conflict but you may also consider to abort the merge. This command allows to abort the current merge.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;git rebase --onto master B C&lt;/code&gt;: (Well, frankly speaking, I&amp;rsquo;m writing this article because of this command) Often used when you made a commit, which should have been committed on another branch. So you need to &lt;em&gt;rebase&lt;/em&gt; the commit. &lt;br&gt;&#xA;Let&amp;rsquo;s say you are working on the &lt;code&gt;D&lt;/code&gt; branch, developping a cool new feature. You need to use an existing function but find a bug inside. The &lt;em&gt;correct&lt;/em&gt; procedure is: &lt;code&gt;git checkout master&lt;/code&gt;, modify the code, commit, &lt;code&gt;git checkout D&lt;/code&gt; and &lt;code&gt;git merge master&lt;/code&gt; to have the fix on &lt;code&gt;D&lt;/code&gt;.&#xA;Remember that you are immersed in developping the new feature (good programmers do) so there&amp;rsquo;s a chance you simply commit the fix on &lt;code&gt;D&lt;/code&gt; and go. After a few more commits on &lt;code&gt;D&lt;/code&gt;, you realize the previous commit should have been played on the branch &lt;code&gt;master&lt;/code&gt;.&lt;br&gt;&#xA;You have three options now. The first is to &lt;code&gt;git revert --soft&lt;/code&gt; all the previous commits and re-commit the work except the fix. The good commit history may not be well preserved. Another option is to re-do the fix on the &lt;code&gt;master&lt;/code&gt; branch but you may find conflicts when branch &lt;code&gt;D&lt;/code&gt; gets merged. The last option (usually the best) is to &lt;code&gt;git rebase master B C&lt;/code&gt;, where &lt;code&gt;B&lt;/code&gt; and &lt;code&gt;C&lt;/code&gt; stands for the SHA-1 strings&lt;sup id=&#34;fnref:2&#34;&gt;&lt;a href=&#34;#fn:2&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;2&lt;/a&gt;&lt;/sup&gt; of last commit &lt;em&gt;before&lt;/em&gt; the fix and &lt;em&gt;of&lt;/em&gt; the fix.&lt;br&gt;&#xA;You may find &lt;a href=&#34;https://git-scm.com/docs/git-rebase&#34;&gt;&lt;code&gt;git rebase&lt;/code&gt;&amp;rsquo;s documentation&lt;/a&gt; useful (I admit I don&amp;rsquo;t really know how to &lt;em&gt;interactively&lt;/em&gt; play with &lt;code&gt;git rebase&lt;/code&gt; and the above command is the only one I use).&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;git clean -df &amp;amp;&amp;amp; git checkout .&lt;/code&gt; to discard all local file changes. This is useful when you add / edit lots of local files and want to completely discard all your wasted efforts.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;misc&#34;&gt;Misc&lt;/h2&gt;&#xA;&lt;p&gt;Well that&amp;rsquo;s not &lt;em&gt;literally&lt;/em&gt; all. I may use &lt;code&gt;git config&lt;/code&gt; (first time set-up on the new computer), &lt;code&gt;git tag&lt;/code&gt; (tag a version) and &lt;code&gt;git status&lt;/code&gt; (when I have to &lt;a href=&#34;https://github.com/rstudio/rstudio/issues/4368&#34;&gt;disable the Git function in RStudio for one project, due to the anti-virsus issue&lt;/a&gt;).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Create a database connection that can be disconnected automatically</title>
      <link>https://shrektan.com/en/post/2019/07/26/create-a-database-connection-that-can-be-disconnected-automatically/</link>
      <pubDate>Fri, 26 Jul 2019 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2019/07/26/create-a-database-connection-that-can-be-disconnected-automatically/</guid>
      <description>&lt;p&gt;Database connections are resources. Although databases will free idle connections automatically, you&amp;rsquo;d better release them by yourself. Otherwise, it may affect the performance of the database seriously.&lt;/p&gt;&#xA;&lt;p&gt;Explicitly close the connections after the use is ok, but too verbose. Besides, it can&amp;rsquo;t guarantee the connections being released, imagining your code throws error somewhere before the line to close the connection. In CPP, a good practice is to manage the resource by incorporating the use of resource into an object, so that the resource is released as long as the object is out of scope. This technique is called &lt;a href=&#34;http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#r1-manage-resources-automatically-using-resource-handles-and-raii-resource-acquisition-is-initialization&#34;&gt;RIIA (Resource Acquisition Is Initialization)&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The special unicode character \uff0d in MS SQLServer</title>
      <link>https://shrektan.com/en/post/2019/05/06/the-special-unicode-character-uff0d-in-ms-sqlserver/</link>
      <pubDate>Mon, 06 May 2019 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2019/05/06/the-special-unicode-character-uff0d-in-ms-sqlserver/</guid>
      <description>&lt;p&gt;It&amp;rsquo;s currently 01:57 a.m in Beijing. I&amp;rsquo;m still awake, thanks to the &amp;ldquo;great&amp;rdquo; unicode &lt;code&gt;\uff0d&lt;/code&gt;, whose official name is &amp;ldquo;FULLWIDTH HYPHEN-MINUS&amp;rdquo; (the print of the character is &lt;code&gt;－&lt;/code&gt;, very similar to &lt;code&gt;-&lt;/code&gt;).&lt;/p&gt;&#xA;&lt;p&gt;Why I&amp;rsquo;m calling it the &amp;ldquo;great&amp;rdquo; &amp;ldquo;special&amp;rdquo; unicode?&lt;/p&gt;&#xA;&lt;p&gt;MS SQLServer (at least for the version I use - 2014) somehow recognizes &lt;code&gt;\uff0d(－)&lt;/code&gt; as if it was &lt;code&gt;-&lt;/code&gt; (the normal minus sign).&lt;/p&gt;&#xA;&lt;p&gt;What do I mean? Let&amp;rsquo;s say you have a table created like this:&lt;/p&gt;</description>
    </item>
    <item>
      <title>use `base::serializer()` in the plumber API</title>
      <link>https://shrektan.com/en/post/2018/11/14/use-base-serializer-in-the-plumber-api/</link>
      <pubDate>Wed, 14 Nov 2018 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2018/11/14/use-base-serializer-in-the-plumber-api/</guid>
      <description>&lt;p&gt;Recently, I need to share an R model on the server to my colleagues who use R. &lt;a href=&#34;https://www.rplumber.io&#34;&gt;Plumber&lt;/a&gt; comes to my mind immediately. Build a web API using plumber is really easy. I love the roxygen-way to define the API. It&amp;rsquo;s elegant and easy to maintain.&lt;/p&gt;&#xA;&lt;p&gt;Usually, web APIs use &lt;a href=&#34;http://json.org/&#34;&gt;JSON&lt;/a&gt; to represent data. Unfortunately, JSON encodes objects in a string, which may result in information losses. For example, the attributes (other than names) cannot be preserved. And it causes troubles:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Using the odbc Package to Connect to MSSQL Server on Linux</title>
      <link>https://shrektan.com/en/post/2018/08/10/using-the-odbc-package-to-connect-ms-sql-server/</link>
      <pubDate>Fri, 10 Aug 2018 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2018/08/10/using-the-odbc-package-to-connect-ms-sql-server/</guid>
      <description>&lt;p&gt;As I mentioned in &lt;a href=&#34;https://shrektan.com/post/2018/05/07/cant-bear-with-encoding-any-longer/&#34;&gt;&lt;em&gt;Can&amp;rsquo;t Bear with Encoding Any Longer&lt;/em&gt;&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The &lt;a href=&#34;https://github.com/imanuelcostigan/RSQLServer&#34;&gt;RSQLServer package&lt;/a&gt; has been retired, and its author recommends using the &lt;a href=&#34;https://github.com/r-dbi/odbc&#34;&gt;r-dbi/odbc package&lt;/a&gt; as a replacement. However, unlike the RODBC package (which fixed this issue in version 1.1.6), the odbc package does not &lt;em&gt;convert the SQL string encoding to match the database&amp;rsquo;s encoding beforehand&lt;/em&gt;, making it unable to correctly execute SQL statements containing Chinese characters (if the encoding of the statement differs from the database encoding).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Can&#39;t Bear with Encoding Any Longer</title>
      <link>https://shrektan.com/en/post/2018/05/07/cant-bear-with-encoding-any-longer/</link>
      <pubDate>Mon, 07 May 2018 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2018/05/07/cant-bear-with-encoding-any-longer/</guid>
      <description>&lt;h3 id=&#34;the-rsqlserver-package-is-officially-retired&#34;&gt;The RSQLServer Package Is Officially Retired&lt;/h3&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/imanuelcostigan/RSQLServer&#34;&gt;RSQLServer&lt;/a&gt; was &lt;a href=&#34;https://cran.r-project.org/package=RSQLServer&#34;&gt;officially archived&lt;/a&gt; on April 10, 2018. The author recommends using &lt;a href=&#34;https://github.com/r-dbi/odbc&#34;&gt;r-dbi/odbc&lt;/a&gt; as a replacement.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;This package is archived as there is now an excellent, much better supported package &lt;a href=&#34;https://github.com/r-dbi/odbc&#34;&gt;odbc&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h3 id=&#34;switching-to-the-odbc-package&#34;&gt;Switching to the odbc Package&lt;/h3&gt;&#xA;&lt;p&gt;As a developer who has been lurking on GitHub for years, I noticed the odbc package quite early on. Indeed, odbc is faster and lighter (no Java installation required), and is under active development. RSQLServer, on the other hand, had been somewhat lacking in maintenance. On top of that, it introduced some dplyr features that occasionally caused conflicts, so I had been itching to make the switch. Although I ran some comparisons and tests and didn&amp;rsquo;t find obvious issues, I was secretly worried about running into unexpected problems.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Complexity Born of Insecurity</title>
      <link>https://shrektan.com/en/post/2018/05/02/lack-of-confidence-leads-to-over-complication/</link>
      <pubDate>Wed, 02 May 2018 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2018/05/02/lack-of-confidence-leads-to-over-complication/</guid>
      <description>&lt;p&gt;Yesterday, I traded in my old iPhone at the Apple Store and used the credit toward a new iPad and Apple Pencil. Back home, I tried reading PDFs on Good Reader with the Apple Pencil, and it felt great. I&amp;rsquo;m a strong advocate for e-books and have mostly stopped reading physical books. The reason is simple: e-books are far more portable, especially for someone like me who reads in scattered moments throughout the day&amp;mdash;on the subway, during lunch, before bed. But e-books have one obvious downside: taking notes isn&amp;rsquo;t as convenient, or rather, it just doesn&amp;rsquo;t feel the same. I&amp;rsquo;ve always been the type to have lots of thoughts while reading, and I enjoy scribbling and doodling in the margins. Typed annotations never quite capture that feeling. Using the Apple Pencil with PDFs has finally, more or less, satisfied my &amp;ldquo;bad habit&amp;rdquo; of scribbling all over my books.&lt;/p&gt;</description>
    </item>
    <item>
      <title>&#34;human round&#34;- Round to nearest, ties away from zero</title>
      <link>https://shrektan.com/en/post/2018/04/25/human-round-round-to-nearest-ties-away-from-zero/</link>
      <pubDate>Wed, 25 Apr 2018 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2018/04/25/human-round-round-to-nearest-ties-away-from-zero/</guid>
      <description>&lt;p&gt;Have you ever noticed that both &lt;code&gt;base::round(2.5)&lt;/code&gt; and &lt;code&gt;base::round(1.5)&lt;/code&gt; return &lt;code&gt;2&lt;/code&gt; in R? It&amp;rsquo;s strange, isn&amp;rsquo;t it? At least I learned only one rounding rule in school that is &lt;em&gt;“四舍五入”&lt;/em&gt; in Chinese. It means we should round up if the decimal is five and down if four.&lt;/p&gt;&#xA;&lt;p&gt;By reading the &lt;a href=&#34;https://www.rdocumentation.org/packages/base/versions/3.5.0/topics/Round&#34;&gt;documentation&lt;/a&gt; of &lt;code&gt;base::round()&lt;/code&gt; we know that there&amp;rsquo;s a standard called &lt;em&gt;&amp;ldquo;IEEE 754&amp;rdquo;&lt;/em&gt; and the rounding rule that &lt;code&gt;base::round()&lt;/code&gt; uses is called &lt;em&gt;&amp;ldquo;go to the even digit&amp;rdquo;&lt;/em&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>non-ASCII {.tabset} headers in Rmarkdown</title>
      <link>https://shrektan.com/en/post/2018/04/21/non-ascii-tabset-headers-in-rmarkdown/</link>
      <pubDate>Sat, 21 Apr 2018 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2018/04/21/non-ascii-tabset-headers-in-rmarkdown/</guid>
      <description>&lt;p&gt;&lt;strong&gt;Note: This article is outdated. Previously, because pandoc doesn&amp;rsquo;t support non-ASCII identifiers, &lt;code&gt;rmarkdown&lt;/code&gt; adds the &lt;code&gt;+ascii_identifiers&lt;/code&gt; extension by default. As pandoc now supports it and &lt;code&gt;rmarkdown&lt;/code&gt; no longer addes the extension, the issue gets resolved.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Generally, the rmarkdown package supports non-ASCII strings very well, e.g., the link on the table of content works even for pure non-ASCII headers. However, I was bitten when using non-ASCII headers with &lt;a href=&#34;https://bookdown.org/yihui/rmarkdown/html-document.html#tabbed-sections&#34;&gt;the nice tabbed sections feature&lt;/a&gt; recently. Luckily, I found the solution &lt;a href=&#34;https://github.com/rstudio/rmarkdown/issues/1149&#34;&gt;rstudio/rmarkdown#1149&lt;/a&gt; quickly, which I&amp;rsquo;d like to share to you.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Hugo will not publish the &#34;future&#34; post by default</title>
      <link>https://shrektan.com/en/post/2018/04/12/hugo-will-not-publish-the-future-post-by-default/</link>
      <pubDate>Thu, 12 Apr 2018 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2018/04/12/hugo-will-not-publish-the-future-post-by-default/</guid>
      <description>&lt;p&gt;It&amp;rsquo;s annoying.&lt;/p&gt;&#xA;&lt;p&gt;I live in China. I have just finished a post for my blog. The current time (Asia/Shanghai) is &lt;code&gt;2018/04/13 02:52&lt;/code&gt;. However, the Netlify server is in USA and the local time is 12 hours earlier, &lt;code&gt;2018/04/12 14:52&lt;/code&gt; (assuming NYC).&lt;/p&gt;&#xA;&lt;p&gt;So I can preview my blog with my new writing article on my computer. However, I can&amp;rsquo;t see it after pushing it to Netlify server.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;What&amp;rsquo;s happened? Do I do something wrong?&lt;/em&gt; I was asking myself&amp;hellip; Until I saw &lt;a href=&#34;https://gohugo.io/content-management/front-matter/&#34;&gt;this&lt;/a&gt;:&lt;/p&gt;</description>
    </item>
    <item>
      <title>The defaults of a function argument are not binded</title>
      <link>https://shrektan.com/en/post/2018/04/12/the-defaults-of-a-function-argument-are-not-binded/</link>
      <pubDate>Thu, 12 Apr 2018 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2018/04/12/the-defaults-of-a-function-argument-are-not-binded/</guid>
      <description>&lt;p&gt;When writing a function in R, it&amp;rsquo;s good to provide commonly appropriate default values for the arguments so that the user could call the function conviniently in most cases. However, if you happen to have some functions sharing the same default values, you may be lured to create a variable (e.g., &lt;code&gt;opts&lt;/code&gt;) and assign those default values to this variable.&lt;/p&gt;&#xA;&lt;p&gt;The code looks good, runs well, works fine. Until one day, the little &lt;code&gt;opts&lt;/code&gt; gets redefined somewhere&amp;hellip;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Use sprintf() rather than as.character()</title>
      <link>https://shrektan.com/en/post/2018/04/12/use-sprintf-rather-than-as-character/</link>
      <pubDate>Thu, 12 Apr 2018 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2018/04/12/use-sprintf-rather-than-as-character/</guid>
      <description>&lt;p&gt;Converting a number to a string is easy. In many cases, you don&amp;rsquo;t even need to call the converting functions explicitly. However, when it comes to sophisticatedly control the output, you may find &lt;code&gt;as.character()&lt;/code&gt; is not enough and &lt;code&gt;sprintf()&lt;/code&gt; is the cure. I&amp;rsquo;ll give some real world use cases to demostrate.&lt;/p&gt;&#xA;&lt;h3 id=&#34;case-1-always-display-2-digits-for-a-number&#34;&gt;Case 1: Always display 2 digits for a number&lt;/h3&gt;&#xA;&lt;p&gt;For example, if the investment return in a report displays &lt;code&gt;1%&lt;/code&gt;, it&amp;rsquo;s natural to ask whether the real number is &lt;code&gt;1.00%&lt;/code&gt; or &lt;code&gt;1.xx%&lt;/code&gt;. Here &lt;code&gt;sprintf(&amp;quot;%0.2f&amp;quot;, x)&lt;/code&gt; can help.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Emoji  (how to enable in Hugo and the cheatsheets)</title>
      <link>https://shrektan.com/en/post/2018/04/11/emoji-how-to-enable-in-hugo-and-the-cheatsheets/</link>
      <pubDate>Wed, 11 Apr 2018 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2018/04/11/emoji-how-to-enable-in-hugo-and-the-cheatsheets/</guid>
      <description>&lt;h1 id=&#34;how-to-enable-emoji-in-hugo&#34;&gt;How to enable &lt;code&gt;Emoji&lt;/code&gt; in Hugo&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://minimo.netlify.app/docs/emoji-support/&#34;&gt;https://minimo.netlify.app/docs/emoji-support/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;two-cheatsheets&#34;&gt;Two cheatsheets&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.webfx.com/tools/emoji-cheat-sheet/&#34;&gt;https://www.webfx.com/tools/emoji-cheat-sheet/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/guodongxiaren/README/blob/master/emoji.md&#34;&gt;https://github.com/guodongxiaren/README/blob/master/emoji.md&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;note&#34;&gt;Note&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Only works in plain md files (not Rmd files), haven&amp;rsquo;t checked the reason yet&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>String Encodings in R</title>
      <link>https://shrektan.com/en/post/2018/03/18/strings-encodings-in-r/</link>
      <pubDate>Sun, 18 Mar 2018 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2018/03/18/strings-encodings-in-r/</guid>
      <description>&lt;p&gt;After quite a bit of effort, I finally managed to thoroughly fix the Chinese support issues in &lt;code&gt;data.table&lt;/code&gt; (&lt;a href=&#34;https://github.com/Rdatatable/data.table/pull/2678&#34;&gt;PR#2678&lt;/a&gt;, &lt;a href=&#34;https://github.com/Rdatatable/data.table/pull/2566&#34;&gt;PR#2566&lt;/a&gt;), &lt;a href=&#34;https://github.com/Rdatatable/data.table/pull/3451&#34;&gt;PR#3451&lt;/a&gt;, &lt;a href=&#34;https://github.com/Rdatatable/data.table/pull/3849&#34;&gt;PR#3849&lt;/a&gt;, &lt;a href=&#34;https://github.com/Rdatatable/data.table/pull/3850&#34;&gt;PR#3850&lt;/a&gt;. Here are some scattered notes on what I learned along the way, for future reference:&lt;/p&gt;&#xA;&lt;h3 id=&#34;learning-notes&#34;&gt;Learning Notes&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;R objects are uniformly represented as the &lt;code&gt;SEXP&lt;/code&gt; type at the C level (pronounced S-EXP, as in &amp;ldquo;external pointer&amp;rdquo;, not &amp;ldquo;SEX P&amp;rdquo;);&lt;/li&gt;&#xA;&lt;li&gt;The implementation details of strings in R use a string pool (&lt;a href=&#34;https://cran.r-project.org/doc/manuals/r-release/R-ints.html#The-CHARSXP-cache&#34;&gt;The CHARSXP cache&lt;/a&gt;) for efficiency;&lt;/li&gt;&#xA;&lt;li&gt;For string sorting, both &lt;code&gt;data.table&lt;/code&gt; and base R&amp;rsquo;s radix sort cleverly use a largely deprecated SEXP attribute called &lt;a href=&#34;https://cran.r-project.org/doc/manuals/r-release/R-ints.html#DOCF3&#34;&gt;&lt;code&gt;truelength&lt;/code&gt;&lt;/a&gt;. More specifically, they treat &lt;code&gt;The CHARSXP cache&lt;/code&gt; as a hash table (key -&amp;gt; value) and store the values in the &lt;code&gt;truelength&lt;/code&gt; attribute;&lt;/li&gt;&#xA;&lt;li&gt;At the C level, R character strings can only store three types of Encoding attributes: &lt;code&gt;Latin-1&lt;/code&gt;, &lt;code&gt;ASCII&lt;/code&gt;, and &lt;code&gt;UTF-8&lt;/code&gt;. See &lt;a href=&#34;https://cran.r-project.org/doc/manuals/r-release/R-ints.html#Rest-of-header&#34;&gt;the last line of this section&lt;/a&gt; and &lt;a href=&#34;https://cran.r-project.org/doc/manuals/r-release/R-ints.html#Encodings-for-CHARSXPs&#34;&gt;R Internals - Encodings for CHARSXPs&lt;/a&gt;;&lt;/li&gt;&#xA;&lt;li&gt;When using &lt;code&gt;SEXP&lt;/code&gt; in R, you must always carefully consider whether the garbage collector might reclaim the variable. Bugs caused by garbage collection are extremely hard to track down — &lt;a href=&#34;https://github.com/Rdatatable/data.table/issues/2674&#34;&gt;data.table issue#2674&lt;/a&gt; took roughly 6 hours to resolve. The standard debugging workflow is &amp;ldquo;notice the anomaly, find the minimal reproducible code, locate the problem, fix it&amp;rdquo;. However, since garbage collection triggers are unpredictable, reproducing such bugs is very difficult;&lt;/li&gt;&#xA;&lt;li&gt;There are two ways to compare strings: one is to directly compare the underlying byte representation (which you can inspect with &lt;code&gt;charToRaw()&lt;/code&gt;), and the other is to convert both strings to UTF-8 encoding first and then compare;&lt;/li&gt;&#xA;&lt;li&gt;To determine whether a CHARSXP is ASCII or UTF-8, see:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/wch/r-source/blob/44d54d6f848468a7353d99cc9be0255105185975/src/main/util.c#L1834&#34;&gt;R-source/util.c&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/Rdatatable/data.table/blob/bb3ba9a39be1ee8386b86909e045947898cb0935/src/data.table.h#L50&#34;&gt;data.table/data.table.h&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;To convert a character string to UTF-8 encoding in R&amp;rsquo;s C routines: &lt;code&gt;mkCharCE(translateCharUTF8(s), CE_UTF8)&lt;/code&gt;;&lt;/li&gt;&#xA;&lt;li&gt;Debugging often requires printing variable values, but &lt;code&gt;Rprintf()&lt;/code&gt; in R&amp;rsquo;s C routines can only print characters in the native encoding. Therefore, you must first convert the string using &lt;code&gt;translateChar&lt;/code&gt; before printing, e.g., &lt;code&gt;Rprintf(&amp;quot;%s&amp;quot;, translateChar(value))&lt;/code&gt; — otherwise you will get blank output.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Character-encoding-issues&#34;&gt;Character-encoding-issues&lt;/a&gt;: However, if they need to be interpreted as characters or output at C level then it would normally be correct to ensure that they are converted to the encoding of the current locale: this can be done by accessing the data in the CHARSXP by translateChar rather than by CHAR.&lt;/p&gt;</description>
    </item>
    <item>
      <title>My very first blog</title>
      <link>https://shrektan.com/en/post/2018/01/28/my-very-first-blog/</link>
      <pubDate>Sun, 28 Jan 2018 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2018/01/28/my-very-first-blog/</guid>
      <description>&lt;p&gt;Thanks &lt;a href=&#34;https://yihui.org/&#34;&gt;Yihui&lt;/a&gt; for inviting me to help him mantaining the &lt;a href=&#34;https://github.com/rstudio/DT&#34;&gt;DT&lt;/a&gt; package. Though we&amp;rsquo;ve never met in person before &lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt;, I was thrilled and replied &amp;ldquo;Yes&amp;rdquo; immediately.&lt;/p&gt;&#xA;&lt;p&gt;After submitting my first &lt;a href=&#34;https://github.com/rstudio/DT/pull/475&#34;&gt;PR&lt;/a&gt; to &lt;strong&gt;DT&lt;/strong&gt;, I felt excited and decided to crack another hard nut, which is a two-year old bug about Chinese encoding in &lt;a href=&#34;https://github.com/Rdatatable/data.table&#34;&gt;data.table&lt;/a&gt;. Luckily, &lt;a href=&#34;https://github.com/Rdatatable/data.table/pull/2566&#34;&gt;succeeded&lt;/a&gt; again and it gives me the impetus to re-open my blog.&lt;/p&gt;&#xA;&lt;div class=&#34;footnotes&#34; role=&#34;doc-endnotes&#34;&gt;&#xA;&lt;hr&gt;&#xA;&lt;ol&gt;&#xA;&lt;li id=&#34;fn:1&#34;&gt;&#xA;&lt;p&gt;In fact, I met him once in 2016 on an R meeting in Beijing but didn&amp;rsquo;t start a conversation because he had talked himself hoarse.&amp;#160;&lt;a href=&#34;#fnref:1&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Listen and Watch</title>
      <link>https://shrektan.com/en/post/2016/09/07/listen-and-watch/</link>
      <pubDate>Wed, 07 Sep 2016 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2016/09/07/listen-and-watch/</guid>
      <description>&lt;p&gt;From &lt;em&gt;&amp;ldquo;Leading&amp;rdquo;&lt;/em&gt; by Alex Ferguson:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;There&amp;rsquo;s a reason that God gave us two ears,  two eyes and one mouth. It&amp;rsquo;s so you can listen and watch twice as much as you talk. Best of all, listening costs you nothing.&lt;/p&gt;&#xA;&lt;/blockquote&gt;</description>
    </item>
    <item>
      <title>My first bug report to r-project.org</title>
      <link>https://shrektan.com/en/post/2016/05/07/my-first-bug-report-to-r-project-org/</link>
      <pubDate>Sat, 07 May 2016 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/post/2016/05/07/my-first-bug-report-to-r-project-org/</guid>
      <description>&lt;p&gt;One of the most headache problems in R (maybe in all programming) is the &lt;code&gt;Encoding&lt;/code&gt; issue, especially on Windows. Even the veterans in the R-Core team can&amp;rsquo;t survive.&lt;/p&gt;&#xA;&lt;p&gt;In the new version of R 3.3.0, there&amp;rsquo;s an upgrade related to &lt;code&gt;match(x, table)&lt;/code&gt; ( &lt;a href=&#34;https://bugs.r-project.org/show_bug.cgi?id=16491&#34;&gt;#PR16491&lt;/a&gt;). However, it leads to unconsistent behaviors when &lt;code&gt;x&lt;/code&gt; and &lt;code&gt;table&lt;/code&gt; contains non-ascii characters. So I filed my first &lt;a href=&#34;https://bugs.r-project.org/show_bug.cgi?id=16885&#34;&gt;bug report&lt;/a&gt; to the &lt;a href=&#34;https://bugs.r-project.org/&#34;&gt;bugs.r-project.org&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;What a wonderful world it would be, had all the characters been encoded in &lt;code&gt;UTF-8&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>About Me</title>
      <link>https://shrektan.com/en/about/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://shrektan.com/en/about/</guid>
      <description>&lt;ul&gt;&#xA;&lt;li&gt;I&amp;rsquo;ve learned &lt;a href=&#34;https://en.wikipedia.org/wiki/Actuarial_science&#34;&gt;actuarial science&lt;/a&gt; for almost 7 years and I am working in financial industry as a quant.&lt;/li&gt;&#xA;&lt;li&gt;My father bought me a computer when I was 10 years old (around 2000) and I felt love in it immediately. However, I had to learn everything by myself because there&amp;rsquo;s simply no people knew much about computers at that time in my hometown. I have developed a good intuition about how computers work but I didn&amp;rsquo;t realize my passion on programming until my first internship as an assitant acturay in a life insurance company.&lt;/li&gt;&#xA;&lt;li&gt;R is my favouite language but occationally I need C++ as the core calculating engine to boost the performance. Excel and VBA is also on my skill set because they&amp;rsquo;re quite handy and used widely in the office. I had some experience on VB.NET but no a big fan of it. I also know a little bit about shell, javascript, css, html, etc.&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
  </channel>
</rss>
