<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Hi, I’m Tim Akinbo and this is my tumblelog.


	




var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

var pageTracker = _gat._getTracker("UA-126343-7");
pageTracker._trackPageview();
</description><title>Tim Akinbo's Tumblelog</title><generator>Tumblr (3.0; @takinbo)</generator><link>http://tumblr.timakinbo.com/</link><item><title>url shortening, an approach</title><description>&lt;p&gt;After reading &lt;a href="http://stackoverflow.com/questions/742013/how-to-code-a-url-shortener/742047#742047"&gt;this comment&lt;/a&gt; on Stackoverflow on how to write a url shortener, I wrote a &lt;a href="https://gist.github.com/1864861"&gt;python implementation&lt;/a&gt; of the algorithm and also chipped in a module to do the inverse conversion. The comment clearly describes the theory behind this approach.&lt;/p&gt;</description><link>http://tumblr.timakinbo.com/post/17891876348</link><guid>http://tumblr.timakinbo.com/post/17891876348</guid><pubDate>Sun, 19 Feb 2012 18:59:00 +0100</pubDate><category>programming</category><category>python</category></item><item><title>Transactions on InnoDB » Blog Archive » NoSQL to InnoDB with Memcached</title><description>&lt;a href="http://blogs.innodb.com/wp/2011/04/nosql-to-innodb-with-memcached/"&gt;Transactions on InnoDB » Blog Archive » NoSQL to InnoDB with Memcached&lt;/a&gt;: &lt;p&gt;Now MySQL also has a memcached interface.&lt;/p&gt;</description><link>http://tumblr.timakinbo.com/post/8038089615</link><guid>http://tumblr.timakinbo.com/post/8038089615</guid><pubDate>Mon, 25 Jul 2011 10:39:33 +0100</pubDate></item><item><title>Yoshinori Matsunobu's blog: Using MySQL as a NoSQL - A story for exceeding 750,000 qps on a commodity server</title><description>&lt;a href="http://yoshinorimatsunobu.blogspot.com/2010/10/using-mysql-as-nosql-story-for.html"&gt;Yoshinori Matsunobu's blog: Using MySQL as a NoSQL - A story for exceeding 750,000 qps on a commodity server&lt;/a&gt;: &lt;p&gt;Interesting approach to getting higher qps from MySQL databases.&lt;/p&gt;</description><link>http://tumblr.timakinbo.com/post/8038076080</link><guid>http://tumblr.timakinbo.com/post/8038076080</guid><pubDate>Mon, 25 Jul 2011 10:38:39 +0100</pubDate></item><item><title>MySQL-proxy and Unicode</title><description>&lt;p&gt;MySQL-proxy doesn&amp;#8217;t seem to be able to connect to MySQL servers and use the utf-8 encoding. In order to ensure that the character set is always utf-8, you need to add the following lines to every MySQL server in your setup within the [mysqld] section.
&lt;br/&gt;&lt;br/&gt;&lt;em&gt;skip-character-set-client-handshake
&lt;/em&gt;&lt;br/&gt;&lt;em&gt;init-connect=&amp;#8217;SET NAMES utf8&amp;#8217;
&lt;/em&gt;&lt;br/&gt;&lt;em&gt;default-character-set=utf8&amp;#160;&lt;/em&gt;&lt;br/&gt;&lt;/p&gt;</description><link>http://tumblr.timakinbo.com/post/4891924774</link><guid>http://tumblr.timakinbo.com/post/4891924774</guid><pubDate>Sun, 24 Apr 2011 10:18:22 +0100</pubDate><category>mysql</category></item><item><title>UnicodeErrors in Django</title><description>&lt;p&gt;There are times when in your Django application, displaying unicode strings can throw an except similar to:
&lt;br/&gt;&lt;br/&gt;&lt;em&gt;UnicodeDecodeError at /contact/export
&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;&lt;em&gt;&amp;#8216;utf8&amp;#8217; codec can&amp;#8217;t decode byte 0x92 in position 2: unexpected code byte
&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;I&amp;#8217;ve discovered that this might be due to a LOCALE setting that doesn&amp;#8217;t support those unicode characters. To solve this problem, you have to change your LOCALE to something like UTF-8 that supports unicode characters.
&lt;br/&gt;&lt;br/&gt;From your shell, simply type:
&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;update-locale LANG=en_US.UTF-8&lt;/strong&gt;&lt;br/&gt;&lt;/p&gt;</description><link>http://tumblr.timakinbo.com/post/4890930519</link><guid>http://tumblr.timakinbo.com/post/4890930519</guid><pubDate>Sun, 24 Apr 2011 08:50:13 +0100</pubDate></item><item><title>The shortest way to install xdebug on Mac OS X</title><description>&lt;p&gt;&lt;strong&gt;brew install xdebug
&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;Then follow the instruction on how to enable it in php.ini&lt;br/&gt;&lt;/p&gt;</description><link>http://tumblr.timakinbo.com/post/3880186541</link><guid>http://tumblr.timakinbo.com/post/3880186541</guid><pubDate>Tue, 15 Mar 2011 23:13:21 +0100</pubDate><category>php</category></item><item><title>django flatpages and DEBUG = False</title><description>&lt;p&gt;You&amp;#8217;ll likely get a 500 error if you do this, you&amp;#8217;ll need to create your 404.html and optionally 500.html templates to get this to work.&lt;/p&gt;</description><link>http://tumblr.timakinbo.com/post/3720376965</link><guid>http://tumblr.timakinbo.com/post/3720376965</guid><pubDate>Tue, 08 Mar 2011 11:32:32 +0100</pubDate></item><item><title>Python Generators [PDF]</title><description>&lt;a href="http://www.dabeaz.com/generators/Generators.pdf"&gt;Python Generators [PDF]&lt;/a&gt;</description><link>http://tumblr.timakinbo.com/post/2982692356</link><guid>http://tumblr.timakinbo.com/post/2982692356</guid><pubDate>Sat, 29 Jan 2011 00:21:25 +0100</pubDate></item><item><title>Django model versioning</title><description>&lt;p&gt;I just learned about model versioning today. With model versioning, you can maintain history of all modifications made to your models (creation, deletion and updates) and have the ability to roll back (if necessary) those actions.&lt;/p&gt;
&lt;p&gt;You can find a list of projects offering model versioning here: &lt;a href="http://djangopackages.com/grids/g/versioning/"&gt;http://djangopackages.com/grids/g/versioning/&lt;/a&gt;&lt;/p&gt;</description><link>http://tumblr.timakinbo.com/post/2978510683</link><guid>http://tumblr.timakinbo.com/post/2978510683</guid><pubDate>Fri, 28 Jan 2011 19:37:11 +0100</pubDate></item><item><title>Creating filtered Django fixtures</title><description>&lt;p&gt;If you ever find yourself needing to create django fixtures from a select records in your database, here are steps that can help.&lt;/p&gt;
&lt;p&gt;For the model you intend to export, you&amp;#8217;ll need to modify your default object manager. I&amp;#8217;ve include a snippet below showing an object manager with a modified get_query_set method:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt; class LocationManager(models.Manager):&lt;br/&gt;      def get_query_set(self):&lt;br/&gt;          return super(LocationManager, self).get_query_set().filter(type__name=&amp;#8221;Registration Center&amp;#8221;)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Next, set your default object manager to this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;class Location(models.Model):&lt;br/&gt;&amp;#8230;&lt;br/&gt;    objects = LocationManager()&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Now you can do a ./manage.py dumpdata locations.Location and your generated fixture will be filtered based on your modified get_query_set.&lt;/p&gt;</description><link>http://tumblr.timakinbo.com/post/2974849088</link><guid>http://tumblr.timakinbo.com/post/2974849088</guid><pubDate>Fri, 28 Jan 2011 12:27:17 +0100</pubDate></item><item><title>How to detach a directory in a git repository to another repository and maintain it's related history</title><description>&lt;a href="http://stackoverflow.com/questions/359424/detach-subdirectory-into-separate-git-repository"&gt;How to detach a directory in a git repository to another repository and maintain it's related history&lt;/a&gt;: &lt;p&gt;If you’ve ever worked on a git repository that was growing large and need to split some of the functionality into separate modules or repositories, this stackoverflow question and the corresponding answers, describes how to.&lt;/p&gt;</description><link>http://tumblr.timakinbo.com/post/2926514425</link><guid>http://tumblr.timakinbo.com/post/2926514425</guid><pubDate>Tue, 25 Jan 2011 18:44:39 +0100</pubDate></item><item><title>Why Is Eric Schmidt Stepping Down at Google?</title><description>&lt;a href="http://www.newyorker.com/online/blogs/newsdesk/2011/01/eric-schmidt-google.html?mbid=social_twitter"&gt;Why Is Eric Schmidt Stepping Down at Google?&lt;/a&gt;: &lt;p&gt;It will be interesting to see how Larry transposes in the coming events.&lt;/p&gt;</description><link>http://tumblr.timakinbo.com/post/2870979573</link><guid>http://tumblr.timakinbo.com/post/2870979573</guid><pubDate>Sat, 22 Jan 2011 09:47:19 +0100</pubDate></item><item><title>sed</title><description>&lt;p&gt;It&amp;#8217;s rather interesting that if I wanted to extract the first number from the following line:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;  2609  13541&amp;#160;186371 file.csv&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Which generated by the command &lt;em&gt;&lt;strong&gt;wc&lt;/strong&gt;&lt;/em&gt; and has a variable number of whitespace before the first figure&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;If I were using a combination of wc, sed and cut, I have to use the following:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;wc file.csv | sed -e &amp;#8216;s/[ ][ ]*/:/g&amp;#8217; | cut -d &amp;#8220;:&amp;#8221; -f 2&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;instead of just&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;wc file.csv | sed -e &amp;#8216;s/\s+/:/g&amp;#8217; | cut -d &amp;#8220;:&amp;#8221; -f 2&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://tumblr.timakinbo.com/post/2712658547</link><guid>http://tumblr.timakinbo.com/post/2712658547</guid><pubDate>Wed, 12 Jan 2011 14:18:33 +0100</pubDate></item><item><title>apt woes</title><description>&lt;p&gt;If you&amp;#8217;re trying to install a package using the apt package management tools and you are getting errors of this kind:&lt;/p&gt;
&lt;p&gt;&lt;b&gt;dpkg (subprocess): unable to execute post-removal script: Permission denied&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Then you should check the mount options for your /var partition. Ensure that you do not have the noexec option set (at least for the duration of the install).&lt;/p&gt;</description><link>http://tumblr.timakinbo.com/post/385231115</link><guid>http://tumblr.timakinbo.com/post/385231115</guid><pubDate>Fri, 12 Feb 2010 09:31:49 +0100</pubDate></item><item><title>Fix for Munin MySQL Monitoring Plugin Graph Not Showing or Blank » My Digital Life</title><description>&lt;a href="http://www.mydigitallife.info/2007/08/25/fix-for-munin-mysql-monitoring-plugin-graph-not-showing-or-blank/"&gt;Fix for Munin MySQL Monitoring Plugin Graph Not Showing or Blank » My Digital Life&lt;/a&gt;</description><link>http://tumblr.timakinbo.com/post/114753770</link><guid>http://tumblr.timakinbo.com/post/114753770</guid><pubDate>Fri, 29 May 2009 10:13:59 +0100</pubDate></item><item><title>Field Notes: Inside an Integrated Communications Agency - Making Django Environmentally Friendly</title><description>&lt;a href="http://blog.capstrat.com/articles/making-django-environmentally-friendly/"&gt;Field Notes: Inside an Integrated Communications Agency - Making Django Environmentally Friendly&lt;/a&gt;: &lt;p&gt;This really comes in handy when dealing with standalone Python scripts that need to use Django features (especially Models).&lt;/p&gt;</description><link>http://tumblr.timakinbo.com/post/111825348</link><guid>http://tumblr.timakinbo.com/post/111825348</guid><pubDate>Sat, 23 May 2009 09:25:56 +0100</pubDate></item><item><title>Getting Google to promote your project</title><description>&lt;p&gt;I was wondering how &lt;a target="_blank" href="http://www.earthhour.org/"&gt;Earth Hour&lt;/a&gt; got Google to promote their event and I saw this. I think it might be useful for someone out there.&lt;/p&gt;
&lt;blockquote&gt;&lt;b&gt;How can I get Google to do something similar for my organization or project?&lt;/b&gt; We welcome your ideas on how we can become more socially and environmentally responsible. Although we can&amp;#8217;t guarantee either a placement on the Google homepage or even a response to every query, we do read every email we receive and welcome your ideas of organizations that you believe we should feature. If you&amp;#8217;d like to submit a proposal, please send it to us at &lt;i&gt;&lt;b&gt;proposals@google.com&lt;/b&gt;&lt;/i&gt;.&lt;/blockquote&gt;</description><link>http://tumblr.timakinbo.com/post/90722028</link><guid>http://tumblr.timakinbo.com/post/90722028</guid><pubDate>Sat, 28 Mar 2009 21:40:31 +0100</pubDate></item><item><title>sirjohn.co.uk » Blog Archive » Installing SSL certificates on Nokia S60 devices</title><description>&lt;a href="http://www.sirjohn.co.uk/blog/archives/2008/06/21/installing-ssl-certificates-on-nokia-s60-devices/"&gt;sirjohn.co.uk » Blog Archive » Installing SSL certificates on Nokia S60 devices&lt;/a&gt;</description><link>http://tumblr.timakinbo.com/post/89487705</link><guid>http://tumblr.timakinbo.com/post/89487705</guid><pubDate>Tue, 24 Mar 2009 23:16:53 +0100</pubDate></item><item><title>The four stages of programming competence « Devthought</title><description>&lt;a href="http://devthought.com/blog/general/2009/02/the-four-stages-of-programming-competence/#top"&gt;The four stages of programming competence « Devthought&lt;/a&gt;: &lt;p&gt;So what level of competence are you at?&lt;/p&gt;</description><link>http://tumblr.timakinbo.com/post/88814424</link><guid>http://tumblr.timakinbo.com/post/88814424</guid><pubDate>Sun, 22 Mar 2009 21:16:38 +0100</pubDate></item><item><title>agile approach | HOWTO: Install PECL APC Cache on CentOS (without XAMPP)</title><description>&lt;a href="http://www.agileapproach.com/blog-entry/howto-install-pecl-apc-cache-centos-without-xampp"&gt;agile approach | HOWTO: Install PECL APC Cache on CentOS (without XAMPP)&lt;/a&gt;: &lt;p&gt;In case you ever find yourself running out of memory when you need to install a PEAR package or PECL extension.&lt;/p&gt;</description><link>http://tumblr.timakinbo.com/post/86487063</link><guid>http://tumblr.timakinbo.com/post/86487063</guid><pubDate>Sat, 14 Mar 2009 22:19:34 +0100</pubDate></item></channel></rss>

