Blog Archives

Grant production tax credits to advanced biofuels such as algae fuel and their research as an alternative to crude.

https://petitions.whitehouse.gov/petition/grant-production-tax-credits-advanced-biofuels-such-algae-fuel-and-their-research-alternative-crude/44W0Mhr3

Signing the petition only takes a second, White House makes it very fast and easy. Once you sign my petition there are many of other petitions out there you might find interesting, such as petitioning for Texas to separate etc.

Hopefully these types of social media projects may eventually garner some real attention.

Advertisement

Browser Safe Fonts

See below for a table of “browser safe fonts” which work well and have been tested with most browsers.

This table is courtesy of Ampsoft.

Windows fonts / Mac fonts / Font family
Normal style Bold style
Arial, Arial, Helvetica, sans-serif Arial, Arial, Helvetica, sans-serif
Arial Black, Arial Black, Gadget, sans-serif Arial Black, Arial Black, Gadget, sans-serif
Comic Sans MS, Comic Sans MS5, cursive Comic Sans MS, Comic Sans MS5, cursive
Courier New, Courier New, monospace Courier New, Courier New, monospace
Georgia1, Georgia, serif Georgia1, Georgia, serif
Impact, Impact5, Charcoal6, sans-serif Impact, Impact5, Charcoal6, sans-serif
Lucida Console, Monaco5, monospace Lucida Console, Monaco5, monospace
Lucida Sans Unicode, Lucida Grande, sans-serif Lucida Sans Unicode, Lucida Grande, sans-serif
Palatino Linotype, Book Antiqua3, Palatino, serif Palatino Linotype, Book Antiqua3, Palatino, serif
Tahoma, Geneva, sans-serif Tahoma, Geneva, sans-serif
Times New Roman, Times New Roman, Times, serif Times New Roman, Times New Roman, Times, serif
Trebuchet MS1, Trebuchet MS, sans-serif Trebuchet MS1, Trebuchet MS, sans-serif
Verdana, Verdana, Geneva, sans-serif Verdana, Verdana, Geneva, sans-serif
Symbol, Symbol (Symbol2, Symbol2) Symbol, Symbol (Symbol2, Symbol2)
Webdings, Webdings (Webdings2, Webdings2) Webdings, Webdings (Webdings2, Webdings2)
Wingdings, Zapf Dingbats (Wingdings2Zapf Dingbats2) Wingdings, Zapf Dingbats (Wingdings2Zapf Dingbats2)
MS Sans Serif4, Geneva, sans-serif MS Sans Serif4, Geneva, sans-serif
MS Serif4, New York6, serif MS Serif4, New York6, serif


1 Georgia and Trebuchet MS are bundled with Windows 2000/XP and they are also included in the IE font pack (and bundled with other MS applications), so they are quite common in Windows 98 systems.

2 Symbolic fonts are only displayed in Internet Explorer, in other browsers a font substitute is used instead (although the Symbol font does work in Opera and the Webdings works in Safari).

3 Book Antiqua is almost exactly the same font that Palatino Linotype, Palatino Linotype is included in Windows 2000/XP while Book Antiqua was bundled with Windows 98.

4 These fonts are not TrueType fonts but bitmap fonts, so they won’t look well when using some font sizes (they are designed for 8, 10, 12, 14, 18 and 24 point sizes at 96 DPI).

5 These fonts work in Safari but only when using the normal font style, and not with bold or italic styles. Comic Sans MS works in bold but not in italic. Other Mac browsers seems to emulate properly the styles not provided by the font (thanks to Christian Fecteau for the tip).

6 These fonts are present in Mac OS X only if Classic is installed (thanks to Julian Gonggrijp for the corrections).

References:
Ampsoft, http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html

.Net Thread Safety

Any future posts regarding thread safe calls will go here.

C#: (field)

//place in an event handling label, on edit, click, update, etc
    if(label1.InvokeRequired)
    {
        label1.Invoke(new MethodInvoker(delegate 
{ 
label1.text = "value"; 
}
));
    }
else
{
label1.text = "value"; 
}

C#: (singleton)

public sealed class ObjType
{
    private static ObjType _ObjInstance;
    private static readonly object objlock;

    ObjType()
    {
_ObjInstance=null;
objlock = new object();
    }

    public static ObjType ObjInstance
    {
        get
        {
            lock (objlock)
            {
                if (_ObjInstance==null)
                {
                    _ObjInstance= new Singleton();
                }
                return _ObjInstance;
            }
        }
    }
}