<?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/"
	>

<channel>
	<title>Bramz' warehouse</title>
	<atom:link href="http://www.bramz.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bramz.net</link>
	<description>home page of Bram de Greve, aka Bramz: ramblings about programming, photography and other stuff.</description>
	<lastBuildDate>Wed, 29 Apr 2009 20:42:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The Next Big Thing III @ Cactusclub</title>
		<link>http://www.bramz.net/2009/04/29/the-next-big-thing-iii-cactusclub/</link>
		<comments>http://www.bramz.net/2009/04/29/the-next-big-thing-iii-cactusclub/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 20:40:05 +0000</pubDate>
		<dc:creator>Bramz</dc:creator>
				<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://www.bramz.net/?p=380</guid>
		<description><![CDATA[The Next Big Thing, Keremos&#8216; showcase of talented young bands, is touring through Flanders and last Friday they&#8217;ve ended up at the Cactusclub @ MaZ.  As this venue is virtually next door to me, I went to shoot some pictures for Indiestyle.  Only three bands this time: Roadburg, The Galacticos and Steak Number [...]]]></description>
			<content:encoded><![CDATA[<p>The Next Big Thing, <a href="http://keremos.be/">Keremos</a>&#8216; showcase of talented young bands, is touring through Flanders and last Friday they&#8217;ve ended up at the <a href="http://cactusmusic.be/">Cactusclub @ MaZ</a>.  As this venue is virtually next door to me, I went to shoot some pictures for <a href="http://www.indiestyle.be/">Indiestyle</a>.  Only three bands this time: <a href="http://www.myspace.com/roadburg">Roadburg</a>, <a href="http://www.myspace.com/thegalacticos">The Galacticos</a> and <a href="http://www.myspace.com/steakn8">Steak Number Eight</a> as headliner.</p>
<p><strong>Links to complete photo series: <a href="http://gallery.bramz.net/gigs/steakn8_20090424/">Steak Number Eight</a>, <a href="http://gallery.bramz.net/gigs/the_galacticos_20090424/">The Galacticos</a> and <a href="http://gallery.bramz.net/gigs/roadburg_20090424/">Roadburg</a>.</strong></p>
<p><a href="http://gallery.bramz.net/gigs/steakn8_20090424/"><img src="http://www.bramz.net/wp-content/uploads/2009/04/steakn8_20090424_02-blog.jpg" alt="Steak Number Eight @ The Next Big Thing III: Cactusclub, 24 April 2009 (copyright Bram de Greve)" title="Steak Number Eight @ The Next Big Thing III: Cactusclub, 24 April 2009 (copyright Bram de Greve)" width="311" height="440" class="aligncenter size-full wp-image-381" /></a></p>
<p><a href="http://gallery.bramz.net/gigs/the_galacticos_20090424/"><img src="http://www.bramz.net/wp-content/uploads/2009/04/the_galacticos_20090424_03-blog.jpg" alt="The Galacticos @ The Next Big Thing III: Cactusclub, 24 April 2009 (copyright Bram de Greve)" title="The Galacticos @ The Next Big Thing III: Cactusclub, 24 April 2009 (copyright Bram de Greve)" width="440" height="311" class="aligncenter size-full wp-image-382" /></a></p>
<p><a href="http://gallery.bramz.net/gigs/roadburg_20090424/"><img src="http://www.bramz.net/wp-content/uploads/2009/04/roadburg_20090424_01-blog.jpg" alt="Roadburg @ The Next Big Thing III: Cactusclub, 24 April 2009 (copyright Bram de Greve)" title="Roadburg @ The Next Big Thing III: Cactusclub, 24 April 2009 (copyright Bram de Greve)" width="311" height="440" class="aligncenter size-full wp-image-383" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bramz.net/2009/04/29/the-next-big-thing-iii-cactusclub/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arsenal @ Vooruit, 28 March 2009</title>
		<link>http://www.bramz.net/2009/04/04/arsenal-vooruit-28-march-2009/</link>
		<comments>http://www.bramz.net/2009/04/04/arsenal-vooruit-28-march-2009/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 12:24:33 +0000</pubDate>
		<dc:creator>Bramz</dc:creator>
				<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://www.bramz.net/?p=355</guid>
		<description><![CDATA[Last week, I was at Vooruit in Ghent to shoot Arsenal for Indiestyle.  Only one little spark was necessary to set fire to the sold out venue, keeping outside the cold rainy night. And quite a party it was with hits like Estupendo, Lotuk, Saudade and A Volta. Arsenal had invited several guests who [...]]]></description>
			<content:encoded><![CDATA[<p>Last week, I was at <a href="http://vooruit.be/">Vooruit</a> in Ghent to shoot <a href="http://www.arsenal-music.com/">Arsenal</a> for <a href="http://www.indiestyle.be/">Indiestyle</a>.  Only one little spark was necessary to set fire to the sold out venue, keeping outside the cold rainy night. And quite a party it was with hits like Estupendo, Lotuk, Saudade and A Volta. Arsenal had invited several guests who colaborated on previous albums: Gabriel Rios, Baloji, Mike Ladd and Chi Zang, resulting in a unique performance.  </p>
<p><strong>Links to complete photo series: <a href="http://gallery.bramz.net/gigs/arsenal_20090328/">Arsenal</a>, <a href="http://gallery.bramz.net/gigs/mike_ladd_20090328/">Mike Ladd</a> and <a href="http://gallery.bramz.net/gigs/balthazar_20090328/">Balthazar</a>.</strong></p>
<p><a href="http://gallery.bramz.net/gigs/arsenal_20090328/"><img src="http://www.bramz.net/wp-content/uploads/2009/04/arsenal_20090328_01_blog.jpg" alt="Arsenal @ Vooruit, 28 March 2009 (copyright Bram de Greve)" title="Arsenal @ Vooruit, 28 March 2009 (copyright Bram de Greve)" width="311" height="440" class="aligncenter size-full wp-image-356" /></a></p>
<p><a href="http://gallery.bramz.net/gigs/arsenal_20090328/"><img src="http://www.bramz.net/wp-content/uploads/2009/04/arsenal_20090328_12_blog.jpg" alt="Arsenal @ Vooruit, 28 March 2009 (copyright Bram de Greve)" title="Arsenal @ Vooruit, 28 March 2009 (copyright Bram de Greve)" width="311" height="440" class="aligncenter size-full wp-image-359" /></a></p>
<p><a href="http://gallery.bramz.net/gigs/arsenal_20090328/"><img src="http://www.bramz.net/wp-content/uploads/2009/04/arsenal_20090328_03_blog.jpg" alt="Arsenal @ Vooruit, 28 March 2009 (copyright Bram de Greve)" title="Arsenal @ Vooruit, 28 March 2009 (copyright Bram de Greve)" width="311" height="440" class="aligncenter size-full wp-image-361" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bramz.net/2009/04/04/arsenal-vooruit-28-march-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Sedan Vault &amp; Madensuyu @ Cactus</title>
		<link>http://www.bramz.net/2009/03/17/the-sedan-vault-madensuyu/</link>
		<comments>http://www.bramz.net/2009/03/17/the-sedan-vault-madensuyu/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 20:13:42 +0000</pubDate>
		<dc:creator>Bramz</dc:creator>
				<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://www.bramz.net/?p=334</guid>
		<description><![CDATA[Last Sunday night, I was at the Cactus Club @ MaZ to shoot The Sedan Vault and Madensuyu for Indiestyle.be.  Neither band I&#8217;ve heard of before, except for Madensuyu&#8217;s appearance on LUX, but I was pleasantly surprised.  Every fragment that was able to enter my consciousness I fully enjoyed.  Pure explosions of [...]]]></description>
			<content:encoded><![CDATA[<p>Last Sunday night, I was at the <a href="http://www.cactusmusic.be/">Cactus Club @ MaZ</a> to shoot <a href="http://www.thesedanvault.com/">The Sedan Vault</a> and <a href="http://www.madensuyu.be/">Madensuyu</a> for <a href="http://indiestyle.be/">Indiestyle.be</a>.  Neither band I&#8217;ve heard of before, except for Madensuyu&#8217;s appearance on <a href="http://cultuur.canvas.be/category/lux/deze-week/">LUX</a>, but I was pleasantly surprised.  Every fragment that was able to enter my consciousness I fully enjoyed.  Pure explosions of clever experimental Belgian rock!  Definitely something worth checking out &#8230; </p>
<p><strong>Links to complete photo series: <a href="http://gallery.bramz.net/gigs/the_sedan_vault_20090315/">The Sedan Vault</a> and <a href="http://gallery.bramz.net/gigs/madensuyu_20090315/">Madensuyu</a>.</strong></p>
<p><a href="http://gallery.bramz.net/gigs/the_sedan_vault_20090315/"><img src="http://www.bramz.net/wp-content/uploads/2009/03/the_sedan_vault_20090315_02_blog.jpg" alt="The Sedan Vault @ Cactus Club (MaZ), 15 March 2009 (copyright Bram de Greve)" title="The Sedan Vault @ Cactus Club (MaZ), 15 March 2009 (copyright Bram de Greve)" width="311" height="440" class="aligncenter size-full wp-image-339" /></a></p>
<p><a href="http://gallery.bramz.net/gigs/the_sedan_vault_20090315/"><img src="http://www.bramz.net/wp-content/uploads/2009/03/the_sedan_vault_20090315_12_blog.jpg" alt="The Sedan Vault @ Cactus Club (MaZ), 15 March 2009 (copyright Bram de Greve)" title="The Sedan Vault @ Cactus Club (MaZ), 15 March 2009 (copyright Bram de Greve)" width="311" height="440" class="aligncenter size-full wp-image-340" /></a></p>
<p><a href="http://gallery.bramz.net/gigs/madensuyu_20090315/"><img src="http://www.bramz.net/wp-content/uploads/2009/03/madensuyu_20090315_07_blog.jpg" alt="Madensuyu @ Cactus Club (MaZ), 15 March 2009 (copyright Bram de Greve)" title="Madensuyu @ Cactus Club (MaZ), 15 March 2009 (copyright Bram de Greve)" width="440" height="311" class="aligncenter size-full wp-image-345" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bramz.net/2009/03/17/the-sedan-vault-madensuyu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>name hiding and the using-declaration</title>
		<link>http://www.bramz.net/2009/03/12/name-hiding-using-declaration/</link>
		<comments>http://www.bramz.net/2009/03/12/name-hiding-using-declaration/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 21:10:32 +0000</pubDate>
		<dc:creator>Bramz</dc:creator>
				<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://www.bramz.net/?p=316</guid>
		<description><![CDATA[This post is inspired by a question posed by a colleague some time ago.  Consider following C++ code fragment in which B derives from A and declares a fun with a different signature:
#include &#60;iostream>

struct A
{
	void fun(int x) { std::cout &#60;&#60; "int A\n"; }
};

struct B: A
{
	void fun(float x) { std::cout &#60;&#60; "float B\n"; }
};

int main()
{
	B [...]]]></description>
			<content:encoded><![CDATA[<p>This post is inspired by a question posed by a colleague some time ago.  Consider following C++ code fragment in which <code>B</code> derives from <code>A</code> and declares a <code>fun</code> with a different signature:</p>
<pre>#include &lt;iostream>

struct A
{
	void fun(int x) { std::cout &lt;&lt; "int A\n"; }
};

struct B: A
{
	void fun(float x) { std::cout &lt;&lt; "float B\n"; }
};

int main()
{
	B b;
	b.fun(3);
	return 0;
}</pre>
<p>What shall it print?  If your answer is <code>int A</code>, you&#8217;re probably assuming that the compiler will choose the best possible overload between <code>A::fun</code> and <code>B::fun</code>.  In that case however you&#8217;re ignoring an often overlooked rule called <em>name hiding</em>.  </p>
<p>The truth is that when you declare a function in a derived class, any function in the parent class that goes by the same name will be hidden from <code>B</code>&#8217;s interface.  From the C++ standard (C++ 98, 3.3.7 &sect; 1): <em>&#8220;A name can be hidden by an explicit declaration of that same name in a nested declarative region or derived class.&#8221;</em>  The consequence is that <code>A::fun</code> will never be considered as a possible overload, and only suitable function to call is <code>B::fun</code>.  And so, the program will print <code>float B</code>.</p>
<p>Can it be fixed?  Well, it depends on what you mean by &#8220;fixed&#8221;, as nothing is broken.  But it surely is possible to bring back <code>A</code>&#8217;s <code>fun</code> into <code>B</code>&#8217;s interface so that it is considered as a potential overload again.  One labourious way to do it is by declaring a new function in <code>B</code> that forwards the call to <code>A</code>:  </p>
<pre>// laborious solution
struct B: A
{
	void fun(int x) { A::fun(x); }
	void fun(float x) { std::cout &lt;&lt; "float B\n"; }
};</pre>
<p>However, if there are many <code>fun</code> overloads in <code>A</code>, and many different derived classes like <code>B</code>, this quickly gets very annoying &#8230;</p>
<p>A far more easier solution is the <em>using-declaration</em> (C++ 98, 7.3.3 and 10.2 &sect; 2): <em>&#8220;A using-declaration introduces a name into the declarative region in which the using-declaration appears.  That name is a synonym for the name of some entity declared elsewhere.&#8221;</em>  It will declare <code>A</code>&#8217;s <code>fun</code> into <code>B</code>&#8217;s scope, and make it as such available as a potential overload:</p>
<pre>// easier solution
struct B: A
{
	using A::fun;
	void fun(float x) { std::cout &lt;&lt; "float B\n"; }
};</pre>
<p>Now the compiler will also consider <code>A::fun</code> as a possible overload and print <code>int A</code>.</p>
<p>There are however a few cases in which the using-declaration won&#8217;t help: e.g. you can&#8217;t use it on constructors as they don&#8217;t have a <em>name</em>.  For more details, see section 7.3.3 of the C++ 98 standard.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bramz.net/2009/03/12/name-hiding-using-declaration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Write Shared Libraries</title>
		<link>http://www.bramz.net/2009/03/09/shared-libraries/</link>
		<comments>http://www.bramz.net/2009/03/09/shared-libraries/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 21:40:40 +0000</pubDate>
		<dc:creator>Bramz</dc:creator>
				<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://www.bramz.net/?p=303</guid>
		<description><![CDATA[This post serves as a bookmark for a little gem I&#8217;ve found: How To Write Shared Libraries (pdf) by Ulrich Drepper.  It&#8217;s a 47 page document on writing shared libraries in a Unix environment.
]]></description>
			<content:encoded><![CDATA[<p>This post serves as a bookmark for a little gem I&#8217;ve found: <a href="http://people.redhat.com/drepper/dsohowto.pdf">How To Write Shared Libraries</a> (pdf) by <a href="http://people.redhat.com/drepper/">Ulrich Drepper</a>.  It&#8217;s a 47 page document on writing shared libraries in a Unix environment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bramz.net/2009/03/09/shared-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Next Big Thing, 13 Nov 2008, part 2</title>
		<link>http://www.bramz.net/2008/12/22/the-next-big-thing-part-2/</link>
		<comments>http://www.bramz.net/2008/12/22/the-next-big-thing-part-2/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 19:55:08 +0000</pubDate>
		<dc:creator>Bramz</dc:creator>
				<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://www.bramz.net/?p=256</guid>
		<description><![CDATA[Two weeks ago, I reported on the first three bands that hit the stage on The Next Big Thing showcase night by Keremos.  So that means you still have three more left.  For these bands, I replaced the Sigma 30mm f/1.4 lens by my wide-angle zoom EF-S 17-55mm f/2.8 IS USM.  Though [...]]]></description>
			<content:encoded><![CDATA[<p>Two weeks ago, I reported on the <a href="http://www.bramz.net/2008/12/06/the-next-big-thing-part-1/">first three bands</a> that hit the stage on The Next Big Thing showcase night by <a href="http://www.keremos.be/">Keremos</a>.  So that means you still have three more left.  For these bands, I replaced the Sigma 30mm f/1.4 lens by my wide-angle zoom <a href="http://www.canon.co.uk/For_Home/Product_Finder/Cameras/EF_Lenses/Zoom_Lenses/EF-S_17-55_f28_IS_USM/index.asp">EF-S 17-55mm f/2.8 IS USM</a>.  Though two stops slower, it supports image stabilisation (IS) which should in theory compensate for three stops.  However, with fast moving targets, that&#8217;s not always helpful in practice.  On the other hand, it <em>is</em> a zoom giving an extra degree of freedom which is useful if you&#8217;re stuck to your position, <em>and</em> its glass is of excellent quality.  Still, it&#8217;s hard to say which one performed best.  Also, a lot of the pics are actually taken with the 100mm prime.</p>
<p><a href="http://www.myspace.com/teamwilliam">Team William</a> is a funky indie pop band that mixes guitars with something that reminds me of 8-bit game consoles.  It has an odd sound that I really like.  They played on the small stage: no smoke and steady (mainly reddish) lights.  Not perfect, but good enough for some nice shots.  Some worked out better in black &amp; white, because of the strong red colourcast. </p>
<p><a href="http://gallery.bramz.net/gigs/team_william_20081113/"><img src="http://www.bramz.net/wp-content/uploads/2008/12/team_william_20081113_01-blog.jpg" alt="Team William @ The Next Big Thing, 13 November 2008 (by Bram de Greve)" title="Team William @ The Next Big Thing, 13 November 2008 (by Bram de Greve)" width="311" height="440" class="aligncenter size-full wp-image-268" /></a></p>
<p><a href="http://gallery.bramz.net/gigs/team_william_20081113/"><img src="http://www.bramz.net/wp-content/uploads/2008/12/team_william_20081113_03-blog.jpg" alt="Team William @ The Next Big Thing, 13 November 2008 (by Bram de Greve)" title="Team William @ The Next Big Thing, 13 November 2008 (by Bram de Greve)" width="440" height="311" class="aligncenter size-full wp-image-267" /></a></p>
<p><a href="http://www.myspace.com/kawadamusic">Kawada</a> is a formation around Joeri Cnapelinckx, playing somewhat more introspective tunes.  Listen to <em>Creating a bigger boat</em> for an easy but very enjoyable song, or <em>Fake license</em> for a more fun fanfare-loaded track. They were the last band to ascend the big stage, and again it proofed quite hard to get any decent pics: too dark and too much smoke.  Yet, of all bands on this stage, I like their pictures most.</p>
<p><a href="http://gallery.bramz.net/gigs/kawada_20081113/"><img src="http://www.bramz.net/wp-content/uploads/2008/12/kawada_20081113_01-blog.jpg" alt="Kawada @ The Next Big Thing, 13 November 2008 (by Bram de Greve)" title="Kawada @ The Next Big Thing, 13 November 2008 (by Bram de Greve)" width="311" height="440" class="aligncenter size-full wp-image-264" /></a></p>
<p>The last band of the night was <a href="http://www.myspace.com/roadburg">Roadburg</a>.  Sharing two members with <a href="http://www.myspace.com/thegalacticos">The Galacticos</a>, they are at least as cheerful, albeit jazzier. Which is nice. An old tube radio was featured as prop and apparently it is also very handy to put your drinks on.</p>
<p><a href="http://gallery.bramz.net/gigs/roadburg_20081113/"><img src="http://www.bramz.net/wp-content/uploads/2008/12/roadburg_20081113_01-blog.jpg" alt="Roadburg @ The Next Big Thing, 13 November 2008 (by Bram de Greve)" title="Roadburg @ The Next Big Thing, 13 November 2008 (by Bram de Greve)" width="311" height="440" class="aligncenter size-full wp-image-260" /></a></p>
<p><a href="http://gallery.bramz.net/gigs/roadburg_20081113/"><img src="http://www.bramz.net/wp-content/uploads/2008/12/roadburg_20081113_02-blog.jpg" alt="Roadburg @ The Next Big Thing, 13 November 2008 (by Bram de Greve)" title="Roadburg @ The Next Big Thing, 13 November 2008 (by Bram de Greve)" width="311" height="440" class="aligncenter size-full wp-image-274" /></a></p>
<p><strong>Links to complete photo series: <a href="http://gallery.bramz.net/gigs/team_william_20081113/">Team William</a>, <a href="http://gallery.bramz.net/gigs/kawada_20081113/">Kawada</a> and <a href="http://gallery.bramz.net/gigs/roadburg_20081113/">Roadburg</a>.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bramz.net/2008/12/22/the-next-big-thing-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python string interpolation trick</title>
		<link>http://www.bramz.net/2008/12/07/python-string-interpolation-trick/</link>
		<comments>http://www.bramz.net/2008/12/07/python-string-interpolation-trick/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 16:55:15 +0000</pubDate>
		<dc:creator>Bramz</dc:creator>
				<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://www.bramz.net/?p=222</guid>
		<description><![CDATA[Today, I will show you a trick that may help you with the heavier string formatting jobs in Python.
Most people using Python know how to format output using string interpolation. It works much like C&#8217;s sprintf, except for the funny % operator:

&#62;&#62;&#62; a = "the Knights"
&#62;&#62;&#62; b = "Ni"
&#62;&#62;&#62; "we are %s who say %s" [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I will show you a trick that may help you with the heavier string formatting jobs in Python.</p>
<p>Most people using <a href="http://python.org/">Python</a> know how to format output using <a href="http://docs.python.org/library/stdtypes.html#string-formatting-operations">string interpolation</a>. It works much like C&#8217;s <code>sprintf</code>, except for the funny <code>%</code> operator:</p>
<pre>
&gt;&gt;&gt; a = "the Knights"
&gt;&gt;&gt; b = "Ni"
&gt;&gt;&gt; "we are %s who say %s" % (a, b)
'we are the Knights who say Ni'
</pre>
<p>What is less known is that you can replace the right hand argument by a dictionary and use its keys to tell what value goes where.  That&#8217;s handy when you need to insert more than one or two in a string, or when a single value is used more than once.  Especially for localisation strings, it gives you the flexibility to determine the when and where of the values in the string itself. </p>
<pre>
&gt;&gt;&gt; "we are %<strong>(who)</strong>s who say %<strong>(what)</strong>s" % <strong>{"who": a, "what": b}</strong>
'we are the Knights who say Ni'
</pre>
<p>Combine that with the even lesser known function <a href="http://docs.python.org/library/functions.html#vars"><code>vars()</code></a> which returns a dictionary of the local variables and their values:</p>
<pre>
&gt;&gt;&gt; vars()
{'__builtins__': &lt;module '__builtin__' (built-in)&gt;, '__name__':
 '__main__', 'b': 'Ni', '__doc__': None, 'a': 'the Knights'}
</pre>
<p>Use it at the right hand, and you can simply use the variable names as keywords:</p>
<pre>
&gt;&gt;&gt; "we are %<strong>(a)</strong>s who say %<strong>(b)</strong>s" % <strong>vars()</strong>
'we are the Knights who say Ni'
</pre>
<p>This probably is the closest you can get to the Perl and PHP style syntax <code>"we are the $a who say $b"</code>.</p>
<p>Share and Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bramz.net/2008/12/07/python-string-interpolation-trick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Next Big Thing, 13 Nov 2008, part 1</title>
		<link>http://www.bramz.net/2008/12/06/the-next-big-thing-part-1/</link>
		<comments>http://www.bramz.net/2008/12/06/the-next-big-thing-part-1/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 14:23:04 +0000</pubDate>
		<dc:creator>Bramz</dc:creator>
				<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://www.bramz.net/?p=193</guid>
		<description><![CDATA[Last month, I went to The Next Big Thing at Trix, a showcase night presented by Keremos.  Six promising young bands on the rise populated the bill: The Galacticos, Arquettes, Steak Number Eight, Team William, Kawada and Roadburg.  That much good on one night was a perfect opportunity to go and shoot some [...]]]></description>
			<content:encoded><![CDATA[<p>Last month, I went to The Next Big Thing at <a href="http://www.trixonline.be/">Trix</a>, a showcase night presented by <a href="http://www.keremos.be/">Keremos</a>.  Six promising young bands on the rise populated the bill: <a href="http://www.myspace.com/thegalacticos">The Galacticos</a>, <a href="http://www.myspace.com/arquettes">Arquettes</a>, <a href="http://www.myspace.com/steakn8">Steak Number Eight</a>, <a href="http://www.myspace.com/teamwilliam">Team William</a>, <a href="http://www.myspace.com/kawadamusic">Kawada</a> and <a href="http://www.myspace.com/roadburg">Roadburg</a>.  That much good on one night was a perfect opportunity to go and shoot some pictures.  For the following three bands, I&#8217;ve been using two prime lenses: a <a href="http://www.sigma-imaging-uk.com/lenses/dclenses/30mm.htm">Sigma 30mm f/1.4</a> and a <a href="http://www.canon.co.uk/For_Home/Product_Finder/Cameras/EF_Lenses/Fixed_Focal_Length/EF_100mm_f20_USM/index.asp">Canon EF 100mm f/2.0</a>.</p>
<p>The first band to hit the stage was <a href="http://www.myspace.com/thegalacticos">The Galacticos</a>: always in for a good show with happy rock and catchy melodies.  In contrast to last time at <a href="http://gallery.bramz.net/gigs/the_galacticos_20080627/">Tank series</a>, there was enough light at Trix to justify colour pictures. Though the excessive use of smoke made it quite difficult still. [<a href="http://gallery.bramz.net/gigs/the_galacticos_20081113/">photo series</a>]</p>
<p><a href="http://gallery.bramz.net/gigs/the_galacticos_20081113/"><img src="http://www.bramz.net/wp-content/uploads/2008/12/the_galacticos_20081113_01-blog.jpg" alt="" title="The Galacticos @ The Next Big Thing, 13 November 2008 (by Bram de Greve)" width="311" height="440" class="aligncenter size-full wp-image-198" /></a></p>
<p>I&#8217;ve seen <a href="http://www.myspace.com/arquettes">Arquettes</a> playing before, but this was the first time I had my camera with.  Though they played on the smaller stage with basic lights, I&#8217;m much more pleased with the results than of The Galacticos and Steak Number Eight.  Is it the lack of smoke?  Or the more static lighting flooding the stage?  I&#8217;ve done quite a few black &#038; white conversions as the red front lights almost always result in very ugly colour casts, even if you set your white balance at minimum colour temperature and drag down the red channel. But in some cases it was still acceptable. (<a href="http://gallery.bramz.net/gigs/arquettes_20081113/">photo series</a>)</p>
<p><a href="http://gallery.bramz.net/gigs/arquettes_20081113/"><img src="http://www.bramz.net/wp-content/uploads/2008/12/arquettes_20081113_02-blog.jpg" alt="" title="Arquettes @ The Next Big Thing, 13 November 2008 (by Bram de Greve)" width="440" height="311" class="aligncenter size-full wp-image-211" /></a></p>
<p><a href="http://gallery.bramz.net/gigs/arquettes_20081113/"><img src="http://www.bramz.net/wp-content/uploads/2008/12/arquettes_20081113_01-blog.jpg" alt="" title="Arquettes @ The Next Big Thing, 13 November 2008 (by Bram de Greve)" width="311" height="440" class="aligncenter size-full wp-image-201" /></a></p>
<p>Next on the main stage was <a href="http://www.myspace.com/steakn8">Steak Number Eight</a>.  I&#8217;ve seen them a number of times now and their slow and heavy wall of sound still impresses me.  The seemingly mandatory thick cloud of smoke made it quite impossible to get the crisp shots I was after.  And so I decided to play it a bit differently: desaturating the colours even further and upping the contrast, building up a grim atmosphere that fits their music. (<a href="http://gallery.bramz.net/gigs/steakn8_20081113/">photo series</a>)</p>
<p><a href="http://gallery.bramz.net/gigs/steakn8_20081113/"><img src="http://www.bramz.net/wp-content/uploads/2008/12/steakn8_20081113_02-blog.jpg" alt="" title="Steak Number Eight @ The Next Big Thing, 13 November 2008 (by Bram de Greve)" width="440" height="311" class="aligncenter size-full wp-image-218" /></a></p>
<p><a href="http://gallery.bramz.net/gigs/steakn8_20081113/"><img src="http://www.bramz.net/wp-content/uploads/2008/12/steakn8_20081113_03-blog.jpg" alt="" title="Steak Number Eight @ The Next Big Thing, 13 November 2008 (by Bram de Greve)" width="440" height="311" class="aligncenter size-full wp-image-219" /></a></p>
<p><strong>Links to complete photo series: <a href="http://gallery.bramz.net/gigs/the_galacticos_20081113/">The Galacticos</a>, <a href="http://gallery.bramz.net/gigs/arquettes_20081113/">Arquettes</a>, <a href="http://gallery.bramz.net/gigs/steakn8_20081113/">Steak Number Eight</a>.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bramz.net/2008/12/06/the-next-big-thing-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>manuals on software optimization</title>
		<link>http://www.bramz.net/2008/12/05/manuals-software-optimization/</link>
		<comments>http://www.bramz.net/2008/12/05/manuals-software-optimization/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 22:13:47 +0000</pubDate>
		<dc:creator>Bramz</dc:creator>
				<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://www.bramz.net/?p=119</guid>
		<description><![CDATA[While looking for some info on 64 bit masm, I stumbled on Agner Fog&#8217;s site with five comprehensive manuals on software optimization.  Each covers a different topic: optimizations in C/C++ and assembly, microarchitectures, instruction tables and calling conventions.
]]></description>
			<content:encoded><![CDATA[<p>While looking for some info on <a href="http://msdn.microsoft.com/en-us/library/hb5z4sxd.aspx">64 bit masm</a>, I stumbled on Agner Fog&#8217;s site with <a href="http://www.agner.org/optimize/">five comprehensive manuals</a> on software optimization.  Each covers a different topic: optimizations in C/C++ and assembly, microarchitectures, instruction tables and calling conventions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bramz.net/2008/12/05/manuals-software-optimization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dollarqueen @ Du Gaz, 8 Nov 2008</title>
		<link>http://www.bramz.net/2008/11/25/dollarqueen-du-gaz-8-nov-2008/</link>
		<comments>http://www.bramz.net/2008/11/25/dollarqueen-du-gaz-8-nov-2008/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 21:35:37 +0000</pubDate>
		<dc:creator>Bramz</dc:creator>
				<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://www.bramz.net/?p=166</guid>
		<description><![CDATA[After the After All gig, I rode back with Piet Focroul to Du Gaz in Bruges, where Dollarqueen was giving a show: a fairly new band but with experienced musicians, pure rock &#8216;n roll with a touch of blues and a hint of The Doors.  Their songs just get stuck in your head (my [...]]]></description>
			<content:encoded><![CDATA[<p>After the <a href="http://www.bramz.net/2008/11/25/after-all-blikfest-8-nov-2008/">After All gig</a>, I rode back with Piet Focroul to <a href="http://dugaz.be/">Du Gaz</a> in Bruges, where <a href="http://www.myspace.com/dollarqueen">Dollarqueen</a> was giving a show: a fairly new band but with experienced musicians, pure rock &#8216;n roll with a touch of blues and a hint of The Doors.  Their songs just get stuck in your head (my personal favourites: The bomb and Rock &#8216;n roll star).</p>
<p>The light conditions couldn&#8217;t have been more different than on Blikfest: static and dim.  Perfect conditions to try out my new <a href="http://www.sigmaphoto.com/lenses/lenses_all_details.asp?id=3300&#038;navigator=6">Sigma 30mm f/1.4</a>.  And with a crowd as packed as in Du Gaz on that night, the wide angle 30mm was very welcome (well, technically, due to the crop factor, it actually is equivalent to the standard FOV).</p>
<p><a href="http://gallery.bramz.net/gigs/dollarqueen_20081108/"><img src="http://www.bramz.net/wp-content/uploads/2008/11/dollarqueen_20081108_03-blog.jpg" alt="" title="Dollarqueen @ Du Gaz, 8 November 2008 (by Bram de Greve)" width="311" height="440" class="aligncenter size-full wp-image-170" /></a></p>
<p>Slow shutterspeeds, lots of motionblurred pictures, ugly colours only suitable for black and white.  And yet, somehow I love it!  I&#8217;m especially fond of the following detail of a microphone waiting on the floor with behind it a pair of feet tapping on the rhythm of the music:</p>
<p><a href="http://gallery.bramz.net/gigs/dollarqueen_20081108/"><img src="http://www.bramz.net/wp-content/uploads/2008/11/dollarqueen_20081108_04-blog.jpg" alt="" title="Dollarqueen @ Du Gaz, 8 November 2008 (by Bram de Greve)" width="311" height="440" class="aligncenter size-full wp-image-174" /></a></p>
<p>Kudos to Piet for the hospitality and introduction to this wonderful band!</p>
<p><strong><a href="http://gallery.bramz.net/gigs/dollarqueen_20081108/">link to complete photo series</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bramz.net/2008/11/25/dollarqueen-du-gaz-8-nov-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->