<?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 CyrusN on Medium]]></title>
        <description><![CDATA[Stories by CyrusN on Medium]]></description>
        <link>https://medium.com/@cyrusn?source=rss-369f34dc3e9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qszdH6MVMCQvSLT_ujX0lg.jpeg</url>
            <title>Stories by CyrusN on Medium</title>
            <link>https://medium.com/@cyrusn?source=rss-369f34dc3e9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 10:59:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cyrusn/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[Download YouTube Videos or Songs]]></title>
            <link>https://medium.com/@cyrusn/download-youtube-videos-or-songs-3c4891d4486?source=rss-369f34dc3e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c4891d4486</guid>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[youtube-dl]]></category>
            <category><![CDATA[youtube]]></category>
            <category><![CDATA[mac]]></category>
            <dc:creator><![CDATA[CyrusN]]></dc:creator>
            <pubDate>Wed, 19 Apr 2017 17:19:05 GMT</pubDate>
            <atom:updated>2017-04-19T17:20:16.215Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QTBQnLrWDY7317XmL32ORQ.gif" /><figcaption>Download YouTube Video through youtube-dl command</figcaption></figure><p>Sometime I have to download many YouTube videos or songs, if you are using mac or linux, youtube-dl would be a very handy and useful tool to get the job done. youtube-dl is a command-line interface application which the plain text environment may deter you to give a try, but once you can get used to it, you will find that using command-line application somehow are much easier than GUI (Graphical User Interface) application. As I am a mac user, so this tutorial are only use mac’s command-line as an example.</p><h3><a href="https://brew.sh/">Homebrew</a> — <strong>The missing package manager for macOS</strong></h3><p>Unlike linux, macOS didn’t ship with package manager but you can download it, many command-line apps can be downloaded and installed through homebrew.</p><p>Installation of homebrew is easy, first open you spotlight search in macOS and search for terminal, copy and paste the following code in terminal app and press enter, then wait for the installation finish.</p><pre>/usr/bin/ruby -e &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)&quot;</pre><p>To test the installation completed successfully, you may type brew -v in terminal which will show the version of homebrew you just downloaded, keeping in latest release is important, you may use the command brew update for upgrading to the latest version of homebrew also the latest formulaes (the latest version of the command-line applications which you can download through homebrew), you may also use brew -help to list thehomebrew commands.</p><p>Once you download and installed homebrew, next we will use homebrew to download youtube-dl for our goal.</p><p>Using brew search command to see if you can download youtube-dl , once you success, the terminal will return the success message (a ✔ next to youtube-dl).</p><pre>brew search youtube-dl</pre><p>Next, you can install youtube-dl by using brew install command.</p><pre>brew install youtube-dl</pre><h3>How to navigate in terminal?</h3><p>Before we move to the next step, we should get a bit familiar with the command-line environment first, I would like to introduce 3 simple commands first to make you feel better to move on to the next stage.</p><ol><li>ls are used to list all files in your current folder.</li><li>cd command mean change directory, you can navigate to folder by typing cd FOLDER_NAME , we often use this command together with ls .</li><li>open are used to open the files or folder, let’s say you want to open the current location in macOS Finder App, then you can type open . the dot notation after open means current location.</li></ol><h4>Example:</h4><p>type cd ~ to go to HOME directory then type ls to list all files and folder in your HOME directory.</p><pre>Documents    Dropbox     Music     Public    Applications<br>Desktop      Downloads   Movies    Pictures</pre><p>you can go to your Desktop folder by this command cd Desktop and open Desktop in Finder by open . .</p><p>To simply the actions, you can use cd ~/Desktop , which have exactly same result to the following commands.</p><pre>cd ~<br>cd Desktop</pre><h3>Using the youtube-dl command</h3><p>Now, let’s move on to youtube-dl command, assuming that you would like to download a video from YouTube, i.e. <a href="https://www.youtube.com/watch?v=JNEnzNHTkd8">https://www.youtube.com/watch?v=JNEnzNHTkd8</a>, then you just have to type the link followed by youtube-dl command, in case you would like to download the video to your desktop, then you can use cd command to go to desktop directory first, like this.</p><pre>cd ~/Desktop<br>youtube-dl <a href="https://www.youtube.com/watch?v=JNEnzNHTkd8">https://www.youtube.com/watch?v=JNEnzNHTkd8</a></pre><p>In case you just want to grab the audio output from a video, then you can flag the --extract-audio and use --audio-format=FORMAT_YOU_WANT , here is the example.</p><pre>youtube-dl --extract-audio --audio-format=m4a  <a href="https://www.youtube.com/watch/?v\=JNEnzNHTkd8">https://www.youtube.com/watch\?v\=JNEnzNHTkd8</a></pre><h3>Conclusion</h3><p>Today I introduced several command-line commands, first, we have cd command to change the directory, ls command to list all the files in current directory, open . command to open current directory, besides, after install homebrew and youtube-dl , you can download YouTube video or audio source just through your finger tips.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c4891d4486" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Easiest way to Create a QR Code]]></title>
            <link>https://medium.com/@cyrusn/the-easiest-way-to-create-a-qr-code-a059bd024e45?source=rss-369f34dc3e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a059bd024e45</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[qr-code]]></category>
            <dc:creator><![CDATA[CyrusN]]></dc:creator>
            <pubDate>Mon, 17 Apr 2017 11:13:32 GMT</pubDate>
            <atom:updated>2017-04-17T11:13:32.259Z</atom:updated>
            <content:encoded><![CDATA[<p>One of my colleagues ask me how to make a QR Code of some link. OK, here you go.</p><h3>Using Google’s Chart API</h3><p>You can simple go to the link below get your QR Code Image, although you make see the depreciated warning below in <a href="https://developers.google.com/chart/infographics/docs/qr_codes">here</a></p><blockquote><strong>Warning:</strong> This API is deprecated. Please use the actively maintained <a href="https://developers.google.com/chart">Google Charts</a> API instead. See our <a href="https://developers.google.com/chart/terms">deprecation policy</a> for details.</blockquote><p><a href="http://chart.googleapis.com/chart?cht=qr&amp;chs=300x300&amp;choe=UTF-8&amp;chld=H&amp;chl=http://the_url_you_want">http://chart.googleapis.com/chart?cht=qr&amp;chs=300x300&amp;choe=UTF-8&amp;chld=H&amp;chl=http://the_url_you_want</a></p><p>e.g.</p><ul><li>I have a link <a href="https://fb.me/skhlpss.calp">https://fb.me/skhlpss.calp</a> and want to create a QR Code</li><li>type the following link to any web browser</li></ul><p><a href="http://chart.googleapis.com/chart?cht=qr&amp;chs=300x300&amp;choe=UTF-8&amp;chld=H&amp;chl=https://fb.me/skhlpss.calp">http://chart.googleapis.com/chart?cht=qr&amp;chs=300x300&amp;choe=UTF-8&amp;chld=H&amp;chl=https://fb.me/skhlpss.calp</a></p><ul><li>QR Code will be generated.</li><li>you may see the example below</li><li>change the word 300x300 for other dimension, e.g. 500x500 for larger image.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4NfpSex4JO9Yp7PTGPJgRg.png" /></figure><h3>By using Google Shortener</h3><p><a href="https://goo.gl/">Google Shortener</a> not only shorten your link, but also prepare the QR code to the shortened link. Once you sign in with your browser and shortened you link in <a href="https://goo.gl/">https://goo.gl</a>, you will find a dropdown menu for getting the QR code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cuzcDl0_LyNt71vIyh-mzQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a059bd024e45" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>