<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Erik Bauffman</title>
	
	<link>http://blog.bauffman.be</link>
	<description>Erik Bauffman, bits and pieces</description>
	<lastBuildDate>Thu, 25 Apr 2013 14:56:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/bauffman" /><feedburner:info uri="bauffman" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><item>
		<title>Hoe je vooral geen e-mails moet sturen</title>
		<link>http://blog.bauffman.be/2013/04/25/hoe-je-vooral-geen-e-mails-moet-sturen/</link>
		<comments>http://blog.bauffman.be/2013/04/25/hoe-je-vooral-geen-e-mails-moet-sturen/#comments</comments>
		<pubDate>Thu, 25 Apr 2013 14:54:22 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[mongool]]></category>
		<category><![CDATA[signature]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=247</guid>
		<description><![CDATA[Vandaag kreeg ik een e-mail van een persoon die we niet nader gaan noemen. Laten we het erop houden dat <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2013/04/25/hoe-je-vooral-geen-e-mails-moet-sturen/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>Vandaag kreeg ik een e-mail van een persoon die we niet nader gaan noemen. Laten we het erop houden dat het iemand is die in de jaren 90 is blijven steken.</p>
<p>Wil jij dus ook e-mails versturen als een aap uit de glorietijd van msn? Gebruik de template hieronder!</p>
<p>&nbsp;</p>
<blockquote><p>Beste [naam verkeerd gespeld],</p>
<p>[inhoud]</p>
<p>[naam afzender]*<br />
[firma naam]<br />
[job titel]<br />
[telefoon]<br />
[fax]<br />
[e-mailadres]*<br />
[website]*</p>
<p>Nieuw!<br />
Like ons op FB en maak kans op prachtige prijzen! [link naar fb]</p>
<p><em><strong>Denk even aan het milieu voor je deze e-mail afdrukt.</strong></em></p>
<p>=======<br />
E-mail gescand door PC Tools &#8211; geen virussen of spyware aangetroffen.<br />
(Email Guard: 9.0.0.912, Virus/Spyware Database: 6.21090)</p>
<p>http://www.pctools.com/</p>
<p>=======<br />
Deze e-mail en zijn bijlagen zijn STRIKT vertrouwelijk en uitsluitend bestemd voor het gebruik van de bestemmeling. Tenzij u de bestemmeling bent of de persoon verantwoordelijk voor de afgifte van dit bericht aan de bestemmeling, dient u zich te onthouden van elke bekendmaking, reproduktie, verspreiding of elk ander gebruik van dit bericht. Indien U dit bericht per vergissing heeft ontvangen, wordt u vriendelijk verzocht ons onmiddellijk telefonisch op de hoogte te brengen [telefoon] en deze e-mail en haar bijlagen definitief te vernietigen.</p></blockquote>
<p>&nbsp;</p>
<hr />
<p>Alle velden aangeduid met een * zijn uiteraard de exacte gegevens waarmee je die e-mail verstuurd. Het is dus best wel handig dat je in je signature herhaalt, want we weten allemaal dat mensen nogal snel durven vergeten!&lt;/sarc&gt;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2013/04/25/hoe-je-vooral-geen-e-mails-moet-sturen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rails test database not resetting correctly</title>
		<link>http://blog.bauffman.be/2013/04/19/rails-test-database-not-resetting-correctly/</link>
		<comments>http://blog.bauffman.be/2013/04/19/rails-test-database-not-resetting-correctly/#comments</comments>
		<pubDate>Fri, 19 Apr 2013 06:37:47 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[factory girl]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[rspec]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=245</guid>
		<description><![CDATA[I have no idea why, but so far I&#8217;ve had this problem twice. My specs suddenly start failing for no <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2013/04/19/rails-test-database-not-resetting-correctly/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>I have no idea why, but so far I&#8217;ve had this problem twice. My specs suddenly start failing for no apparent reason. When digging deeper, it seems my test database is not reset before starting the tests. Therefor quite a few validations fail because of unique constraints. The following code cleans the test database up.</p>
<p><code>rake db:test:prepare</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2013/04/19/rails-test-database-not-resetting-correctly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Select a single column with active record</title>
		<link>http://blog.bauffman.be/2012/09/11/select-a-single-column-with-active-record/</link>
		<comments>http://blog.bauffman.be/2012/09/11/select-a-single-column-with-active-record/#comments</comments>
		<pubDate>Tue, 11 Sep 2012 10:55:25 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[active record]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[pluck]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[single column]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=242</guid>
		<description><![CDATA[I have an &#8216;Image&#8217; model and I needed to select only the &#8216;id&#8217; column as an array. ids = Image.pluck(:id) <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2012/09/11/select-a-single-column-with-active-record/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>I have an &#8216;Image&#8217; model and I needed to select only the &#8216;id&#8217; column as an array.</p>
<blockquote><p><code>ids = Image.pluck(:id)</code></p></blockquote>
<p>You can easily combine this with a where clause.</p>
<blockquote><p><code>ids = Image.where(field: 'value').pluck(:id)</code></p></blockquote>
<p>Check the <a href="http://apidock.com/rails/ActiveRecord/Calculations/pluck">official documentation</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2012/09/11/select-a-single-column-with-active-record/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert latin1 tables/fields to utf8</title>
		<link>http://blog.bauffman.be/2012/06/07/convert-latin1-tablesfields-to-utf8/</link>
		<comments>http://blog.bauffman.be/2012/06/07/convert-latin1-tablesfields-to-utf8/#comments</comments>
		<pubDate>Thu, 07 Jun 2012 11:09:58 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[latin1]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[utf8]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=236</guid>
		<description><![CDATA[I had some screwup which made all my tables/fields latin1. That sucks, because I didn&#8217;t want to manually correct this. <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2012/06/07/convert-latin1-tablesfields-to-utf8/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>I had some screwup which made all my tables/fields latin1. That sucks, because I didn&#8217;t want to manually correct this. I found the following lines of code that fix this problem.</p>
<pre><code>mysql --database=marlon -B -N -e "SHOW TABLES" \
| awk '{print "ALTER TABLE", $1, "CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;"}' \
| mysql --database=marlon &#038;</code></pre>
<p>Also note that if you&#8217;re converting from some other obscure character set it&#8217;s best to first convert to binary and then convert to utf8, making sure you won&#8217;t lose data in the conversion.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2012/06/07/convert-latin1-tablesfields-to-utf8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fake ajax requests with cURL</title>
		<link>http://blog.bauffman.be/2012/06/06/how-to-fake-ajax-requests-with-curl/</link>
		<comments>http://blog.bauffman.be/2012/06/06/how-to-fake-ajax-requests-with-curl/#comments</comments>
		<pubDate>Wed, 06 Jun 2012 21:20:34 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[fake]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=232</guid>
		<description><![CDATA[If you need to fake ajax requests you can do this in the console (on Mac). curl -H 'X-Requested-With: XMLHttpRequest' <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2012/06/06/how-to-fake-ajax-requests-with-curl/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>If you need to fake ajax requests you can do this in the console (on Mac).</p>
<pre><code>curl -H 'X-Requested-With: XMLHttpRequest' -d "my=var" http://localhost/en/my/page</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2012/06/06/how-to-fake-ajax-requests-with-curl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delete all tables in a MySQL database</title>
		<link>http://blog.bauffman.be/2012/03/30/delete-all-tables-in-a-mysql-database/</link>
		<comments>http://blog.bauffman.be/2012/03/30/delete-all-tables-in-a-mysql-database/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 09:23:10 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[drop tables]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=230</guid>
		<description><![CDATA[I was looking for a script to delete all tables in a MySQL database without having to drop the database. <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2012/03/30/delete-all-tables-in-a-mysql-database/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>I was looking for a script to delete all tables in a MySQL database without having to drop the database.</p>
<p><code>mysqldump -u [username] -p --add-drop-table [database] | grep ^DROP | mysql -u [username] -p</code></p>
<p>/cc <a href="http://code.davelens.be">@davelens</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2012/03/30/delete-all-tables-in-a-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacOSX maximize any window</title>
		<link>http://blog.bauffman.be/2012/03/05/macosx-maximize-any-window/</link>
		<comments>http://blog.bauffman.be/2012/03/05/macosx-maximize-any-window/#comments</comments>
		<pubDate>Mon, 05 Mar 2012 18:25:57 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[maximize]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[shortcuts]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=226</guid>
		<description><![CDATA[I&#8217;m a keyboard man and I want to know as many useful shortcuts as humanly possible. I got a great <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2012/03/05/macosx-maximize-any-window/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m a keyboard man and I want to know as many useful shortcuts as humanly possible. I got a great tip from <a href="http://code.davelens.be/">Dave Lens</a> on how to configure MacOSX to bind cmd+m to maximize almost any window.</p>
<p><img class="alignnone size-full wp-image-227" title="Keyboard shortcuts" src="http://blog.bauffman.be/wp-content/uploads/2012/03/keyboard-settings.png" alt="" width="666" height="600" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2012/03/05/macosx-maximize-any-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blimp</title>
		<link>http://blog.bauffman.be/2012/02/03/blimp/</link>
		<comments>http://blog.bauffman.be/2012/02/03/blimp/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 11:52:06 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[blimp]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[webdesign]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=214</guid>
		<description><![CDATA[Omdat ik altijd op zoek ben naar uitdagingen en je niet om 18u ineens stopt met &#8216;developer&#8217; te zijn, ben <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2012/02/03/blimp/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>Omdat ik altijd op zoek ben naar uitdagingen en je niet om 18u ineens stopt met &#8216;developer&#8217; te zijn, ben ik in te huren als freelance developer.</p>
<p>Je kan bij mij terecht voor onder andere:<br />
- websites<br />
- webapplicaties<br />
- maatwerk voor Fork CMS</p>
<p>Heb je andere vragen? Wil je even samenzitten om je project te bespreken of ben je op zoek naar advies? <a href="mailto:davy@blimp.be" title="Mail naar davy@blimp.be">Contacteer mij</a> geheel vrijblijvend.</p>
<p>- <a href="http://www.blimp.be" title="Blimp webdevelopment">www.blimp.be</a><br />
- <a href="http://twitter.com/bauffman" title="@bauffman on Twitter">twitter (@bauffman)</a><br />
- <a href="http://be.linkedin.com/in/davyhellemans">linkedIn</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2012/02/03/blimp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing filename case in Git</title>
		<link>http://blog.bauffman.be/2011/09/07/changing-filename-case-in-git/</link>
		<comments>http://blog.bauffman.be/2011/09/07/changing-filename-case-in-git/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 20:22:02 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[case]]></category>
		<category><![CDATA[filename]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[move]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=207</guid>
		<description><![CDATA[I have a file named &#8216;filter.php&#8217; and I renamed it to &#8216;Filter.php&#8217;, but Git doesn&#8217;t notice this. Instead I needed <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2011/09/07/changing-filename-case-in-git/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>I have a file named &#8216;filter.php&#8217; and I renamed it to &#8216;Filter.php&#8217;, but Git doesn&#8217;t notice this. Instead I needed to do something like this:</p>
<pre><code>git mv filter.php filter.php2
git mv filter.php2 Filter.php</code></pre>
<p>It looks stupid, but it works like a charm!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2011/09/07/changing-filename-case-in-git/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Filtering files and directories in zend studio projects</title>
		<link>http://blog.bauffman.be/2011/08/12/filtering-files-and-directories-in-zend-studio-projects/</link>
		<comments>http://blog.bauffman.be/2011/08/12/filtering-files-and-directories-in-zend-studio-projects/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 20:20:58 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[studio]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=200</guid>
		<description><![CDATA[Zend Studio adds some files and directories to every project. I have no problem with that, but I don&#8217;t wish <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2011/08/12/filtering-files-and-directories-in-zend-studio-projects/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>Zend Studio adds some files and directories to every project. I have no problem with that, but I don&#8217;t wish to see these files. You can add an exclude filter in the project properties (richtclick an open project).</p>
<div id="attachment_201" class="wp-caption alignnone" style="width: 278px"><img class="size-full wp-image-201" title="The default view (showing all files)" src="http://blog.bauffman.be/wp-content/uploads/2011/08/Screen-Shot-2011-08-12-at-22.08.57.png" alt="" width="268" height="239" /><p class="wp-caption-text">The default view (showing all files)</p></div>
<p>Right click the project and then click &#8216;properties&#8217;.</p>
<div id="attachment_202" class="wp-caption alignnone" style="width: 944px"><img class="size-full wp-image-202" title="The settings under resource &gt;resource filters" src="http://blog.bauffman.be/wp-content/uploads/2011/08/Screen-Shot-2011-08-12-at-22.09.08.png" alt="" width="934" height="568" /><p class="wp-caption-text">The settings under resource &gt;resource filters</p></div>
<p>Click the add button.</p>
<div id="attachment_203" class="wp-caption alignnone" style="width: 775px"><img class="size-full wp-image-203" title="Add the regex rule to exclude every folder/file that starts with a dot" src="http://blog.bauffman.be/wp-content/uploads/2011/08/Screen-Shot-2011-08-12-at-22.09.21.png" alt="" width="765" height="493" /><p class="wp-caption-text">Add the regex rule to exclude every folder/file that starts with a dot</p></div>
<p>If you do all this you should get the following result.</p>
<div id="attachment_204" class="wp-caption alignnone" style="width: 274px"><img class="size-full wp-image-204" title="Filtered results" src="http://blog.bauffman.be/wp-content/uploads/2011/08/Screen-Shot-2011-08-12-at-22.15.33.png" alt="" width="264" height="169" /><p class="wp-caption-text">Filtered results</p></div>
<p>Do note that for some strange reason the &#8216;.project&#8217; file will always be shown. Probably some internal reason, but I couldn&#8217;t find why that is.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2011/08/12/filtering-files-and-directories-in-zend-studio-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Waarom ik een probleem heb met Mobistar</title>
		<link>http://blog.bauffman.be/2011/07/14/waarom-ik-een-probleem-heb-met-mobistar/</link>
		<comments>http://blog.bauffman.be/2011/07/14/waarom-ik-een-probleem-heb-met-mobistar/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 17:36:37 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[afzetters]]></category>
		<category><![CDATA[mobistar]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=197</guid>
		<description><![CDATA[Vandaag 14 juli 2011 krijg ik een brief in de bus van Mobistar, waarin het volgende staat: Geachte Klant, Mobistar <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2011/07/14/waarom-ik-een-probleem-heb-met-mobistar/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>Vandaag 14 juli 2011 krijg ik een brief in de bus van Mobistar, waarin het volgende staat:</p>
<blockquote><p>Geachte Klant,</p>
<p>Mobistar wil je graag belonen voor je trouw! Dankzij je contractverlenging van 24 maanden, geniet je voortaan:</p>
<p>- elke maand 40 uur om naar Mobistar-nummers te bellen. Deze gratis minuten zijn geldig in het weekend en op feestdagen. Je ontvangt dit voordeel gedurende 24 maanden.</p>
<p>&#8230;</p>
<p><strong>PS: Indien de Overeenkomst op afstand wordt afgesloten: de consument heeft het recht aan de verkoper mee te delen dat hij afziet van de aankoop, zonder betaling van een boete en zonder opgave van motief binnen de veertien kalender dagen vanaf de dag die volgt op de levering van het product of op het sluiten van de dienstenovereenkomst.</strong></p></blockquote>
<p>Ik kwam compleet uit de lucht gevallen. Contractverlenging van 24 maanden? Lees ik dat wel goed? Blijkbaar wel. Dan maar bellen met de klantendienst. Eerst 15 minuten on-hold gehangen bij de rubriek &#8216;denkt u erover om uw abonnement stop te zeggen&#8217;. Krijg ik daar een oudere dame aan de telefoon die me het volgende weet te vertellen. Ik heb 1 juli 2011 telefonisch contact gehad met iemand van Mobistar en die heeft mij een abonnement aangeboden en ik heb gezegd dat het goed is en ingetekend voor 24 maanden. Ik weet helemaal van niets, dus zei dat ook zo tegen die mevrouw. Die zei dat het niet aan Mobistar kan liggen, maar dat ik wel degelijk ja heb ik gezegd voor een verlenging van mijn abonnement. Daarmee was voor haar de kous af en ze wenste me nog een prettige avond toe.</p>
<p>Morgen zeg ik mijn abonnement op met aangetekend schrijven. Ik heb genoeg van die prutsers in Brussel:</p>
<ul>
<li>ze zijn <strong>niet</strong> vriendelijk</li>
<li>als ik technische storing heb, krijg ik <strong>geen</strong> gehoor bij de technische dienst</li>
<li>ze <strong>smeren</strong> mij een verlenging aan waar ik niet om gevraagd heb</li>
<li>José van de helpdesk beweert <strong>dat ik lieg</strong> over de verlenging</li>
</ul>
<p><em><strong>disclaimer: Dit is mijn eigen mening en in geen geval die van mijn werkgever.</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2011/07/14/waarom-ik-een-probleem-heb-met-mobistar/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Automatically upload screenshots</title>
		<link>http://blog.bauffman.be/2011/07/13/automatically-upload-screenshots/</link>
		<comments>http://blog.bauffman.be/2011/07/13/automatically-upload-screenshots/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 14:49:56 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[screenshot]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=190</guid>
		<description><![CDATA[I take a lot of screenshots and was looking for a way to to the following: take a screenshot copy <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2011/07/13/automatically-upload-screenshots/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>I take a lot of screenshots and was looking for a way to to the following:</p>
<ol>
<li>take a screenshot</li>
<li>copy that screenshot with a unique name to my webserver</li>
<li>put the full url to the screenshot in my clipboard</li>
</ol>
<p>See the method below.</p>
<p><code> </code></p>
<pre><code>take_screenshot()
{
	# create a directory 'screenshot' on the desktop
        mkdir ~/Desktop/screenshot;

	# go to that directory
        cd ~/Desktop/screenshot &amp;&amp;

	# capture a selected part of the screen
        screencapture -ix ~/Desktop/screenshot/$(date +%Y-%m-%d-%H-%M-%S).png &amp;&amp;

	# copy this screenshot to my hosting through ssh with scp
        scp ~/Desktop/screenshot/$(ls | xargs | awk '{print $1}') spoon@crsolutions.be:www.spoon-library.be/screenshots/$(ls | xargs | awk '{print $1}') &amp;&amp;

	# add the url to my clipboard
        echo "http://www.spoon-library.be/screenshots/$(ls | xargs | awk '{print $1}')" | pbcopy &amp;&amp;

	# get rid of this directory
        rm -rf ~/Desktop/screenshot;
}</code></pre>
<p>Thanks to <a href="http://twitter.com/davelens">@davelens</a> for his help. You can also follow his <a href="http://code.davelens.be">blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2011/07/13/automatically-upload-screenshots/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing a git alias</title>
		<link>http://blog.bauffman.be/2011/06/30/removing-a-git-alias/</link>
		<comments>http://blog.bauffman.be/2011/06/30/removing-a-git-alias/#comments</comments>
		<pubDate>Thu, 30 Jun 2011 14:46:51 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=185</guid>
		<description><![CDATA[I had an issue trying to remove a git alias I made. You can remove it by deleting that line <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2011/06/30/removing-a-git-alias/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>I had an issue trying to remove a git alias I made. You can remove it by deleting that line from the configuration file, but I wanted to know how to do it using the git config command.</p>
<blockquote><p><em><code>git config --global --unset alias.myAlias</code></em></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2011/06/30/removing-a-git-alias/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When did I introduce a certain string?</title>
		<link>http://blog.bauffman.be/2011/06/29/when-did-i-introduce-a-certain-string/</link>
		<comments>http://blog.bauffman.be/2011/06/29/when-did-i-introduce-a-certain-string/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 18:25:02 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[log]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=183</guid>
		<description><![CDATA[Today I needed to know when the string &#8216;2.1.0&#8216; was introduced in my git repository. There&#8217;s a nifty way in <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2011/06/29/when-did-i-introduce-a-certain-string/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>Today I needed to know when the string &#8216;<strong>2.1.0</strong>&#8216; was introduced in my git repository. There&#8217;s a nifty way in git log you can use for this.</p>
<blockquote><p>git log -S &#8217;2.1.0&#8242;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2011/06/29/when-did-i-introduce-a-certain-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tar changed files between 2 commits</title>
		<link>http://blog.bauffman.be/2011/06/29/tar-changed-files-between-2-commits/</link>
		<comments>http://blog.bauffman.be/2011/06/29/tar-changed-files-between-2-commits/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 12:27:33 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=180</guid>
		<description><![CDATA[Replace [hash] with the hash of the commit. This defaults to all the changed files between the hash and HEAD. <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2011/06/29/tar-changed-files-between-2-commits/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>Replace <strong>[hash]</strong> with the hash of the commit. This defaults to all the changed files between the hash and HEAD.</p>
<blockquote><p>
tar zcvf &#8220;$(date +&#8217;%Y-%m-%d-%H-%M-%S&#8217;)-xmple.tgz&#8221; $(git diff &#8211;name-only <strong>[hash]</strong>)
</p></blockquote>
<p>You can also update the commit range by using two hashes separated with 2 dots.</p>
<blockquote><p>
tar zcvf &#8220;$(date +&#8217;%Y-%m-%d-%H-%M&#8217;)-xmple.tgz&#8221; $(git diff &#8211;name-only <strong>[hash]</strong>..<strong>[hash2]</strong>)
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2011/06/29/tar-changed-files-between-2-commits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH completion</title>
		<link>http://blog.bauffman.be/2011/06/28/ssh-completion/</link>
		<comments>http://blog.bauffman.be/2011/06/28/ssh-completion/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 10:49:11 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[completion]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=176</guid>
		<description><![CDATA[I hate it when I need to type the entire host I want to connect to. So I&#8217;ve added this <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2011/06/28/ssh-completion/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>I hate it when I need to type the entire host I want to connect to. So I&#8217;ve added this to my ~/.bash_profile which autocompletes the ssh command based on my ~/.ssh/config</p>
<blockquote><p>complete -W &#8220;$(awk &#8216;/^\s*Host\s*/ { sub(/^\s*Host /, &#8220;&#8221;); print; }&#8217; ~/.ssh/config)&#8221; ssh</p></blockquote>
<p>Thanks to <a href="http://twitter.com/janmoesen">@janmoesen</a> for fixing the error.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2011/06/28/ssh-completion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL configuration file</title>
		<link>http://blog.bauffman.be/2011/06/27/mysql-configuration-file/</link>
		<comments>http://blog.bauffman.be/2011/06/27/mysql-configuration-file/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 17:44:56 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=173</guid>
		<description><![CDATA[Place the configuration file &#8216;my.cnf&#8217; in your home directory. I no longer need to type &#8216;mysql -uroot -proot &#8230;&#8217; to <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2011/06/27/mysql-configuration-file/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>Place the configuration file &#8216;my.cnf&#8217; in your home directory.</p>
<p><img class="alignnone size-full wp-image-174" title="Screen shot 2011-06-27 at 15.42.10" src="http://blog.bauffman.be/wp-content/uploads/2011/06/Screen-shot-2011-06-27-at-15.42.10.png" alt="" width="225" height="102" /></p>
<p>I no longer need to type &#8216;mysql -uroot -proot &#8230;&#8217; to connect to my local databases. You can also set some other options such as the default character set which defaulted to latin1 in my case. I don&#8217;t like latin1, but I also don&#8217;t like typing this over and over when connection to a database.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2011/06/27/mysql-configuration-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Let mysqldump help you!</title>
		<link>http://blog.bauffman.be/2011/06/17/let-mysqldump-help-you/</link>
		<comments>http://blog.bauffman.be/2011/06/17/let-mysqldump-help-you/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 12:11:05 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysqldump]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=171</guid>
		<description><![CDATA[I used to dump mysql data using PHPMyAdmin. People should get kicked in the nuts for doing that. Dumping a <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2011/06/17/let-mysqldump-help-you/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>I used to dump mysql data using PHPMyAdmin. People should get kicked in the nuts for doing that.</p>
<p><strong>Dumping a (remote) database:</strong></p>
<blockquote><p>mysqldump -uroot -proot &#8211;host=mysql.openminds.be my_database &gt; Desktop/dump.sql</p></blockquote>
<p><strong>Restoring a database:</strong></p>
<blockquote><p>mysql -uroot -proot my_database &lt; Desktop/dump.sql</p></blockquote>
<p><em>Disclaimer: I know that it&#8217;s stupid to set the password in the command, but this is just for the example. /cc @adeepersilence</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2011/06/17/let-mysqldump-help-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git checking out a remote branch</title>
		<link>http://blog.bauffman.be/2011/06/01/git-checking-out-a-remote-branch/</link>
		<comments>http://blog.bauffman.be/2011/06/01/git-checking-out-a-remote-branch/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 14:02:08 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[branch]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[merge]]></category>
		<category><![CDATA[remote]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=168</guid>
		<description><![CDATA[I need to checkout remote branches from other repo&#8217;s quite a lot. Mostly these repo&#8217;s are forks from the repo <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2011/06/01/git-checking-out-a-remote-branch/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>I need to checkout remote branches from other repo&#8217;s quite a lot. Mostly these repo&#8217;s are forks from the repo that I&#8217;m on. An example of what I do to make this go smooth without having to create a local branch (which is based on the master).</p>
<blockquote><p>git remote add janmoesen https://github.com/janmoesen/forkcms.git<br />
git fetch janmoesen<br />
git checkout -b janneman janmoesen/rewrite-navigation-cache-file</p></blockquote>
<p>I now have a new branch &#8216;<strong>janneman</strong>&#8216; that does not contain any nasty merge commits because I checked it out in one step.</p>
<p>ps: I used to follow the steps on github.com to get a branch from another repo, but they make you create a branch locally before pulling from that remote branch. If you do so, you will get a merge commit and I don&#8217;t like that.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2011/06/01/git-checking-out-a-remote-branch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git diff not very clear</title>
		<link>http://blog.bauffman.be/2011/05/26/git-diff-not-very-clear/</link>
		<comments>http://blog.bauffman.be/2011/05/26/git-diff-not-very-clear/#comments</comments>
		<pubDate>Thu, 26 May 2011 12:17:32 +0000</pubDate>
		<dc:creator>Erik Bauffman</dc:creator>
				<category><![CDATA[default]]></category>
		<category><![CDATA[diff]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[spaces]]></category>

		<guid isPermaLink="false">http://blog.bauffman.be/?p=164</guid>
		<description><![CDATA[From time to time I have to mess in code that I haven&#8217;t written. Some of those other developers don&#8217;t <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://blog.bauffman.be/2011/05/26/git-diff-not-very-clear/" class="more-link"><span>Continue Reading &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>From time to time I have to mess in code that I haven&#8217;t written. Some of those other developers don&#8217;t trim whitespaces or blank lines which makes my git diff look kinda messy. There&#8217;s a solution for this.</p>
<p>&#8216;git diff&#8217;</p>
<p><img class="alignnone size-full wp-image-166" title="git-diff-without-spaces" src="http://blog.bauffman.be/wp-content/uploads/2011/05/git-diff-without-spaces.png" alt="" width="620" height="463" /></p>
<p>&#8216;git diff &#8211;ignore-space-change&#8217;</p>
<p><img class="alignnone size-full wp-image-165" title="git-diff-with-spaces" src="http://blog.bauffman.be/wp-content/uploads/2011/05/git-diff-with-spaces.png" alt="" width="400" height="322" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bauffman.be/2011/05/26/git-diff-not-very-clear/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
