iSparc Blog iSparc Blog

Wednesday, April 15, 2009

Using Windows Live Writer to Blog to the world one post at a time

What do you say when you are testing a blogging platform?
1) Try it out and stop complaining..
2) Keep looking around.
3) For the moment I am using Windows Live Writer and it seems to work well.
These are the features i’m looking to use.
a) SEO. Ability to add metatages and content tags so that
b) CHeck out the rest of the windows live writer plugins.
Ability to add some code..
namespace pluralsightCSharp
{
    class Program
    {
        static void Main(string[] args)
        {
            var gameToRate = new NrlGameRater();
            gameToRate.GamePerformanceRating();
            Console.WriteLine("{0} kicks were made during the game.", gameToRate.);
            Console.WriteLine(gameToRate.SetCompletionRate());
        }
    }
}

namespace pluralsightCSharp
{
    public interface IGameRater
    {
        // General Statistics we want to obtain before performing
        // all available on http://live.nrlstats.com/matches/nrl/match12960.html

        // Home Team

        string HT_Name { get; set; }                    // This can possibly change to Name
        int HT_PointsScored { get; set; }               // Score
        int HT_Tries { get; set; }                      // Tries
        int HT_Conversions { get; set; }                // Conversions
        int HT_PenaltyGoals { get; set; }               // Penalty Goals
        int HT_FieldGoals { get; set; }                 // Field Goals
        int HT_SinBins { get; set; }                    // Sin Bins
        int HT_SendOffs { get; set; }                   // Send Offs
        int HT_Penalties { get; set; }                  // Penalties
        int HT_Scrums { get; set; }                     // Scrums
        int HT_SetCompletions { get; set; }             // Completions
        int HT_Sets { get; set; }                       // Sets
        int HT_AllRuns { get; set; }                    // All Runs (m)
        int HT_AllRunsMetresGained { get; set; }        // All Runs Metres Gained (m)
        int HT_LineBreaks { get; set; }                 // Line Breaks
        int HT_Tackles { get; set; }                    // Tackles
        int HT_MissedTackles { get; set; }              // Missed Tackles
        int HT_Offloads { get; set; }                   // Offloads
        int HT_Errors { get; set; }                     // Errors
    }
}

Some CSS
html { background-color: #e2e2e2; margin: 0; padding: 0; }
body { background-color: #fff; border-top: solid 10px #000; color: #333; font-size: .85em; font-family: "Segoe UI", Verdana, Helvetica, Sans-Serif; margin: 0; padding: 0; }
a { color: #333; outline: none; padding-left: 3px; padding-right: 3px; text-decoration: underline; }
a:link, a:visited,
a:active, a:hover { color: #333; }
a:hover { background-color: #c7d1d6; }
header, footer, hgroup,
nav, section { display: block; }
mark { background-color: #a6dbed; padding-left: 5px; padding-right: 5px; }
.float-left { float: left; }
.float-right { float: right; }
.clear-fix:after { content: "."; clear: both; display: block; height: 0; visibility: hidden; }
h1, h2, h3,h4, h5, h6 { color: #000; margin-bottom: 0; padding-bottom: 0; }
h1 { font-size: 2em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.2em; }
h4 { font-size: 1.1em; }
h5, h6 { font-size: 1em; }


/* main layout
----------------------------------------------------------*/
.content-wrapper { margin: 0 auto; max-width: 960px; }
#body { background-color: #efeeef; clear: both; padding-bottom: 35px; }
.main-content { background: url("../Images/accent.png") no-repeat; padding-left: 10px; padding-top: 30px; }
.featured + .main-content { background: url("../Images/heroAccent.png") no-repeat; }
footer { clear: both; background-color: #e2e2e2; font-size: .8em; height: 100px; }

Friday, May 2, 2008

Friday, February 29, 2008

ASP.NET Server.Transfer Vs Response.Direct

In essence:

Response.Redirect simply sends a message back to the browser, telling it to move to another page.

whereas

Server.Transfer conserves server resources. Instead of telling the browser to redirect, it simply changes the "focus" on the Web server and transfers the request. This means you don't get as many HTTP requests coming through, which should ease the pressure on your Web server and make your application run faster.

Keep in mind though, because the "transfer" process can work on only those sites running on the server, you can't use Server.Transfer to send the user to an external site. Only Response.Redirect can do that!!

Wednesday, January 30, 2008