<?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>Quite a Bright Light</title>
	<atom:link href="http://www.quitebrightlight.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.quitebrightlight.com</link>
	<description></description>
	<lastBuildDate>Tue, 09 Mar 2010 22:37:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting command prompt start directory for administrator in windows (7)</title>
		<link>http://www.quitebrightlight.com/2010/03/setting-command-prompt-start-directory-for-administrator-in-windows-7/</link>
		<comments>http://www.quitebrightlight.com/2010/03/setting-command-prompt-start-directory-for-administrator-in-windows-7/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 19:42:50 +0000</pubDate>
		<dc:creator>jefke</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Command prompt]]></category>
		<category><![CDATA[start directory]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.quitebrightlight.com/?p=76</guid>
		<description><![CDATA[
I bought a new computer, pretty cheap, pretty good. So I&#8217;m pretty happy with it. Its one weak point is that its 3D graphics card (which I do need) has no decent driver support under linux yet. So a good reason to leave windows 7 on it for a while, and find out how it [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<p>I bought a new computer, pretty cheap, pretty good. So I&#8217;m pretty happy with it. Its one weak point is that its 3D graphics card (which I do need) has no decent driver support under linux yet. So a good reason to leave windows 7 on it for a while, and find out how it works. I do miss linux, but I have no major complaints so far.<br />
Something I brought over from linux, is wanting to use the command line, and I really needed it for playing around with Django. I guess the command line in windows is not really the same as in linux, and it doesn&#8217;t work as smoothly, but there is one. What I do hate, however, is typing in directory paths using the &#8211; for my finger less conveniently placed &#8211; &#8220;\&#8221;. So I wanted to start the command prompt in my Django directory. If you create a shortcut to the command prompt, you can set a directory where it has to start. If you run it as administrator, however, it still starts up in the system folder. Windows wouldn&#8217;t be Windows however, if there wasn&#8217;t a registry setting for this:<br />
(start the registry editor with regedit in the start menu)<br />
add to HKEY_CURRENT_USER\Software\Microsoft\Command Processor a new string value &#8220;Autorun&#8221; (if it&#8217;s not there yet) and set its value to &#8220;CD /d <INSERT_PATH_HERE>&#8221; (E.g. CD /d C:\Users\User\Desktop)<br />
And that works when you open cmd as administrator too&#8230;<br />
(BEWARE, messing with windows registry can cripple your windows installation, so be careful and backup)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quitebrightlight.com/2010/03/setting-command-prompt-start-directory-for-administrator-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 6: adding and modifying html using javascript</title>
		<link>http://www.quitebrightlight.com/2010/02/drupal-6-adding-and-modifying-html-using-javascript/</link>
		<comments>http://www.quitebrightlight.com/2010/02/drupal-6-adding-and-modifying-html-using-javascript/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 21:29:40 +0000</pubDate>
		<dc:creator>jefke</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.quitebrightlight.com/?p=58</guid>
		<description><![CDATA[
A while ago, I had a simple website, with a simple js script for calculating a price based on some user input. The script uses an updater function that, after all required choices have been made (radio buttons), calculates the final price and shows the price. It does this by adding html to a predefined [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<p>A while ago, I had a simple website, with a simple js script for calculating a price based on some user input. The script uses an updater function that, after all required choices have been made (radio buttons), calculates the final price and shows the price. It does this by adding html to a predefined &#8216;price div&#8217;  (price.innerHTML = &#8220;&#8230;&#8221;) and setting it&#8217;s height from 0 to &#8216;auto&#8217;. Nothing fancy, but worked quite nice.<br />
Upon changing the website for a Drupal site, I was confronted with implementing the js within Drupal. And even though it wasn&#8217;t really hard, it took me a while to figure it out, so I thought I&#8217;d share my findings, hoping they would be useful to somebody. </p>
<p>First of all, I created a normal page within Drupal. The downside of the method (to some people) is that I had to enable PHP for the page input. But as I am the only person ever seeing an input form on this particular site, I didn&#8217;t care too much. For adding the required js (and some extra css for that page), I used: </p>
<div class="insertcode">drupal_add_js(&#8217;sites/all/js/prices.js&#8217;); drupal_add_js(&#8217;sites/all/js/updater.js&#8217;);<br />
drupal_set_html_head(&#8216;&lt;script type=&#8221;text/javascript&#8221;><br />
window.onload = function() {<br />
includePrices();<br />
};</script><br />
');<br />
drupal_add_css(path_to_theme().'/prices.css', 'theme', 'all', TRUE);<br />
$styles = drupal_get_css();
</div>
<p>And then I added an html form which calls the updater function on each click. This makes it possible to have the second choice customers have to make depend on the first choice they make.</p>
<div class="insertcode">
&lt;div onclick="update();" id="priceform"><br />
&lt;div onclick="update();" id="house_type"><br />
&lt;form id="typeform"><br />
    Type house:<br />
    &lt;input type="radio" value="1" ...<br />
&lt;/form><br />
...
</div>
<p>Works like a charm for me...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quitebrightlight.com/2010/02/drupal-6-adding-and-modifying-html-using-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vpnc under Ubuntu: Connection established, but not being used</title>
		<link>http://www.quitebrightlight.com/2009/12/vpnc-under-ubuntu-connection-established-but-not-being-used/</link>
		<comments>http://www.quitebrightlight.com/2009/12/vpnc-under-ubuntu-connection-established-but-not-being-used/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 13:38:28 +0000</pubDate>
		<dc:creator>jefke</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[vpnc]]></category>

		<guid isPermaLink="false">http://www.quitebrightlight.com/?p=52</guid>
		<description><![CDATA[Working from home, the need for a proper vpn connection with my university got quite important to me. I had installed and configured vpnc earlier, but I couldn&#8217;t get any further then establishing a connection. Once the connection was made, I still couldn&#8217;t get on university-only sites or make use of certain services. So I [...]]]></description>
			<content:encoded><![CDATA[<p>Working from home, the need for a proper vpn connection with my university got quite important to me. I had installed and configured vpnc earlier, but I couldn&#8217;t get any further then establishing a connection. Once the connection was made, I still couldn&#8217;t get on university-only sites or make use of certain services. So I thought I&#8217;d try to find out what was wrong. Turns out that there&#8217;s a <a href="https://bugs.launchpad.net/ubuntu/+source/network-manager-vpnc/+bug/268567" onclick="pageTracker._trackPageview('/outgoing/bugs.launchpad.net/ubuntu/+source/network-manager-vpnc/+bug/268567?referer=');">standard setting that makes the VPN not being used for all network traffic</a>. You can turn it of by going to the VPN settings (&#8220;configure VPN&#8221; and select the VPN connection, click &#8220;edit&#8221;), go the &#8220;IPv4 settings&#8221; tab, click on &#8220;Routes&#8230;&#8221; and uncheck &#8220;Use this connection only for resources on its network&#8221;. That trick did it for me. </p>
<p>Don&#8217;t really know whether it&#8217;s vpnc or network-manager-vpnc that is to be blamed for the standard settings.<br />
My versions: Ununtu 9.10, vpnc 0.5.3-1 and network- manager-vpnc 0.8~a~git.20091008(&#8230;)-0ubuntu1</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quitebrightlight.com/2009/12/vpnc-under-ubuntu-connection-established-but-not-being-used/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sage on Ubuntu: the error message is: (&#8216;EOF in multi-line statement&#8217;, (805, 0))</title>
		<link>http://www.quitebrightlight.com/2009/12/sage-on-ubuntu-he-error-message-is-eof-in-multi-line-statement-805-0/</link>
		<comments>http://www.quitebrightlight.com/2009/12/sage-on-ubuntu-he-error-message-is-eof-in-multi-line-statement-805-0/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 13:09:06 +0000</pubDate>
		<dc:creator>jefke</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sage]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.quitebrightlight.com/?p=43</guid>
		<description><![CDATA[Installed sage under Ubuntu yesterday. Just for trying out. (Well, actually I tried it out a little bit already on their fantastic webservice)
The first thing I tried, however, gave me an error message!

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (805, [...]]]></description>
			<content:encoded><![CDATA[<p>Installed sage under Ubuntu yesterday. Just for trying out. (Well, actually I tried it out a little bit already on <a href="http://www.sagenb.org/" onclick="pageTracker._trackPageview('/outgoing/www.sagenb.org/?referer=');">their fantastic webservice</a>)<br />
The first thing I tried, however, gave me an error message!</p>
<p><code><br />
ERROR: An unexpected error occurred while tokenizing input<br />
The following traceback may be corrupted or invalid<br />
The error message is: ('EOF in multi-line statement', (805, 0))<br />
</code><br />
<code><br />
ERROR: An unexpected error occurred while tokenizing input<br />
The following traceback may be corrupted or invalid<br />
The error message is: ('EOF in multi-line statement', (785, 0))<br />
</code> </p>
<p>And then more blabla. Not very nice, I would say. Apparently, it is a <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514648" onclick="pageTracker._trackPageview('/outgoing/bugs.debian.org/cgi-bin/bugreport.cgi?bug=514648&amp;referer=');">conflict between certain versions of Sage and Maxima</a>. </p>
<p>My solution: building Sage myself from <a href="http://www.sagemath.org/download-source.html" onclick="pageTracker._trackPageview('/outgoing/www.sagemath.org/download-source.html?referer=');">source</a>. <a href="http://www.sagemath.org/mirror/src/README.txt" onclick="pageTracker._trackPageview('/outgoing/www.sagemath.org/mirror/src/README.txt?referer=');">Not hard to do</a>, and you get the latest version fully installed. Disadvantage: it takes a couple of hours of compiling!<br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.quitebrightlight.com/2009/12/sage-on-ubuntu-he-error-message-is-eof-in-multi-line-statement-805-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal: Random sort in Views 2</title>
		<link>http://www.quitebrightlight.com/2009/12/drupal-random-sort-in-views-2/</link>
		<comments>http://www.quitebrightlight.com/2009/12/drupal-random-sort-in-views-2/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 12:46:32 +0000</pubDate>
		<dc:creator>jefke</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[Views 2]]></category>

		<guid isPermaLink="false">http://www.quitebrightlight.com/?p=38</guid>
		<description><![CDATA[
Without a doubt, the Views module is one of those Drupal modules without which Drupal wouldn&#8217;t be the same. With Drupal 6, Views got a major revision, and I must say I quite like the new interface. There was one thing that I couldn&#8217;t figure out immediately however: how to random sort the selection. I [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<p>Without a doubt, the Views module is one of those Drupal modules without which Drupal wouldn&#8217;t be the same. With Drupal 6, Views got a major revision, and I must say I quite like the new interface. There was one thing that I couldn&#8217;t figure out immediately however: how to random sort the selection. I should have looked harder in the sort criteria &#8211; which is the most logical place to put it &#8211; but I was sort of expecting the possiblity to add randomness to any sort criterion I selected (e.g. node:type). Not so: <strong>in the list with all possible criteria, you have to select &#8220;global:random&#8221;</strong>. </p>
<p>Still not sure whether that is the most logical way of doing it. Personally, I would think adding &#8220;random&#8221; as a choice for each criterion (besides &#8220;ascending&#8221; and &#8220;descending&#8221;) would yield a much finer granularity <em>and</em> makes more sense. The fact that the random sort criterion is listed as &#8220;global:random asc&#8221; (asc for ascending) doesn&#8217;t really help changing this view either. </p>
<p>But probably there is a good reason for doing it this way. To paraphrase a French proverb: The programmer has his reasons that reason doesn&#8217;t know.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.quitebrightlight.com/2009/12/drupal-random-sort-in-views-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arch Linux: bash: /etc/init.d/vboxdrv: No such file or directory</title>
		<link>http://www.quitebrightlight.com/2009/09/arch-linux-bash-etcinit-dvboxdrv-no-such-file-or-directory/</link>
		<comments>http://www.quitebrightlight.com/2009/09/arch-linux-bash-etcinit-dvboxdrv-no-such-file-or-directory/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 19:02:54 +0000</pubDate>
		<dc:creator>jefke</dc:creator>
				<category><![CDATA[Arch]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Virtualbox]]></category>

		<guid isPermaLink="false">http://www.quitebrightlight.com/?p=34</guid>
		<description><![CDATA[After a kernel upgrade, Virtualbox instructs you to run &#8220;/etc/init.d/vboxdrv setup&#8221; as root. When you try this on Arch, you get an error message, however: 
bash: /etc/init.d/vboxdrv: No such file or directory
Turns out that on Arch, there&#8217;s a different path to follow. As root, do: 

/usr/bin/vbox_build_module

Followed by:

modprobe -r vboxdrv

And you should be set! Still, if [...]]]></description>
			<content:encoded><![CDATA[<p>After a kernel upgrade, Virtualbox instructs you to run &#8220;/etc/init.d/vboxdrv setup&#8221; as root. When you try this on Arch, you get an error message, however: </p>
<div class="konsole">bash: /etc/init.d/vboxdrv: No such file or directory</div>
<p>Turns out that on Arch, there&#8217;s a different path to follow. As root, do: </p>
<div class="konsole">
/usr/bin/vbox_build_module
</div>
<p>Followed by:</p>
<div class="konsole">
modprobe -r vboxdrv
</div>
<p>And you should be set! Still, if you&#8217;re not, please don&#8217;t hold me responsible. Everything you do as root is your own responsibility!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quitebrightlight.com/2009/09/arch-linux-bash-etcinit-dvboxdrv-no-such-file-or-directory/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Opensuse: kmymoney: symbol lookup error: kmymoney: undefined symbol</title>
		<link>http://www.quitebrightlight.com/2009/08/opensuse-kmymoney-symbol-lookup-error-kmymoney-undefined-symbol/</link>
		<comments>http://www.quitebrightlight.com/2009/08/opensuse-kmymoney-symbol-lookup-error-kmymoney-undefined-symbol/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 13:29:06 +0000</pubDate>
		<dc:creator>jefke</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[openSUSE]]></category>

		<guid isPermaLink="false">http://www.quitebrightlight.com/?p=27</guid>
		<description><![CDATA[Had an error message when opening KMyMoney in opensuse:

kmymoney: symbol lookup error: kmymoney: undefined symbol: _ZN14KMyMoneyPlugin14ImporterPlugin16staticMetaObjectEv 
Solution: updating KMyMoney! 
Something I miss in comparison with Arch, or even Ubuntu: the constant (rolling) updating of your total system. I know selecting all possible updates is possible somehow in Yast, but still&#8230;
]]></description>
			<content:encoded><![CDATA[<p>Had an error message when opening KMyMoney in opensuse:</p>
<div class="insertcode">
kmymoney: symbol lookup error: kmymoney: undefined symbol: _ZN14KMyMoneyPlugin14ImporterPlugin16staticMetaObjectEv </div>
<p>Solution: updating KMyMoney! </p>
<p>Something I miss in comparison with Arch, or even Ubuntu: the constant (rolling) updating of your total system. I know selecting all possible updates is possible somehow in Yast, but still&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quitebrightlight.com/2009/08/opensuse-kmymoney-symbol-lookup-error-kmymoney-undefined-symbol/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VirtualBox: WinXP guest from Ubuntu crashing and rebooting in openSUSE</title>
		<link>http://www.quitebrightlight.com/2009/05/virtualbox-winxp-guest-from-ubuntu-crashing-and-rebooting-in-opensuse/</link>
		<comments>http://www.quitebrightlight.com/2009/05/virtualbox-winxp-guest-from-ubuntu-crashing-and-rebooting-in-opensuse/#comments</comments>
		<pubDate>Tue, 19 May 2009 10:16:53 +0000</pubDate>
		<dc:creator>jefke</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Virtualbox]]></category>
		<category><![CDATA[openSUSE]]></category>

		<guid isPermaLink="false">http://www.quitebrightlight.com/?p=24</guid>
		<description><![CDATA[At work, I sometimes need Windows for legacy programs, or for not messing up the layout of protected Word documents. For all these little things, VirtualBox (non OSE for me) works like a charm. Since my switch from Ubuntu to openSUSE, however, I was unable to use the virtual windows disk (vdi file) I created [...]]]></description>
			<content:encoded><![CDATA[<p>At work, I sometimes need Windows for legacy programs, or for not messing up the layout of protected Word documents. For all these little things, <a href="http://www.virtualbox.org/wiki/Linux_Downloads" onclick="pageTracker._trackPageview('/outgoing/www.virtualbox.org/wiki/Linux_Downloads?referer=');">VirtualBox</a> (non OSE for me) works like a charm. Since my switch from Ubuntu to openSUSE, however, I was unable to use the virtual windows disk (vdi file) I created under Ubuntu: right after booting up Windows, I would get a glimpse of a BSOD (blue screen), and Windows would reboot (not even leaving me time to study the BSOD). Booting into safe mode wouldn&#8217;t help.<br />
Not wanting to create yet another virtual disk, I set out on an epic quest: a veritable search-and-destroy-the-cause mission. What finally fixed the whole thing, was setting the <strong>IDE Controller Type</strong> (Settings &#8211; General &#8211; Advanced) to <strong>PIX3 instead of PIX4</strong>. Apparently, the default setings are different between different distro&#8217;s. </p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.quitebrightlight.com/2009/05/virtualbox-winxp-guest-from-ubuntu-crashing-and-rebooting-in-opensuse/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IP based redirect for bots using .htaccess</title>
		<link>http://www.quitebrightlight.com/2009/04/ip-based-redirect-for-bots-usin-htaccess/</link>
		<comments>http://www.quitebrightlight.com/2009/04/ip-based-redirect-for-bots-usin-htaccess/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 21:01:53 +0000</pubDate>
		<dc:creator>jefke</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.quitebrightlight.com/?p=22</guid>
		<description><![CDATA[Like all of us &#8211; I think &#8211; I really hate comment spammers. I really hate unruly bots, actually. I really do. If you start keeping stats of visitors on your site, you&#8217;ll quickly spot bots crawling all over your site, searching for all sorts of ways to epxloit your website. They look for email [...]]]></description>
			<content:encoded><![CDATA[<p>Like all of us &#8211; I think &#8211; I really hate comment spammers. I really hate unruly bots, actually. I really do. If you start keeping stats of visitors on your site, you&#8217;ll quickly spot bots crawling all over your site, searching for all sorts of ways to epxloit your website. They look for email addresses, they try to submit spam comments, they try to find ways to enter your database, they do everything but help you. They are leeches. They stink. I really don&#8217;t like them&#8230;</p>
<p>Luckily, there are different ways to handle bots as well. If you&#8217;re using a .htacces file, for example, you can add a snippet to block the vermin based on their IP address. An idea I liked even better is to <a href="http://amifamousnow.com/how-to/howto-htaccess-ip-redirect-to-any-site/" onclick="pageTracker._trackPageview('/outgoing/amifamousnow.com/how-to/howto-htaccess-ip-redirect-to-any-site/?referer=');">redirect the bots</a> to a site that tries to reeducate the bots. You never know. </p>
<p>In stead of redirecting the bots to a governement site where they can take a seat and follow a hands-on course on cyber crimes, another good idea is to send the little bastards to a <a href="http://www.americanbeaconfunds.com/contact/spam/trap.html" onclick="pageTracker._trackPageview('/outgoing/www.americanbeaconfunds.com/contact/spam/trap.html?referer=');">spam trap page</a>. Gives me visions of all bots in the world swimming around in a pool of interlinked spam pages, never able to get out by them selves. Heaven&#8230;</p>
<p>So that&#8217;s what I do now, I redirect the bots to a spam trap. Typing in the IP&#8217;s in the required format for the .htaccess file, however, can be a PITA. Therefore, I wrote a little script to generate the .htaccess snippet based on a list of IP&#8217;s in their normal format. The .htaccess format itself comes from <a href="http://amifamousnow.com/how-to/howto-htaccess-ip-redirect-to-any-site/" onclick="pageTracker._trackPageview('/outgoing/amifamousnow.com/how-to/howto-htaccess-ip-redirect-to-any-site/?referer=');">Am I Famous Now</a>. Insert the URL where you want to send the bots to or leave the one I use, insert the IP&#8217;s of the bots and push the button:</p>
<p><br />
<script type="text/javascript" src="http://www.quitebrightlight.com/wp-includes/js/jquery/jquery.form.js"></script><br />
<script type="text/javascript"> function createhtaccess() {
  var queryString = jQuery("#IPform").formToArray();
  jQuery("#IPresult").load("/scripts/IPredirect.php", queryString);
  jQuery("#IPresult").addClass("insertcode");
  }
  </script></p>
<form id="IPform">
<strong>The URL to refer the bots to:</strong></p>
<div class='field'>
<TEXTAREA name="URL" id="URL" rows="2" cols="60">http://www.americanbeaconfunds.com/contact/spam/trap.html</TEXTAREA>
</div>
<p><strong>The IP&#8217;s to refer (one per line):</strong></p>
<div class='field'>
<TEXTAREA name="IPs" id="IPs" rows="10" cols="60">xxx.xxx.xxx.xxx</TEXTAREA>
</div>
<input type=button value='generate .htaccess snippet' onclick='createhtaccess();' />
</form>
<div name = 'IPresult' id = 'IPresult'></div>
<p>Copy paste the snippet into your .htaccess file, and you&#8217;re all set. (WATCH OUT: if you don&#8217;t know what you&#8217;re doing, messing with .htaccess can wreck your site in a second. Don&#8217;t blame me. I told you.) This works fine, ofcourse, when you can easily keep track of the bots. When you have huge traffic on your site, you probably have a huge number of bots visiting it as well. In that case, you&#8217;re probably better of with a lean and mean, fully automated and integrated bot trapping/blocking device like <a href="http://www.kloth.net/internet/bottrap.php" onclick="pageTracker._trackPageview('/outgoing/www.kloth.net/internet/bottrap.php?referer=');">this</a> or <a href="http://www.kloth.net/internet/bottrap.php" onclick="pageTracker._trackPageview('/outgoing/www.kloth.net/internet/bottrap.php?referer=');">this</a></p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.quitebrightlight.com/2009/04/ip-based-redirect-for-bots-usin-htaccess/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Pentax K20D firmware update under Linux</title>
		<link>http://www.quitebrightlight.com/2009/04/pentax-k20d-firmware-update-under-linux/</link>
		<comments>http://www.quitebrightlight.com/2009/04/pentax-k20d-firmware-update-under-linux/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 21:55:25 +0000</pubDate>
		<dc:creator>jefke</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[Pentax K20D]]></category>

		<guid isPermaLink="false">http://www.quitebrightlight.com/?p=21</guid>
		<description><![CDATA[Pentax has recently issued a new firmware update (1.03) for their current top DSLR, the K20D. Linux users might be suprised to see that only Windows and Mac users are supposed to download the firmware, as there&#8217;s only a download link for those two. A closer look to the accompanying text, however, shows that the [...]]]></description>
			<content:encoded><![CDATA[<p>Pentax has recently issued a <a href="ttp://www.pentax.jp/english/support/digital/k20d_s.html">new firmware update</a> (1.03) for their current top DSLR, the K20D. Linux users might be suprised to see that only Windows and Mac users are supposed to download the firmware, as there&#8217;s only a download link for those two. A closer look to the accompanying text, however, shows that the Mac download is actually an ordinary zip file. I have yet to see a Linux distro that doesn&#8217;t support extraction of zip-files, and this particular zip-file extracts to the bin-file you need to update the camera. Even under Linux (or BSD or&#8230;)</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.quitebrightlight.com/2009/04/pentax-k20d-firmware-update-under-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
