HTML 5 – Useful Links

Some useful HTML 5 related links,

Standard Specs
http://www.whatwg.org/specs/web-apps/current-work/
http://dev.w3.org/html5/spec/Overview.html

Compatibility tables for support of HTML5, CSS3, SVG and more in desktop and mobile browsers.
http://caniuse.com

HOW WELL DOES YOUR BROWSER SUPPORT HTML5?
www.html5test.com

HTML5 IE enabling script
http://code.google.com/p/html5shiv/

HTML5 Boilerplate is the professional base HTML/CSS/JS template for a fast, robust and future-proof site.
http://html5boilerplate.com/

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> .NET, HTML5, Web | Comments Off on HTML 5 – Useful Links

WCF Data Services and Enums

Enums are currently not supported in WCF Data Services, and option seems to be to use either integer and constant values or string and constant values. A data contract will work with WCF services, but since WCF Data Services is tied to EF… slightly different as OData doesn’t support it either.

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> WCF | Comments Off on WCF Data Services and Enums

Using canvas element in HTML 5

Canvas is an interesting HTML5 feature. HTML 5 defines the <canvas> element as “a resolution-dependent bitmap canvas which can be used for rendering graphs, game graphics, or other visual images on the fly.” A canvas is a rectangle in your page where you can use JavaScript to draw anything you want.

Here’s a quick example on how to use this feature – create the element first and then add javascript code to manipulate the element – in this case to draw a triangle.

<html>
<head>
<title>Canvas</title>
<script type="text/javascript">
// When the window has loaded, DOM is ready. Run the DrawInCanvas() function.
window.onload = DrawInCanvas;

function DrawInCanvas()
{
// Get a reference to the element.
var el = document.getElementById(‘idCanvas’);

//verify if this feature exists on browser
if (el && el.getContext)
{
//initialize context
var drawingContext = el.getContext(‘2d’);
if (drawingContext)
{
// Set the style properties – red color
drawingContext.fillStyle = ‘#eee’;
drawingContext.strokeStyle = ‘#f00’;
drawingContext.lineWidth = 3;

//Start drawing
drawingContext.beginPath();
drawingContext.moveTo(10, 10);
drawingContext.lineTo(100, 10);
drawingContext.lineTo(10, 100);
drawingContext.lineTo(10, 10);

//fill the shape
drawingContext.fill();

//display
drawingContext.stroke();
drawingContext.closePath();
}
}
}

</script>

<style type="text/css">
canvas { border: 1px solid black; }</style>
</head>
<body>
<canvas id="idCanvas" width="200" height="200"></canvas>
</body>
</html>

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> .NET, HTML5, Web | Comments Off on Using canvas element in HTML 5

5 tools I like


RichCopy
– is a powerful, multi-threaded alternative to the popular RoboCopy file copy utility.
LINQPad – Good interactive tool to query database and learn LINQ.
Fiddler – Cool debugging proxy for checking out HTTP traffic.
Everything – Locate files and folders by name instantly.
BugShooting Screen capture tool

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> Tools | Comments Off on 5 tools I like

Leading a volunteer organization

In smaller towns, there are not a lot of technical events or conferences and if you are interested in learning or meeting other people with a passion for technology you have to travel to larger cities. So I got really interested when I heard of a fledgling .net user group and wanted to support it. Once I began to attend a few meetings, I realized they needed volunteers to keep the organization afloat and make it more of a regular user group. Fast forward several years later now, I am chairperson of the board of that group. The membership has grown and we have a elected board, and a charter to bring quality speakers and sponsored events to the area.

Being the leader of a voluntary board is a little different then being a leader in a company. Volunteers are unpaid members with day jobs or in school, with limited time and largely unknown to each other. Everyone has ideas and opinions often very diverse. Some members are more active then others. Also, they may not have the skills for the roles they are volunteering for.

  • As a leader of such group one has to very quickly,
    • determine the mission and goals and also inspire everyone to get behind them.
    • find ways to quickly build connections, find out what motivates everyone
    • discuss and make sure everyone understands their roles.
    • Appreciation is a strong currency in nonprofits.
    • Above all else effective communication is a must.
    • Hold really effective meetings.

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> .NET, Leadership, Management, Mentoring | Comments Off on Leading a volunteer organization

HTML5 – Useful Links

Some useful HTML 5 related links,

Standard Specs
http://www.whatwg.org/specs/web-apps/current-work/
http://dev.w3.org/html5/spec/Overview.html

Compatibility tables for support of HTML5, CSS3, SVG and more in desktop and mobile browsers.
http://caniuse.com

HOW WELL DOES YOUR BROWSER SUPPORT HTML5?
www.html5test.com

HTML5 IE enabling script
http://code.google.com/p/html5shiv/

HTML5 Boilerplate is the professional base HTML/CSS/JS template for a fast, robust and future-proof site.
http://html5boilerplate.com/

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> HTML5, Web | Comments Off on HTML5 – Useful Links

Javascript Performance

I think document.queryselectorAll is slower then a straight document.getElementsByTagName. Found the following site that is good for javascript performance comparison,

Javascript performance testing site

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> Uncategorized | Comments Off on Javascript Performance

Configuration file attributes

The configSource attribute in .config files can be used in a section to source other configuration files. This was introduced in ASP.Net 2.0 and also handy in WCF configuration.
<configuration>
<system.serviceModel>
<services configSource=MySvc.config >
</services>
</configuration>

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> asp.net, SOA, WCF | Comments Off on Configuration file attributes

Browsers?

Here’s a list of other browsers besides big non-IE names like Firefox, Chrome, Safari, and Opera…

Maxthon, Flock, Arora, Lunascape, SRWare Iron, Kmeleon, and QTWeb.

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> Browsers, Web | Comments Off on Browsers?

ELMAH

ELMAH ( “Error Logging Modules and Handlers” ) is a useful error logging pluggable tool for ASP.NET web applications. It can be configured to log nearly all unhandled exceptions and the log can be even remotely viewed.

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> asp.net, Browsers, Tools | Comments Off on ELMAH