mirror of
https://github.com/balkian/balkian.github.com.git
synced 2024-12-26 02:08:13 +00:00
122 lines
7.6 KiB
XML
122 lines
7.6 KiB
XML
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
|
<channel>
|
|
<title>Posts on Balkian's site</title>
|
|
<link>/post/</link>
|
|
<description>Recent content in Posts on Balkian's site</description>
|
|
<generator>Hugo -- gohugo.io</generator>
|
|
<language>en-us</language>
|
|
<copyright>This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.</copyright>
|
|
<lastBuildDate>Sun, 06 Jan 2019 10:00:00 +0000</lastBuildDate>
|
|
|
|
<atom:link href="/post/index.xml" rel="self" type="application/rss+xml" />
|
|
|
|
|
|
<item>
|
|
<title>Controlling Zigbee devices with MQTT</title>
|
|
<link>/post/2019-01-06-zigbee2mqtt/</link>
|
|
<pubDate>Sun, 06 Jan 2019 10:00:00 +0000</pubDate>
|
|
|
|
<guid>/post/2019-01-06-zigbee2mqtt/</guid>
|
|
<description>This is a short tutorial on connecting a zigbee device (an Aqara cube) to an MQTT server, so you can control your zigbee devices from the network.
|
|
If you&rsquo;re anything like me, you&rsquo;re probably a sucker for IoT devices. For a long time, I&rsquo;ve been using WiFi-enabled lights, and Amazon dash buttons to control them.</description>
|
|
</item>
|
|
|
|
<item>
|
|
<title>Progress bars in python</title>
|
|
<link>/post/2016-09-28-tqdm/</link>
|
|
<pubDate>Wed, 28 Sep 2016 18:47:00 +0000</pubDate>
|
|
|
|
<guid>/post/2016-09-28-tqdm/</guid>
|
|
<description>tqdm is a nice way to add progress bars in the command line or in a jupyter notebook.
|
|
1 2 3 4 5 from tqdm import tqdm import time for i in tqdm(range(100)): time.sleep(1) </description>
|
|
</item>
|
|
|
|
<item>
|
|
<title>Sharing dotfiles</title>
|
|
<link>/post/2015-04-10-github-dotfiles/</link>
|
|
<pubDate>Fri, 10 Apr 2015 17:47:00 +0000</pubDate>
|
|
|
|
<guid>/post/2015-04-10-github-dotfiles/</guid>
|
|
<description>Today&rsquo;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.
|
|
As part of moving to emacs, I starting using the incredibly useful gh.el. When you first use it, the extension saves either your password or an OAuth token in your .</description>
|
|
</item>
|
|
|
|
<item>
|
|
<title>Zotero</title>
|
|
<link>/post/2014-12-09-zotero/</link>
|
|
<pubDate>Tue, 09 Dec 2014 12:12:12 +0000</pubDate>
|
|
|
|
<guid>/post/2014-12-09-zotero/</guid>
|
|
<description>Zotero is an Open Source tool that lets you organise your bibliography, syncing it with the cloud. Unlike other alternatives such as Mendeley, Zotero can upload the attachments and data to a private cloud via WebDav.
|
|
If you use nginx as your web server, know that even though it provides partial support for webdav, Zotero needs more than that.</description>
|
|
</item>
|
|
|
|
<item>
|
|
<title>Proxies with Apache and python</title>
|
|
<link>/post/2014-10-09-proxies/</link>
|
|
<pubDate>Thu, 09 Oct 2014 10:00:00 +0000</pubDate>
|
|
|
|
<guid>/post/2014-10-09-proxies/</guid>
|
|
<description><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>
|
|
|
|
<h2 id="gunicorn">Gunicorn</h2>
|
|
<div class="highlight"><div style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
|
|
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
|
|
<pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-apache" data-lang="apache"><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7c7c79">1
|
|
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7c7c79">2
|
|
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7c7c79">3
|
|
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7c7c79">4
|
|
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7c7c79">5
|
|
</span></code></pre></td>
|
|
<td style="vertical-align:top;padding:0;margin:0;border:0;">
|
|
<pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-apache" data-lang="apache"><span style="color:#f92672">&lt;Location</span> <span style="color:#e6db74">/myapp/</span><span style="color:#f92672">&gt;</span>
|
|
ProxyPass http://127.0.0.1:8888/myapp/
|
|
ProxyPassReverse http://127.0.0.1:8888/myapp/
|
|
RequestHeader set SCRIPT_NAME <span style="color:#e6db74">&#34;/myapp/&#34;</span>
|
|
<span style="color:#f92672">&lt;/Location&gt;</span></code></pre></td></tr></table>
|
|
</div>
|
|
</div></description>
|
|
</item>
|
|
|
|
<item>
|
|
<title>Publishing on PyPi</title>
|
|
<link>/post/2014-09-23-publishing-to-pypi/</link>
|
|
<pubDate>Sat, 27 Sep 2014 10:00:00 +0000</pubDate>
|
|
|
|
<guid>/post/2014-09-23-publishing-to-pypi/</guid>
|
|
<description>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 minutes.</description>
|
|
</item>
|
|
|
|
<item>
|
|
<title>Updating EuroLoveMap</title>
|
|
<link>/post/2014-03-27-updating-eurolovemap/</link>
|
|
<pubDate>Thu, 27 Mar 2014 14:00:00 +0000</pubDate>
|
|
|
|
<guid>/post/2014-03-27-updating-eurolovemap/</guid>
|
|
<description>As part of the OpeNER hackathon 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 those articles by category and country (using the source of the article or the language it was written in), obtaining the &ldquo;overall feeling&rdquo; of each country about each topic.</description>
|
|
</item>
|
|
|
|
<item>
|
|
<title>Remove git files with globbing</title>
|
|
<link>/post/2013-08-22-remove-git-files-with-globbing/</link>
|
|
<pubDate>Thu, 22 Aug 2013 23:14:00 +0000</pubDate>
|
|
|
|
<guid>/post/2013-08-22-remove-git-files-with-globbing/</guid>
|
|
<description>A simple trick. If you want to remove all the &lsquo;.swp&rsquo; files from a git repository, just use:
|
|
1 git rm --cached &#39;**.swp&#39; </description>
|
|
</item>
|
|
|
|
<item>
|
|
<title>Creating my web</title>
|
|
<link>/post/2013-08-17-creating-my-web/</link>
|
|
<pubDate>Thu, 22 Aug 2013 14:14:22 +0000</pubDate>
|
|
|
|
<guid>/post/2013-08-17-creating-my-web/</guid>
|
|
<description>I&rsquo;ve finally 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 repository and having someone else host and deploy it for me. The site will be really simple, mostly static files. Thanks to Github, Jekyll will automatically generate static pages for my posts every time I commit anything new to this repository.</description>
|
|
</item>
|
|
|
|
</channel>
|
|
</rss> |