• "Today it feels harder than ever to get the tools to play with science at home and I want to be able to give my son a chemistry set that he would relish getting out to experiment with. One that he could pass on to his younger brother when the time is right. One that will instill the joy of science, exploration and discovery in him. If I can’t buy one then I am going to make one, so this site will record my attempts to put together the best chemistry set a boy or girl could wish for." Smashing.
  • "Transmission is a fast, easy, and free multi-platform BitTorrent client." Impressive OSX version, for a multi-platform tool, too. Very pleased with this after Tomato gave up the ghost.

These are my links for November 3rd through November 4th:

Another day, another release: updated calendar_helper

09 July 2007

I’ve just had my first patch accepted on an open source project. Quite chuffed with that! As of this weekend, the Rails calendar_helper plugin is now at version 0.21. My changes are very minimal, and only really to do with the markup.

Firstly, the default table markup’s had an overhaul. The date now goes into a %lt;caption> tag, outside the <thead>, as is appropriate. The <th>‘s in the thead now have scope="col" applied to them, again, as is appropriate.

The only other change is optional. If you pass in an option of :accessible => true, any dates in the grid which fall outside the current month will have <span> class="hidden"> monthName</span> appended to them. It could be reasonably inferred that plain numbers are dates that relate to the caption of the table, but the numbers outside the current month should probably be clarified.

You can come up with your own method of hiding content marked as .hidden; at NPG, we use the following:

.hidden {
	position:absolute;
 	left:0px;
 	top:-500px;
 	width:1px;
 	height:1px;
 	overflow:hidden;
}

but really, use whatever you’re most comfortable with.

You can get the plugin from Geoffrey Grosenbach’s subversion:

http://topfunky.net/svn/plugins/calendar_helper/

via the usual Rails plugin installation method.