<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><title>Irmen's blog - Spinsels op het web</title><link>http://www.razorvine.net/blog/user/irmen/</link><description>The latest articles on this blog. Irmen's blog - Spinsels op het web</description><copyright>Copyright by Irmen de Jong</copyright><pubDate>Sun, 05 Feb 2012 15:19:12 GMT</pubDate><lastBuildDate>Sun, 05 Feb 2012 15:19:12 GMT</lastBuildDate><category>Muziek</category><category>Python</category><category>Computers</category><category>Games</category><category>Software Dev</category><category>Diversen</category><category>Grappig</category><generator>PyRSS2Gen-1.0.0</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><ttl>10</ttl><item><title>Hoe surf ik vanaf 1 februari naar ThePiratebay.org als Xs4all (of Ziggo) klant?</title><link>http://www.razorvine.net/blog/user/irmen/article/2012-01-31/315</link><description>&lt;p&gt;&lt;img src="http://static.thepiratebay.se.nyud.net/img/tpb.jpg" alt="[[image: tpb.jpg from static.thepiratebay.se.nyud.net]]" /&gt;&lt;/p&gt;
&lt;p&gt;Morgen gooit Xs4all (en Ziggo) op last van de rechter de toegang tot ThePiratebay.org dicht. In elk geval tot het hoger beroep een andere uitspraak zal krijgen (maar misschien ook wel niet), is het zonder omwegen zometeen niet meer mogelijk om ThePiratebay.org te benaderen.&lt;/p&gt;
&lt;p&gt;Gelukkig zijn er omwegen.&lt;/p&gt;
&lt;p&gt;En zijn ze eigenlijk nog erg kort ook. &lt;/p&gt;
&lt;p&gt;Hier een greep uit de mogelijkheden:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://tpb.piratenpartij.nl"&gt;http://tpb.piratenpartij.nl&lt;/a&gt; - de proxy van de PiratenPartij
&lt;/li&gt;
&lt;li&gt;&lt;a href="http://tpb.makinit.nl/"&gt;http://tpb.makinit.nl/&lt;/a&gt; - nog een proxy
&lt;/li&gt;
&lt;li&gt;&lt;a href="http://all4xs.net/repress/thepiratebay.se/"&gt;http://all4xs.net/repress/thepiratebay.se/&lt;/a&gt; - proxy gebruikt door de wordpress plugin
&lt;/li&gt;
&lt;li&gt;&lt;a href="http://thepiratebay.org.nyud.net"&gt;http://thepiratebay.org.nyud.net&lt;/a&gt; - Coral web proxy &lt;i&gt;lijkt niet te werken, wegens static content die blijft hangen?&lt;/i&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.depiratebay.nl"&gt;http://www.depiratebay.nl&lt;/a&gt; - nog een willekeurige proxy
&lt;/li&gt;
&lt;li&gt;&lt;a href="http://goo.gl/eaAH1"&gt;http://goo.gl/eaAH1&lt;/a&gt; één van de meer creative proxies: Google Translate  :-)  &lt;i&gt;lijkt niet te werken, wegens static content die blijft hangen?&lt;/i&gt;
&lt;/li&gt;
&lt;li&gt;Gebruik 1 van de honderden andere gratis proxy servers, zoals bijvoorbeeld &lt;a href="http://proxy.uselikes.com/use/UL/thepiratebay.se/"&gt;http://proxy.uselikes.com/use/UL/thepiratebay.se/&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Meer alternatieven ook te vinden op &lt;a href="http://www.ikwilthepiratebay.nl"&gt;http://www.ikwilthepiratebay.nl&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Andere wat meer ingrijpende manieren om de blokkade te omzeilen:
&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Stel andere DNS servers in b.v. die van &lt;a href="http://www.opendns.com/"&gt;OpenDNS&lt;/a&gt; of &lt;a href="http://code.google.com/speed/public-dns/index.html"&gt;Google DNS&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Surf redelijk anoniem via &lt;a href="https://www.torproject.org/"&gt;TOR&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Surf via een VPN (kost meestal wel geld)
&lt;/li&gt;&lt;/ul&gt;</description><author>irmen@xs4all.nl</author><category>Diversen</category><comments>http://www.razorvine.net/blog/user/irmen/article/2012-01-31/315#writecomment</comments><guid isPermaLink="true">http://www.razorvine.net/blog/user/irmen/article/2012-01-31/315</guid><pubDate>Tue, 31 Jan 2012 22:08:00 GMT</pubDate><source url="http://www.razorvine.net/blog/user/irmen/">Irmen's blog - Spinsels op het web</source></item><item><title>Subscribing SWTOR.....</title><link>http://www.razorvine.net/blog/user/irmen/article/2012-01-26/314</link><description>&lt;p&gt;&amp;quot;You have 29 days of play time remaining. You must sign up for a recurring subscription plan or redeem a Game Time Code before you can play. If you sign up for a recurring subscription, you will be billed automatically at the end of your current remaining play time.&amp;quot;&lt;/p&gt;
&lt;p&gt;Dus: ik heb SWTOR al gekocht en betaald, er zitten 29 dagen speeltijd bij, &lt;i&gt;en toch moet ik een payment subscription afsluiten voordat ik kan spelen?&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;Misschien heb ik het mis maar ik kan me niet herinneren dat dat bij World of Warcraft ook zo was.  Nou ja. Oh en die 3-5 security questions... Echt....  :-((&lt;/p&gt;</description><author>irmen@xs4all.nl</author><category>Games</category><comments>http://www.razorvine.net/blog/user/irmen/article/2012-01-26/314#writecomment</comments><guid isPermaLink="true">http://www.razorvine.net/blog/user/irmen/article/2012-01-26/314</guid><pubDate>Thu, 26 Jan 2012 20:43:00 GMT</pubDate><source url="http://www.razorvine.net/blog/user/irmen/">Irmen's blog - Spinsels op het web</source></item><item><title>General chat</title><link>http://www.razorvine.net/blog/user/irmen/article/2012-01-23/313</link><description>&lt;p&gt;Wie zei er ook alweer dat general chat in een MMO verschrikkelijk is?&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i.imgur.com/FxGif.jpg" alt="[[image: FxGif.jpg from i.imgur.com]]" /&gt;&lt;/p&gt;</description><author>irmen@xs4all.nl</author><category>Grappig</category><comments>http://www.razorvine.net/blog/user/irmen/article/2012-01-23/313#writecomment</comments><guid isPermaLink="true">http://www.razorvine.net/blog/user/irmen/article/2012-01-23/313</guid><pubDate>Mon, 23 Jan 2012 21:54:00 GMT</pubDate><source url="http://www.razorvine.net/blog/user/irmen/">Irmen's blog - Spinsels op het web</source></item><item><title>Internet, we maken je dood!</title><link>http://www.razorvine.net/blog/user/irmen/article/2012-01-18/312</link><description>&lt;p&gt;[[!!! BAD LINK: plaatjes/wikiSOPA.jpg !!!]]&lt;/p&gt;
&lt;p&gt;Waarom op zwart? &lt;a href="http://en.wikipedia.org/wiki/Wikipedia:SOPA_initiative/Learn_more"&gt;http://en.wikipedia.org/wiki/Wikipedia:SOPA_initiative/Learn_more&lt;/a&gt;  (Niet alleen Wikipedia trouwens).&lt;/p&gt;</description><author>irmen@xs4all.nl</author><category>Diversen</category><comments>http://www.razorvine.net/blog/user/irmen/article/2012-01-18/312#writecomment</comments><guid isPermaLink="true">http://www.razorvine.net/blog/user/irmen/article/2012-01-18/312</guid><pubDate>Wed, 18 Jan 2012 19:33:00 GMT</pubDate><source url="http://www.razorvine.net/blog/user/irmen/">Irmen's blog - Spinsels op het web</source></item><item><title>Somebody That I Used to Know - Walk off the Earth (Gotye - Cover)</title><link>http://www.razorvine.net/blog/user/irmen/article/2012-01-07/311</link><description>&lt;p&gt;&lt;a href="http://www.youtube.com/watch?v=d9NF2edxy-M"&gt;Somebody That I Used to Know - Walk off the Earth (Gotye - Cover)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Walk off the Earth and Sarah Blackwood perform a cover of Gotye's &amp;quot;Somebody that I used to know&amp;quot; using five people on one guitar.&lt;/p&gt;
&lt;p&gt;Wow  o_o&lt;/p&gt;</description><author>irmen@xs4all.nl</author><category>Muziek</category><comments>http://www.razorvine.net/blog/user/irmen/article/2012-01-07/311#writecomment</comments><guid isPermaLink="true">http://www.razorvine.net/blog/user/irmen/article/2012-01-07/311</guid><pubDate>Sat, 07 Jan 2012 14:36:00 GMT</pubDate><source url="http://www.razorvine.net/blog/user/irmen/">Irmen's blog - Spinsels op het web</source></item><item><title>Merry 2278</title><link>http://www.razorvine.net/blog/user/irmen/article/2011-12-24/310</link><description>&lt;p&gt;[[!!! BAD LINK: plaatjes/falloutxmas.jpg !!!]]&lt;/p&gt;
&lt;p&gt;Ran into this happy xmas tree in &lt;a href="http://fallout.wikia.com/wiki/Fallout_3"&gt;Fallout 3&lt;/a&gt; ....  ;-)&lt;/p&gt;</description><author>irmen@xs4all.nl</author><category>Diversen</category><comments>http://www.razorvine.net/blog/user/irmen/article/2011-12-24/310#writecomment</comments><guid isPermaLink="true">http://www.razorvine.net/blog/user/irmen/article/2011-12-24/310</guid><pubDate>Sat, 24 Dec 2011 03:09:00 GMT</pubDate><source url="http://www.razorvine.net/blog/user/irmen/">Irmen's blog - Spinsels op het web</source></item><item><title>IT metrics fallacies</title><link>http://www.razorvine.net/blog/user/irmen/article/2011-12-16/309</link><description>&lt;p&gt;Interessante post van iemand &lt;a href="http://it.slashdot.org/comments.pl?sid=2574652&amp;amp;cid=38382984"&gt;op slashdot&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;The major fallacy many big companies fall into is that some of these systems have been running flawlessly for years, because they hired a competent IT staff. They look at the price of those paychecks and shiver. Why are we paying so many high priced engineers when we've never had a problem, they think.&lt;/p&gt;
&lt;p&gt;So they reduce staff and start to rely on support contracts instead of on-site gurus. The gurus are still there to solve any oh-shit moments. But that back investment in good engineers has produced a stable infrastructure that runs with few problems for years. So they reduce staff more, pay for more support contracts, and eventually the system critical mass is greater than the engineers who can support it. It's no problem until it's a problem.&lt;/p&gt;
&lt;p&gt;Eventually something minor goes wrong, but nobody notices or if they do it's not really their field of expertise so they don't understand it's minor now but could escalate. When it does, something else goes wrong, and a cascade effect takes out more and more systems. With a full staff, you have enough guys that when the critical mass is reached, they can start defensive measures and get things back in working order in no time. With support staff only, things are going wrong faster than they can deal with it.&lt;/p&gt;
&lt;p&gt;&amp;quot;Call on our support contracts,&amp;quot; shout the bosses! So now your on-site staff are all on hold instead of troubleshooting. When they get through to someone, they have to spend the first hour or two describing their infrastructure to the technician on the other end, who starts making random suggestions that maybe help, but probably don't.&lt;/p&gt;
&lt;p&gt;Het praktijkvoorbeeld dat hij vervolgens noemt is best wel erg te noemen... :-|&lt;/p&gt;</description><author>irmen@xs4all.nl</author><category>Software Dev</category><comments>http://www.razorvine.net/blog/user/irmen/article/2011-12-16/309#writecomment</comments><guid isPermaLink="true">http://www.razorvine.net/blog/user/irmen/article/2011-12-16/309</guid><pubDate>Fri, 16 Dec 2011 08:27:00 GMT</pubDate><source url="http://www.razorvine.net/blog/user/irmen/">Irmen's blog - Spinsels op het web</source></item><item><title>Passwords, they suck</title><link>http://www.razorvine.net/blog/user/irmen/article/2011-12-06/308</link><description>&lt;p&gt;&lt;a href="http://me.veekun.com/blog/2011/12/04/fuck-passwords/"&gt;FUCK PASSWORDS&lt;/a&gt;
&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;
I'm so tired of passwords. So, so, so tired. Most people don't understand this. Most people use the same password everywhere. Most people can just mechanically type out password3 in every password box, smirking to themselves at how clever they are, because who would ever guess 3 instead of 1?&lt;/p&gt;&lt;/blockquote&gt;</description><author>irmen@xs4all.nl</author><category>Computers</category><comments>http://www.razorvine.net/blog/user/irmen/article/2011-12-06/308#writecomment</comments><guid isPermaLink="true">http://www.razorvine.net/blog/user/irmen/article/2011-12-06/308</guid><pubDate>Tue, 06 Dec 2011 22:40:00 GMT</pubDate><source url="http://www.razorvine.net/blog/user/irmen/">Irmen's blog - Spinsels op het web</source></item><item><title>Compiling Python from source on Ubuntu 11.x multiarch</title><link>http://www.razorvine.net/blog/user/irmen/article/2011-11-29/307</link><description>&lt;p&gt;Ubuntu 11.x has changed the location for 64/32 bits libraries (&amp;quot;multiarch&amp;quot;) and this can cause some hiccups when trying to build Python from source.
Make sure to &lt;tt&gt;sudo apt-get install dpkg-dev&lt;/tt&gt; to get the &lt;tt&gt;dpkg-architecture&lt;/tt&gt; tool installed. Otherwise you'll get compile errors because some system libs can't be found (zlib, ssl, etc).&lt;/p&gt;
&lt;p&gt;See also &lt;a href="http://bugs.python.org/issue11715"&gt;http://bugs.python.org/issue11715&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And, ofcourse, you'll need to install various &lt;tt&gt;-dev&lt;/tt&gt; packages such as &lt;tt&gt;zlib1g-dev&lt;/tt&gt; to satisfy Python's library dependencies. You can see which ones you're missing by taking a look at the compile output where it complains about failed modules.&lt;/p&gt;</description><author>irmen@xs4all.nl</author><category>Python</category><comments>http://www.razorvine.net/blog/user/irmen/article/2011-11-29/307#writecomment</comments><guid isPermaLink="true">http://www.razorvine.net/blog/user/irmen/article/2011-11-29/307</guid><pubDate>Tue, 29 Nov 2011 23:03:00 GMT</pubDate><source url="http://www.razorvine.net/blog/user/irmen/">Irmen's blog - Spinsels op het web</source></item><item><title>pickle efficiency when dealing with binary data</title><link>http://www.razorvine.net/blog/user/irmen/article/2011-11-27/306</link><description>&lt;p&gt;For my Pyro project I recently wrote in some detail about the pickle efficiency of various types when dealing with binary data. I've added it to the Pyro documentation but it is also useful when dealing with pickle in general.&lt;/p&gt;
&lt;p&gt;So, here is a short overview of the pickle wire protocol overhead for the possible types you can use when transferring binary data:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;tt&gt;str&lt;/tt&gt;&lt;br /&gt;
    Python 2.x: efficient; directly encoded as a byte sequence, because that’s what it is. Python 3.x: inefficient; encoded in UTF-8 on the wire, because it is a unicode string.
&lt;/li&gt;
&lt;li&gt;&lt;tt&gt;bytes&lt;/tt&gt;&lt;br /&gt;
    Python 2.x: same as str. Python 3.x: efficient; directly encoded as a byte sequence.
&lt;/li&gt;
&lt;li&gt;&lt;tt&gt;bytearray&lt;/tt&gt;&lt;br /&gt;
    Inefficient; encoded as UTF-8 on the wire (pickle does this in both Python 2.x and 3.x)
&lt;/li&gt;
&lt;li&gt;&lt;tt&gt;array(&amp;quot;B&amp;quot;)&lt;/tt&gt; (array of unsigned ints of size 1)&lt;br /&gt;
    Python 2.x: very inefficient; every element is encoded as a separate token+value. Python 3.x: efficient; uses machine type encoding on the wire (a byte sequence).
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Your best bet seems to be to use the &lt;tt&gt;bytes&lt;/tt&gt; type (and possibly the &lt;tt&gt;array(&amp;quot;B&amp;quot;)&lt;/tt&gt; type if you’re using Python 3.x) and stay clear from the rest. It’s strange that the &lt;tt&gt;bytearray&lt;/tt&gt; type is encoded so inefficiently by pickle.&lt;/p&gt;
&lt;p&gt;A bytearray is pickled (using max protocol) as follows:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&amp;gt;&amp;gt;&amp;gt; pickletools.dis(pickle.dumps(bytearray([255]*10),2))
    0: \x80 PROTO      2
    2: c    GLOBAL     '__builtin__ bytearray'
   25: q    BINPUT     0
   27: X    BINUNICODE u'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'
   52: q    BINPUT     1
   54: U    SHORT_BINSTRING 'latin-1'
   63: q    BINPUT     2
   65: \x86 TUPLE2
   66: q    BINPUT     3
   68: R    REDUCE
   69: q    BINPUT     4
   71: .    STOP

&amp;gt;&amp;gt;&amp;gt; bytearray(&amp;quot;\xff&amp;quot;*10).__reduce__()
(&amp;lt;type 'bytearray'&amp;gt;, (u'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff', 'latin-1'), None)&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Most notably, the actual
*bytes* in the bytearray are represented by an UTF-8 string. This needs to be
transformed into a unicode string and then encoded back into bytes, when unpickled. The thing being a bytearray, I would expect it to be pickled as such: a sequence of bytes.
And then possibly converted back to bytearray using the constructor that takes the bytes
directly (BINSTRING/BINBYTES pickle opcodes).&lt;/p&gt;
&lt;p&gt;The above occurs both on Python 2.x and 3.x.&lt;/p&gt;
&lt;p&gt;I have no idea yet why this is. Maybe I'll write a patch to improve it, doesn't seem that hard to do.&lt;/p&gt;</description><author>irmen@xs4all.nl</author><category>Python</category><comments>http://www.razorvine.net/blog/user/irmen/article/2011-11-27/306#writecomment</comments><guid isPermaLink="true">http://www.razorvine.net/blog/user/irmen/article/2011-11-27/306</guid><pubDate>Sun, 27 Nov 2011 15:39:00 GMT</pubDate><source url="http://www.razorvine.net/blog/user/irmen/">Irmen's blog - Spinsels op het web</source></item></channel></rss>
