<?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 Renjie Yao on Medium]]></title>
        <description><![CDATA[Stories by Renjie Yao on Medium]]></description>
        <link>https://medium.com/@yaorenjie?source=rss-972e133a734f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FMoJlr6aCe0d78wHI-wScQ@2x.jpeg</url>
            <title>Stories by Renjie Yao on Medium</title>
            <link>https://medium.com/@yaorenjie?source=rss-972e133a734f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:17:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yaorenjie/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[Tools Coders should Buy on Mac]]></title>
            <link>https://medium.com/@yaorenjie/tools-coders-should-buy-on-mac-1df4e30b4e14?source=rss-972e133a734f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1df4e30b4e14</guid>
            <category><![CDATA[mac]]></category>
            <dc:creator><![CDATA[Renjie Yao]]></dc:creator>
            <pubDate>Wed, 18 Oct 2017 04:31:52 GMT</pubDate>
            <atom:updated>2017-10-18T04:31:52.499Z</atom:updated>
            <content:encoded><![CDATA[<h3>Moom</h3><p>Moom can resize your window quickly. The small window will show when mouse hovers on the green dot of windows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*CQcMw23051qAeQKpevoPRQ.png" /></figure><p>You can also define the size you want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OFImKFU0Bp2ZYuzW5GgwvQ.png" /></figure><p>You can buy it at App Store(S$ 14.98) or its website($10): <a href="https://manytricks.com/moom/">https://manytricks.com/moom/</a></p><h3>Bartender</h3><p>We always have a lot of icons on the top menu bar. Bartender can create a second menu bar to hold the icons we want to hide or hide icons forever.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FrJt3hUOcflY%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DrJt3hUOcflY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FrJt3hUOcflY%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/e04cb10ca6d820f73ea6fc3c9ad15d5d/href">https://medium.com/media/e04cb10ca6d820f73ea6fc3c9ad15d5d/href</a></iframe><p>You can buy it on website (S$ 20.99): <a href="https://sites.fastspring.com/">https://sites.fastspring.com</a></p><h3>1Password</h3><p>1Password is a well-known password manager. It can generate, store, auto-fill passwords for you on iPhone, iPad and Mac. For windows it is kind of difficult to use since 1Password store password in iCloud.</p><p>I bought 1Password several years ago, the price is different for now. The price now is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Caey3Acaj5ZXnzRlJqIFXw.png" /></figure><h3>JetBrains</h3><p>IntelliJ, WebStore, PyCharm,… and many tools are developed by JetBrains. JetBrains Tools can handle update for you. It is really easy to use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*RYox75uvJt_vlHONo1sF1g.png" /></figure><p>You can buy each component or whole package. JetBrains charges by yearly subscription.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uo0CWLvo3-B_pNb2aD6pgQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1df4e30b4e14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install Octave on Mac Sierra]]></title>
            <link>https://medium.com/@yaorenjie/install-octave-on-mac-sierra-f1860d1b3aeb?source=rss-972e133a734f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1860d1b3aeb</guid>
            <category><![CDATA[octave]]></category>
            <category><![CDATA[homebrew]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Renjie Yao]]></dc:creator>
            <pubDate>Sat, 23 Sep 2017 08:12:48 GMT</pubDate>
            <atom:updated>2017-09-23T08:20:51.752Z</atom:updated>
            <content:encoded><![CDATA[<h3>Learning Machine Learning</h3><p>I’ve joined ViSenze for almost half a year, and our CTO said we (me and Terry) should learn some machine learning knowledge, since there are a lot of Phd here in our company:). He recommended a course on Coursera — <a href="https://www.coursera.org/learn/neural-networks">Neural Networks for Machine Learning</a>.</p><p>I am facing the Quiz of Week 3, while it needs some coding works in Octave.</p><h3>Problems</h3><p>The Macbook, which lays in my home, hasn’t been used for quite a time. When I use brew to install Octave, some weird issue happened:</p><pre>Error: uninitialized constant Formulary::FormulaNamespacefe4ce29a01455f41d6d0b08c39f76615::Octave::DevelopmentToolsPlease report this bug: <a href="https://git.io/brew-troubleshooting/usr/local/Library/Taps/homebrew/homebrew-science/octave.rb:31:in">https://git.io/brew-troubleshooting/usr/local/Library/Taps/homebrew/homebrew-science/octave.rb:31:in</a> `&lt;class:Octave&gt;’/usr/local/Library/Taps/homebrew/homebrew-science/octave.rb:1:in `load_formula’/usr/local/Library/Homebrew/formulary.rb:21:in `module_eval’/usr/local/Library/Homebrew/formulary.rb:21:in `load_formula’/usr/local/Library/Homebrew/formulary.rb:38:in `load_formula_from_path’/usr/local/Library/Homebrew/formulary.rb:87:in `load_file’/usr/local/Library/Homebrew/formulary.rb:78:in `klass’/usr/local/Library/Homebrew/formulary.rb:74:in `get_formula’/usr/local/Library/Homebrew/formulary.rb:171:in `get_formula’/usr/local/Library/Homebrew/formulary.rb:211:in `factory’/usr/local/Library/Homebrew/extend/ARGV.rb:18:in `block in formulae’/usr/local/Library/Homebrew/extend/ARGV.rb:16:in `map’/usr/local/Library/Homebrew/extend/ARGV.rb:16:in `formulae’/usr/local/Library/Homebrew/cmd/install.rb:95:in `install’/usr/local/Library/brew.rb:87:in `&lt;main&gt;’</pre><h3>Solution</h3><p>I found there is guide on Octave Wiki. Let me summarize it:</p><pre>sudo chown -R $(whoami) /usr/localbrew update &amp;&amp; brew upgrade # it will take some timebrew cask install xquartzbrew install octave # it will take a lot of time…</pre><p>After brew install octave<br>When I typed ‘octave’ in my terminal, there is an issue like:</p><pre>$octave<br>dyld: Library not loaded: /usr/local/opt/suite-sparse/lib/libsuitesparseconfig.4.5.4.dylib<br> Referenced from: /usr/local/bin/octave<br> Reason: image not found<br>Abort trap: 6</pre><p>And actually I’ve already installed suite-sparse, version 4.5.5. You need to create a soft link:</p><pre>cd /usr/local/opt/suite-sparse/lib/<br>ln -s libsuitesparseconfig.4.5.5.dylib libsuitesparseconfig.4.5.4.dylib</pre><p>Create your application<br>It is easier if we can launch octave in our Application, not in terminal. We can use Script Editor in macOS:</p><pre>tell application “Terminal”<br> do script “`which octave`; exit”<br>end tell</pre><h3>Screenshot</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hlWa7sREUHFIcwZyaLZWYg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1860d1b3aeb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Calculate Cost Function of Logistics Regression without for-loop in NumPy]]></title>
            <link>https://medium.com/@yaorenjie/calculate-cost-function-of-logistics-regression-without-for-loop-in-numpy-a3edd257ad29?source=rss-972e133a734f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3edd257ad29</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Renjie Yao]]></dc:creator>
            <pubDate>Sat, 02 Sep 2017 08:55:14 GMT</pubDate>
            <atom:updated>2017-09-02T08:55:14.153Z</atom:updated>
            <content:encoded><![CDATA[<p>When I was doing the assignment of deeplearning.ai on Coursera, a very strange problem stuck for quite a long time. I cannot write down the question and the details according to the policy. But the problem is quite easy to understand.</p><p>Supposing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7BXHUMSNEMefeQwKX0joLQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6j4YxJ8ptK8S1H648XwCUA.png" /><figcaption>cost function</figcaption></figure><p>The m is the length for the train_set.</p><p>A common solution is to use a for-loop from 1 to m to get the J. After some research, I found that we can use vectorization in NumPy to speed up the performance like Andrew said in his video.</p><p>Here uses trace to get the sum of main diagonal.</p><pre>cost = -1/m * np.trace(np.dot(Y.T, np.log(A)) + np.dot((1-Y).T, np.log(1-A)))</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3edd257ad29" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Animation Background in Angular2 with TypeScript]]></title>
            <link>https://medium.com/@yaorenjie/animation-background-in-angular2-with-typescript-7b7192c8f626?source=rss-972e133a734f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b7192c8f626</guid>
            <category><![CDATA[angular2]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Renjie Yao]]></dc:creator>
            <pubDate>Sat, 12 Aug 2017 12:44:14 GMT</pubDate>
            <atom:updated>2017-08-12T12:44:14.623Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F_J7aX0wyOh4%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D_J7aX0wyOh4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F_J7aX0wyOh4%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/54e32d1c2c4988140c56b2984c54db68/href">https://medium.com/media/54e32d1c2c4988140c56b2984c54db68/href</a></iframe><p>Recently I’m working on a small project, and I wanna find a very cool index page for it. What first come into my thinking is a page consists of curves and lines in a geometry canvas. And finally I found a very good example at:</p><p><a href="https://github.com/JoanClaret/html5-canvas-animation">JoanClaret/html5-canvas-animation</a></p><p>But there is a small problem, JoanClaret’s work is mostly based on jQuery and pure JavaScript while my project is written in Angular2 with TypeScript.</p><p>After several fails trying to combine origin codes into mine projects, I decided to rewrite a pure TypeScript version, according JoanClaret. And here comes the project:</p><p><a href="https://github.com/frankyaorenjie/angular-animation-curve-index">frankyaorenjie/angular-animation-curve-index</a></p><p>It is a very basic demo, just clone it and start, the page will open.</p><pre>git clone <a href="/service/mailto:git@github.com">git@github.com</a>:frankyaorenjie/angular-animation-curve-index.git<br>npm start</pre><p>Or you can try the online demo created by JoanClaret:</p><p><a href="http://joanclaret.github.io/html5-canvas-animation/">Html5-canvas-animation by JoanClaret</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b7192c8f626" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Join ViSenze in Singapore]]></title>
            <link>https://medium.com/@yaorenjie/join-visenze-in-singapore-f518058fb57c?source=rss-972e133a734f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f518058fb57c</guid>
            <category><![CDATA[singapore]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Renjie Yao]]></dc:creator>
            <pubDate>Mon, 07 Aug 2017 14:55:20 GMT</pubDate>
            <atom:updated>2017-08-07T14:59:15.902Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E-ARuqV07r34CEqAFRip0A.jpeg" /></figure><h3>Yes! ViSenze</h3><p>It has been a long time since last post, I’m busy in settling down in Singapore these days. Yes, I joined ViSenze, a startup who has raised round B fund. I’ll act as a Data Platform Lead, to build our data product and technical architecture. ViSenze has so many excellent talents and I feel really happy with these guys in the last month. Hope we all have a great advantages.</p><h3>About ViSenze</h3><blockquote>ViSenze powers visual commerce at scale for retailers and publishers. The company delivers intelligent image recognition solutions that shorten the path to action as consumers search and discover on the visual web. Retailers like Rakuten and ASOS use ViSenze to convert images into immediate product search opportunities, improving conversion rates. Media companies use ViSenze to turn any image or video into an engagement opportunity, driving more new and incremental dollars.</blockquote><blockquote>Venture-backed by Rakuten and WI Harper, ViSenze is built by web specialists and computer scientists with deep machine learning and computer vision experience. ViSenze has offices in US, UK, India, China and Singapore. The company originally started as a part of NExT, a leading research centre jointly established between National University of Singapore and Tsinghua University of China.</blockquote><p><a href="https://www.visenze.com/">ViSenze</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f518058fb57c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>