<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>blog.padowi.se</title>
	<atom:link href="http://blog.padowi.se/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.padowi.se</link>
	<description>Software engineer(d) by education, hacker by heart</description>
	<lastBuildDate>Sun, 06 May 2012 10:00:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/se/</creativeCommons:license>		<item>
		<title>2012w18</title>
		<link>http://blog.padowi.se/2012/05/06/2012w18/</link>
		<comments>http://blog.padowi.se/2012/05/06/2012w18/#comments</comments>
		<pubDate>Sun, 06 May 2012 10:00:49 +0000</pubDate>
		<dc:creator>Patrik</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Society]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[cut]]></category>
		<category><![CDATA[fuse]]></category>
		<category><![CDATA[genetic algorithm]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[incron]]></category>
		<category><![CDATA[rev]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[submodule]]></category>
		<category><![CDATA[surveillance]]></category>
		<category><![CDATA[unison]]></category>

		<guid isPermaLink="false">http://blog.padowi.se/?p=1274</guid>
		<description><![CDATA[The scripty stuff This week I finally managed to crack a problem I&#8217;d been trying to solve for a couple of weeks, namely how to only print the foobar errors, and the ensuing stack trace of these errors from a logfile: awk 'BEGIN { section = 0 } /foobar/ { section = 1; print; next [...]]]></description>
			<content:encoded><![CDATA[<h2>The scripty stuff</h2>
<p>This week I finally managed to crack a problem I&#8217;d been trying to solve for a couple of weeks, namely how to only print the <em>foobar</em> errors, and the ensuing stack trace of these errors from a logfile:</p>
<pre><code>awk 'BEGIN { section = 0 } /foobar/ { section = 1; print; next } /^[A-Z]/ &amp;&amp; section == 1 { section = 0; next } section == 1 { print; next }' logfile </code></pre>
<p>Looking at the solution, I am kindof ashamed that it took me that long to get a workable solution&#8230;</p>
<p>I also found this neat little oneliner in a comment on reddit: <code>echo "something long and space separated of which you want the last word" | rev | cut -d ' ' -f 1 | rev</code>. Then again, I&#8217;m sure that <em>awk</em> could have done this with a little $(NF-1) magic or something like that.</p>
<h2>The headache-inducing stuff</h2>
<p>All since my netbook broke down, I&#8217;ve thought about two things: restoring the netbook/replacing it, and how to create some form of backup infrastructure which should be better than what I have in place today.</p>
<p>As for the backups, the <em>&#8220;system&#8221;</em> I have today is couple of USB-disks which I at times plug in and sync files to. That and most of my projects and config-files are in various git repositories all synced to the <em>laptop/server-in-the-wardrobe</em> which I made sure to backup after the netbook died, especially since the laptop/server disk is much older than the netbook disk was.</p>
<p>Another thing which bothers me with the current solution is that I have no off-site storage. And that would be nice to have. Belt AND suspenders of course, and off-site storage comes with its own set of problems such as trust in the offsite storage maintainer.</p>
<p>I think the solution will take the shape of a GNU+Linux box and <a href="http://www.cis.upenn.edu/%7Ebcpierce/unison/download/releases/stable/unison-manual.html#prelim">Unison</a> and possibly aided by <a href="http://www.cyberciti.biz/faq/unison-file-synchronizer-tool/">incron</a>. Not sure yet, will have to think more about it.</p>
<p>There are some other requirements which I have just barely scratched the surface of or not even begun thinking about yet, for instance it would be nice to be able to backup my parents stuff as well on a regular basis as to keep their stuff safer as well.</p>
<p>And as for the netbook, although it was a nice little machine, the keyboard was getting a bit worn out, and at times it was rather underpowered with its single core 1.6GHz atom processor, so the direction I am looking in now is towards something like <a href="http://www.dustinhome.se/product/5010614982/lenovo-thinkpad-x220-ci5-2-5-4gb-320-3g-12-5-w7p-ultrabase/">this</a>.</p>
<h2>The stuff screwing over society</h2>
<p>Now there&#8217;s truly no way in hell I&#8217;ll ever use <a href="http://skype-open-source.blogspot.se/2012/05/microsoft-wiretapping-on-skype-now.html">Skype</a> again.</p>
<p><a href="http://news.cnet.com/8301-1009_3-57428067-83/fbi-we-need-wiretap-ready-web-sites-now/">Nothing new under the sun I guess</a>, but it lends credibility to the Skype quip above.</p>
<p>This sure is some level-A grade <a href="http://blogs.hbr.org/cs/2012/04/stop_documenting_start_experienc.html">retarded society</a> we are constructing for ourselves&#8230;</p>
<p>Samsung Galaxy S3: <a href="http://www.androidpolice.com/2012/05/04/the-samsung-galaxy-s-iii-the-first-smartphone-designed-entirely-by-lawyers/">The first smartphone designed entirely by lawyers</a>, a great read about a truly depressing matter which probably is closer to the truth than we imagine. On the other hand, my personal opinion is that the midnight blue version looks pretty damn sweet.</p>
<p>SaaS and other crap where <a href="http://toucharcade.com/2012/05/02/original-ios-rock-band-shutting-down-at-the-end-of-may/">someone else is in control</a> sure is a honking good idea, isn&#8217;t? Well, I guess it is if you&#8217;re the one in control, but I guess you won&#8217;t ever get my business&#8230;</p>
<h2>The cool stuff</h2>
<p>And I also managed to find some posts which touched the hacker in me, such as <a href="https://cdsmith.wordpress.com/2011/10/10/build-your-own-simple-random-numbers/">this post</a> about how one could go about generating pseudo-random numbers (don&#8217;t use the algorithms, just be inspired by them) or how <a href="http://timelessname.com/elfbin/">this guy</a> started shaving bytes off of his &#8220;hello, world!&#8221; binary.</p>
<p>I immediately thought about <a href="http://fscons.org/">FSCONS</a> when I read <a href="http://www.amberweinberg.com/overpriced-developer-conferences/">this</a>, and I didn&#8217;t feel at all worried about people thinking the same about our conf <img src='http://blog.padowi.se/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Until the other day, when I read about its inclusion into git, I&#8217;d never even heard about git subtree, but <a href="https://www.acquia.com/blog/using-git-subtree-make-distro-your-docroot">this post</a> makes a compelling case for looking into it.</p>
<p>I also came across a, to me, new data structure: the <a href="http://en.wikipedia.org/wiki/Xor_linked_list">XOR linked list</a>. Now, it has a couple of drawbacks, and I don&#8217;t think I&#8217;ll find much use for it, ever, but as a concept it is a very interesting idea, and just goes to show that XOR is frakking awesome.</p>
<p>I thought <a href="http://hlt.media.mit.edu/?p=2254">this</a> was a pretty cool thing.</p>
<p>While I don&#8217;t have any problems with my <a href="http://hackercodex.com/guide/how-to-stop-isp-dns-server-hijacking/">ISP hijacking DNS requests</a> right now, it is nice to know for posterity that there are ways around it <img src='http://blog.padowi.se/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>If you are going to use JSON, and need comments, <a href="https://plus.google.com/118095276221607585885/posts/RK8qyGVaGSr">this</a> seems like a reasonable way to go about it.</p>
<p>While I haven&#8217;t decided what I think about <em>Go</em> I <strong>really</strong> liked <a href="http://handcraftsman.wordpress.com/2012/04/29/lawnmower-problem-solver/">this blog post</a> on how to create a grass mowing agent which derives the most optimal way to cut the digital grass in a simulated world.</p>
<p>Hopefully I ain&#8217;t the only one who finds <a href="http://www.brendangregg.com/specials.html">this</a> hilarious <img src='http://blog.padowi.se/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="http://fixiejs.com/">This is actually quite neat</a>: Instead of adding <em>&#8220;lorem ipsum&#8221;</em> paragraphs all over your design, tweak the word list in the script, include it in the mockup, and markup all places which need filler content. Done.</p>
<p>In the latest issue of DatorMagaZin there was an article about <a href="http://sourceforge.net/">FUSE</a> which caught my eye, and having read the article my interest was piqued, so I just had to go look at the list myself, and truly, have you <a href="http://sourceforge.net/apps/mediawiki/fuse/index.php?title=FileSystems">seen</a> all the cool filesystems people have come up with? Frakkin&#8217; awesome!</p>
<h2>The food for thought stuff</h2>
<p>Oh yeah, finally remember to <a href="http://www.zenmoments.org/the-cab-ride-ill-never-forget/">treat everyone the way you&#8217;d like people to treat your own mother</a></p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.padowi.se/2012/05/06/2012w18/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Pacman and cleaning out old packages</title>
		<link>http://blog.padowi.se/2012/05/01/pacman-and-cleaning-out-old-packages/</link>
		<comments>http://blog.padowi.se/2012/05/01/pacman-and-cleaning-out-old-packages/#comments</comments>
		<pubDate>Tue, 01 May 2012 12:59:29 +0000</pubDate>
		<dc:creator>Patrik</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[ArchLinux]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[cacheclean]]></category>
		<category><![CDATA[pacman]]></category>
		<category><![CDATA[repository]]></category>

		<guid isPermaLink="false">http://blog.padowi.se/?p=1272</guid>
		<description><![CDATA[Just found this out, and thought it may benefit someone else, so here you go In my netbook install of Archlinux I was running out of disk space on / because the package cache (/var/cache/pacman/pkg/) was always filling up with old versions of packages. The reason for this obviously being that whenever I would upgrade [...]]]></description>
			<content:encoded><![CDATA[<p>Just found this out, and thought it may benefit someone else, so here you go <img src='http://blog.padowi.se/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>In my netbook install of Archlinux I was running out of disk space on / because the package cache (<code>/var/cache/pacman/pkg/</code>) was always filling up with old versions of packages. The reason for this obviously being that whenever I would upgrade a package, it wouldn&#8217;t be until next reboot I&#8217;d know if something was amiss or not, so <code>pacman -Sc</code> wasn&#8217;t really an option. And at next reboot, did I remember to run pacman -Sc? Of course not.</p>
<p>But, as it has been said before, and will be said again countless times: the arch wiki is fantastic!</p>
<p>Take for instance the <a href="https://wiki.archlinux.org/index.php/Pacman#Additional_commands">pacman page</a>, where it gives a hint that if you don&#8217;t really like <code>pacman -Sc</code>, you could try <strong>cacheclean</strong> (found in the AUR).</p>
<p>It takes at least one parameter, or, I guess, two at the most. The required one is a number, indicating how many previous versions you wish to keep. And on top of that you could add <code>-p</code> for preview, in which case it will only simulate removing the packages, and instead printing their names, so you have a chance to spot any mistake you might have made. With <code>-v</code>, <em>cacheclean</em> will perform the task, and tell you what it has done.</p>
<p>Since it will operate on <code>/var/</code> you&#8217;ll need to execute it as root.</p>
<p>Simple as that. The only gotcha is that it is a python3 script, but since that is the standard in arch these days anyway, it shouldn&#8217;t make much of a difference anyhow.</p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.padowi.se/2012/05/01/pacman-and-cleaning-out-old-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2012w17</title>
		<link>http://blog.padowi.se/2012/04/29/2012w17/</link>
		<comments>http://blog.padowi.se/2012/04/29/2012w17/#comments</comments>
		<pubDate>Sun, 29 Apr 2012 10:00:16 +0000</pubDate>
		<dc:creator>Patrik</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Society]]></category>
		<category><![CDATA[brogrammer]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://blog.padowi.se/?p=1269</guid>
		<description><![CDATA[Now this was an uplifting read. And I know that it is the popular thing to do, to hate on Ruby and Rails and that entire community, but seriously, what self-respecting person would want to identify themselves as a brogrammer? But, if I don&#8217;t consider myself a rock-star programmer, what then do I consider myself [...]]]></description>
			<content:encoded><![CDATA[<p>Now <a href="http://pandodaily.com/2012/04/20/lets-build-a-future-without-cars/">this</a> was an uplifting read.</p>
<p>And I know that it is the popular thing to do, to hate on Ruby and Rails and that entire community, but seriously, what self-respecting person would want to identify themselves as a <a href="http://www.motherjones.com/media/2012/04/silicon-valley-brogrammer-culture-sexist-sxsw">brogrammer</a>? But, if I don&#8217;t consider myself a rock-star programmer, <a href="http://vitomd.com/blog/coding/i-am-not-a-rock-star-developer-i-more-like-a-violinist-coder/">what then do I consider myself to be?</a></p>
<p>My first thoughts reading <a href="http://compphi.com/2012/04/26/why-isnt-email-programmable/">this post</a> revolved around <q>oh no, not another hare-brained &#8220;improvement&#8221; to something which doesn&#8217;t need changing</q>. Then I thought some more, and saw how this could be useful. But then I had another thought. </p>
<p>Ordinary letters, you know, the pen and paper kind, has worked pretty well without being programmable, and I suppose that is because you probably tend to formulate these letters in a different way, thus circumventing the need to programmability. Just a thought&#8230;</p>
<p>The world needs more people <a href="http://joethepeacock.blogspot.co.uk/2012/04/thats-why-you-dont-have-any-friends.html">like this</a>.</p>
<p>The world needs less of <a href="http://politics.slashdot.org/story/12/04/22/1723252/us-journalists-targeted-by-pentagon-propaganda-contractors">this type of operations</a>.</p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.padowi.se/2012/04/29/2012w17/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2012w16</title>
		<link>http://blog.padowi.se/2012/04/22/2012w16/</link>
		<comments>http://blog.padowi.se/2012/04/22/2012w16/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 10:30:40 +0000</pubDate>
		<dc:creator>Patrik</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Society]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[A/B testing]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[framebuffer]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[net neutrality]]></category>
		<category><![CDATA[revert changes]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://blog.padowi.se/?p=1265</guid>
		<description><![CDATA[I ought to dedicate this blog post to git and rsync: The hard drive on my netbook died this week. I haven&#8217;t attempted to recover anything from the disk yet, but of that which is most important I figure I haven&#8217;t lost anything at all. And that&#8217;s due in no small part to git and [...]]]></description>
			<content:encoded><![CDATA[<p>I ought to dedicate this blog post to <strong>git</strong> and <strong>rsync</strong>: The hard drive on my netbook died this week. I haven&#8217;t attempted to recover anything from the disk yet, but of that which is most important I figure I haven&#8217;t lost anything at all. And that&#8217;s due in no small part to <em>git</em> and <em>rsync</em>.</p>
<p>All of my configuration files, at least those I care about, had been added to a <em>git</em> repository. And <em>most</em> of the binaries I wanted to preserve had been <em>rsync</em>ed to my server.<br />
Not all of it though, which is a shame, but it shouldn&#8217;t be hard to replace what I&#8217;ve lost. Especially if I can get the old hard drive to function just one more time, just long enough to at least make a list of what it is I&#8217;m missing. The rest of the disk, well, it&#8217;s spring, perhaps a spring cleaning was in order.</p>
<p>So all is not lost, and looking beyond this setback, I did learn some other things this week (except for the fact that I need to become better at performing backups) such as:</p>
<ul>
<li>mplayer will work rather well without X: <code>mplayer -vo fbdev &lt;/path/to/movie&gt;</code></li>
<li>how to <a href="http://norbauer.com/notebooks/code/notes/git-revert-reset-a-single-file">revert the uncommitted changes of a single file in a git repository</a>: <code>git checkout -- &lt;filename&gt;</code></li>
</ul>
<p>Also, quite some time ago, I went around thinking about how to automatically track my working time, and while <a href="http://gurgeh.github.com/selfspy/">this</a> isn&#8217;t exactly like what I had in mind (I would probably just have created a daemon which somehow fetched the window title of the currently active window from X, and did so randomly 6 times per hour (not deterministically enough to be able to cheat the system).</p>
<p>And some assorted links which may or may not be of any particular use for anyone:</p>
<ul>
<li>It would seem like <a href="http://untyped.com/untyping/2011/02/11/stop-ab-testing-and-make-out-like-a-bandit/">A/B testing is not optimal</a> for testing web designs</li>
<li><a href="http://www.arcticstartup.com/2012/04/19/teiliasonera-to-charge-extra-for-skype-and-other-voip-calls">Who needs net neutrality anyway, right?</a></li>
<li><a href="http://www.wired.com/dangerroom/2012/04/cia-spies-biometric-tech/all/1">As you sow, so you shall reap</a></li>
<li><a href="http://blog.paracode.com/2012/04/19/programming-is-a-culture/">Programming is a culture</a>, couldn&#8217;t have said it better myself</li>
<li><a href="http://www.reddit.com/r/linux/comments/shmfi/how_can_i_keep_my_kids_from_logging_in_at_night/c4e593p">Mental note to self</a></li>
<li><a href="http://en.wikipedia.org/wiki/Zeitgeist_(framework)">The Zeitgeist framework</a> seems like a pretty cool idea, although feel that it might operate on too high a level for my tastes. If it just worked on file access and time, and not stuff like email (would it work with any client, or do you need to use &#8220;certified&#8221; clients?) or what websites have been visited (although that could be useful)</li>
<li><a href="http://www.theatlantic.com/technology/archive/2012/04/homeland-securitys-pre-crime-screening-will-never-work/255971/">Funny, I thought people were innocent until proven guilty</a>, and how can you be guilty of something which hasn&#8217;t happened?</li>
<li><a href="http://37signals.com/svn/posts/3163-making-shit-work-is-everyones-job">Making shit work is everyone&#8217;s job</a></li>
</ul>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.padowi.se/2012/04/22/2012w16/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>netbook harddrive&#8230;</title>
		<link>http://blog.padowi.se/2012/04/17/netbook-harddrive/</link>
		<comments>http://blog.padowi.se/2012/04/17/netbook-harddrive/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 21:27:33 +0000</pubDate>
		<dc:creator>Patrik</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://blog.padowi.se/?p=1262</guid>
		<description><![CDATA[&#8230; went to bit heaven tonight, expect disturbances in posting schedule :wq]]></description>
			<content:encoded><![CDATA[<p>&#8230; went to bit heaven tonight, expect disturbances in posting schedule <img src='http://blog.padowi.se/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.padowi.se/2012/04/17/netbook-harddrive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2012w15</title>
		<link>http://blog.padowi.se/2012/04/15/2012w15/</link>
		<comments>http://blog.padowi.se/2012/04/15/2012w15/#comments</comments>
		<pubDate>Sun, 15 Apr 2012 11:00:51 +0000</pubDate>
		<dc:creator>Patrik</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Society]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[QR art]]></category>
		<category><![CDATA[surveillance]]></category>

		<guid isPermaLink="false">http://blog.padowi.se/?p=1259</guid>
		<description><![CDATA[This has been a pretty rough week, but I guess there is nothing less to expect when deadlines are drawing near. This week I found myself wanting to count all the occurrences of &#8220;foo&#8221;, but ONLY if they occurred BEFORE &#8220;bar&#8221;: awk 'BEGIN { fooCount=0; stopCounting=0 } /bar/ { stopCounting=1 } /foo/ &#38;&#38; stopCounting=0 { [...]]]></description>
			<content:encoded><![CDATA[<p>This has been a pretty rough week, but I guess there is nothing less to expect when deadlines are drawing near.</p>
<p>This week I found myself wanting to count all the occurrences of &#8220;foo&#8221;, but ONLY if they occurred BEFORE &#8220;bar&#8221;:</p>
<p><code>awk 'BEGIN { fooCount=0; stopCounting=0 } /bar/ { stopCounting=1 } /foo/ &amp;&amp; stopCounting=0 { fooCount = fooCount + 1 } END { print fooCount }' &lt;myfile&gt;</code></p>
<p>And despite the quite hectic schedule, I did manage to help a colleague with a little scripting, and those are two things which almost always sets me in a better mood: scripting (problem solving), and helping others (of course, if I don&#8217;t manage to be of any help, that kindof defeats any positive mood change I get from scripting, but in this particular case it all worked out really well in the end) <img src='http://blog.padowi.se/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>And now for the mandatory collection of links from this week:</p>
<ul>
<li><a href="http://delimiter.com.au/2012/04/13/us-slams-australias-on-shore-cloud-fixation/">This must be a joke right?</a> The US can&#8217;t really, for real, be irritated with Australia for preferring national service providers over American ones, right? Especially when it could come down to storing data about Australian citizens, or in other ways vital to the government. This has to be a joke right?</li>
<li>I wonder if <a href="http://dev.hubspot.com/bid/85467/evolution-of-a-web-developer-from-php-newbie-to-python-ninja">this</a> is something most programmers can relate to or if it&#8217;s just me</li>
<li>This <a href="http://riversoflambdas.tumblr.com/post/21020201405/dont-tell-me-how-to-enable-javascript">post</a> could have been written by me&#8230; well, not as articulate, but the spirit of it. What&#8217;s even more interesting is the <a href="http://news.ycombinator.com/item?id=3836309">response</a> this triggered on HackerNews.</li>
<li><a href="http://research.swtch.com/qart">QArt Codes</a> is where QR codes, Solomon-Reed error correction, some extra calculations and your imagination mix together <img src='http://blog.padowi.se/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
<li><a href="http://www.pcgamer.com/2012/03/20/sun-reports-terrorists-using-call-of-duty-as-training-tool-global-threat-levels-reduced/">Hilarious post</a> making fun about certain governments and their want for even more snooping laws, especially about conducting surveillance in in-game chats&#8230;</li>
</ul>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.padowi.se/2012/04/15/2012w15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2012w14</title>
		<link>http://blog.padowi.se/2012/04/08/2012w14/</link>
		<comments>http://blog.padowi.se/2012/04/08/2012w14/#comments</comments>
		<pubDate>Sun, 08 Apr 2012 11:00:48 +0000</pubDate>
		<dc:creator>Patrik</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Society]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[0x10c]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[entropy]]></category>
		<category><![CDATA[EU]]></category>
		<category><![CDATA[Fugu]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[social media]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://blog.padowi.se/?p=1256</guid>
		<description><![CDATA[Not a whole lot to say this week, it has mostly been work, sleep, work, sleep, &#8230; well you get the picture. Some noteworthy things however: Just how, in their infinite wisdom, does the EU expect to test the security of their own servers and services if they are going to outlaw so-called &#8220;cyber-attack tools&#8221;. [...]]]></description>
			<content:encoded><![CDATA[<p>Not a whole lot to say this week, it has mostly been work, sleep, work, sleep, &#8230; well you get the picture.</p>
<p>Some noteworthy things however:</p>
<p>Just how, in their infinite wisdom, does the EU expect to test the security of their own servers and services <a href="http://www.europarl.europa.eu/news/en/pressroom/content/20120326IPR41843/html/Hacking-IT-systems-to-become-a-criminal-offence">if they are going to outlaw so-called &#8220;cyber-attack tools&#8221;</a>. For that matter, how do they propose ANY manufacturer of ANY type of digital system perform ANY type of actual security testing worth a damn?</p>
<p><a href="http://www.theatlantic.com/technology/archive/2012/04/a-privacy-manifesto-in-code-what-if-your-emails-never-went-to-gmail-and-facebook-couldnt-see-your-status-updates/255414/">Social AND Private?</a> Well&#8230; not quite yet, but if they get the p2p and encryption stuff working, then we&#8217;re in business <img src='http://blog.padowi.se/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://encrypteverything.ca/index.php/Main_Page">ENCRYPT ALL THE THINGS!</a> <img src='http://blog.padowi.se/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>And it wouldn&#8217;t be one of my hallmark blagposts if it didn&#8217;t have some random links which may or may not be of any value, no would it?</p>
<p>Dunno just what it might be useful for, but creating 3D graphics procedurally using Lua, <a href="http://bp.io/fugu/about.html">like with Fugu</a> seems like just the right approach for me. If I were to do 3D models that is.</p>
<p>Now <a href="http://0x10c.com/">this</a> promises to be an interesting game.</p>
<p>And a rather interesting <a href="http://esolangs.org/wiki/Entropy">programming language</a>.</p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.padowi.se/2012/04/08/2012w14/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2012w13</title>
		<link>http://blog.padowi.se/2012/04/01/2012w13/</link>
		<comments>http://blog.padowi.se/2012/04/01/2012w13/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 11:00:18 +0000</pubDate>
		<dc:creator>Patrik</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[bot]]></category>
		<category><![CDATA[collusion]]></category>
		<category><![CDATA[expect]]></category>
		<category><![CDATA[irc]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[out-of-the-box]]></category>
		<category><![CDATA[timeline]]></category>

		<guid isPermaLink="false">http://blog.padowi.se/?p=1254</guid>
		<description><![CDATA[This week has been stressful. Mostly due to the fact that we have an upcoming deadline and problems have a tendency to appear just at that time to exacerbate things further&#8230; But with problems resolved, and tests underway, I found some time to help a colleague out with a script to automate some pretty tricky [...]]]></description>
			<content:encoded><![CDATA[<p>This week has been stressful. Mostly due to the fact that we have an upcoming deadline and problems have a tendency to appear just at that time to exacerbate things further&#8230;</p>
<p>But with problems resolved, and tests underway, I found some time to help a colleague out with a script to automate some pretty tricky measurement tests.<br />
This included doing some <em>expect</em>-scripting.</p>
<p>In this particular instance I needed to get a bunch of parameters sent to expect, and treat them as a single string. Ordinarily something like <code>./foo.exp "some space separated parameters"</code> would have worked, but quoting would be a hassle, so if I could avoid that it would be great.</p>
<p>So I learnt about Tcl&#8217;s <em>lrange</em> (up to that point I&#8217;d only worked with <em>lindex</em>) and constructed something along the lines of <code>set foo [lrange $argv 3 end]</code> (the first three parameters were other things).</p>
<p>This week I&#8217;ve also had the pleasure to read about some pretty cool people this week:</p>
<ul>
<li>Like <a href="http://geekchick77.dreamwidth.org/472.html">fighting fire with fire</a> and doing it in a positive manner,</li>
<li>or like a <a href="http://en.wikipedia.org/wiki/Charlie_Brown_and_Franz_Stigler_story">German fighter pilot escorting a British bomber</a> because anything else would have been cold-blooded murder,</li>
<li>or <a href="http://martinsnyder.net/?p=35">turning peoples &#8220;disabilities&#8221; into strengths</a>,</li>
<li>or <a href="http://www.washingtonpost.com/blogs/rosenwald-md/post/who-is-the-route-29-batman-this-guy/2012/03/28/gIQA8nPjgS_blog.html">a businessman who dresses as Batman to go visit sick kids in the hospital</a></li>
</ul>
<p>Of course, there are people in the other part of that spectrum, <a href="http://www.salon.com/2012/03/28/why_the_mpaa_doesnt_want_your_kid_to_see_bully/singleton/">people who doesn&#8217;t seem to like the ugly truth</a> or who&#8217;d just like to <a href="http://www.extremetech.com/extreme/124041-the-new-comcast-xbox-xfinity-app-is-the-first-nail-in-net-neutralitys-coffin">kill off the Internet in its present form</a>.</p>
<p>Now, if you&#8217;re still a Firefox user (these days it seems people have all jumped on the Chrome bandwagon) and you still don&#8217;t understand why it could be good idea to use NoScript, RequestPolicy or BetterPrivacy, <a href="http://www.mozilla.org/en-US/collusion/">Collusion, from Mozilla</a> might visualize it for you. For my part, with those add-ons activated, there weren&#8217;t any surprises, but just for fun I turned them off, only leaving collusion on. Frak me! A whole lot of stuff happening behind the scenes.</p>
<p>I also sniffed out a new <a href="http://functionn.blogspot.se/2012/03/timeline-javascript-library-for.html">timeline library</a> which uses jQuery and is powered by JSON.</p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.padowi.se/2012/04/01/2012w13/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2012w12</title>
		<link>http://blog.padowi.se/2012/03/25/2012w12/</link>
		<comments>http://blog.padowi.se/2012/03/25/2012w12/#comments</comments>
		<pubDate>Sun, 25 Mar 2012 11:00:18 +0000</pubDate>
		<dc:creator>Patrik</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Erlang]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[mnesia]]></category>
		<category><![CDATA[OWASP]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[tmux]]></category>
		<category><![CDATA[zodiac]]></category>

		<guid isPermaLink="false">http://blog.padowi.se/?p=1251</guid>
		<description><![CDATA[Woho! Not only a great week at work, but I also managed to squeeze in some other activities as well. Managed to execute two test cases (yes, that&#8217;s a little slow, but there were mitigating circumstances, so all in all I am not too worried, and I did learn from it so it&#8217;s all good), [...]]]></description>
			<content:encoded><![CDATA[<p>Woho! Not only a great week at work, but I also managed to squeeze in some other activities as well.</p>
<p>Managed to execute two test cases (yes, that&#8217;s a little slow, but there were mitigating circumstances, so all in all I am not too worried, and I did learn from it so it&#8217;s all good), got a small lecture in a subsystem (which made me want to tinker with <em>Erlang</em> and <em>mnesia</em> again), went swimming after work one day, and spent Thursday evening at an <a href="https://www.owasp.org/index.php/Main_Page" title="Homepage of the Open Web Application Security Project">OWASP</a> <a href="http://owaspgbg-manico.eventbrite.com/">event</a>, listening to a very entertaining dude named <a href="http://manico.net/">Jim Manico</a></p>
<p>There was a change in plans, so the talk wasn&#8217;t about <em>Web Application Access Control Design</em> but instead about the ten most critical web application security flaws found on the <a href="https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project">&#8220;OWASP Top Ten Project&#8221;-list</a>.</p>
<p>Learning interesting stuff <em>AND</em> having fun at the same time? Oh wait, when I put it like that it just sounds like any other (work)day in my life, but you get the point. Great event, looking forward to the next <img src='http://blog.padowi.se/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>And Friday evening was spent hanging out with Rikard, Zara and Alfred. All in all, a rather good week.</p>
<p>I did have some trouble with <em>tmux</em>, not all of which I managed to solve.</p>
<p>There were actually two issues, and only one of them have been &#8220;solved&#8221;, and I use that word pretty lightly because I don&#8217;t find the solution particularly good, although it is probably <em>the</em> solution.</p>
<ol>
<li>Scrolling backwards (up) in an terminal inside tmux is painful. <code>C^b [</code> sets you in the mode you need to be to enable PgUp to work, but that is not nearly as easy as my muscle-memory-bound <code>Shift-PgUp</code> (plus this also means I need to exit that &#8220;cut-mode&#8221; or whatever it is called when I&#8217;m done scrolling</li>
<li>tmux doesn&#8217;t seem to interact all that well with a mouse. I admit, that probably wasn&#8217;t high on the priorities, but if I don&#8217;t have vim bindings (visual-mode, yank) the mouse is by far the easiest way to copy text from a terminal. Click and hold mouse1, drag over the area to copy, release mouse1, DONE!</li>
</ol>
<p>The mouse issue is probably easy enough to fix, I suspect I just need to read the man-page better and fiddle some more with the configuration. But I am not so sure about #1. That&#8217;s the built-in way to do it&#8230; getting something better working there is probably not straightforward at all.</p>
<p>Finally, this week I also &#8220;rediscovered&#8221; <a href="https://github.com/nuex/zodiac">zodiac</a> and I am now pondering whether or not to just use that instead of building my own &#8220;makefile blog&#8221;-type of thing. I&#8217;d need to hack it a bit, there are some things I don&#8217;t want to make do without (RSS, prev/next-links, tags) and it would be pretty neat (albeit useless) to have post signing using GPG.</p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.padowi.se/2012/03/25/2012w12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2012w11</title>
		<link>http://blog.padowi.se/2012/03/18/2012w11/</link>
		<comments>http://blog.padowi.se/2012/03/18/2012w11/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 11:00:01 +0000</pubDate>
		<dc:creator>Patrik</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[expect]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[git-annex]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[patents]]></category>
		<category><![CDATA[quicksort]]></category>
		<category><![CDATA[saas]]></category>
		<category><![CDATA[tcpdump]]></category>
		<category><![CDATA[Vim]]></category>
		<category><![CDATA[wireshark]]></category>

		<guid isPermaLink="false">http://blog.padowi.se/?p=1249</guid>
		<description><![CDATA[This week has been filled with all sorts of fun and challenging stuff. For one, I used Wireshark to (successfully) diagnose a problem for the first time The problem was an overly restrictive iptables rule on the system I was trying to connect to, but boy did it feel good to identify and solve that [...]]]></description>
			<content:encoded><![CDATA[<p>This week has been filled with all sorts of fun and challenging stuff.</p>
<p>For one, I used <strong><a href="http://www.wireshark.org/">Wireshark</a></strong> to (successfully) diagnose a problem for the first time <img src='http://blog.padowi.se/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>The problem was an overly restrictive <strong>iptables</strong> rule on the system I was trying to connect to, but boy did it feel good to identify and solve that problem on my own.</p>
<p>I also managed to squeeze in time to write scripts to two work buddies so that they didn&#8217;t need to perform overly repetitive and very error-prone tasks by hand. The one script even needed a little bit of <strong><a href="http://www.nist.gov/el/msid/expect.cfm">Expect</a></strong>-scripting, which I&#8217;ve been aching to hack some more.</p>
<p>I also found out about <strong>vim</strong>&#8216;s <code>:e #</code> (to try it out, open a file in <em>vim</em>, then <code>:e someOtherFile</code> followed by <code>:e #</code>)</p>
<p>I found <a href="http://www.stoimen.com/blog/2012/03/12/algorithm-cheatsheet-quicksort/">a very pedagogic</a> explanation about how quicksort works, which made me start thinking and wondering about algorithms in general again, even to the point of <a href="https://en.wikipedia.org/wiki/Quicksort#Choice_of_pivot">investigating quicksort further</a>.</p>
<p>I also found <a href="http://blog.pinboard.in/2011/12/don_t_be_a_free_user/">this post</a> which makes a fair point: <strong title="(If and only if)">IFF</strong> you are going to rely on a web service (in other words, a <em title="(Software as a Service)">SaaS</em> you are probably better off getting hooked up with one charging money for it.</p>
<p>Not that I could ever conscionable recommend anyone using a SaaS as this is bound to lock you into dependence of that provider, but sure, I get that some (most?) would rather throw money at it than learning (learning is scary, and you don&#8217;t have the time right?) to set up your own service.</p>
<p>Furthermore, I can&#8217;t really decide whether the author is being disingenuous or illiterate in naming this stance an &#8220;anti-free-software movement&#8221;. It is unclear if s/he meant &#8220;anti-gratis-software movement&#8221; or if s/he is actually feeling threatened by free software. Had there been a comment field on that &#8220;blog&#8221; I probably would have spent the two minutes required to ask, but since there isn&#8217;t one, I won&#8217;t bother, and on pure principle, if I ever need a bookmarking-service, I&#8217;ll just make sure to stay clear of that one, just in case s/he actually was taking a jab against free software.</p>
<p>Yes, I am petty and vindictive at times, shit happens.</p>
<p>Whilst toying with the idea of modifying my homepage a bit, a site wide change, I realized that it might make a lot of sense to rewrite it so that it is, if not template-based, at least modularized. But I guess I&#8217;ll continue thinking about that before making any changes.</p>
<p>A funny thing I just thought of out of the blue the other day was that with some sites, like LinkedIn and probably Facebook and others, there are options for giving these services your email account username and password, so that they could log in, check your contact list, and hook you up with other people you know.</p>
<p>But I am pretty sure that most email providers license agreements state (no, I haven&#8217;t checked, but it would be foolish of these mail providers not to) that it would be a violation of said agreement for the user to disclose their account password to anyone else.</p>
<p>Then again, I don&#8217;t really understand people who would use those tools, but I guess there are even more people who wouldn&#8217;t understand why I chose not to&#8230;</p>
<p><a href="http://thisorthat.com/blog/why-the-joker-and-not-batman-is-the-savior-of-us-all">A very interesting read</a> about the Batman and the Joker. Those who know me can probably guess what character I voted for.</p>
<p>I&#8217;ve also been thinking about the prospect of storing binaries in some sort of version control, mostly because I have a friend who is into game development/modding, and doing so without version control. And that has bitten him in the ass more than once now.</p>
<p>And since I am nowadays a <strong>git</strong> convert I naturally started looking there, and found <a href="http://stackoverflow.com/questions/540535/managing-large-binary-files-with-git">this</a>, which lead me, among other places, <a href="http://git-annex.branchable.com/">here</a>. Haven&#8217;t tried it yet, but it is definitively an interesting idea.</p>
<p>And now that I have begun working with <em>Wireshark</em>, <strong><a href="http://danielmiessler.com/study/tcpdump/">tcpdump</a></strong> seems to be a good next step.</p>
<p>Finally, <a href="http://arstechnica.com/tech-policy/news/2012/03/a-new-low-for-patent-trolls-targeting-cash-strapped-cities.ars">yet another reason</a> why the patent industry <strong>needs</strong> to change.</p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.padowi.se/2012/03/18/2012w11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

