<p><aclass="reference external"href="https://github.com/noamraph/tqdm">tqdm</a> is a nice way to add progress bars in the command line or in a jupyter notebook.</p>
<p><aclass="reference external"href="https://github.com/noamraph/tqdm">tqdm</a> is a nice way to add progress bars in the command line or in a jupyter notebook.</p>
<feedxmlns="http://www.w3.org/2005/Atom"><title>balkian.com</title><linkhref="http://balkian.com/"rel="alternate"></link><linkhref="http://balkian.com/feeds/all.atom.xml"rel="self"></link><id>http://balkian.com/</id><updated>2016-02-03T20:00:00+01:00</updated><entry><title>Arch Linux Fixes</title><linkhref="http://balkian.com/arch-linux-fixes.html"rel="alternate"></link><updated>2016-02-03T20:00:00+01:00</updated><author><name>J. Fernando Sánchez</name></author><id>tag:balkian.com,2016-02-03:arch-linux-fixes.html</id><summarytype="html"><div class="section" id="black-screen-and-lightdm-doesn-t-unlock">
<feedxmlns="http://www.w3.org/2005/Atom"><title>balkian.com</title><linkhref="http://balkian.com/"rel="alternate"></link><linkhref="http://balkian.com/feeds/all.atom.xml"rel="self"></link><id>http://balkian.com/</id><updated>2016-09-28T18:47:00+02:00</updated><entry><title>Progress bars in python</title><linkhref="http://balkian.com/progress-bars-in-python.html"rel="alternate"></link><updated>2016-09-28T18:47:00+02:00</updated><author><name>J. Fernando Sánchez</name></author><id>tag:balkian.com,2016-09-28:progress-bars-in-python.html</id><summarytype="html"><p><a class="reference external" href="https://github.com/noamraph/tqdm">tqdm</a> is a nice way to add progress bars in the command line or in a jupyter notebook.</p>
</td></tr></table></summary><categoryterm="python"></category></entry><entry><title>Arch Linux Fixes</title><linkhref="http://balkian.com/arch-linux-fixes.html"rel="alternate"></link><updated>2016-02-03T20:00:00+01:00</updated><author><name>J. Fernando Sánchez</name></author><id>tag:balkian.com,2016-02-03:arch-linux-fixes.html</id><summarytype="html"><div class="section" id="black-screen-and-lightdm-doesn-t-unlock">
<h2>Black screen and LightDM doesn't unlock</h2>
<h2>Black screen and LightDM doesn't unlock</h2>
<p>Add this to your <cite>/etc/lightdm/lightdm.conf</cite> file:</p>
<p>Add this to your <cite>/etc/lightdm/lightdm.conf</cite> file:</p>
</summary><categoryterm="emacs"></category><categoryterm="productivity"></category><categoryterm="editor"></category><categoryterm="org"></category></entry><entry><title>Sharing dotfiles</title><linkhref="http://balkian.com/sharing-dotfiles.html"rel="alternate"></link><updated>2015-04-10T17:47:00+02:00</updated><author><name>J. Fernando Sánchez</name></author><id>tag:balkian.com,2015-04-10:sharing-dotfiles.html</id><summarytype="html"><p>Today's post is half a quick note, half public shaming. In other words, it is a reminder to be very careful with OAuth tokens and passwords.</p>
</summary><categoryterm="emacs"></category><categoryterm="productivity"></category><categoryterm="editor"></category><categoryterm="org"></category></entry><entry><title>Sharing dotfiles</title><linkhref="http://balkian.com/sharing-dotfiles.html"rel="alternate"></link><updated>2015-04-10T17:47:00+02:00</updated><author><name>J. Fernando Sánchez</name></author><id>tag:balkian.com,2015-04-10:sharing-dotfiles.html</id><summarytype="html"><p>Today's post is half a quick note, half public shaming. In other words, it is a reminder to be very careful with OAuth tokens and passwords.</p>
@ -19,13 +31,13 @@ This is cool and convenient, unless you <a class="reference external" href="h
<p>So, how can you still share your gitconfig without sharing your password/token with the rest of the world?
<p>So, how can you still share your gitconfig without sharing your password/token with the rest of the world?
Since Git 1.7.0, you can <a class="reference external" href="http://stackoverflow.com/questions/1557183/is-it-possible-to-include-a-file-in-your-gitconfig">include other files in your gitconfig</a>.</p>
Since Git 1.7.0, you can <a class="reference external" href="http://stackoverflow.com/questions/1557183/is-it-possible-to-include-a-file-in-your-gitconfig">include other files in your gitconfig</a>.</p>
<span class="nb">RequestHeader</span> set SCRIPT_NAME <span class="s2">&quot;/myapp/&quot;</span>
<span class="nb">RequestHeader</span> set SCRIPT_NAME <span class="s2">&quot;/myapp/&quot;</span>
@ -148,7 +160,7 @@ a WSGI application with the name <em>application</em>. Hence, wsgi:a
</td></tr></table><p><strong>Important</strong>: <em>SCRIPT_NAME</em> and the end of <em>ProxyPass</em> URL <strong>MUST BE
</td></tr></table><p><strong>Important</strong>: <em>SCRIPT_NAME</em> and the end of <em>ProxyPass</em> URL <strong>MUST BE
THE SAME</strong>. Otherwise, Gunicorn will fail miserably.</p>
THE SAME</strong>. Otherwise, Gunicorn will fail miserably.</p>
<span class="na">file</span><span class="o">=</span><span class="s">/tmp/myapp.sock ; path to your socket file</span>
<span class="na">file</span><span class="o">=</span><span class="s">/tmp/myapp.sock ; path to your socket file</span>
<span class="k">[supervisord]</span>
<span class="k">[supervisord]</span>
@ -238,7 +250,7 @@ memorability over describing the functionality.</p>
10
10
11
11
12
12
13</pre></div></td><td class="code"><div class="highlight"><pre><span class="err">[distutils]</span><span class="c1"># this tells distutils what package indexes you can push to</span>
13</pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="err">[distutils]</span><span class="c1"># this tells distutils what package indexes you can push to</span>
<span class="n">packages</span><span class="o">=</span><span class="p">[</span><span class="s1">&#39;mypackage&#39;</span><span class="p">],</span><span class="c1"># this must be the same as the name above</span>
<span class="n">packages</span><span class="o">=</span><span class="p">[</span><span class="s1">&#39;mypackage&#39;</span><span class="p">],</span><span class="c1"># this must be the same as the name above</span>
@ -313,7 +325,7 @@ host our package anywhere, but Github is a convenient option. To create
the tarball and the zip packages, you only need to tag a tag in your
the tarball and the zip packages, you only need to tag a tag in your
2</pre></div></td><td class="code"><div class="highlight"><pre>git tag <span class="o">{</span>version<span class="o">}</span> -m <span class="s2">&quot;{ Description of this tag/version}&quot;</span>
2</pre></div></td><td class="code"><div class="highlight"><pre><span></span>git tag <span class="o">{</span>version<span class="o">}</span> -m <span class="s2">&quot;{ Description of this tag/version}&quot;</span>
git push --tags origin master
git push --tags origin master
</pre></div>
</pre></div>
</td></tr></table></div>
</td></tr></table></div>
@ -351,7 +363,7 @@ new technologies and improve it:</p>
<p>The result can be <a class="reference external" href="http://eurolovemap.herokuapp.com/">seen here</a>.</p>
<p>The result can be <a class="reference external" href="http://eurolovemap.herokuapp.com/">seen here</a>.</p>
@ -436,7 +448,7 @@ the <a class="reference external" href="http://slipsum.com/">Samuel L. Jac
</div>
</div>
</summary><categoryterm="javascript"></category><categoryterm="python"></category><categoryterm="heroku"></category></entry><entry><title>Remove git files with globbing</title><linkhref="http://balkian.com/remove-git-files-with-globbing.html"rel="alternate"></link><updated>2013-08-22T23:14:00+02:00</updated><author><name>J. Fernando Sánchez</name></author><id>tag:balkian.com,2013-08-22:remove-git-files-with-globbing.html</id><summarytype="html"><p>A simple trick. If you want to remove all the '.swp' files from a git
</summary><categoryterm="javascript"></category><categoryterm="python"></category><categoryterm="heroku"></category></entry><entry><title>Remove git files with globbing</title><linkhref="http://balkian.com/remove-git-files-with-globbing.html"rel="alternate"></link><updated>2013-08-22T23:14:00+02:00</updated><author><name>J. Fernando Sánchez</name></author><id>tag:balkian.com,2013-08-22:remove-git-files-with-globbing.html</id><summarytype="html"><p>A simple trick. If you want to remove all the '.swp' files from a git
</td></tr></table></summary><categoryterm="git"></category></entry><entry><title>Creating my web</title><linkhref="http://balkian.com/creating-my-web.html"rel="alternate"></link><updated>2013-08-22T14:14:22+02:00</updated><author><name>J. Fernando Sánchez</name></author><id>tag:balkian.com,2013-08-22:creating-my-web.html</id><summarytype="html"><p>Finally, I've decided to set up a decent personal page. I have settled
</td></tr></table></summary><categoryterm="git"></category></entry><entry><title>Creating my web</title><linkhref="http://balkian.com/creating-my-web.html"rel="alternate"></link><updated>2013-08-22T14:14:22+02:00</updated><author><name>J. Fernando Sánchez</name></author><id>tag:balkian.com,2013-08-22:creating-my-web.html</id><summarytype="html"><p>Finally, I've decided to set up a decent personal page. I have settled
for github-pages because I like the idea of keeping my site in a
for github-pages because I like the idea of keeping my site in a
<feedxmlns="http://www.w3.org/2005/Atom"><title>balkian.com</title><linkhref="http://balkian.com/"rel="alternate"></link><linkhref="http://balkian.com/feeds/misc.atom.xml"rel="self"></link><id>http://balkian.com/</id><updated>2015-04-10T17:47:00+02:00</updated><entry><title>Sharing dotfiles</title><linkhref="http://balkian.com/sharing-dotfiles.html"rel="alternate"></link><updated>2015-04-10T17:47:00+02:00</updated><author><name>J. Fernando Sánchez</name></author><id>tag:balkian.com,2015-04-10:sharing-dotfiles.html</id><summarytype="html"><p>Today's post is half a quick note, half public shaming. In other words, it is a reminder to be very careful with OAuth tokens and passwords.</p>
<feedxmlns="http://www.w3.org/2005/Atom"><title>balkian.com</title><linkhref="http://balkian.com/"rel="alternate"></link><linkhref="http://balkian.com/feeds/misc.atom.xml"rel="self"></link><id>http://balkian.com/</id><updated>2016-09-28T18:47:00+02:00</updated><entry><title>Progress bars in python</title><linkhref="http://balkian.com/progress-bars-in-python.html"rel="alternate"></link><updated>2016-09-28T18:47:00+02:00</updated><author><name>J. Fernando Sánchez</name></author><id>tag:balkian.com,2016-09-28:progress-bars-in-python.html</id><summarytype="html"><p><a class="reference external" href="https://github.com/noamraph/tqdm">tqdm</a> is a nice way to add progress bars in the command line or in a jupyter notebook.</p>
</td></tr></table></summary><categoryterm="python"></category></entry><entry><title>Sharing dotfiles</title><linkhref="http://balkian.com/sharing-dotfiles.html"rel="alternate"></link><updated>2015-04-10T17:47:00+02:00</updated><author><name>J. Fernando Sánchez</name></author><id>tag:balkian.com,2015-04-10:sharing-dotfiles.html</id><summarytype="html"><p>Today's post is half a quick note, half public shaming. In other words, it is a reminder to be very careful with OAuth tokens and passwords.</p>
<p>As part of moving to emacs, I starting using the incredibly useful <a class="reference external" href="https://github.com/defunkt/gist.el">gh.el</a>.
<p>As part of moving to emacs, I starting using the incredibly useful <a class="reference external" href="https://github.com/defunkt/gist.el">gh.el</a>.
When you first use it, the extension saves either your password or an OAuth token in your .gitconfig file.
When you first use it, the extension saves either your password or an OAuth token in your .gitconfig file.
This is cool and convenient, unless you <a class="reference external" href="https://github.com/balkian/dotfiles">happen to be publishing your .gitconfig file in a public repo</a>.</p>
This is cool and convenient, unless you <a class="reference external" href="https://github.com/balkian/dotfiles">happen to be publishing your .gitconfig file in a public repo</a>.</p>
<p>So, how can you still share your gitconfig without sharing your password/token with the rest of the world?
<p>So, how can you still share your gitconfig without sharing your password/token with the rest of the world?
Since Git 1.7.0, you can <a class="reference external" href="http://stackoverflow.com/questions/1557183/is-it-possible-to-include-a-file-in-your-gitconfig">include other files in your gitconfig</a>.</p>
Since Git 1.7.0, you can <a class="reference external" href="http://stackoverflow.com/questions/1557183/is-it-possible-to-include-a-file-in-your-gitconfig">include other files in your gitconfig</a>.</p>
<span class="nb">RequestHeader</span> set SCRIPT_NAME <span class="s2">&quot;/myapp/&quot;</span>
<span class="nb">RequestHeader</span> set SCRIPT_NAME <span class="s2">&quot;/myapp/&quot;</span>
@ -135,7 +147,7 @@ a WSGI application with the name <em>application</em>. Hence, wsgi:a
</td></tr></table><p><strong>Important</strong>: <em>SCRIPT_NAME</em> and the end of <em>ProxyPass</em> URL <strong>MUST BE
</td></tr></table><p><strong>Important</strong>: <em>SCRIPT_NAME</em> and the end of <em>ProxyPass</em> URL <strong>MUST BE
THE SAME</strong>. Otherwise, Gunicorn will fail miserably.</p>
THE SAME</strong>. Otherwise, Gunicorn will fail miserably.</p>
<span class="na">file</span><span class="o">=</span><span class="s">/tmp/myapp.sock ; path to your socket file</span>
<span class="na">file</span><span class="o">=</span><span class="s">/tmp/myapp.sock ; path to your socket file</span>
<span class="k">[supervisord]</span>
<span class="k">[supervisord]</span>
@ -225,7 +237,7 @@ memorability over describing the functionality.</p>
10
10
11
11
12
12
13</pre></div></td><td class="code"><div class="highlight"><pre><span class="err">[distutils]</span><span class="c1"># this tells distutils what package indexes you can push to</span>
13</pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="err">[distutils]</span><span class="c1"># this tells distutils what package indexes you can push to</span>
<span class="n">packages</span><span class="o">=</span><span class="p">[</span><span class="s1">&#39;mypackage&#39;</span><span class="p">],</span><span class="c1"># this must be the same as the name above</span>
<span class="n">packages</span><span class="o">=</span><span class="p">[</span><span class="s1">&#39;mypackage&#39;</span><span class="p">],</span><span class="c1"># this must be the same as the name above</span>
@ -300,7 +312,7 @@ host our package anywhere, but Github is a convenient option. To create
the tarball and the zip packages, you only need to tag a tag in your
the tarball and the zip packages, you only need to tag a tag in your
2</pre></div></td><td class="code"><div class="highlight"><pre>git tag <span class="o">{</span>version<span class="o">}</span> -m <span class="s2">&quot;{ Description of this tag/version}&quot;</span>
2</pre></div></td><td class="code"><div class="highlight"><pre><span></span>git tag <span class="o">{</span>version<span class="o">}</span> -m <span class="s2">&quot;{ Description of this tag/version}&quot;</span>
git push --tags origin master
git push --tags origin master
</pre></div>
</pre></div>
</td></tr></table></div>
</td></tr></table></div>
@ -338,7 +350,7 @@ new technologies and improve it:</p>
<p>The result can be <a class="reference external" href="http://eurolovemap.herokuapp.com/">seen here</a>.</p>
<p>The result can be <a class="reference external" href="http://eurolovemap.herokuapp.com/">seen here</a>.</p>
@ -423,7 +435,7 @@ the <a class="reference external" href="http://slipsum.com/">Samuel L. Jac
</div>
</div>
</summary><categoryterm="javascript"></category><categoryterm="python"></category><categoryterm="heroku"></category></entry><entry><title>Remove git files with globbing</title><linkhref="http://balkian.com/remove-git-files-with-globbing.html"rel="alternate"></link><updated>2013-08-22T23:14:00+02:00</updated><author><name>J. Fernando Sánchez</name></author><id>tag:balkian.com,2013-08-22:remove-git-files-with-globbing.html</id><summarytype="html"><p>A simple trick. If you want to remove all the '.swp' files from a git
</summary><categoryterm="javascript"></category><categoryterm="python"></category><categoryterm="heroku"></category></entry><entry><title>Remove git files with globbing</title><linkhref="http://balkian.com/remove-git-files-with-globbing.html"rel="alternate"></link><updated>2013-08-22T23:14:00+02:00</updated><author><name>J. Fernando Sánchez</name></author><id>tag:balkian.com,2013-08-22:remove-git-files-with-globbing.html</id><summarytype="html"><p>A simple trick. If you want to remove all the '.swp' files from a git
</td></tr></table></summary><categoryterm="git"></category></entry><entry><title>Creating my web</title><linkhref="http://balkian.com/creating-my-web.html"rel="alternate"></link><updated>2013-08-22T14:14:22+02:00</updated><author><name>J. Fernando Sánchez</name></author><id>tag:balkian.com,2013-08-22:creating-my-web.html</id><summarytype="html"><p>Finally, I've decided to set up a decent personal page. I have settled
</td></tr></table></summary><categoryterm="git"></category></entry><entry><title>Creating my web</title><linkhref="http://balkian.com/creating-my-web.html"rel="alternate"></link><updated>2013-08-22T14:14:22+02:00</updated><author><name>J. Fernando Sánchez</name></author><id>tag:balkian.com,2013-08-22:creating-my-web.html</id><summarytype="html"><p>Finally, I've decided to set up a decent personal page. I have settled
for github-pages because I like the idea of keeping my site in a
for github-pages because I like the idea of keeping my site in a
<p><aclass="reference external"href="https://github.com/noamraph/tqdm">tqdm</a> is a nice way to add progress bars in the command line or in a jupyter notebook.</p>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-android"></i></span><spanclass="explanation">Android dev</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-github-alt"></i></span><spanclass="explanation">GitHub user</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-stack-exchange"></i></span><spanclass="explanation">StackExchange fan</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-music"></i></span><spanclass="explanation">Music lover</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-film"></i></span><spanclass="explanation">Movie fan</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-comments"></i></span><spanclass="explanation">Always on IM</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-laptop"></i></span><spanclass="explanation">Always on a PC</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-pencil"></i></span><spanclass="explanation">Occassional writter</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-moon-o"></i></span><spanclass="explanation">Night owl</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-terminal"></i></span><spanclass="explanation">CLI user</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-flag"></i></span><spanclass="explanation">Linguist wannabe</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-code"></i></span><spanclass="explanation">Love to code</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-book"></i></span><spanclass="explanation">Keen reader</span></span>
<spanclass="coolicon"><spanclass="fa fa-stack"><iclass="fa fa-square-o fa fa-stack-2x"></i><iclass="fa fa-quote-right"></i></span><spanclass="explanation">Quotes on demand</span></span>
</div>
</div>
<divclass="entries">
<h2class="title">Latest entries</h2>
<dl>
<dt><ahref="/progress-bars-in-python.html">Progress bars in python</a></dt>
<p><aclass="reference external"href="https://github.com/noamraph/tqdm">tqdm</a> is a nice way to add progress bars in the command line or in a jupyter notebook.</p>
@ -162,7 +158,7 @@ memorability over describing the functionality.</p>
10
10
11
11
12
12
13</pre></div></td><tdclass="code"><divclass="highlight"><pre><spanclass="err">[distutils]</span><spanclass="c1"># this tells distutils what package indexes you can push to</span>
13</pre></div></td><tdclass="code"><divclass="highlight"><pre><span></span><spanclass="err">[distutils]</span><spanclass="c1"># this tells distutils what package indexes you can push to</span>
<spanclass="n">packages</span><spanclass="o">=</span><spanclass="p">[</span><spanclass="s1">'mypackage'</span><spanclass="p">],</span><spanclass="c1"># this must be the same as the name above</span>
<spanclass="n">packages</span><spanclass="o">=</span><spanclass="p">[</span><spanclass="s1">'mypackage'</span><spanclass="p">],</span><spanclass="c1"># this must be the same as the name above</span>
@ -237,7 +233,7 @@ host our package anywhere, but Github is a convenient option. To create
the tarball and the zip packages, you only need to tag a tag in your
the tarball and the zip packages, you only need to tag a tag in your
2</pre></div></td><tdclass="code"><divclass="highlight"><pre>git tag <spanclass="o">{</span>version<spanclass="o">}</span> -m <spanclass="s2">"{ Description of this tag/version}"</span>
2</pre></div></td><tdclass="code"><divclass="highlight"><pre><span></span>git tag <spanclass="o">{</span>version<spanclass="o">}</span> -m <spanclass="s2">"{ Description of this tag/version}"</span>
@ -141,13 +137,13 @@ This is cool and convenient, unless you <a class="reference external" href="http
<p>So, how can you still share your gitconfig without sharing your password/token with the rest of the world?
<p>So, how can you still share your gitconfig without sharing your password/token with the rest of the world?
Since Git 1.7.0, you can <aclass="reference external"href="http://stackoverflow.com/questions/1557183/is-it-possible-to-include-a-file-in-your-gitconfig">include other files in your gitconfig</a>.</p>
Since Git 1.7.0, you can <aclass="reference external"href="http://stackoverflow.com/questions/1557183/is-it-possible-to-include-a-file-in-your-gitconfig">include other files in your gitconfig</a>.</p>
<p><aclass="reference external"href="https://github.com/noamraph/tqdm">tqdm</a> is a nice way to add progress bars in the command line or in a jupyter notebook.</p>
@ -225,7 +221,7 @@ cleaner URIs. In your desired site/location, add this:</p>
<spanclass="p">}</span>
<spanclass="p">}</span>
</pre></div>
</pre></div>
</td></tr></table><p>Now just reload nginx:</p>
</td></tr></table><p>Now just reload nginx:</p>
<tableclass="highlighttable"><tr><tdclass="linenos"><divclass="linenodiv"><pre>1</pre></div></td><tdclass="code"><divclass="highlight"><pre>sudo service nginx force-reload
<tableclass="highlighttable"><tr><tdclass="linenos"><divclass="linenodiv"><pre>1</pre></div></td><tdclass="code"><divclass="highlight"><pre><span></span>sudo service nginx force-reload