Skip to content

Commit

Permalink
Generate Pelican site
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Oct 5, 2017
1 parent 7b8d0e0 commit 938f7d7
Show file tree
Hide file tree
Showing 64 changed files with 8,288 additions and 6,642 deletions.
2 changes: 2 additions & 0 deletions archives.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ <h1>Archives for atodorov.org</h1>
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<dl>
<dt>Thu 05 October 2017</dt>
<dd><a href="http://atodorov.org/blog/2017/10/05/the-arcs-model-of-motivational-design/">The ARCS model of motivational design</a></dd>
<dt>Tue 03 October 2017</dt>
<dd><a href="http://atodorov.org/blog/2017/10/03/storytelling-for-test-professionals/">Storytelling for test professionals</a></dd>
<dt>Mon 02 October 2017</dt>
Expand Down
343 changes: 173 additions & 170 deletions atom.xml

Large diffs are not rendered by default.

363 changes: 183 additions & 180 deletions author/alexander-todorov.html

Large diffs are not rendered by default.

65 changes: 36 additions & 29 deletions author/alexander-todorov10.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,42 @@ <h1>Articles by Alexander Todorov</h1>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="post-preview">
<a href="http://atodorov.org/blog/2013/12/22/django-template-tag-inheritance-howto/" rel="bookmark" title="Permalink to Django Template Tag Inheritance How-to">
<h2 class="post-title">
Django Template Tag Inheritance How-to
</h2>
</a>
<p>While working on open-sourcing <a href="http://www.dif.io">Difio</a> I needed to remove
all hard-coded URL references from the templates. My solution was to essentially
inherit from the standard <code>{% url %}</code> template tag. Here is how to do it.</p>
<h2>Background History</h2>
<p>Difio is not hosted on a single server. Parts of the website are static HTML,
hosted on Amazon S3. Other parts are dynamic - hosted on OpenShift. It's also
possible but not required at the moment to host at various PaaS providers for
redundancy and simple load balancing. </p>
<p>As an easy fix I had hard-coded some URLs to link to the static S3 pages and others
go link to my PaaS provider.</p>
<p>I needed a simple solution which can be extended to allow for multiple domain hosting.</p>
<h2>The Solution</h2>
<p>The solution I came up with is to override the standard <code>{% url %}</code>
tag and use it everywhere in my templates. The new tag will produce absolute URLs containing
the specified protocol plus domain name and view path. For this to work you have to
inherit the standard <code>URLNode</code> class and override the <code>render()</code> method to include the new
values.</p>
<p>You also need to register a tag method to utilize the new class. My approach was to use
the existing <code>url()</code> method to do all background processing and simply casting the result
object to the new class. </p>
<p>All code is available at <a href="https://djangosnippets.org/snippets/3013/">https://djangosnippets.org/snippets/3013/</a>. </p>
<p>To use in your templates simply add</p>
<div class="highlight"><pre>{% load fqdn_url from fqdn_url %}
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">&quot;{% fqdn_url &#39;dashboard&#39; %}&quot;</span><span class="nt">&gt;</span>Dashboard<span class="nt">&lt;/a&gt;</span>
</pre></div>
<p class="post-meta">Posted by
<a href="http://atodorov.org/author/alexander-todorov.html">Alexander Todorov</a>
on Sun 22 December 2013
</p>
<p>There are <a href="http://atodorov.org/blog/2013/12/22/django-template-tag-inheritance-howto/#disqus_thread">comments</a>.</p> </div>
<div class="post-preview">
<a href="http://atodorov.org/blog/2013/12/18/can-i-use-android-phone-as-smart-card-reader/" rel="bookmark" title="Permalink to Can I Use Android Phone as Smart Card Reader">
<h2 class="post-title">
Expand Down Expand Up @@ -1097,35 +1133,6 @@ <h2>ThinkPad Mini Dock Design Flaw</h2>
on Sun 15 September 2013
</p>
<p>There are <a href="http://atodorov.org/blog/2013/09/15/lenovo-rants-battery-and-dock-flaws/#disqus_thread">comments</a>.</p> </div>
<div class="post-preview">
<a href="http://atodorov.org/blog/2013/09/14/upcoming-talk-fedora-test-days-in-sofia/" rel="bookmark" title="Permalink to Upcoming Talk: Fedora Test Days in Sofia">
<h2 class="post-title">
Upcoming Talk: Fedora Test Days in Sofia
</h2>
</a>
<p>On September 28th I will be giving a short talk about
<a href="https://fedoraproject.org/wiki/QA/Test_Days">Fedora Test Days</a> at the regular
Linux for Bulgarians
<a href="http://www.linux-bg.org/cgi-bin/y/index.pl?page=news&amp;key=459487176">conference</a>.
I will explain what these are and how one can participate. I will also announce
my plans and schedule to organize some
<a href="https://fedoraproject.org/wiki/QA/Fedora_20_test_days">Fedora 20 test days</a>
locally in Sofia. If you are a fan of Fedora and want to file bugs and kick
some developers' ass this is the way to do it!</p>
<p>Other talks include Alexander Shopov's „Oracle's take on NoSQL“ which I wanted
to hear since this summer and TBA talks about MicroTik routers.</p>
<p>The conference will take place on September 28th at the French Institute at
Sofia University
(see <a href="http://conf.linux-bg.org/wp-content/uploads/2009/12/su-2.png">map</a>).
It starts at 13:00 and my talk should be at the beginning. See you there!</p>
<p>PS: this post was initially written on my <a href="http://amzn.to/12y4ewJ">BlackBerry Z10</a>
with Penzus Editor - another small step in
<a href="/blog/2013/08/01/laptop-vs-smartphone-part-one/">retiring my laptop</a>.</p>
<p class="post-meta">Posted by
<a href="http://atodorov.org/author/alexander-todorov.html">Alexander Todorov</a>
on Sat 14 September 2013
</p>
<p>There are <a href="http://atodorov.org/blog/2013/09/14/upcoming-talk-fedora-test-days-in-sofia/#disqus_thread">comments</a>.</p> </div>

<hr>
<!-- Pager -->
Expand Down
56 changes: 29 additions & 27 deletions author/alexander-todorov11.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,35 @@ <h1>Articles by Alexander Todorov</h1>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="post-preview">
<a href="http://atodorov.org/blog/2013/09/14/upcoming-talk-fedora-test-days-in-sofia/" rel="bookmark" title="Permalink to Upcoming Talk: Fedora Test Days in Sofia">
<h2 class="post-title">
Upcoming Talk: Fedora Test Days in Sofia
</h2>
</a>
<p>On September 28th I will be giving a short talk about
<a href="https://fedoraproject.org/wiki/QA/Test_Days">Fedora Test Days</a> at the regular
Linux for Bulgarians
<a href="http://www.linux-bg.org/cgi-bin/y/index.pl?page=news&amp;key=459487176">conference</a>.
I will explain what these are and how one can participate. I will also announce
my plans and schedule to organize some
<a href="https://fedoraproject.org/wiki/QA/Fedora_20_test_days">Fedora 20 test days</a>
locally in Sofia. If you are a fan of Fedora and want to file bugs and kick
some developers' ass this is the way to do it!</p>
<p>Other talks include Alexander Shopov's „Oracle's take on NoSQL“ which I wanted
to hear since this summer and TBA talks about MicroTik routers.</p>
<p>The conference will take place on September 28th at the French Institute at
Sofia University
(see <a href="http://conf.linux-bg.org/wp-content/uploads/2009/12/su-2.png">map</a>).
It starts at 13:00 and my talk should be at the beginning. See you there!</p>
<p>PS: this post was initially written on my <a href="http://amzn.to/12y4ewJ">BlackBerry Z10</a>
with Penzus Editor - another small step in
<a href="/blog/2013/08/01/laptop-vs-smartphone-part-one/">retiring my laptop</a>.</p>
<p class="post-meta">Posted by
<a href="http://atodorov.org/author/alexander-todorov.html">Alexander Todorov</a>
on Sat 14 September 2013
</p>
<p>There are <a href="http://atodorov.org/blog/2013/09/14/upcoming-talk-fedora-test-days-in-sofia/#disqus_thread">comments</a>.</p> </div>
<div class="post-preview">
<a href="http://atodorov.org/blog/2013/09/02/bug-analysis-of-rhbz-1337/" rel="bookmark" title="Permalink to Bug Analysis Of RHBZ #1337">
<h2 class="post-title">
Expand Down Expand Up @@ -1190,33 +1219,6 @@ <h2 class="post-title">
on Fri 19 July 2013
</p>
<p>There are <a href="http://atodorov.org/blog/2013/07/19/ssh-from-linux-to-blackberry-z10/#disqus_thread">comments</a>.</p> </div>
<div class="post-preview">
<a href="http://atodorov.org/blog/2013/07/18/git-history-stats-and-project-cost-estimation/" rel="bookmark" title="Permalink to git History Stats and Project Cost Estimation">
<h2 class="post-title">
git History Stats and Project Cost Estimation
</h2>
</a>
<p>How do you generate useful stats from a git repo? In particular how do you
calculate the monetary cost of development effort behind that git repo?
I've found the <a href="https://github.com/hoxu/gitstats">gitstats</a> project which
helped me answer the above question. </p>
<p>Git clone the repo and make sure you
have Python and Gnuplot installed. <code>gitstat</code> will generate html files and
graphics from your git history. </p>
<p>In my case I only needed to know how long it took for a project to be developed.
It turned out that around 56% of the days since day one were active and there were
an average of 8,5 commits per active day in the repo.</p>
<p>I took the number of active days and multiplied by an average daily
wage to come up with a real number. This is what I consider to be the cost to
develop the software from scratch. This is overly simplified, but serves my
needs to establish some base line.</p>
<p>There's the <a href="https://en.wikipedia.org/wiki/COCOMO">COCOMO</a> method which is probably
more accurate but I didn't find any usable online COCOMO calculator.</p>
<p class="post-meta">Posted by
<a href="http://atodorov.org/author/alexander-todorov.html">Alexander Todorov</a>
on Thu 18 July 2013
</p>
<p>There are <a href="http://atodorov.org/blog/2013/07/18/git-history-stats-and-project-cost-estimation/#disqus_thread">comments</a>.</p> </div>

<hr>
<!-- Pager -->
Expand Down
63 changes: 27 additions & 36 deletions author/alexander-todorov12.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,33 @@ <h1>Articles by Alexander Todorov</h1>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="post-preview">
<a href="http://atodorov.org/blog/2013/07/18/git-history-stats-and-project-cost-estimation/" rel="bookmark" title="Permalink to git History Stats and Project Cost Estimation">
<h2 class="post-title">
git History Stats and Project Cost Estimation
</h2>
</a>
<p>How do you generate useful stats from a git repo? In particular how do you
calculate the monetary cost of development effort behind that git repo?
I've found the <a href="https://github.com/hoxu/gitstats">gitstats</a> project which
helped me answer the above question. </p>
<p>Git clone the repo and make sure you
have Python and Gnuplot installed. <code>gitstat</code> will generate html files and
graphics from your git history. </p>
<p>In my case I only needed to know how long it took for a project to be developed.
It turned out that around 56% of the days since day one were active and there were
an average of 8,5 commits per active day in the repo.</p>
<p>I took the number of active days and multiplied by an average daily
wage to come up with a real number. This is what I consider to be the cost to
develop the software from scratch. This is overly simplified, but serves my
needs to establish some base line.</p>
<p>There's the <a href="https://en.wikipedia.org/wiki/COCOMO">COCOMO</a> method which is probably
more accurate but I didn't find any usable online COCOMO calculator.</p>
<p class="post-meta">Posted by
<a href="http://atodorov.org/author/alexander-todorov.html">Alexander Todorov</a>
on Thu 18 July 2013
</p>
<p>There are <a href="http://atodorov.org/blog/2013/07/18/git-history-stats-and-project-cost-estimation/#disqus_thread">comments</a>.</p> </div>
<div class="post-preview">
<a href="http://atodorov.org/blog/2013/07/17/exploring-blackberry-10-nmap/" rel="bookmark" title="Permalink to Exploring BlackBerry 10 - nmap">
<h2 class="post-title">
Expand Down Expand Up @@ -1317,42 +1344,6 @@ <h2>The Alternative</h2>
on Thu 30 May 2013
</p>
<p>There are <a href="http://atodorov.org/blog/2013/05/30/why-vmware-multi-hypervisor-manager-architecture-is-wrong/#disqus_thread">comments</a>.</p> </div>
<div class="post-preview">
<a href="http://atodorov.org/blog/2013/05/30/configuring-anonymous-ftp-uploads-on-red-hat-enterprise-linux-6/" rel="bookmark" title="Permalink to Configuring Anonymous FTP Uploads On Red Hat Enterprise Linux 6">
<h2 class="post-title">
Configuring Anonymous FTP Uploads On Red Hat Enterprise Linux 6
</h2>
</a>
<p>Install related packages and make configuration changes:</p>
<div class="highlight"><pre>yum -y install vsftp policycoreutils-python
sed -i &quot;s/#anon_upload_enable=YES/anon_upload_enable=YES/&quot; /etc/vsftpd/vsftpd.conf
</pre></div>


<p>Configure writable directory for uploads:</p>
<div class="highlight"><pre>mkdir /var/ftp/pub/upload
chgrp ftp /var/ftp/pub/upload
chmod 730 /var/ftp/pub/upload
</pre></div>


<p>Configure SELinux - this is <strong><a href="https://bugzilla.redhat.com/show_bug.cgi?id=968935">MISSING</a></strong>
from Red Hat's official docs:</p>
<div class="highlight"><pre>setsebool -P allow_ftpd_anon_write=1
semanage fcontext -a -t public_content_rw_t &#39;/var/ftp/pub/upload(/.*)&#39;
chcon -t public_content_rw_t /var/ftp/pub/upload
</pre></div>


<p>Start the service:</p>
<div class="highlight"><pre>chkconfig vsftpd on
service vsftpd start
</pre></div>
<p class="post-meta">Posted by
<a href="http://atodorov.org/author/alexander-todorov.html">Alexander Todorov</a>
on Thu 30 May 2013
</p>
<p>There are <a href="http://atodorov.org/blog/2013/05/30/configuring-anonymous-ftp-uploads-on-red-hat-enterprise-linux-6/#disqus_thread">comments</a>.</p> </div>

<hr>
<!-- Pager -->
Expand Down
57 changes: 36 additions & 21 deletions author/alexander-todorov13.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,42 @@ <h1>Articles by Alexander Todorov</h1>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="post-preview">
<a href="http://atodorov.org/blog/2013/05/30/configuring-anonymous-ftp-uploads-on-red-hat-enterprise-linux-6/" rel="bookmark" title="Permalink to Configuring Anonymous FTP Uploads On Red Hat Enterprise Linux 6">
<h2 class="post-title">
Configuring Anonymous FTP Uploads On Red Hat Enterprise Linux 6
</h2>
</a>
<p>Install related packages and make configuration changes:</p>
<div class="highlight"><pre>yum -y install vsftp policycoreutils-python
sed -i &quot;s/#anon_upload_enable=YES/anon_upload_enable=YES/&quot; /etc/vsftpd/vsftpd.conf
</pre></div>


<p>Configure writable directory for uploads:</p>
<div class="highlight"><pre>mkdir /var/ftp/pub/upload
chgrp ftp /var/ftp/pub/upload
chmod 730 /var/ftp/pub/upload
</pre></div>


<p>Configure SELinux - this is <strong><a href="https://bugzilla.redhat.com/show_bug.cgi?id=968935">MISSING</a></strong>
from Red Hat's official docs:</p>
<div class="highlight"><pre>setsebool -P allow_ftpd_anon_write=1
semanage fcontext -a -t public_content_rw_t &#39;/var/ftp/pub/upload(/.*)&#39;
chcon -t public_content_rw_t /var/ftp/pub/upload
</pre></div>


<p>Start the service:</p>
<div class="highlight"><pre>chkconfig vsftpd on
service vsftpd start
</pre></div>
<p class="post-meta">Posted by
<a href="http://atodorov.org/author/alexander-todorov.html">Alexander Todorov</a>
on Thu 30 May 2013
</p>
<p>There are <a href="http://atodorov.org/blog/2013/05/30/configuring-anonymous-ftp-uploads-on-red-hat-enterprise-linux-6/#disqus_thread">comments</a>.</p> </div>
<div class="post-preview">
<a href="http://atodorov.org/blog/2013/05/27/it-jobs-prediction-quality-engineering-devops-augmented-reality/" rel="bookmark" title="Permalink to IT Jobs Prediction: Quality Engineering, DevOps, Augmented Reality">
<h2 class="post-title">
Expand Down Expand Up @@ -1305,27 +1341,6 @@ <h2>Steps To Reproduce</h2>
on Fri 29 March 2013
</p>
<p>There are <a href="http://atodorov.org/blog/2013/03/29/bug-in-the-fridge/#disqus_thread">comments</a>.</p> </div>
<div class="post-preview">
<a href="http://atodorov.org/blog/2013/03/27/what-runs-your-startup/" rel="bookmark" title="Permalink to What Runs Your Start-up">
<h2 class="post-title">
What Runs Your Start-up
</h2>
</a>
<p>I am starting a new section called
<a href="/blog/categories/what-runs/">What Runs Your Start-up</a> where I will
write about the technologies running behind some interesting
start-up companies and why they made their technological choices.
The articles will be short and to the point. Interested readers
can engage in discussion with start-up owners in the comments later.</p>
<p>I am starting with a dozen companies from the Bulgarian start-up eco-system
and will present one or two start-ups per week.
If you'd like to read about a company which is not listed here or want to
promote your own just let me know.</p>
<p class="post-meta">Posted by
<a href="http://atodorov.org/author/alexander-todorov.html">Alexander Todorov</a>
on Wed 27 March 2013
</p>
<p>There are <a href="http://atodorov.org/blog/2013/03/27/what-runs-your-startup/#disqus_thread">comments</a>.</p> </div>

<hr>
<!-- Pager -->
Expand Down
Loading

0 comments on commit 938f7d7

Please sign in to comment.