<?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>Lillesvin Networks &#187; Programming</title>
	<atom:link href="http://lillesvin.net/archives/category/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://lillesvin.net</link>
	<description></description>
	<lastBuildDate>Thu, 22 Jul 2010 13:07:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New Look and WordPress Bug</title>
		<link>http://lillesvin.net/archives/241</link>
		<comments>http://lillesvin.net/archives/241#comments</comments>
		<pubDate>Thu, 13 Aug 2009 02:01:39 +0000</pubDate>
		<dc:creator>Anders K. Madsen</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Lillesvin Networks]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://lillesvin.net/?p=241</guid>
		<description><![CDATA[I accidently stumbled across this nice WordPress theme by Rob Goodlatte, which automatically increases/decreases the font size depending on the size of the browser window in order to maintain a sensible and readable line length. I&#8217;m still not entirely through modifying it (the CSS is a bit of a mess and I&#8217;ve found several inconsistencies [...]]]></description>
			<content:encoded><![CDATA[<p>I accidently stumbled across this nice WordPress theme by <a href="http://robgoodlatte.com/">Rob Goodlatte</a>, which automatically increases/decreases the font size depending on the size of the browser window in order to maintain a sensible and readable line length. I&#8217;m still not entirely through modifying it (the CSS is a bit of a mess and I&#8217;ve found several inconsistencies throughout the theme) and I&#8217;m not quite sure how well the dynamic font size works with regards to accessibility, but what the hell — it&#8217;s easy enough to switch back to the old theme again should this turn out to not work as expected, so let&#8217;s just give it a go.</p>
<p>Actually, I stumbled across this theme because I had to do an urgent upgrade of WordPress because of a nasty, nasty flaw recently discovered and <a href="http://lists.grok.org.uk/pipermail/full-disclosure/2009-August/070137.html">described on Full Disclosure</a>. Basically it allows anyone to reset the admin password effectively locking out the standard admin user, so if you&#8217;re running WordPress, make sure to update to the latest version at once — and <a href="http://codex.wordpress.org/Upgrading_WordPress">upgrading is not that hard</a>. I upgraded from an ancient version without a single problem (that I know of).</p>
]]></content:encoded>
			<wfw:commentRss>http://lillesvin.net/archives/241/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>phpCF 0.5b — &#8220;Who would have thunk it?&#8221; edition!</title>
		<link>http://lillesvin.net/archives/237</link>
		<comments>http://lillesvin.net/archives/237#comments</comments>
		<pubDate>Tue, 05 May 2009 03:32:07 +0000</pubDate>
		<dc:creator>Anders K. Madsen</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[phpCF]]></category>

		<guid isPermaLink="false">http://lillesvin.net/archives/237</guid>
		<description><![CDATA[phpCF version 0.5 beta is just done (after almost 4 years!) and commited to the repository. Among the changes are a completely new and more managable rules system, that allows for easy rules writing while still allowing for even more flexibility than previous versions. I&#8217;ll tag a release, upload tar-balls and update the phpCF page [...]]]></description>
			<content:encoded><![CDATA[<p>phpCF version 0.5 beta is just done (after almost 4 years!) and commited to the <a href="http://svn.lillesvin.net/phpCF/trunk">repository</a>. Among the changes are a <a href="http://svn.lillesvin.net/phpCF/trunk/docs/Rules.txt">completely new and more managable rules system</a>, that allows for easy rules writing while still allowing for even more flexibility than previous versions. I&#8217;ll tag a release, upload tar-balls and update the <a href="http://lillesvin.net/phpcf/">phpCF page</a> as soon as I get home from work tonight. See the <a href="http://svn.lillesvin.net/phpCF/trunk/ChangeLog">ChangeLog</a> for a more detailed list of changes.</p>
<p><strong>Update (May 5 2009 @ 4:32 AM):</strong> The phpCF page is now updated and with links to tar-balls, docs and stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://lillesvin.net/archives/237/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scale &#8212; &#8220;digits, yes please&#8221;</title>
		<link>http://lillesvin.net/archives/210</link>
		<comments>http://lillesvin.net/archives/210#comments</comments>
		<pubDate>Sat, 15 Dec 2007 20:47:47 +0000</pubDate>
		<dc:creator>Steffen</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://lillesvin.net/archives/210</guid>
		<description><![CDATA[Just now and again one need a one-liner [0]. Just now and again it&#8217;s executed in bash [1]. Just now and again it involves some calculation. And just now and again it easy to do those things with bc [2] as it can  read from standard input [3]. But at exactly those &#8220;now and [...]]]></description>
			<content:encoded><![CDATA[<p>Just now and again one need a one-liner [0]. Just now and again it&#8217;s executed in <code>bash</code> [1]. Just now and again it involves some calculation. And just now and again it easy to do those things with <code>bc</code> [2] as it can  read from standard input [3]. But at exactly those &#8220;now and again&#8221; times I normally find that <code>bc</code> truncates and returns only the integer part. Which at a subset of those &#8220;now and again&#8221; times are just not good enough. F.x.: one might be fuzzy about the resolution when counting how many keystrokes there are to go in order to have produced the scheduled amount of text for the day.</p>
<p>But fortunately I today got wiser; I met the <em>scale</em> variable in <code>bc</code>. It properly still truncates but now I can set a resolution that at least satisfy my fuzziness issue, which means I can now <code>M-!</code> my way to the following one-liner to get what i want.</p>
<p><code>C=`wc -c main.tex | cut -c 4-8`; P=`echo "scale=4; ${C}/2400" | bc`; echo ${C}c, ${P}p</code></p>
<p>Bliss. Back to work.</p>
<p>[0] <a href="http://en.wikipedia.org/wiki/One-liner_program">http://en.wikipedia.org/wiki/One-liner_program</a><br />
[1] <a href="http://www.gnu.org/software/bash/">http://www.gnu.org/software/bash/</a><br />
[2] <a href="http://www.gnu.org/software/bc/">http://www.gnu.org/software/bc/</a><br />
[3] <a href="http://en.wikipedia.org/wiki/Standard_input#Standard_input_.28stdin.29">http://en.wikipedia.org/wiki/Standard_input#Standard_input_.28stdin.29</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lillesvin.net/archives/210/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>A bid on my soul</title>
		<link>http://lillesvin.net/archives/98</link>
		<comments>http://lillesvin.net/archives/98#comments</comments>
		<pubDate>Tue, 14 Feb 2006 23:00:30 +0000</pubDate>
		<dc:creator>Anders K. Madsen</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[The World]]></category>

		<guid isPermaLink="false">http://blog.lillesvin.net/archives/98</guid>
		<description><![CDATA[ This morning I found this in my inbox&#8230;
To: madsen@sjovedyr.dk
Date: Tue, 14 Feb 2006 02:21:23 -0500
Subject: php contract work
From: #####@########.org
I saw your ad posted on phpbuilder.com for php contract work.
I have a survey form / MySQL database project I am working on and am wondering
how much you would charge to complete it.
Here is a link [...]]]></description>
			<content:encoded><![CDATA[<p> This morning I found this in my inbox&#8230;</p>
<blockquote><p>To: madsen@sjovedyr.dk<br />
Date: Tue, 14 Feb 2006 02:21:23 -0500<br />
Subject: php contract work<br />
From: #####@########.org</p>
<p>I saw your ad posted on phpbuilder.com for php contract work.</p>
<p>I have a survey form / MySQL database project I am working on and am wondering<br />
how much you would charge to complete it.</p>
<p>Here is a link to the form, and what I am looking for is explained there:</p>
<p><a href="http://www.friendsofdenmark.us/">http://www.friendsofdenmark.us/</a>.</p>
<p>If you want to call, my number in Washington, DC is ### ### ####</p>
<p>Thanks,</p>
<p>##### ######</p>
<p>From IP Address: ##.##.###.##<br />
From Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5)<br />
Gecko/20060111 Netscape/8.1</p></blockquote>
<p>Two words: <strong>Hell no!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lillesvin.net/archives/98/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Magnet poetry with Ajax</title>
		<link>http://lillesvin.net/archives/94</link>
		<comments>http://lillesvin.net/archives/94#comments</comments>
		<pubDate>Wed, 23 Nov 2005 05:47:59 +0000</pubDate>
		<dc:creator>Anders K. Madsen</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Fun Stuff]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.lillesvin.net/archives/94</guid>
		<description><![CDATA[Based on DOM-Drag (which is really nice btw), I hacked up a little thingy for the Migato Estalo Co. website. (It&#8217;s in danish, but you know the concept.)
I&#8217;m growing more and more fond of Ajax (or rather XMLHttpRequest). It&#8217;s really nice, but unfortunately it&#8217;s not very Lynx-/Links-friendly, but I guess that&#8217;s the price to pay [...]]]></description>
			<content:encoded><![CDATA[<p>Based on <a href="http://www.youngpup.net/2001/domdrag">DOM-Drag</a> (which is really nice btw), I hacked up a little thingy for the <a href="http://mec.lillesvin.net">Migato Estalo Co. website</a>. (It&#8217;s in danish, but you know the concept.)</p>
<p>I&#8217;m growing more and more fond of Ajax (or rather XMLHttpRequest). It&#8217;s really nice, but unfortunately it&#8217;s not very Lynx-/Links-friendly, but I guess that&#8217;s the price to pay and I guess it&#8217;s all part of development. (I mean, you usually ditch something old in favour of something newer and smarter &#8211; though not necessarilly <em>better</em> in every respect.)</p>
]]></content:encoded>
			<wfw:commentRss>http://lillesvin.net/archives/94/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>phpCF 0.3 released</title>
		<link>http://lillesvin.net/archives/92</link>
		<comments>http://lillesvin.net/archives/92#comments</comments>
		<pubDate>Sun, 25 Sep 2005 06:11:28 +0000</pubDate>
		<dc:creator>Anders K. Madsen</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.lillesvin.net/archives/92</guid>
		<description><![CDATA[ This release of phpCF features:

Incorporation of the Lillesvin Networks blacklist (text/plain version) &#8211; possibly more blacklists will be supported in future releases.
Better testing for HTML
Configuration to allow specific HTML tags, thus excluding them when testing for HTML
Better debugging methods
Removal of disabled checks in the instance-log

Go get it at http://lillesvin.net/phpcf!
]]></description>
			<content:encoded><![CDATA[<p> This release of phpCF features:</p>
<ul>
<li>Incorporation of the <a href="http://lillesvin.net/bl.xml">Lillesvin Networks blacklist</a> (<a href="http://lillesvin.net/bl.txt">text/plain version</a>) &#8211; possibly more blacklists will be supported in future releases.</li>
<li>Better testing for HTML</li>
<li>Configuration to allow specific HTML tags, thus excluding them when testing for HTML</li>
<li>Better debugging methods</li>
<li>Removal of disabled checks in the instance-log</li>
</ul>
<p>Go get it at <a href="http://lillesvin.net/phpcf">http://lillesvin.net/phpcf</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://lillesvin.net/archives/92/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lillesvin Networks serving online game</title>
		<link>http://lillesvin.net/archives/91</link>
		<comments>http://lillesvin.net/archives/91#comments</comments>
		<pubDate>Thu, 15 Sep 2005 03:34:01 +0000</pubDate>
		<dc:creator>Anders K. Madsen</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Fun Stuff]]></category>
		<category><![CDATA[Lillesvin Networks]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.lillesvin.net/archives/91</guid>
		<description><![CDATA[ It&#8217;s true! It&#8217;s nothing fancy really (you&#8217;ll understand when you see it), but it&#8217;s a game non the less. And it has an online Top 10, so you can compete with others! It&#8217;s really simple, highly addictive, non-violent, non-sexual &#8230; pretty much non-anything &#8211; just the way some americans (e.g. from Michigan) like it. [...]]]></description>
			<content:encoded><![CDATA[<p> It&#8217;s true! It&#8217;s nothing fancy really (you&#8217;ll understand when you see it), but it&#8217;s a game non the less. And it has an online Top 10, so you can compete with others! It&#8217;s <em>really</em> simple, highly addictive, non-violent, non-sexual &#8230; pretty much non-anything &#8211; just the way some americans (e.g. from Michigan) like it. Who knows, I could start chargin a monthly fee for playing &#8211; I could make billions! Muahahaaa!</p>
<p>Ok, I&#8217;ve been taking to much of your precious time &#8211; <a href="http://lillesvin.net/ug.php">here&#8217;s the game</a>! Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://lillesvin.net/archives/91/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Heavy Spam Decrease</title>
		<link>http://lillesvin.net/archives/90</link>
		<comments>http://lillesvin.net/archives/90#comments</comments>
		<pubDate>Tue, 13 Sep 2005 06:56:15 +0000</pubDate>
		<dc:creator>Anders K. Madsen</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Lillesvin Networks]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[phpCF]]></category>

		<guid isPermaLink="false">http://blog.lillesvin.net/archives/90</guid>
		<description><![CDATA[ I was just looking through my logfiles (I tend to do that whenever I get a bit tired, but don&#8217;t go to sleep) and I realized that the number of spam attempts has decreased heavilly. From blocking more than 30 attempts a day, all the way down to 52 attempts throughout June and no [...]]]></description>
			<content:encoded><![CDATA[<p> I was just looking through my logfiles (I tend to do that whenever I get a bit tired, but don&#8217;t go to sleep) and I realized that the number of spam attempts has decreased <em>heavilly</em>. From blocking more than 30 attempts a day, all the way down to 52 attempts throughout June and no attempts at all in August or September. Same goes for blacklist redirects (ie. blacklisted hosts being redirected to a customized 404 page saying that they&#8217;ve been blacklisted.)</p>
<p>I&#8217;m not quite sure what to make of this, because there are a couple of things involved and the decrease started just as I made some big changes to my anti-spam system. The following are some possible factors in the decrease and there may very well be some I&#8217;m overlooking.</p>
<h4>I started returning 404 Not Found on blacklist redirects instead of 200 OK</h4>
<p>Are the spammers running some kind of automated learning, so once they receive a 404, they stop trying? That would be weird, because in order to even see the before mentioned 404, they have to make at least 3 attempts at spamming. So automated learning would be indicated by a vast amount of blocked attempts compared to the number of blacklist redirects, which is not the case here &#8211; both numbers have decreased heavilly, though the number of blacklist redirects varies from zero to 5-6 a day.</p>
<h4><a href="http://lillesvin.net/phpcf/">phpCF</a> is working great</h4>
<p>If the spammers are in some way measuring their success-rate, then it must mean that phpCF is working great, because no spam has gotten through in a long time. But this would also be strange, because how would they measure the success-rate? Googling? I think not.</p>
<h4>The blacklist is complete</h4>
<p>I&#8217;ve finally blacklisted each and every spam-bot on the planet! Yay, for me! <code>:-p</code><br />
Actually, this <em>would</em> explain the small number of blocked attempts compared to the larger amount of blacklist redirects. But still, somehow I don&#8217;t believe that this is the reason.</p>
<h4>More options</h4>
<p>Last, but not least, there may be outside factors causing the decrease (even though I&#8217;d like to think that <em>I</em> came up with the &#8220;cure for the cancer&#8221;). Maybe Google-bombing has gotten harder, or the spammers are getting more cautious &#8211; or maybe blog-spamming just isn&#8217;t profitable enough&#8230;</p>
<p>&#8230; and then there is all the stuff I can&#8217;t think up right now because it&#8217;s 8:46 AM and I haven&#8217;t slept yet. If you have any ideas, experiences, thoughts &#8230; anything! Please, post a comment or drop me a mail. I&#8217;d be more than happy to know what you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://lillesvin.net/archives/90/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New music site (again)</title>
		<link>http://lillesvin.net/archives/87</link>
		<comments>http://lillesvin.net/archives/87#comments</comments>
		<pubDate>Tue, 02 Aug 2005 10:34:00 +0000</pubDate>
		<dc:creator>Anders K. Madsen</dc:creator>
				<category><![CDATA[Lillesvin Networks]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.lillesvin.net/archives/87</guid>
		<description><![CDATA[ In order to keep things as simple as possible, I&#8217;ve re-done the site for my music: http://akm.lillesvin.net. Much love to die stffii for opening my eyes for simple sites. Now the site features an RSS feed for the songs, so you can simply subscribe to the feed and you&#8217;ll know when a new song [...]]]></description>
			<content:encoded><![CDATA[<p> In order to keep things as simple as possible, I&#8217;ve re-done the site for my music: <a href="http://akm.lillesvin.net">http://akm.lillesvin.net</a>. Much love to <a href="http://dibidut.dk">die stffii</a> for opening my eyes for simple sites. Now the site features an RSS feed for the songs, so you can simply subscribe to the feed and you&#8217;ll know when a new song is out.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://lillesvin.net/archives/87/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>2 Songs &#8211; Out Now! 2 Websites &#8211; Up Now!</title>
		<link>http://lillesvin.net/archives/86</link>
		<comments>http://lillesvin.net/archives/86#comments</comments>
		<pubDate>Mon, 25 Jul 2005 22:54:01 +0000</pubDate>
		<dc:creator>Anders K. Madsen</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Gear]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.lillesvin.net/archives/86</guid>
		<description><![CDATA[ Yay! When my computer was in for service I was really bored out of my mind, but fortunately it inspired some creativity, which resulted in the two songs that I&#8217;ve just unloaded on the world.
They&#8217;re titled Ode to DOOM and Rockstar and you can get them on the website dedicated to my music &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p> Yay! When my computer was in for service I was <em>really</em> bored out of my mind, but fortunately it inspired some creativity, which resulted in the two songs that I&#8217;ve just unloaded on the world.</p>
<p>They&#8217;re titled <em>Ode to DOOM</em> and <em>Rockstar</em> and you can get them on the website dedicated to my music &#8211; <a href="http://akm.lillesvin.net">http://akm.lillesvin.net</a> and for a while yet you can get them on <a href="http://lillesvin.net/music/">http://lillesvin.net/music/</a>. And while we&#8217;re at the music-websites stuff&#8230; I just hacked up a couple of temporary sites for the other two projects I&#8217;m involved with, <a href="http://mec.lillesvin.net">Migato Estalo Co.</a> and <a href="http://laxness101.lillesvin.net">Laxness 101</a> &#8211; go straight there, download all the songs and enjoy them. (It&#8217;s not an offer, it&#8217;s an order!) Also I&#8217;d like to get some feedback on them &#8211; according to <a href="http://dibidut.dk">die steffie</a> there&#8217;s a problem with the Migato Estalo Co.-site in IE, but since I don&#8217;t have an IE around it&#8217;s kinda hard for me to fix, so any feedback will be most appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://lillesvin.net/archives/86/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
