Search This Blog

Thursday, August 27, 2009

Additional PicasaWeb API Blog Posts

http://www.searchenginejournal.com/picasa-web-albums-updates-new-api-features/5362/
Has several very useful query examples

Friday, August 21, 2009

Tift Merritt - My Heart is free



Lyrics | Tift Merritt Lyrics | My Heart Is Free Lyrics

Learning more about Blogger and CSS

How to add a custom CSS to a blog's template.

Description of a Blogger Template

Added the following CSS style Sheet:


/*
Custom CSS class to display code snippets.
http://bguide.blogspot.com/
2008 Feb 03
*/
.mycode
{
border:1px dashed #aaaaaa;
background:#eeeeee;
white-space:pre;
font-family:monospace;
font-size:9pt;
line-height: 10pt;
height:auto;
width:auto;
padding:5px;
margin-left:10px;
overflow:auto;
}

To implement:
<div class="mycode">

/* Paste the code snippet here */

</div>

My code....

public static void UnregisterControl(Type t)
{
try
{
GuardNullType(t, "t");
GuardTypeIsControl(t);

//CLSID
string key = @"CLSID\" + t.GUID.ToString("B");
Registry.ClassesRoot.DeleteSubKeyTree(key);
}
catch (Exception ex)
{
LogAndRethrowException("ComUnregisterFunction failed.", t, ex);
}

}

Wednesday, August 12, 2009

Code to display Lego Model files

Source code to display MLCad / LeoCad model file using C#
Code posted by Chris Lomont.

Lomont's Lego CAD Viewer:
The program loads LDRAW files for viewing and deconstruction. Sourcecode and exe and a sample image file are included for your spastic enjoyment. See my Lego page for a the DAT file for the Technic kits 853 and 854 (pictured). Click the picture for a larger image.


Lego Screensaver (from Chris Lomont)
This is a screensave that assembles and disassembled many Lego models. Renaming the *.SCR to an EXE allows you to add your own LDRAW models to the mix.

Included is C# sourcecode and a VS 2008 project to compile the code.

Click the image to see a larger version of an assembled Technic set from the screensaver.



Requires LDraw.