1
0
mirror of https://github.com/balkian/balkian.github.com.git synced 2024-12-25 17:58:12 +00:00
balkian.github.com/index.html

341 lines
20 KiB
HTML
Raw Normal View History

2015-01-22 22:05:35 +00:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
2016-02-03 18:23:38 +00:00
<title>balkian.com - WELCOME</title>
2015-01-22 22:05:35 +00:00
<meta name="viewport" content="width=device-width">
<!-- syntax highlighting CSS -->
2015-01-22 23:22:30 +00:00
<link rel="stylesheet" href="/theme/css/solarized.css">
2015-01-22 22:05:35 +00:00
<!--<link href="/css/bootstrap.css" rel="stylesheet">-->
<link rel="stylesheet" href="/theme/font-awesome/css/font-awesome.min.css">
<!--<link rel="stylesheet" href="/css/bootstrap-responsive.min.css">-->
<!-- Custom CSS -->
<link rel="stylesheet" media="only screen" href="/theme/css/main.css">
<link rel="stylesheet" media="only screen and (min-width: 0px) and (max-width: 599px)" href="/theme/css/main-xs.css">
<link rel="stylesheet" media="only screen and (min-width: 600px) and (max-width: 1199px)" href="/theme/css/main-medium.css">
<link rel="stylesheet" media="only screen and (min-width: 1200px)" href="/theme/css/main-desktop.css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300|Comfortaa' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="container" class="container">
<header id="header">
<div id="navbar" class="navbar navbar-inverse navbar-static-bottom">
<div class="container">
<div class="navbar-header">
<ul class="nav navbar-nav">
<li class="active" >
2015-12-08 16:13:36 +00:00
<a href="/"><i class="fa fa-home fa-large"></i></a>
2015-12-10 14:44:33 +00:00
</li>
<li >
<a href="/category/cheats.html">Cheats</a>
</li>
<li >
<a href="/category/misc.html">Misc</a>
</li>
<li >
<a href="/tags.html">Tags</a>
2015-12-07 22:12:27 +00:00
</li>
<li >
<a href="/pages/projects.html">Projects</a>
</li>
2015-12-07 20:57:42 +00:00
<li>
2015-12-08 00:06:02 +00:00
<a href="//jfernando.es" target="_blank">CV</a>
2015-12-07 20:57:42 +00:00
</li>
2015-01-22 22:05:35 +00:00
</ul>
2015-12-07 22:12:27 +00:00
</div>
2015-01-22 22:05:35 +00:00
</div>
</div>
</header>
<div id="contentwrapper">
<div id="sidebar" >
<div id="badge" class="flip-container" ontouchstart="this.classList.toggle('hover');">
<div class="flipper sticky">
<div class="front">
<!-- front content -->
<img id="avatar" width=100% src="/theme/img/me.png">
</div>
<div class="back">
<!-- back content -->
2015-12-07 20:57:42 +00:00
<img id="picture" width=100% src="/theme/img/me-bat.png">
2015-01-22 22:05:35 +00:00
</div>
</div>
</div>
2015-12-08 12:42:59 +00:00
<div id="about" style="clear:both;">
<!-- <h1 class="title">Interests</h1> -->
<div class="icons">
2015-12-08 16:13:36 +00:00
<span class="coolicon"><span class="fa fa-stack"> <i class="fa fa-square-o fa-stack-2x" ></i><i class="fa fa-stack-1x fa-linux"></i></span><span class="explanation">Linux lover</span></span>
<span class="coolicon"><span class="fa fa-stack"> <i class="fa fa-square-o fa fa-stack-2x" ></i><i class="fa fa-android"></i></span><span class="explanation">Android dev</span></span>
<span class="coolicon"><span class="fa fa-stack"> <i class="fa fa-square-o fa fa-stack-2x" ></i><i class="fa fa-github-alt"></i> </span><span class="explanation">GitHub user</span></span>
<span class="coolicon"><span class="fa fa-stack"> <i class="fa fa-square-o fa fa-stack-2x" ></i><i class="fa fa-stack-exchange"></i> </span><span class="explanation">StackExchange fan</span></span>
<span class="coolicon"><span class="fa fa-stack"> <i class="fa fa-square-o fa fa-stack-2x" ></i><i class="fa fa-music"></i> </span><span class="explanation">Music lover</span></span>
<span class="coolicon"><span class="fa fa-stack"> <i class="fa fa-square-o fa fa-stack-2x" ></i><i class="fa fa-film"></i> </span><span class="explanation">Movie fan</span></span>
<span class="coolicon"><span class="fa fa-stack"> <i class="fa fa-square-o fa fa-stack-2x" ></i><i class="fa fa-comments"></i> </span><span class="explanation">Always on IM</span></span>
<span class="coolicon"><span class="fa fa-stack"> <i class="fa fa-square-o fa fa-stack-2x" ></i><i class="fa fa-laptop"></i> </span><span class="explanation">Always on a PC</span></span>
<span class="coolicon"><span class="fa fa-stack"> <i class="fa fa-square-o fa fa-stack-2x" ></i><i class="fa fa-pencil"></i> </span><span class="explanation">Occassional writter</span></span>
<span class="coolicon"><span class="fa fa-stack"> <i class="fa fa-square-o fa fa-stack-2x" ></i><i class="fa fa-moon-o"></i> </span><span class="explanation">Night owl</span></span>
<span class="coolicon"><span class="fa fa-stack"> <i class="fa fa-square-o fa fa-stack-2x" ></i><i class="fa fa-terminal"></i></span> <span class="explanation">CLI user</span></span>
<span class="coolicon"><span class="fa fa-stack"> <i class="fa fa-square-o fa fa-stack-2x" ></i><i class="fa fa-flag"></i></span> <span class="explanation">Linguist wannabe</span></span>
<span class="coolicon"><span class="fa fa-stack"> <i class="fa fa-square-o fa fa-stack-2x" ></i><i class="fa fa-code"></i> </span> <span class="explanation">Love to code</span></span>
<span class="coolicon"><span class="fa fa-stack"> <i class="fa fa-square-o fa fa-stack-2x" ></i><i class="fa fa-book"></i></span> <span class="explanation">Keen reader</span></span>
<span class="coolicon"><span class="fa fa-stack"> <i class="fa fa-square-o fa fa-stack-2x" ></i><i class="fa fa-quote-right"></i></span> <span class="explanation">Quotes on demand</span></span>
2015-12-08 12:42:59 +00:00
</div>
</div>
2015-01-22 22:05:35 +00:00
<div class="entries">
2015-12-08 12:42:59 +00:00
<h2 class="title">Latest entries</h2>
2015-01-22 22:05:35 +00:00
<dl>
2017-01-07 22:33:42 +00:00
<dt><a href="/hdmi-vga-adapter-issues-with-raspberry-pi.html">HDMI-VGA adapter issues with Raspberry Pi</a></dt>
<dd class="tag"><a class="label" href="/tag/rpi.html">rpi</a></dd>
2016-09-28 18:27:26 +00:00
<dt><a href="/progress-bars-in-python.html">Progress bars in python</a></dt>
<dd class="tag"><a class="label" href="/tag/python.html">python</a></dd>
2016-02-03 17:56:30 +00:00
<dt><a href="/arch-linux-fixes.html">Arch Linux Fixes</a></dt>
<dd class="tag"><a class="label" href="/tag/arch.html">arch</a></dd>
<dd class="tag"><a class="label" href="/tag/linux.html">linux</a></dd>
2015-12-10 14:44:33 +00:00
<dt><a href="/org-mode-tricks.html">Org-mode tricks</a></dt>
<dd class="tag"><a class="label" href="/tag/emacs.html">emacs</a></dd>
<dd class="tag"><a class="label" href="/tag/productivity.html">productivity</a></dd>
<dd class="tag"><a class="label" href="/tag/editor.html">editor</a></dd>
<dd class="tag"><a class="label" href="/tag/org.html">org</a></dd>
2015-03-11 01:55:29 +00:00
<dt><a href="/sharing-dotfiles.html">Sharing dotfiles</a></dt>
2015-12-10 14:44:33 +00:00
<dd class="tag"><a class="label" href="/tag/github.html">github</a></dd>
<dd class="tag"><a class="label" href="/tag/git.html">git</a></dd>
<dd class="tag"><a class="label" href="/tag/dotfiles.html">dotfiles</a></dd>
2015-01-22 22:05:35 +00:00
</dl>
</div>
2015-12-08 12:42:59 +00:00
<!--Sidebar content-->
2015-01-22 22:05:35 +00:00
</div>
<div id="content">
<!--Body content-->
2013-08-22 23:57:31 +00:00
<div class="pagination pag-top">
<span class="previouspage" style="visibility:hidden;"><i class="icon-chevron-sign-left"></i> Newer Posts</span>
2017-01-07 22:33:42 +00:00
<span class="page_number ">Page 1 of 2</span>
<span class="nextpage"><a href="/page2"> Older Posts </a> <i class="icon-double-angle-right"></i></span>
2013-08-22 23:57:31 +00:00
</div>
<!-- This loops through the paginated posts -->
2017-01-07 22:33:42 +00:00
<div class="posthead">
<h2><a href="/hdmi-vga-adapter-issues-with-raspberry-pi.html" class="title">HDMI-VGA adapter issues with Raspberry Pi</a></h2>
<span class="date">2017-01-07</span>
<a class="tag" href="/tag/rpi.html"><span class="label">rpi</span></a>
</div>
<div class="excerpt">
<p>Avoid HDMI flickering/intermittent blanking on RPI with a 1400x1050 VGA monitor.</p>
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4
5</pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="n">hdmi_drive</span><span class="o">=</span><span class="mi">2</span>
<span class="n">hdmi_group</span><span class="o">=</span><span class="mi">2</span>
<span class="n">hdmi_mode</span><span class="o">=</span><span class="mi">42</span>
<span class="n">disable_overscan</span><span class="o">=</span><span class="mi">1</span>
<span class="n">config_hdmi_boost</span><span class="o">=</span><span class="mi">7</span>
</pre></div>
</td></tr></table>
</div>
<div class="readmore"><a href="/hdmi-vga-adapter-issues-with-raspberry-pi.html"><i class="fa fa-external-link"></i> Read more...</a></div>
2016-09-28 18:27:26 +00:00
<div class="posthead">
<h2><a href="/progress-bars-in-python.html" class="title">Progress bars in python</a></h2>
<span class="date">2016-09-28</span>
<a class="tag" href="/tag/python.html"><span class="label">python</span></a>
</div>
<div class="excerpt">
<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>
<img alt="" src="https://camo.githubusercontent.com/48838faaa8d00ea297f18e5bf55d3c6bb4e0ba6b/68747470733a2f2f692e696d6775722e636f6d2f686539417735432e676966" />
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4
5</pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">tqdm</span> <span class="kn">import</span> <span class="n">tqdm</span>
<span class="kn">import</span> <span class="nn">time</span>
<span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="n">tqdm</span><span class="p">(</span><span class="nb">range</span><span class="p">(</span><span class="mi">100</span><span class="p">)):</span>
<span class="n">time</span><span class="o">.</span><span class="n">sleep</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
</pre></div>
</td></tr></table>
</div>
<div class="readmore"><a href="/progress-bars-in-python.html"><i class="fa fa-external-link"></i> Read more...</a></div>
2016-02-03 17:56:30 +00:00
<div class="posthead">
<h2><a href="/arch-linux-fixes.html" class="title">Arch Linux Fixes</a></h2>
<span class="date">2016-02-03</span>
<a class="tag" href="/tag/arch.html"><span class="label">arch</span></a>
<a class="tag" href="/tag/linux.html"><span class="label">linux</span></a>
</div>
<div class="excerpt">
<div class="section" id="black-screen-and-lightdm-doesn-t-unlock">
<h2>Black screen and LightDM doesn't unlock</h2>
<p>Add this to your <cite>/etc/lightdm/lightdm.conf</cite> file:</p>
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2016-09-28 18:27:26 +00:00
2</pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="k">[LightDM]</span>
2016-02-03 17:56:30 +00:00
<span class="na">logind-check-graphical</span><span class="o">=</span><span class="s">true</span>
</pre></div>
</td></tr></table></div>
</div>
<div class="readmore"><a href="/arch-linux-fixes.html"><i class="fa fa-external-link"></i> Read more...</a></div>
2015-12-10 14:44:33 +00:00
<div class="posthead">
<h2><a href="/org-mode-tricks.html" class="title">Org-mode tricks</a></h2>
<span class="date">2015-12-10</span>
<a class="tag" href="/tag/emacs.html"><span class="label">emacs</span></a>
<a class="tag" href="/tag/productivity.html"><span class="label">productivity</span></a>
<a class="tag" href="/tag/editor.html"><span class="label">editor</span></a>
<a class="tag" href="/tag/org.html"><span class="label">org</span></a>
</div>
<div class="excerpt">
<div class="section" id="show-plain-text-version">
<h2>Show plain text version</h2>
2016-09-28 18:27:26 +00:00
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1</pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="p">(</span><span class="nv">font-lock-mode</span><span class="p">)</span>
2015-12-10 14:44:33 +00:00
</pre></div>
</td></tr></table></div>
</div>
<div class="readmore"><a href="/org-mode-tricks.html"><i class="fa fa-external-link"></i> Read more...</a></div>
2015-03-11 01:55:29 +00:00
<div class="posthead">
<h2><a href="/sharing-dotfiles.html" class="title">Sharing dotfiles</a></h2>
<span class="date">2015-04-10</span>
2015-12-10 14:44:33 +00:00
<a class="tag" href="/tag/github.html"><span class="label">github</span></a>
<a class="tag" href="/tag/git.html"><span class="label">git</span></a>
<a class="tag" href="/tag/dotfiles.html"><span class="label">dotfiles</span></a>
2015-03-11 01:55:29 +00:00
</div>
<div class="excerpt">
<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>.
When you first use it, the extension saves either ...</p>
</div>
2015-12-10 14:44:33 +00:00
<div class="readmore"><a href="/sharing-dotfiles.html"><i class="fa fa-external-link"></i> Read more...</a></div>
2013-08-22 23:57:31 +00:00
<div class="posthead">
2015-01-22 22:05:35 +00:00
<h2><a href="/zotero.html" class="title">Zotero</a></h2>
<span class="date">2014-12-09</span>
2015-12-10 14:44:33 +00:00
<a class="tag" href="/tag/zotero.html"><span class="label">zotero</span></a>
<a class="tag" href="/tag/webdav.html"><span class="label">webdav</span></a>
<a class="tag" href="/tag/nginx.html"><span class="label">nginx</span></a>
<a class="tag" href="/tag/apache.html"><span class="label">apache</span></a>
2015-01-22 22:05:35 +00:00
</div>
<div class="excerpt">
<p><a class="reference external" href="https://www.zotero.org/">Zotero</a> is an Open Source tool that lets
you organise your bibliography, syncing it with the cloud. Unlike other
alternatives such as <a class="reference external" href="http://www.mendeley.com">Mendeley</a>, Zotero can
upload the attachments and data to a private cloud via WebDav.</p>
<p>If you use nginx as your web server, know that even though it provides ...</p>
</div>
2015-12-10 14:44:33 +00:00
<div class="readmore"><a href="/zotero.html"><i class="fa fa-external-link"></i> Read more...</a></div>
2015-01-22 22:05:35 +00:00
<div class="posthead">
<h2><a href="/proxies-with-apache-and-python.html" class="title">Proxies with Apache and python</a></h2>
<span class="date">2014-10-09</span>
2015-12-10 14:44:33 +00:00
<a class="tag" href="/tag/python.html"><span class="label">python</span></a>
<a class="tag" href="/tag/apache.html"><span class="label">apache</span></a>
<a class="tag" href="/tag/proxy.html"><span class="label">proxy</span></a>
<a class="tag" href="/tag/gunicorn.html"><span class="label">gunicorn</span></a>
<a class="tag" href="/tag/uwsgi.html"><span class="label">uwsgi</span></a>
2015-01-22 22:05:35 +00:00
</div>
<div class="excerpt">
<p>This is a quick note on proxying a local python application (e.g. flask)
to a subdirectory in Apache. This assumes that the file wsgi.py contains
a WSGI application with the name <em>application</em>. Hence, wsgi:application.</p>
<div class="section" id="gunicorn">
<h2>Gunicorn</h2>
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4
2016-09-28 18:27:26 +00:00
5</pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="nt">&lt;Location</span> <span class="s">/myapp/</span><span class="nt">&gt;</span>
2015-01-22 22:05:35 +00:00
<span class="nb">ProxyPass</span> http://127.0.0 ...</pre></div></td></tr></table></div>
</div>
2015-12-10 14:44:33 +00:00
<div class="readmore"><a href="/proxies-with-apache-and-python.html"><i class="fa fa-external-link"></i> Read more...</a></div>
2015-01-22 22:05:35 +00:00
<div class="posthead">
2015-12-08 15:40:50 +00:00
<h2><a href="/publishing-on-pypi.html" class="title">Publishing on PyPi</a></h2>
2015-01-22 22:05:35 +00:00
<span class="date">2014-09-27</span>
2015-12-10 14:44:33 +00:00
<a class="tag" href="/tag/github.html"><span class="label">github</span></a>
<a class="tag" href="/tag/python.html"><span class="label">python</span></a>
<a class="tag" href="/tag/pypi.html"><span class="label">pypi</span></a>
2015-01-22 22:05:35 +00:00
</div>
<div class="excerpt">
<p>Developing a python module and publishing it on Github is cool, but most
of the times you want others to download and use it easily. That is the
role of PyPi, the python package repository. In this post I show you how
to publish your package in less than 10 ...</p>
</div>
2015-12-10 14:44:33 +00:00
<div class="readmore"><a href="/publishing-on-pypi.html"><i class="fa fa-external-link"></i> Read more...</a></div>
2015-01-22 22:05:35 +00:00
<div class="posthead">
<h2><a href="/updating-eurolovemap.html" class="title">Updating EuroLoveMap</a></h2>
<span class="date">2014-03-27</span>
2015-12-10 14:44:33 +00:00
<a class="tag" href="/tag/javascript.html"><span class="label">javascript</span></a>
<a class="tag" href="/tag/python.html"><span class="label">python</span></a>
<a class="tag" href="/tag/heroku.html"><span class="label">heroku</span></a>
2015-01-22 22:05:35 +00:00
</div>
<div class="excerpt">
<p>As part of the <a class="reference external" href="http://www.opener-project.org/2013/07/18/opener-hackathon-in-amsterdam/">OpeNER
hackathon</a>
we decided to build a prototype that would allow us to compare how
different countries feel about several topics. We used the OpeNER
pipeline to get the sentiment from a set of newspaper articles we
gathered from media in several languages. Then we aggregated ...</p>
</div>
2015-12-10 14:44:33 +00:00
<div class="readmore"><a href="/updating-eurolovemap.html"><i class="fa fa-external-link"></i> Read more...</a></div>
2015-01-22 22:05:35 +00:00
<div class="posthead">
<h2><a href="/remove-git-files-with-globbing.html" class="title">Remove git files with globbing</a></h2>
<span class="date">2013-08-22</span>
2015-12-10 14:44:33 +00:00
<a class="tag" href="/tag/git.html"><span class="label">git</span></a>
2015-01-22 22:05:35 +00:00
</div>
<div class="excerpt">
<p>A simple trick. If you want to remove all the '.swp' files from a git
repository, just use:</p>
2016-09-28 18:27:26 +00:00
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1</pre></div></td><td class="code"><div class="highlight"><pre><span></span>git rm --cached <span class="s1">&#39;\*\*.swp&#39;</span>
2015-01-22 22:05:35 +00:00
</pre></div>
</td></tr></table>
</div>
2015-12-10 14:44:33 +00:00
<div class="readmore"><a href="/remove-git-files-with-globbing.html"><i class="fa fa-external-link"></i> Read more...</a></div>
2013-08-22 23:57:31 +00:00
<div class="pagination pag-bottom">
2014-04-09 09:33:38 +00:00
<span class="previouspage" style="display:none;"><i class="icon-chevron-sign-left"></i> Newer Posts</span>
2017-01-07 22:33:42 +00:00
<span class="page_number ">Page 1 of 2</span>
<span class="nextpage"><a href="/page2"> Older Posts </a> <i class="icon-chevron-sign-right"></i></span>
2013-08-22 23:57:31 +00:00
</div>
2015-01-22 22:05:35 +00:00
</div>
<div class="clear"></div>
</div>
<footer role="contentinfo">
<div class="contact">
<p>
J. Fernando Sánchez Rada | balkian
</p>
</div>
<ul id="social">
2015-12-08 16:13:36 +00:00
<li><a href="http://github.com/balkian"><i class="fa fa-github"></i></a></li>
<li><a href="http://bitbucket.com/balkian"><i class="fa fa-bitbucket"></i></a></li>
<li><a href="http://twitter.com/balkian"><i class="fa fa-twitter"></i></a></li>
<li><a href="https://plus.google.com/u/0/111897020957944410316"><i class="fa fa-google-plus"></i></a></li>
<li><a href="http://linkedin.com/in/jfsanchezrada"><i class="fa fa-linkedin"></i></a></li>
<li><a href="http://facebook.com/balkian"><i class="fa fa-facebook"></i></a></li>
2015-01-22 22:05:35 +00:00
</ul>
<p>
2015-12-10 14:44:33 +00:00
<i class="fa fa-creative-commons"></i> Creative Commons A-SA-NC
2015-01-22 22:05:35 +00:00
</p>
</footer>
</div>
<script src="/theme/js/jquery-2.0.2.min.js"></script>
2015-12-08 13:57:44 +00:00
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//piwik.sinpapel.es/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 2]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//piwik.sinpapel.es/piwik.php?idsite=2" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
2015-01-22 22:05:35 +00:00
<!--<script src="/js/bootstrap.min.js"></script>-->
</body>
</html>