<?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>bvrolijk.net &#187; Computing</title>
	<atom:link href="http://bvrolijk.net/category/computing/feed/" rel="self" type="application/rss+xml" />
	<link>http://bvrolijk.net</link>
	<description></description>
	<lastBuildDate>Sun, 18 Mar 2012 20:29:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Time for an update</title>
		<link>http://bvrolijk.net/2010/03/19/time-for-an-update/</link>
		<comments>http://bvrolijk.net/2010/03/19/time-for-an-update/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 10:07:30 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[weblog]]></category>

		<guid isPermaLink="false">http://bvrolijk.net/?p=661</guid>
		<description><![CDATA[It&#8217;s been way too long since my last post and I&#8217;ve been meaning to post something for about five months now, but it just didn&#8217;t happen, somehow. So, here it goes! I&#8217;m going to post a few separate updates, but I will predate those, so you will see them below this one, just as if [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been way too long since <a href="http://bvrolijk.net/2009/08/04/we-got-the-keys/">my last post</a> and I&#8217;ve been meaning to post something for about five months now, but it just didn&#8217;t happen, somehow. So, here it goes!</p>
<p>I&#8217;m going to post a few separate updates, but I will predate those, so you will see them below this one, just as if I posted them long ago. Nowbody will know I didn&#8217;t.</p>
]]></content:encoded>
			<wfw:commentRss>http://bvrolijk.net/2010/03/19/time-for-an-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back online</title>
		<link>http://bvrolijk.net/2009/10/12/back-online/</link>
		<comments>http://bvrolijk.net/2009/10/12/back-online/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 15:36:53 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[kpn]]></category>
		<category><![CDATA[moving]]></category>
		<category><![CDATA[online]]></category>

		<guid isPermaLink="false">http://bvrolijk.net/?p=663</guid>
		<description><![CDATA[Yippeeee! After about a month without internet, we&#8217;re finally back online! What a mess it has been to move our phone line and internet connection. We started by calling KPN to inform them we would be moving on September 17. We received a confirmation that our phone line would be transfered on September 29! We [...]]]></description>
			<content:encoded><![CDATA[<p>Yippeeee! After about a month without internet, we&#8217;re finally back online!</p>
<p>What a mess it has been to move our phone line and internet connection.</p>
<p>We started by calling <a href="http://www.kpn.com/">KPN</a> to inform them we would be moving on September 17. We received a confirmation that our phone line would be transfered on September 29! We called to say the date wasn&#8217;t correct and so we received a new confirmation of the corrected date.</p>
<p>We first received a letter saying that (because it&#8217;s a new house) some work still had to be done. Later, it was confirmed that all the necessary preparations had been done.</p>
<p>In the mean time, we had cancelled our old internet provider per September 17th and subscribed to a <a href="http://www.online.nl/">new provider</a> per that same date. However, our new provider called to inform us the request could not be processed until the new phone line would be active. That would be, for all we knew, on September 17th. From then it would take up to 5 weeks to get the ADSL working!</p>
<p><span id="more-663"></span>So we called KPN to try to move the activation date forward. We called four times that day. We were told it wasn&#8217;t possible, because we had already changed the date once (which was their fault, not ours). We were told there was nothing we could do, not even request a new phone line. The KPN woman even hung up on us! So we called again, and got someone else, who put us on hold&#8230; forever. So we called again and got someone on the line who actually helped and moved the date forward. We even got a confirmation letter with the new date: September 9th. It cost us more than an hour calling to an expensive service number, but hey, we got a result.</p>
<p>September 10: we&#8217;re disconnected! The phone is offline. Luckily, the internet connection still works! However, our new phone line isn&#8217;t working&#8230; So we call KPN (with a mobile phone of course). They cannot seem to find a record of us being connected on September 9th. They even deny the confirmation letter we got! So they did disconnect our old line, but they cannot connect our new line. When we ask them to reconnect our old line, they say we will be called back about that. That never happens&#8230;</p>
<p>On September 18th, the day after we moved, we still don&#8217;t have a working telephone line. So we call KPN and they tell us they cannot give us an activation date! However, we will be called back about it within four working hours. Four working hours later, it is the next Monday, September 21st. We are called back and told that we will be called back the next day. The next day we are called back and told that we will be connected the next day! Then, on Wednesday, September 23rd, our phone line finally works!</p>
<p>So, our new internet provider had told us the request for the new ADSL connection could not be processed until the phone line would be active. We had told them that would be September 9th, after we had received that confirmation letter from the KPN. It wasn&#8217;t to be&#8230; The provider tried to request the ADSL connection after Septemer 9th, although they had said they couldn&#8217;t do that if the line wasn&#8217;t active and although earlier they could perfectly well see the status of the phone line. So the request failed because the phone line wasn&#8217;t active yet, and the request was cancelled. Yes, cancelled. But they didn&#8217;t tell us. Not until we called them on September 23rd to inform them that our phone line was active. So we had to request a new subscription. By phone of course, but not the number we were calling at the moment. We asked if they could put an &#8220;URGENT&#8221; on the request, but for that we had to call yet another number. Well, after some more calls in the following weeks, we finally got the installation package last week with a letter saying that our internet connection should work on October 13th. But boy, are we lucky or what? When we installed the modem yesterday, the connection worked immediately! How about that?</p>
]]></content:encoded>
			<wfw:commentRss>http://bvrolijk.net/2009/10/12/back-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New laptop</title>
		<link>http://bvrolijk.net/2009/07/17/new-laptop/</link>
		<comments>http://bvrolijk.net/2009/07/17/new-laptop/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 21:45:10 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[laptop]]></category>

		<guid isPermaLink="false">http://bvrolijk.net/?p=648</guid>
		<description><![CDATA[Last week, I finally ordered a new laptop! This is it, a Dell Studio 15. My old laptop had become soooo slow. Even after completely reinstalling Windows XP, but hardly any other software (yes, a browser, office suite, and a few more), it still seemed ten times as slow as when I bought it. I [...]]]></description>
			<content:encoded><![CDATA[<p>Last week, I finally ordered a new laptop! <a href="http://www1.euro.dell.com/nl/nl/thuis/Laptops/laptop-studio-1555/pd.aspx?refid=laptop-studio-1555&amp;s=dhs&amp;cs=nldhs1&amp;~ck=mn">This</a> is it, a Dell Studio 15.</p>
<p><a href="http://bvrolijk.net/2004/02/20/the-laptop-that-i-bought/">My old laptop</a> had become soooo slow. Even after completely reinstalling Windows XP, but hardly any other software (yes, a browser, office suite, and a few more), it still seemed ten times as slow as when I bought it. I blame Windows for that; obviously XP is not what it was five years ago.</p>
<p>Anyway, I searched around, mainly at <a href="http://www.laptopshop.nl/">laptopshop.nl</a>, and was about to order an Acer (Aspire 5738G, to be precise), when I saw that Dell had a discount on the Studio 15. The specs were similar to the Acer and now the price was almost the same as well. I chose the Dell.</p>

<a href="http://bvrolijk.net/wordpress/wp-content/gallery/weblog/dell-studio-15.jpg" title="" class="thickbox" rel="singlepic172" >
	<img class="ngg-singlepic ngg-center" src="http://bvrolijk.net/wordpress/wp-content/gallery/cache/172__300x_dell-studio-15.jpg" alt="Dell Studio 15" title="Dell Studio 15" />
</a>

<p><span id="more-648"></span>The main specs are:</p>
<ul>
<li>Intel Core 2 Duo T6500 (2.1 GHz)</li>
<li>4 GB DDR2 memory</li>
<li>320 GB 7200 rpm SATA hard disk</li>
<li>512 MB ATI Mobility Radeon HD 4570 graphics card</li>
<li>15.6&#8243; widescreen display (1366 × 768)</li>
<li>DVD +/- RW drive</li>
<li>Integrated webcam</li>
<li>9-cell 85W battery</li>
</ul>
<p>The only thing that bothers me, not just with this one, but with similar laptops as well, is the low resolution of the display. Even the one I am working on right now, which is five years old, has a 15&#8243; display with 1400 × 1050 pixels. If you want something like that right now (1440 × 900), you have to go for at least a 17&#8243; display, or be willing to spend some more money on a Sony Vaio.</p>
<p>Anyway, if all goes well, my new laptop will be delivered next Wednesday.</p>
<p><em>Update (2009-7-22)</em>: my laptop has arrived. This afternoon, two packages were delivered at my door:</p>

<a href="http://bvrolijk.net/wordpress/wp-content/gallery/weblog/img_3899.jpg" title="" class="thickbox" rel="singlepic174" >
	<img class="ngg-singlepic ngg-center" src="http://bvrolijk.net/wordpress/wp-content/gallery/cache/174__300x_img_3899.jpg" alt="Dell Studio 15 in a box" title="Dell Studio 15 in a box" />
</a>

<p>Some first impressions, after working with it for a couple of hours:</p>
<ul>
<li>Microsoft sure did a great job in creating the most annoying piece of software ever with User Account Control (UAC).</li>
<li>Vista takes some time getting used to. Yes, I was still running XP on my old laptop.</li>
<li>The first thing to go was the Windows Sidebar. The second was the Dell Dock. Yippee for all the free Dell software you get pre-installed on your machine.</li>
<li>I already mentioned the screen resolution. The widescreen is nice, but the vertical size is quite limited, which is most obvious while browsing or working with digital photos. BTW, where did this resolution of 1366 × 768 come from?</li>
<li>The battery life, so far, is great. The extra large 9-cell battery has worked for about 5 hours, although I haven&#8217;t actually measured it exactly. But even when it was at 0%, it kept working for another 15 minutes!</li>
<li>Finally, this laptop is quite a lot faster than my old one! But then again, it would be strange if it wasn&#8217;t.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://bvrolijk.net/2009/07/17/new-laptop/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New homepage</title>
		<link>http://bvrolijk.net/2008/08/17/new-homepage/</link>
		<comments>http://bvrolijk.net/2008/08/17/new-homepage/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 13:30:08 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[bvrolijk.net]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[moinmoin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://bvrolijk.net/?p=175</guid>
		<description><![CDATA[We have not only moved home, I have also moved my homepage. In the past years, I have had my homepage hosted at the TU Delft Visualisation Group. I have worked there for about six years, so all that time I had free hosting, lots of space and lots of features. I had also registered [...]]]></description>
			<content:encoded><![CDATA[<p>We have not only <a href="http://bvrolijk.net/2008/08/13/new-home/">moved home</a>, I have also moved my homepage.</p>
<p>In the past years, I have had my homepage hosted at the <a href="http://visualisation.tudelft.nl/">TU Delft Visualisation Group</a>. I have worked there for about six years, so all that time I had free hosting, lots of space and lots of features.</p>
<p>I had also registered my domain (<a href="http://bvrolijk.net/">bvrolijk.net</a>), six years ago, without hosting, but with domain and email forwarding, at <a href="http://redirection.net/">redirection.net</a>. So no disk space, just forwarding to the TU Delft.</p>
<p>Ever since I left the TU, I&#8217;ve been thinking about hosting my domain elsewhere, possibly even doing it myself. My homepage consists of only a small number of pages, but I like putting some photos online, I have a wiki, which I use quite a lot, and a weblog (yep, this is it). But since there are so many good, free services nowadays (at the moment, this weblog is hosted at <a href="http://wordpress.com/">wordpress.com</a>, for free and with lots of space; and I uploaded lots of photos to <a href="http://picasaweb.google.com/">picasaweb.google.com</a>, also for free and also quite spacious), I was in doubt whether it would be worth it to buy a hosting package.</p>
<p><span id="more-199"></span>After a lot of searching and comparing, I eventually decided to buy the hosting package at <a href="http://anhosting.com/">ANHosting</a>. 500 GB of webspace, 5000 GB of bandwidth, and all the features you could possible want: MySQL, PHP, Perl, Python, unlimited subdomains, unlimited email addresses and SSH access to your account on a (shared) Linux server. Furthermore, they support WordPress, Drupal, Mambo and many other packages with auto-install scripts through <a href="http://www.netenberg.com/fantastico.php">Fantastico</a>.</p>
<p>In fact, my search for a hosting provider resulted in three very similar candidates, of which I (almost arbitrarily) chose ANHosting. The other two providers were <a href="http://www.dreamhost.com/">DreamHost</a> and <a href="http://www.bluehost.com/">Bluehost</a>. Take a look at <a href="http://www.hostingmatrix.org/shared/compare/BlueHost+DreamHost+AnHosting">this site</a> for a comparison. You will see there are not much differences. Whereas DreamHost and ANHosting offer 500 GB of space and 5 TB of bandwith, with Bluehost both the disk space and bandwidth are <em>unlimited</em>. On the other hand, the first two offer unlimited email accounts and MySQL databases, which are both limited at Bluehost. Well, for me, and for my personal website, I think 2500 email accounts is enough. And 500 GB is more disk space than I have in total at home! So, in practice, I would say it&#8217;s all the same. BTW, contrary to what it says in the comparison table, ANHosting <em>do</em> offer SSH access. You just have to ask them nicely&#8230;</p>
<p>Why then ANHosting? Basically because they&#8217;re the cheapest. DreamHost is cheaper, but only if you pay 10 years in advance (instead of 2). And if you google for &#8220;anhosting coupon&#8221;, you can even get a bit of extra discount.</p>
<p>And what about my experiences so far? Well, the email support is <em>very</em> fast, they often reply within minutes. I&#8217;ve installed <a href="http://moinmo.in/">MoinMoin </a>for my wiki and it&#8217;s working fine. Besides that, I haven&#8217;t done anything special yet, so nothing special to report either. The only thing is that I&#8217;ve had SSH access being disabled all of a sudden a few times now. They say it&#8217;s because of a server update or something. But every time they&#8217;ve fixed it within 10 minutes after I email them about it. So, as long as it won&#8217;t happen every week&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://bvrolijk.net/2008/08/17/new-homepage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Links fixed</title>
		<link>http://bvrolijk.net/2008/02/06/links-fixed/</link>
		<comments>http://bvrolijk.net/2008/02/06/links-fixed/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 11:18:00 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[hyperlink]]></category>
		<category><![CDATA[weblog]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://bvrolijk.net/2008/02/06/links-fixed/</guid>
		<description><![CDATA[A few weeks ago, I found out that all links in my weblog to other weblog entries of myself, (or of Charl or Ari) had been broken after moving from cpbotha.net to WordPress.com. But I believe I have fixed them all, now! Unfortunately, I did stumble upon some other, external, broken links, for example to [...]]]></description>
			<content:encoded><![CDATA[<p>A <a href="http://bvrolijk.net/2008/01/19/a-bit-quiet-lately/">few weeks ago</a>, I found out that all links in my weblog to other weblog entries of myself, (or of <a href="http://cpbotha.net/">Charl</a> or <a href="http://diariodiario.wordpress.com/">Ari</a>) had been broken after <a href="http://bvrolijk.net/2007/10/13/hello-world/">moving</a> from <a href="http://cpbotha.net/">cpbotha.net</a> to <a href="http://wordpress.com/">WordPress.com</a>. But I believe I have fixed them all, now!</p>
<p>Unfortunately, I did stumble upon some other, external, broken links, for example to <a href="http://bvrolijk.net/2003/10/15/alcohol-and-traffic/">old news items</a>. I&#8217;m afraid I cannot do much about that, except make screenshots of all pages I link to&#8230; <img src='http://bvrolijk.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Otherwise, the <a href="http://www.archive.org/web/web.php">Wayback Machine </a>might be a solution?</p>
<p>Anyway, if you find any broken links, or other things not working properly on this weblog, please let me know!</p>
]]></content:encoded>
			<wfw:commentRss>http://bvrolijk.net/2008/02/06/links-fixed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Null or Not Null</title>
		<link>http://bvrolijk.net/2008/01/19/null-or-not-null/</link>
		<comments>http://bvrolijk.net/2008/01/19/null-or-not-null/#comments</comments>
		<pubDate>Sat, 19 Jan 2008 21:14:10 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://bvrolijk.net/2008/01/19/null-or-not-null/</guid>
		<description><![CDATA[That is the question&#8230; I am working on an old Visual Basic project. It is not my own, it&#8217;s just an existing project in which I have to make some changes. There&#8217;s an existing database connection and in one of &#8220;my&#8221; functions, I have run a query, and created a recordset (rs). In a loop, [...]]]></description>
			<content:encoded><![CDATA[<p>That is the question&#8230;</p>
<p>I am working on an old Visual Basic project. It is not my own, it&#8217;s just an existing project in which I have to make some changes. There&#8217;s an existing database connection and in one of &#8220;my&#8221; functions, I have run a query, and created a recordset (rs). In a loop, I am iterating through the records with a bit of code like this:</p>
<pre>  If Not IsNull(rs!X) Then
    strX = rs!X
  Else
    strX = ""
  End If</pre>
<p>or, if you like</p>
<pre>  strX = IIf(IsNull(rs!X), "", rs!X)</pre>
<p>Somehow, I get an error, &#8220;Invalid use of Null&#8221;, on the second line! So, rs!X is Null on the second line, but it wasn&#8217;t on the first line, or else the code would never have come to the second line! How is this possible?!?</p>
<p><span id="more-195"></span></p>
<p>I tried debugging the code, stepping through the code in the IDE. On the first line, when I watched the value of rs!X, it had some real value. Then, either the program would continue on the second line, but result in the above error, or the code would jump to the fourth line, as if the value had been Null!</p>
<p>I suppose there&#8217;s something wrong with either the recordset or the database connection, but I cannot yet figure it out. The only way I have got it to work, so far, is with an intermediate Variant-type variable, because a Variant can be assigned a Null value:</p>
<pre>  varX = rs!X
  strX = IIf(IsNull(varX), "", varX)</pre>
]]></content:encoded>
			<wfw:commentRss>http://bvrolijk.net/2008/01/19/null-or-not-null/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress</title>
		<link>http://bvrolijk.net/2007/10/13/wordpress/</link>
		<comments>http://bvrolijk.net/2007/10/13/wordpress/#comments</comments>
		<pubDate>Sat, 13 Oct 2007 14:28:48 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[bvrolijk.net]]></category>
		<category><![CDATA[weblog]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://bvrolijk.net/2007/10/13/hello-world-2/</guid>
		<description><![CDATA[Hello world and welcome at my all new and shiny weblog. As you can see, my weblog has been moved to WordPress.com. If you haven&#8217;t done so already, please update your link or bookmark to bvrolijk.net. I have used the import function of WordPress to copy all of my old (Movable Type) weblog entries to [...]]]></description>
			<content:encoded><![CDATA[<p>Hello world and welcome at my all new and shiny weblog.</p>
<p>As you can see, my weblog has been moved to <a href="http://wordpress.com/">WordPress.com</a>. If you haven&#8217;t done so already, please update your link or bookmark to <a href="http://bvrolijk.net/">bvrolijk.net</a>.</p>
<p>I have used the import function of WordPress to copy all of my old (<a href="http://www.movabletype.org/">Movable Type</a>) weblog entries to this new system. I hope the conversion went all right, but if you see anything strange, please let me know.</p>
<p>Many thanks to <a href="http://cpbotha.net/">Charl</a> for hosting my weblog these past four-and-a-half years and for his help in the conversion.</p>
]]></content:encoded>
			<wfw:commentRss>http://bvrolijk.net/2007/10/13/wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Locales and date format in SQL</title>
		<link>http://bvrolijk.net/2007/01/23/locales-and-date-format-in-sql/</link>
		<comments>http://bvrolijk.net/2007/01/23/locales-and-date-format-in-sql/#comments</comments>
		<pubDate>Tue, 23 Jan 2007 11:50:05 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[dotnet]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://bvrolijk.net/2007/01/23/locales-and-date-format-in-sql/</guid>
		<description><![CDATA[I am working on a VB.NET project. The program is a Windows service that connects to an MS Access database. Everything worked fine on my own pc, but on another pc, we ran into some problems. It appeared to be related to regional settings. By default, the service ran as the LocalSystem account. I don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I am working on a VB.NET project. The program is a Windows service that connects to an MS Access database. Everything worked fine on my own pc, but on another pc, we ran into some problems. It appeared to be related to regional settings. By default, the service ran as the LocalSystem account. I don&#8217;t know how to change the settings for that account, (anyone?) so for testing we ran the service under different user accounts. And indeed, for a user with &#8220;en-US&#8221;-settings, everything worked fine, but for a user with &#8220;nl-NL&#8221;-settings, we got weird results.</p>
<p><span id="more-181"></span></p>
<p>First of all, I found out that you have to be careful with floating point numbers in your SQL-statements.</p>
<pre>(en-US)
UPDATE TableX SET FieldY = 3.1415</pre>
<p>works fine, but</p>
<pre>(nl-NL)
UPDATE TableX SET FieldY = 3,1415</pre>
<p>results in an ODBC error.</p>
<p>Ok, that&#8217;s fair. And it can easily be overcome by using a different NumberFormat</p>
<pre>Dim nfi As System.Globalization.NumberFormatInfo = New System.Globalization.CultureInfo("en-US").NumberFormat
Single.ToString(nfi)</pre>
<p>or by setting the CurrentCulture of the CurrentThread</p>
<pre>System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo("en-US")</pre>
<p>However, I keep running into trouble with dates in my queries.<br />
I have a table with date and time values, and I want to retrieve records for a certain date. So I want to use a query like</p>
<pre>SELECT * FROM TableX WHERE Format(Datefield, "yyyy/mm/dd") = '2007/01/23'</pre>
<p>But no matter what I do, and how often I set the CurrentCulture, this query doesn&#8217;t work if the service runs as a user with Dutch settings.<br />
As a test, I ran the following query (with Dutch settings):</p>
<pre>SELECT Format(Datefield, "yyyy/mm/dd") FROM TableX</pre>
<p>and it returns &#8220;2007-01-23&#8243; instead of &#8220;2007/01/23&#8243;.</p>
<p>It seems as if the OdbcConnection, or the ODBC driver, or something else (?) still uses the Dutch settings, although my CurrentThread uses &#8220;en-US&#8221;-settings.</p>
<p>Can anyone explain this? Any ideas about how to solve this? Clearly, I want my program to work independently of the regional settings!</p>
<p>For now, I have solved it using</p>
<pre>Format(Datefield, "yyyymmdd")</pre>
<p>but surely it must be possible some other way?</p>
]]></content:encoded>
			<wfw:commentRss>http://bvrolijk.net/2007/01/23/locales-and-date-format-in-sql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HEMA Online Fotoservice</title>
		<link>http://bvrolijk.net/2006/09/06/hema-online-fotoservice/</link>
		<comments>http://bvrolijk.net/2006/09/06/hema-online-fotoservice/#comments</comments>
		<pubDate>Wed, 06 Sep 2006 14:42:31 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[hema]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://bvrolijk.net/2006/09/06/hema-online-fotoservice/</guid>
		<description><![CDATA[Last week, we uploaded a selection of our digital photographs of our summer holiday to the HEMA, to be printed. The last time we did that, we uploaded the photos via the website. Unfortunately, the user interface wasn&#8217;t very good. Certain selections you made were forgotten and you had to make them again. We only [...]]]></description>
			<content:encoded><![CDATA[<p>Last week, we uploaded a selection of our digital photographs of <a href="http://bvrolijk.net/2006/08/27/summer-holiday/">our summer holiday</a> to the <a href="http://www.hema.nl/">HEMA</a>, to be printed.</p>
<p>The last time we did that, we uploaded the photos via the website. Unfortunately, the user interface wasn&#8217;t very good. Certain selections you made were forgotten and you had to make them again. We only had about 10 photos that time, so it was not such a big problem. And the print quality turned out to be very good!</p>
<p>But this time, we wanted to upload 144 photos, so I didn&#8217;t feel like doing things two or three times. Therefore, I decided to try out the offline order software. Well, I&#8217;m not very enthusiastic about that either, but at least it remembers the selections you make.<br />
When it finally came to uploading the pictures, I was quite surprised that it went so quick. I am pretty sure that my 256 kbps uplink cannot upload a 3 MB picture in about 10 seconds.</p>
<p>I noticed that the HEMA order software had made an &#8220;Upload&#8221; directory in its Album directory. All my original HiRes photos had been copied there, and they were disappearing one by one. But every time, the topmost picture was first replaced by a much smaller, low resolution version, before it was uploaded! I quickly copied one of those files as &#8220;evidence&#8221;. Apparently, the photos are resized to 1600 x 1200 before they are uploaded. OK, I didn&#8217;t say they could do that, but if the pictures really have to be resized before they can be printed, so be it. But the pictures were also <em>compressed</em>! And not just a little!</p>
<p>My original photo was 2724 kb, with a resolution of 3072 x 2304.<br />
The uploaded picture was only 369 kb, with a resolution of 1600 x 1200.<br />
Of course, I tried resizing the picture to the same resolution myself, (without compression!), and got a photo of 1658 kb. That&#8217;s 4.5 times larger!</p>
<p>I thought I would wait to see the result. So today we picked up the pictures, but they&#8217;re terrible. You can clearly see the JPEG compression artefacts on some of the pictures. So, I&#8217;m certainly going back tomorrow!</p>
<p><span id="more-180"></span><br />
<em>Update (Sep. 7)</em>: I went back to the HEMA with my pictures, and with a CD with the original HiRes photos. The woman behind the counter said they normally don&#8217;t take back digital photos because they don&#8217;t know the original quality. So I told her that I did, and that they didn&#8217;t use it! Well, she would send them back, but said she couldn&#8217;t guarantee anything.</p>
<p><em>Update (Sep. 16)</em>: Today, I went back to the HEMA and got all new prints of our photos. These photos are all ok, no visible compression artefacts or anything like that. So they <em>can</em> do it at the HEMA. If you just make sure that they get your HiRes pictures, for example on cd. But <em>don&#8217;t</em> use their offline order software!</p>
]]></content:encoded>
			<wfw:commentRss>http://bvrolijk.net/2006/09/06/hema-online-fotoservice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New hardware</title>
		<link>http://bvrolijk.net/2006/06/21/new-hardware/</link>
		<comments>http://bvrolijk.net/2006/06/21/new-hardware/#comments</comments>
		<pubDate>Wed, 21 Jun 2006 13:59:42 +0000</pubDate>
		<dc:creator>benjamin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[nas]]></category>

		<guid isPermaLink="false">http://bvrolijk.net/2006/06/21/new-hardware/</guid>
		<description><![CDATA[Because I needed a bit of extra data storage, I bought a new harddisk yesterday. I basically just wanted a lot of space, for mass storage and backup, and I wanted it to be available for every pc in our house. At first, I was looking for an external USB disk, to be connected to [...]]]></description>
			<content:encoded><![CDATA[<p>Because I needed a bit of extra data storage, I bought a new harddisk yesterday.<br />
I basically just wanted a lot of space, for mass storage and backup, and I wanted it to be available for every pc in our house.<br />
At first, I was looking for an external USB disk, to be connected to my <a href="http://bvrolijk.net/2005/03/10/wireless/">Asus WL500g</a> wireless access point. However, I decided that a <acronym title="Network Attached Storage">NAS</acronym> would be more suitable for this, and more general applicable.<br />
Of course, you can make one of those yourself, if you have an old pc lying around somewhere, but I just bought one out of the box. The best choice for me (based on the price per Gb, combined with the built-in printer server) was the <a href="http://www.westerndigital.com/en/products/products.asp?driveid=150">Western Digital NetCenter 320 Gb</a>. And it works just fine. I haven&#8217;t done anything special yet, nor have I performed any benchmarks, but it&#8217;s just very nice to be able to access your documents from any pc, and use the same printer, store photos and music in one place, et cetera. It does exactly what I wanted!</p>
<p><span id="more-177"></span><br />
Before I went to pick up the hard disk, yesterday, I also (finally!) bought a digital camera. I ordered the <a href="http://www.canon-europe.com/For_Home/Product_Finder/Cameras/Digital/Powershot_A620/index.asp">Canon Powershot A620</a> at <a href="http://www.digicamshop.nl/">Digicamshop.nl</a>. It was delivered this morning (at no cost) and it looks very good. I&#8217;m anxious to see it in action. And of course, you will probably see some pictures here, now and then&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://bvrolijk.net/2006/06/21/new-hardware/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

