January 2009 Blog Posts

In the name of Science, and Me...

All programmers, at one point or another, have dreamt of this: Of course, you know what this is, right? It's a file. Duh, you say? No, you don't understand. Each pixel represents 4 bytes of a file. I used the first two pixels to "store" the number of bytes of the actual file, then the rest up to that white line at the end, is the file. Brilliant? Yes, yes I know. I have not been able to purge my mind of this ridiculously stupid project / experiment...

Device Independent Bitmaps, C#, and Me...REDUX!

Well, after using the previously posted code in some projects at work, some limitations arose quickly.  The two biggest were support for 8-bit bitmaps, and support for both 5-5-5 and 5-6-5 16-bit bitmaps. The new code looks like the following: {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;}@font-face {font-family:calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} p.msonormal, li.msonormal, div.msonormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}.msochpdefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}.msopapdefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;}@page section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;}div.section1 {page:section1;}table.msonormaltable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:calibri; mso-hansi-theme-font:minor-latin;}]]> using System; ...

Conway's Game of Life, Pong, Screensavers, and Me...

Greetings, all: Due to the massive increase in my blog traffic (I think I het around 20 / week or so) after I initially offered up my Game of Life screensaver, I now offer, in celebration of the new year, GoLPong! That's right, for 2009 you now can have a fancy new Game of Life screensaver.  BUT THIS ONE'S PACKED WITH NEW FEATURES!  Well, what are they? Game of Life does both trails and no trails Flickers between trails and non-trails Pong played...

«January»
SunMonTueWedThuFriSat
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567