Monthly Archives: November 2009

I am a big fan of OneNote 2007. It has been really useful in organizing my research for grad schools. I was just playing around with it and I noticed that there was an option to send a page to one’s blog. Curious, I pressed on the button and a dialog came up asking me where my blog was hosted and, surprisingly, WordPress.com was listed. I quickly gave it my login information, eager to try it out. Then it told me that whatever I send to my blog will travel through the interwebs unencrypted, including my login information.

No thanks… Hey, at least it warned me! Whereas I am pretty sure Twitter.com is all too happy to accept your credentials over an unencrypted connection unless you go to the https:// URL, rather than the http one.

I have updated the page to reflect the completion of the first version of the plugin (v0.1). It contains a download link to the project’s Sourceforge page. Use it in good health!

I have added a page to this blog which contains information about a Winamp plugin I wrote. It allows you to forward song change events to Snarl. On that page I present my motivation to write it and I will eventually explain how you can get both the binary and the source. It’s currently in beta. I’m hoping to get a few people on the Snarl forums to test it.

I will probably publish the source to the public domain. I don’t care to copyright any of it, but parts of it is not my code, and I’ll have to check how I can handle the situation.


void adjustbmp(ARGB32 * p, int len, COLORREF fg)
{
 ARGB32 * end = p+len;
 while (p < end)
 {
 int a = (*p>>24)&0xff ;
 int b = a*((*p&0xff) * (fg&0xff)) / (0xff*0xff);
 int g = a*(((*p>>8)&0xff) * ((fg>>8)&0xff)) / (0xff*0xff);
 int r = a*(((*p>>16)&0xff) * ((fg>>16)&0xff)) / (0xff*0xff);
 *p = (a<<24) | (r&0xff) | ((g&0xff)<<8) | ((b&0xff)<<16);
 p++;
 }
}

I love the name too – this code just “adjust(s)” the bmp. Nice!