<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: 9000 days</title>
	<atom:link href="http://www.engtect.net/57/feed" rel="self" type="application/rss+xml" />
	<link>http://www.engtect.net/57</link>
	<description>structural engineering</description>
	<pubDate>Mon, 21 May 2012 07:30:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Muzzi</title>
		<link>http://www.engtect.net/57#comment-665</link>
		<dc:creator>Muzzi</dc:creator>
		<pubDate>Fri, 11 May 2007 16:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.engtect.net/57#comment-665</guid>
		<description>Happy 9009 day!!</description>
		<content:encoded><![CDATA[<p>Happy 9009 day!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerald</title>
		<link>http://www.engtect.net/57#comment-662</link>
		<dc:creator>Gerald</dc:creator>
		<pubDate>Wed, 02 May 2007 17:26:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.engtect.net/57#comment-662</guid>
		<description>Gah! Well... I was close. Note to self: more RTFMing is in order.</description>
		<content:encoded><![CDATA[<p>Gah! Well&#8230; I was close. Note to self: more RTFMing is in order.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Hart</title>
		<link>http://www.engtect.net/57#comment-661</link>
		<dc:creator>Rob Hart</dc:creator>
		<pubDate>Wed, 02 May 2007 17:08:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.engtect.net/57#comment-661</guid>
		<description>Gerald, GD works in 256 colour mode unless you specify trucolour mode when you create the image:

my $im = new GD::Image(450,20,1);</description>
		<content:encoded><![CDATA[<p>Gerald, GD works in 256 colour mode unless you specify trucolour mode when you create the image:</p>
<p>my $im = new GD::Image(450,20,1);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerald Morgan</title>
		<link>http://www.engtect.net/57#comment-660</link>
		<dc:creator>Gerald Morgan</dc:creator>
		<pubDate>Wed, 02 May 2007 16:48:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.engtect.net/57#comment-660</guid>
		<description>Happy 9000th day and many happy returns etc. etc.

I agree, there is a suspiciously monotone appearance to the image... and indeed the GIMP bears this out. I offer the source to the perl script: (no source tags available, it seems)

#! /usr/bin/perl
use warnings;
use strict;
use GD;

my $im = new GD::Image(450,20);

my @colours;
my $i = 0;
foreach () {
	(my $a, my $b, my $c) = split;
	$colours[$i] = $im-&#62;colorAllocate($a,$b,$c);
	$i++;
}
	
#my $count = 0;
## allocate some colors
#foreach my $x (1..25) {
#	foreach my $y (0..19) {
#		foreach my $z (1..18) {
#			$colours[$count] = $im-&#62;colorAllocate(236 + $y,93 + $z,0 + $x);
#			print 236+$y,"\t",93+$z,"\t",$x,"\n";
#			$count++;
#		}
#	}
#}
$im-&#62;interlaced('true');

my $count = 0;
foreach my $x (0..449) {
	foreach my $y (0..19) {
		$im-&#62;setPixel($x,$y,$colours[$count]);
		$count++;
	}
}

print $im-&#62;png(0);
__END__

To call, open bash and type:
gerald@ged:~$ ./rob.pl output.png

For those using less advanced OSes, running is left as an exercise for the reader. ;)

The commented section in the middle is the bit that creates the input.txt file.</description>
		<content:encoded><![CDATA[<p>Happy 9000th day and many happy returns etc. etc.</p>
<p>I agree, there is a suspiciously monotone appearance to the image&#8230; and indeed the GIMP bears this out. I offer the source to the perl script: (no source tags available, it seems)</p>
<p>#! /usr/bin/perl<br />
use warnings;<br />
use strict;<br />
use GD;</p>
<p>my $im = new GD::Image(450,20);</p>
<p>my @colours;<br />
my $i = 0;<br />
foreach () {<br />
	(my $a, my $b, my $c) = split;<br />
	$colours[$i] = $im-&gt;colorAllocate($a,$b,$c);<br />
	$i++;<br />
}</p>
<p>#my $count = 0;<br />
## allocate some colors<br />
#foreach my $x (1..25) {<br />
#	foreach my $y (0..19) {<br />
#		foreach my $z (1..18) {<br />
#			$colours[$count] = $im-&gt;colorAllocate(236 + $y,93 + $z,0 + $x);<br />
#			print 236+$y,&#8221;\t&#8221;,93+$z,&#8221;\t&#8221;,$x,&#8221;\n&#8221;;<br />
#			$count++;<br />
#		}<br />
#	}<br />
#}<br />
$im-&gt;interlaced(&#8217;true&#8217;);</p>
<p>my $count = 0;<br />
foreach my $x (0..449) {<br />
	foreach my $y (0..19) {<br />
		$im-&gt;setPixel($x,$y,$colours[$count]);<br />
		$count++;<br />
	}<br />
}</p>
<p>print $im-&gt;png(0);<br />
__END__</p>
<p>To call, open bash and type:<br />
gerald@ged:~$ ./rob.pl output.png</p>
<p>For those using less advanced OSes, running is left as an exercise for the reader. ;)</p>
<p>The commented section in the middle is the bit that creates the input.txt file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Hart</title>
		<link>http://www.engtect.net/57#comment-659</link>
		<dc:creator>Rob Hart</dc:creator>
		<pubDate>Wed, 02 May 2007 16:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.engtect.net/57#comment-659</guid>
		<description>It doesn't matter what the julian date stuff actually does, it will give you a unique day number for any day that has ever been. So you calculate the day number of the persons date of birth, and the day number of today, and subtract the two to get their age in days. Then to do the table of millenidiaveraries, you keep adding 1000 to their birth day number and convert back to the Gregorian date for output.</description>
		<content:encoded><![CDATA[<p>It doesn&#8217;t matter what the julian date stuff actually does, it will give you a unique day number for any day that has ever been. So you calculate the day number of the persons date of birth, and the day number of today, and subtract the two to get their age in days. Then to do the table of millenidiaveraries, you keep adding 1000 to their birth day number and convert back to the Gregorian date for output.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.engtect.net/57#comment-658</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Wed, 02 May 2007 16:23:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.engtect.net/57#comment-658</guid>
		<description>Hey Rob,
I did look at using the Julian date day numbers but could not ascertain how well they take into account leap years and odd things like in the 14th century when they gained or lost ten days as the calander was going out of order. Also it was only in the 1920's (ish) that the globe (generally) had a shared date system. This is something I would like to look into for interest but for now just stuck to timestamps. 

Also the code I use to calculate one's age in days is inefficient as it loops through each day counting the days from the birthday to the current day.

The script for the image loops through 20 for R, 25 for G and 18 for B (or what ever the numbers are to make 9000) making unique combinations. I will send you the output text file.

The image was kept as a bmp, I thought this would keep all the colours.

Hmmm, what to do. Am looking at image in photoshop and cannot really tell...</description>
		<content:encoded><![CDATA[<p>Hey Rob,<br />
I did look at using the Julian date day numbers but could not ascertain how well they take into account leap years and odd things like in the 14th century when they gained or lost ten days as the calander was going out of order. Also it was only in the 1920&#8217;s (ish) that the globe (generally) had a shared date system. This is something I would like to look into for interest but for now just stuck to timestamps. </p>
<p>Also the code I use to calculate one&#8217;s age in days is inefficient as it loops through each day counting the days from the birthday to the current day.</p>
<p>The script for the image loops through 20 for R, 25 for G and 18 for B (or what ever the numbers are to make 9000) making unique combinations. I will send you the output text file.</p>
<p>The image was kept as a bmp, I thought this would keep all the colours.</p>
<p>Hmmm, what to do. Am looking at image in photoshop and cannot really tell&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CHICKPEA</title>
		<link>http://www.engtect.net/57#comment-657</link>
		<dc:creator>CHICKPEA</dc:creator>
		<pubDate>Wed, 02 May 2007 16:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.engtect.net/57#comment-657</guid>
		<description>Happy 9000 days old today! 
Hope that you have a lovely drink tonight...think I'm definately going to need one on Friday - its been a manically busy week!
x</description>
		<content:encoded><![CDATA[<p>Happy 9000 days old today!<br />
Hope that you have a lovely drink tonight&#8230;think I&#8217;m definately going to need one on Friday - its been a manically busy week!<br />
x</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Hart</title>
		<link>http://www.engtect.net/57#comment-656</link>
		<dc:creator>Rob Hart</dc:creator>
		<pubDate>Wed, 02 May 2007 15:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.engtect.net/57#comment-656</guid>
		<description>Also try using the PHP functions cal_to_jd and cal_from_jd which use day numbers (from January 1st, 4713 B.C) and so should work for all but the oldest of your readers!

http://uk2.php.net/manual/en/ref.calendar.php</description>
		<content:encoded><![CDATA[<p>Also try using the PHP functions cal_to_jd and cal_from_jd which use day numbers (from January 1st, 4713 B.C) and so should work for all but the oldest of your readers!</p>
<p><a href="http://uk2.php.net/manual/en/ref.calendar.php" rel="nofollow">http://uk2.php.net/manual/en/ref.calendar.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Hart</title>
		<link>http://www.engtect.net/57#comment-655</link>
		<dc:creator>Rob Hart</dc:creator>
		<pubDate>Wed, 02 May 2007 15:55:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.engtect.net/57#comment-655</guid>
		<description>I loaded the image in the gimp. If you zoom in an look very carefully at the left hand end of the image then you can see subtle difference in the hue of each pixel. However most of the image (say 95%+) is all a single shade (#F16103). Maybe the image got compressed at some point or stored in a 256 colour format. Care to post the source of your perl script?

A standard unix timestamp will overflow sometime in 2037. I am 10,612 days old (+0.5 I think by now).</description>
		<content:encoded><![CDATA[<p>I loaded the image in the gimp. If you zoom in an look very carefully at the left hand end of the image then you can see subtle difference in the hue of each pixel. However most of the image (say 95%+) is all a single shade (#F16103). Maybe the image got compressed at some point or stored in a 256 colour format. Care to post the source of your perl script?</p>
<p>A standard unix timestamp will overflow sometime in 2037. I am 10,612 days old (+0.5 I think by now).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.engtect.net/57#comment-654</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Wed, 02 May 2007 10:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.engtect.net/57#comment-654</guid>
		<description>Would it be any good if we celebrated these landmarks instead of birthdays? ...it would mean that your "birthday" would be at a different time of year each time; it would be more special, and we could get away with spending less money on presents since we would have only 0.36525 times the number of birthdays.</description>
		<content:encoded><![CDATA[<p>Would it be any good if we celebrated these landmarks instead of birthdays? &#8230;it would mean that your &#8220;birthday&#8221; would be at a different time of year each time; it would be more special, and we could get away with spending less money on presents since we would have only 0.36525 times the number of birthdays.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

