The programmer calendar



It was a long evening and I had nothing to do. Suddenly I remembered, that the previous year I saw a funny programmer HEX-calendar. So, I tried to find the calendar on the 2012 year, but, unfortunately, I hadn’t found. So, I decided to create it all by myself. Doing that I kind of carried away and created a 6 different numeral systems calendar generator.

Here’s a calendar in hexadecimal numeral system:



The following numeral systems are available in the generator: Of course, it’s possible to add some more numeral systems, but there are already quite enough to excite people around you with the strange calendar.

Here’s a crazy view of a calendar in a ternary numeral system:



What can you do with such a calendar?
  • The year is chosen in a range from 2011 to 2015.
  • You can choose different colors for the fields: borders, weekday, year etc.
  • You can print it. Click on the “Print” button and you will see a generated calendar in another browser window. I.e. only the calendar – nothing else. Standard steps then – delete headlines, point out the fields and print it. Well, I’m not that one, who’ll teach you how to print?
  • You can open a calendar for printing in three different scales – pocket size, average size and A4 (standard sheet of paper)
  • In fact, the calendar is generated in SVG format. It’s a vector format, so it means that you can choose any size you want. To do that you have to download the file. Then open it with… say, Inkscape – a freeware editor.
  • You can post a link on the completed calendar (color theme, year, type) in social networks due to special buttons
  • Or you can simply copy a link and send it to somebody (most likely, to a programmer) in any way you want.

Nuances.
SVG – a handy format. And somewhen there will be a time, when all the browsers will display it correctly and evenly. However, nowadays only Chrome, Firefox, Safari and Opera display it correctly. Everything there is full-blown and dynamic – you change the color and immediately see the result. But you won’t see that in Internet Explorer – instead, you will see just a static picture and warning sign. Though, you still can choose appropriate options and download an SVG file to print it due to, say, Inkscape.


Print sizes.
What pocket, average and A4 sizes look like? Here’s an example of printing from Adobe Reader:


Pocket size

Average size

A4 format


Some technical details.
  • The base of the generator is a Python script which in fact generates calendars. Idea and source code are taken from here. But the source code can generate only hexadecimal calendars, so I had to correct it little bit.
  • Ternary numeral system materials are taken from here. And one more interesting link.

Interesting fact.
Entirely there were three numeral systems to choose from: hexadecimal, nonary and ternary. Looks like it’s enough. So I shared the link with two friends. One is a programmer, another is not.
The latter was surprised because of absence of common decimal numeral system and a programmer was revolted by the fact of binary numeral system absence. So, I was forced to give the finishing touches on that?

Back to the calendar.