Friday, November 27, 2009

ASP.NET Validation Controls - Conditionally validating

Using the server side Page.Validate() and Client Side Page_ClientValidate() , we can validate a group of controls conditionally. For eg. i just need to validate some fields only when a checkbox is checked. Both Page.Validate() and Page_ClientValidate() allows to pass a validation group , So we group a set of controls with a validation group and calls this validation functions in both client & server side only on the required validation condition

Server Side



protected void btnSubmit_Click(object sender, EventArgs e)
{
if(cbValidate.Checked)
{
//validate
Validate("vgSubmit");
}
if (!IsValid) return;
lblMsg.Text = "Passed validation";
}



ClientSide


function CheckValidation() {
var cbValidate = document.getElementById('<%=cbValidate.ClientID %>');
var flag = true;
if (cbValidate.checked) {
if (!Page_ClientValidate("vgSubmit"))
flag = false;
}
else {
Page_ClientValidate("vgDummy")
}
return flag;

}



Download Code

Wednesday, September 23, 2009

URL Rewriting with ASP.NET 3.5 using System.Web.Routing.UrlRoutingModule

In asp.net 2.0 we used Context.RewritePath() or other URL rewrite modules. With asp.net 3.5 its easy to do. I did it for my blog for better SEO.

      • Add reference to system.Web.Routing
        Add System.Web.Routing.UrlRoutingModule http module to web.config
        Implement an IRouteHandler
        Registering routes in global.asax

I am going to rewrite blogs/Posts/{BlogPostID}/{*BlogPostTitle}

I implemented a generic IRouteHandler , it will copy url parameters( eg: BlogPostID,BlogPostTitle ) to http context item collection, so i can URL rewrite any page , without modifying IRouteHandler implementation.



using System;
using System.Web;
using System.Web.Routing;
using System.Web.Compilation;
using System.Web.UI;
public class SiteRouteHandler : IRouteHandler
{
//30 june 2009 Priyan R

public IHttpHandler GetHttpHandler(RequestContext requestContext)
{
Page page;
page = BuildManager.CreateInstanceFromVirtualPath(PageVirtualPath, typeof(Page)) as Page;
foreach (var item in requestContext.RouteData.Values)
{
HttpContext.Current.Items["qparam." + item.Key] = item.Value;
}
return page;
}
public string PageVirtualPath { get; set; }
}

In global.asax added


       

routes.Add(
"BlogPost",
new Route("Blogs/Posts/{BlogPostID}/{*BlogPostTitle}",
new SiteRouteHandler() { PageVirtualPath = "~/Blogs/Details.aspx" })
);


So in Details.aspx I can read the parameters



Context.Items["qparam.BlogPostID"].ToString()
Context.Items["qparam.BlogPostTitle"].ToString()

Check the code.


Download Code

Wednesday, August 26, 2009

My Love Never Dies.......

Almost all people might have loved someone in their life..To say something about my love..
I have experienced it three times..but still I dont know exactly what this love thig is
..it made me laugh and cry at the same time...still i am in search of love..
its such a feeling inside us for someone..makes us feel alive..and we get crazy about it..
how that happens is beyond my thinking..it just happens..
I had felled into love with three..but that was incomplete..does that make any sense??he he
of course yes..its always valuable and such an ever memorable feeling to me..
My love is true..always..

I still remember those school days..I didnt get to know that I was in love with someone..
those four years she was with me..After I left my school I got to know how much I miss
her in my life..I believe she would have felt the same what I did..But dont know what to say..
sense of responsibility to my family or something else pushed me back to concentrate
in my studies more..and that relationship stopped when I left my 10th std and joined
plus2..slowly I started trying to forget her..after few days I met another girl..
This time I couldnt stop myself from not loving that girl..I started thinking a lot
about her..what a crap!!I started dreaming too..but , she was not thinking like I did..
hell it took me into a helpless situation..but I recovered from it very soon..
she was not meant to be mine..

And the third one..this time ,I was more carefull and had a clear idea about my wish..
she was so close..and I was very comfortable with her..she enjoyed my friendship..
but she was not in love with me..I dont know what went wrong this time..
she was mistaken or me??I didnt force her or anyone..
coz I believe ,every one has the right to choose someone whom they want to love..
we should not compromise in case of love..it has to happen inside us..otherwise no use..
now I am not feeling to love anyone..just because it cant be made..
hopefully everything will come out to be fine..
and one day i will get my real love ..yes ..I am waiting for that..:)

( For this post i am really grateful to my friend Praseetha, She edited my story in a poet style :) )

Wednesday, August 12, 2009

A simple Rss Feed Parser using LINQ To XML

Download Code

A simple class that can be used to parse rss feed, Check the code attached it will display my twitter updates by parsing the rss feed using the class.


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.Linq;
namespace RssFeed
{

//12-aug-2009 Priyan R
public class RssParser
{
public RssParser()
{
Items = new List<RssItem>();
}
public RssParser(string url):this()
{
URL = url;
}
#region Methods
public void Parse()
{
XDocument doc = XDocument.Load(URL, LoadOptions.None);
Items = (from t in doc.Descendants("item")
select new RssItem()
{
Title = t.Element("title").Value,
Description = t.Element("description").Value,
Link = t.Element("link").Value

}
).ToList();

}
#endregion
#region properties
public string URL { get; set; }
public List<RssItem> Items { get; set; }
#endregion
}
#region RSS Item Class
public class RssItem
{
public string Title{ get; set; }
public string Description { get; set; }
public string Link { get; set; }
}
#endregion
}

Friday, June 12, 2009

Finding Total Records / Total Count returned By Object Datasource SelectCountMethod

Often SelectCountMethod may be int or long so check the type in object datasource Selected event and store the value in ViewState or a variable so it can be used in the page

protected void odSource_Selected(object sender, ObjectDataSourceStatusEventArgs e)
{
if (e.ReturnValue.GetType() == typeof(Int32))
{
ViewState["TotalCount"] = e.ReturnValue;
}
}

Sunday, May 10, 2009

I Moved To New VPS Hosting

I moved my websites to a new VPS hosting.For the last 6 months I was managing my own server. here in my place its not trusty ISP problems/Power/Cable , so I am leaving it.
For the last two weeks I was experimenting running windows in virtual machine inside mosso-rackspace cloud using QEMU, Mosso is great but currently they provide only linux , surely they will come with windows,

Now I am using VPS by http://www.infinitelyvirtual.com/.They are not well known, but I trust them. Their plans are cheap and good, 19.99$ 512mb 10gb space 500 GB monthly data transfer. They are using vmware based virtualization.

Saturday, May 9, 2009

Story : Installing WIndows On Mosso RackSpace Cloud With QEMU

Rack space cloud is a very good service with low price. Good customer support, i always got chat session with customer support very soon. They currently provide Linux cloud server only. I am waiting for windows cloud server.

I installed windows 2003 in QEMU , i was not able to Get the KQEMU accelaration layer working. So performance was really poor,


Installation story (Installing 32 bit windows 2003)....


First i created an ubuntu 8.04.2 LTS (hardy) cloud server.

1. Update package list

apt-get update
apt-get upgrade

2. Install QEMU

apt-get install qemu

2. Install X Server

aptitude install xorg

3. Redirect X Display to our system

This was the one main problem i faced. I 'X' forwarded the display to windows pc running XMing. It was really slow.. It took abt 50-100MB data transfer to show the initial windows loading screen.. Took long time to display the screen.. So it is impossible to install windows in this way.

I found a solution X11 VNC

4. Install X11 VNC

apt-get install x11vnc

apt-get install xvfb

Create password file


x11vnc -storepasswd

5. Start X11 VNC create option (will automatically create a display)

x11vnc -usepw -create


6. Connect to X11 VNC From windows using TightVNC


7. Download windows 2003 ISO ( i used windows 2003 trial)


8. Create QEMU hdd image file


qemu-img create win2003.img 20G


9.Install windows

Run qemu with win 2003 iso as cdrom

qemu -m 256 -boot d -cdrom win2003.iso -hda win2003.img -localtime



Problems faced


32 bit windows 2003 installation stuck at installing devices screen , but on restarting once it worked fine.


NetWorking


I was not able setup TAP network working. I used user mode networking with port forwarding option

I run this to forward 3389 port for remote desktop , and 80 for IIS

qemu -hda win2003.img -m 256 -localtime -net nic,model=rtl8139 -net user -redir tcp:3389::3389 -redir tcp:80::80



Installing 64 bit Windows 2003


The qemu version we get with apt-get will not work with win 2003 64
I got stuck "Starting windows" while installing
http://qemu-forum.ipi.fi/viewtopic.php?f=9&t=4906


I installed QEMU 0.90 from source , we need gcc 3.x for doing that,ubuntu comes with gcc 4.x so install gcc 3.4

sudo apt-get install gcc-3.4 g++-3.4

export CC=gcc-3.4

Download qemu 0.9.0 source , then compile & install


wget http://tx-us.lunar-linux.org/lunar/cache/qemu-0.9.0.tar.gz

tar xzf qemu-0.9.0.tar.gz

cd qemu-0.9.0

./configure
make
make install

I got an error while comiling qemu

Looking for gcc 3.x ./configure: 372: Syntax error: Bad fd number

To fix this edit the ./configure file and change the first line from "#!/bin/sh" to "#!/bin/bash".


Now i was able to install windows 2003 64

qemu-system-x86_64 -m 256 -boot d -cdrom win2003.iso -hda win2003.img -localtime


Installing KQEMU Acceleration Layer

I tried but was not able to get it work

I tried both apt-get kqemu and compiled qemu 0.9.0 and kqemu-1.3 from source,

1st i tried to install with kqemu it got stuck while "starting windows"

Next i tried with -no-kqemu option now 2003 64 installed successfully
After installation i tried with acceleration, initial loading screen came after it screen gone blank.

I installed using

wget http://www.nongnu.org/qemu/kqemu-1.3.0pre11.tar.gz

tar xzf kqemu-1.3.0pre11.tar.gz
cd kqemu-1.3

./configure
make
make install

modprobe kqemu




Installation Experience



Windows 2003 32 bit got stuck while "installing devices" , after restarting it worked fine.

Windows 2003 64 bit installed with not problem

It took 4-5 hours to complete the installation !!!!

Really need great patient to do.. Some steps will take long time with not progress moving.. But may not be stuck.. need waiting...


Windows Experience



Its usable but really slow.. I ran some asp.net sites on that including my home page, its a little bit slow.. but not so bad.
To install .net framework 3.5 it took 1hr!!

Wednesday, April 8, 2009

Me And Sumesh

I saw sumesh for the second time this monday ( i think after 2 years) . We are often in contact(phone,chat) with each other with programming related for the past 4-5 years.. He is the only programmer i know in Alappuzha, We both started with electronics, programming we both came from a VB6 background , We both are self taught programmers with good experience in Programming/System administration.

Tuesday, March 24, 2009

Malyalam Dictionary Orkut Application

I have created my first orkut application. An english - Malayalam Dictionary. Same as one in my home page.
http://www.orkut.co.in/Main#AppInfo.aspx?appId=160907011366

Wednesday, March 11, 2009

Free ASP.NET MVC Book

ASP.NET MVC Book written by Scott gu,Scott Hanselman, Rob Conery, and Phil Haack

http://www.amazon.com/gp/product/0470384611?ie=UTF8&tag=scoblo04-20&linkCode=xm2&camp=1789&creativeASIN=0470384611

First chaptter of this book is available as a Free Download. 185 pages of walk-through that takes us into creating a complete MVC application (Called Nerddinner) from scratch. Check the application live at http://www.nerddinner.com/. Source code available at codeplex http://nerddinner.codeplex.com/

Download the e-book and source code from scott gu's blog.
http://weblogs.asp.net/scottgu/archive/2009/03/10/free-asp-net-mvc-ebook-tutorial.aspx

Also check scott hanselman's blog about it.
http://www.hanselman.com/blog/FreeASPNETMVCEBookNerdDinnercomWalkthrough.aspx

Tuesday, March 3, 2009

SQL Server- Get Rows AS XML, Traverse XML in TSQL

I have a table 'Tags' , see below


To get the rows as XMl

SELECT * FROM Tags for xml auto

The result will be

I want to get the tags separated by coma for the given music id, i wrote a function that
will traverse the XML and return the tags as a single row separated by coma

CREATE FUNCTION [dbo].GetMusicTags
(
@MusicID INT
)
RETURNS VARCHAR(MAX)
AS
BEGIN
DECLARE @Xdoc XML
DECLARE @Count INT
DECLARE @i INT
DECLARE @Tag VARCHAR(MAX)
DECLARE @Temp VARCHAR(MAX)
--
SET @i=1
SET @Tag=''
SET @Temp=''
--
SET @Xdoc=''+(SELECT * FROM Tags WHERE MusicID=@MusicID for xml auto)+''
SET @Count = @Xdoc.query('
{ count(/doc/Tags) }
').value('e[1]','VARCHAR(MAX)')

WHILE @i <= @Count
BEGIN
SELECT @Temp= e.x.value('@Tag[1]', 'VARCHAR(MAX)') FROM
@Xdoc.nodes('/doc/Tags[position()=sql:variable("@i")]') e(x)
SET @Tag=@Tag+@Temp
IF @i<>@Count
SET @Tag=@Tag+','
SET @i = @i + 1
END
RETURN @Tag
END
GO

Result will be


Download Sql Script

Wednesday, February 18, 2009

Get start and end date of current week in C#



DayOfWeek day = DateTime.Now.DayOfWeek;
int days = day - DayOfWeek.Monday;
DateTime start = DateTime.Now.AddDays(-days);
DateTime end = start.AddDays(6);
Code from
http://www.codekeep.net/snippets/0d955fdd-ff9e-4403-90cb-15dac8391034.aspx

Monday, February 16, 2009

SQL SERVER: Function To Search Coma or Delimiter separated value in a column

We sometimes stores Coma or other delimiter separated values in a column, to search a particular value in that column, the following function will be helpful.



--30-jan-2009 Priyan R
CREATE FUNCTION [dbo].[IsExistInString]
(
@Data VARCHAR(MAX),
@Delim VARCHAR(100),
@ValueToFind VARCHAR(MAX)
)
RETURNS BIT
AS
BEGIN
DECLARE @pos1 INT
DECLARE @pos2 INT
DECLARE @tbl_Split_Data TABLE
(
Data VARCHAR(MAX)
)
SET @pos1=1
IF(CHARINDEX(@Delim,@Data,1)=0)
BEGIN
INSERT INTO @tbl_Split_Data VALUES(@Data)
END
ELSE
BEGIN
WHILE (@pos1<>0)
BEGIN
SET @pos2=CHARINDEX(@Delim,@Data,@pos1)
IF(@pos2=0)
BEGIN
INSERT INTO @tbl_Split_Data VALUES(SUBSTRING (@Data,@pos1,LEN(@Data)))
END
ELSE
BEGIN
INSERT INTO @tbl_Split_Data VALUES(SUBSTRING (@Data,@Pos1,@Pos2-@Pos1))
END
IF(@pos2<>0) SET @pos2=@pos2+LEN(@Delim)
SET @pos1=@pos2
END
END
SELECT @POS1=COUNT(*) FROM @tbl_Split_Data WHERE Data=@ValueToFind
IF(@POS1<>0)
BEGIN
RETURN 1
END
RETURN 0
END

go
--eg
SELECT dbo.IsExistInString('one|$|two|$|three','|$|','one')

C# :Seconds TO String

This functions return a string like 1 hours ago, a day ago etc.

//Returns seconds to 1 hour ago, 10 sec ago etc.
public static string SecondsToString(double seconds)
{

string time = "";
if (seconds >= 3600)
{
time =Convert.ToInt32((seconds / 3600)).ToString();
if (seconds > 24)
{
time = Convert.ToInt32((seconds / 24)).ToString();
time += " days ago";
}
else
time += " hrs ago";
}
else if (seconds >= 60)
{
time = Convert.ToInt32((seconds / 60)).ToString();
time += " minutes ago";
}
else
{
time = Convert.ToInt32(seconds).ToString();
time += " sec ago";
}
return time;
}

Wednesday, February 4, 2009

Programmers And Mathematics

I have been coding in various languages for more than 6 years. Till now i havent used much mathematics for programming. From my experience i feel that one can be a very good programmer without a deep knowledge in maths. But i think proficieny in mathematics will be an added advantage for Programmer. With maths we can write many interesting & funny programs easily without any difficulty.

There is good blog post about it by Steve Yegge.

http://steve-yegge.blogspot.com/2006/03/math-for-programmers.html

Friday, January 9, 2009

My Favourite Blog Posts

I often read blog posts mostly of Scott gu,Scott Hanselman,Jeff AtWood ,Phil Haack

This are my favorite blog posts for the last two years

=================================

Scott gu's Posts

=================================

Recommended

ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas

http://weblogs.asp.net/scottgu/pages/ASP.NET-2.0-Tips_2C00_-Tricks_2C00_-Recipes-and-Gotchas.aspx

Silverlight Tips, Tricks, Tutorials and Links Page

http://weblogs.asp.net/scottgu/pages/silverlight-posts.aspx

Linq to sql

http://weblogs.asp.net/scottgu/archive/2007/09/07/linq-to-sql-part-9-using-a-custom-linq-expression-with-the-lt-asp-l

inqdatasource-gt-control.aspx

Dynamic LINQ (Part 1: Using the LINQ Dynamic Query Library)

http://weblogs.asp.net/scottgu/archive/2008/01/07/dynamic-linq-part-1-using-the-linq-dynamic-query-library.aspx

The asp:ListView control (Part 1 - Building a Product Listing Page with Clean CSS UI)

http://weblogs.asp.net/scottgu/archive/2007/08/10/the-asp-listview-control-part-1-building-a-product-listing-page-with-clean-css-ui.aspx

First Look at Using Expression Blend with Silverlight 2

http://weblogs.asp.net/scottgu/archive/2008/02/28/first-look-at-using-expression-blend-with-silverlight-2.aspx

First Look at Silverlight 2

http://weblogs.asp.net/scottgu/archive/2008/02/22/first-look-at-silverlight-2.aspx

------------------------------

ASP.NET MVC Design Gallery

http://weblogs.asp.net/scottgu/archive/2008/12/19/asp-net-mvc-design-gallery-and-upcoming-view-improvements-with-the-asp-net-mvc-release-candidate.aspx

New ASP.NET Charting Control

http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx

jQuery Intellisense in VS 2008

http://weblogs.asp.net/scottgu/archive/2008/11/21/jquery-intellisense-in-vs-2008.aspx

Styling a Silverlight Twitter Application with Expression Blend 2

http://weblogs.asp.net/scottgu/archive/2008/11/14/styling-a-silverlight-twitter-application-with-expression-blend-2.aspx

mvc beta released

http://weblogs.asp.net/scottgu/archive/2008/10/16/asp-net-mvc-beta-released.aspx

ASP.NET MVC Preview 5 and Form Posting Scenarios

http://weblogs.asp.net/scottgu/archive/2008/10/16/asp-net-mvc-beta-released.aspx

Silverlight 2 Release Candidate Now Available

http://weblogs.asp.net/scottgu/archive/2008/09/25/silverlight-2-release-candidate-now-available.aspx

jQuery and Microsoft

http://weblogs.asp.net/scottgu/archive/2008/09/28/jquery-and-microsoft.aspx

ASP.NET MVC Preview 4 Release (Part 1)

http://weblogs.asp.net/scottgu/archive/2008/07/14/asp-net-mvc-preview-4-release-part-1.aspx

Silverlight 2 Beta2 Released

http://weblogs.asp.net/scottgu/archive/2008/06/06/silverlight-2-beta2-released.aspx

ASP.NET MVC Preview 3 Release

http://weblogs.asp.net/scottgu/archive/2008/05/27/asp-net-mvc-preview-3-release.aspx

Tip/Trick: Creating and Using Silverlight and WPF User Controls

http://weblogs.asp.net/scottgu/archive/2008/04/04/tip-trick-creating-and-using-silverlight-and-wpf-user-controls.aspx

Unit Testing with Silverlight

http://weblogs.asp.net/scottgu/archive/2008/04/02/unit-testing-with-silverlight.aspx

IIS 7.0 Bit Rate Throttling Module Released

http://weblogs.asp.net/scottgu/archive/2008/03/18/iis-7-0-bit-rate-throttling-module-released.aspx

First Look at Using Expression Blend with Silverlight 2

http://weblogs.asp.net/scottgu/archive/2008/02/28/first-look-at-using-expression-blend-with-silverlight-2.aspx

First Look at Silverlight 2

http://weblogs.asp.net/scottgu/archive/2008/02/22/first-look-at-silverlight-2.aspx

.NET Framework Library Source Code now available

http://weblogs.asp.net/scottgu/archive/2008/01/16/net-framework-library-source-code-now-available.aspx

Dynamic LINQ (Part 1: Using the LINQ Dynamic Query Library)

http://weblogs.asp.net/scottgu/archive/2008/01/07/dynamic-linq-part-1-using-the-linq-dynamic-query-library.aspx

Using VS 2008 to Create New ASP.NET 2.0 with ASP.NET AJAX 1.0 Projects

http://weblogs.asp.net/scottgu/archive/2008/01/03/using-vs-2008-to-create-new-asp-net-2-0-with-asp-net-ajax-1-0-projects.aspx

ASP.NET 3.5 Extensions CTP Preview Released

http://weblogs.asp.net/scottgu/archive/2007/12/09/asp-net-3-5-extensions-ctp-preview-released.aspx

ASP.NET MVC Framework (Part 4): Handling Form Edit and Post Scenario

http://weblogs.asp.net/scottgu/archive/2007/12/09/asp-net-mvc-framework-part-4-handling-form-edit-and-post-scenarios.aspx

ASP.NET MVC Framework (Part 3): Passing ViewData from Controllers to Views

http://weblogs.asp.net/scottgu/archive/2007/12/06/asp-net-mvc-framework-part-3-passing-viewdata-from-controllers-to-views.aspx

ASP.NET MVC Framework (Part 2): URL Routing

http://weblogs.asp.net/scottgu/archive/2007/12/03/asp-net-mvc-framework-part-2-url-routing.aspx

ASP.NET MVC Framework (Part 1)

http://weblogs.asp.net/scottgu/archive/2007/11/13/asp-net-mvc-framework-part-1.aspx

Optimizing the Silverlight Install Experience

http://weblogs.asp.net/scottgu/archive/2007/10/30/optimizing-the-silverlight-install-experience.aspx

ASP.NET MVC Framework

http://weblogs.asp.net/scottgu/archive/2007/10/14/asp-net-mvc-framework.aspx

Releasing the Source Code for the .NET Framework Libraries

http://weblogs.asp.net/scottgu/archive/2007/10/03/releasing-the-source-code-for-the-net-framework-libraries.aspx

Tip/Trick: Building a ToJSON() Extension Method using .NET 3.5

http://weblogs.asp.net/scottgu/archive/2007/10/01/tip-trick-building-a-tojson-extension-method-using-net-3-5.aspx

IIS 7.0 Hits RC0 - Lots of cool new IIS7 Extensions Also Now Available

http://weblogs.asp.net/scottgu/archive/2007/09/27/iis-7-0-hits-rc0-lots-of-cool-new-iis7-extensions-also-now-available.aspx

Linq to sql

http://weblogs.asp.net/scottgu/archive/2007/09/07/linq-to-sql-part-9-using-a-custom-linq-expression-with-the-lt-asp-l

inqdatasource-gt-control.aspx

The asp:ListView control (Part 1 - Building a Product Listing Page with Clean CSS UI)

http://weblogs.asp.net/scottgu/archive/2007/08/10/the-asp-listview-control-part-1-building-a-product-listing-page-with-clean-css-ui.aspx

Great New ASP.NET 2.0 Data Tutorials Published

http://weblogs.asp.net/scottgu/archive/2007/08/08/great-new-asp-net-2-0-data-tutorials-published.aspxF

Using LINQ to XML (and how to build a custom RSS Feed Reader with it)

http://weblogs.asp.net/scottgu/archive/2007/08/07/using-linq-to-xml-and-how-to-build-a-custom-rss-feed-reader-with-it.aspx

VS 2008 JavaScript Debugging

http://weblogs.asp.net/scottgu/archive/2007/07/19/vs-2008-javascript-debugging.aspx

New "Orcas" Language Feature: Query Syntax

http://weblogs.asp.net/scottgu/archive/2007/04/21/new-orcas-language-feature-query-syntax.aspx

New "Orcas" Language Feature: Lambda Expressions

http://weblogs.asp.net/scottgu/archive/2007/04/08/new-orcas-language-feature-lambda-expressions.aspx

New "Orcas" Language Feature: Extension Methods

http://weblogs.asp.net/scottgu/archive/2007/03/13/new-orcas-language-feature-extension-methods.aspx

New C# "Orcas" Language Features: Automatic Properties, Object Initializers, and Collection Initializers

http://weblogs.asp.net/scottgu/archive/2007/03/08/new-c-orcas-language-features-automatic-properties-object-initializers-and-collection-initializers.aspx

Tip/Trick: Url Rewriting with ASP.NET

http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx

My "First Look at Orcas" Presentation

http://weblogs.asp.net/scottgu/archive/2007/02/08/my-first-look-at-orcas-presentation.aspx

ASP.NET AJAX 1.0 Source Code Released

http://weblogs.asp.net/scottgu/archive/2007/01/30/asp-net-ajax-1-0-source-code-released.aspx

=========================================

Scott Hanselman

=========================================

Scott Hanselman's 2007 Ultimate Developer and Power Users Tool List for Windows

http://www.hanselman.com/blog/ScottHanselmans2007UltimateDeveloperAndPowerUsersToolListForWindows.aspx

ASP.NET MVC Design Gallery

http://www.hanselman.com/blog/ASPNETMVCDesignGallery.aspx

.NET 3.5 SP1 GDR is available to download

http://www.hanselman.com/blog/NET35SP1GDRIsAvailableToDownload.aspx

ASP.NET MVC Samples, Oxite, and Community

http://www.hanselman.com/blog/ASPNETMVCSamplesOxiteAndCommunity.aspx

Best Code Syntax Highlighter for Snippets in your Blog

http://www.hanselman.com/blog/BestCodeSyntaxHighlighterForSnippetsInYourBlog.aspx

The Weekly Source Code 37 - Geolocation/Geotargeting (Reverse IP Address Lookup) in ASP.NET MVC made easy

http://www.hanselman.com/blog/TheWeeklySourceCode37GeolocationGeotargetingReverseIPAddressLookupInASPNETMVCMadeEasy.aspx

Web Platform Installer now supports XP - And the Master Plan continues

http://www.hanselman.com/blog/WebPlatformInstallerNowSupportsXPAndTheMasterPlanContinues.aspx

The Weekly Source Code 36 - PDC, BabySmash and Silverlight Charting

http://www.hanselman.com/blog/TheWeeklySourceCode36PDCBabySmashAndSilverlightCharting.aspx

The Weekly Source Code 35 - Zip Compressing ASP.NET Session and Cache State

http://www.hanselman.com/blog/TheWeeklySourceCode35ZipCompressingASPNETSessionAndCacheState.aspx

Survey RESULTS: What .NET Framework features do you use?

http://www.hanselman.com/blog/SurveyRESULTSWhatNETFrameworkFeaturesDoYouUse.aspx

Guide to Freeing up Disk Space under Windows Vista

http://www.hanselman.com/blog/GuideToFreeingUpDiskSpaceUnderWindowsVista.aspx

Microsoft Web Application Installer - Open Source Web Apps Delivered and Installed

http://www.hanselman.com/blog/MicrosoftWebApplicationInstallerOpenSourceWebAppsDeliveredAndInstalled.aspx

ASP.NET MVC Beta released - Coolness Ensues

http://www.hanselman.com/blog/ASPNETMVCBetaReleasedCoolnessEnsues.aspx

T4 (Text Template Transformation Toolkit) Code Generation - Best Kept Visual Studio Secret

http://www.hanselman.com/blog/T4TextTemplateTransformationToolkitCodeGenerationBestKeptVisualStudioSecret.aspx

ASP.NET MVC and the new IIS7 Rewrite Module

http://www.hanselman.com/blog/ASPNETMVCAndTheNewIIS7RewriteModule.aspx

Web Platform Installer: Trying to make it easier to setup for web development

http://www.hanselman.com/blog/WebPlatformInstallerTryingToMakeItEasierToSetupForWebDevelopment.aspx

jQuery to ship with ASP.NET MVC and Visual Studio

http://www.hanselman.com/blog/jQueryToShipWithASPNETMVCAndVisualStudio.aspx

The .NET Framework and the Browser's UserAgent String

http://www.hanselman.com/blog/TheNETFrameworkAndTheBrowsersUserAgentString.aspx

The Case of the Failing Disk Drive or Windows Home Server Saved My Marriage

http://www.hanselman.com/blog/TheCaseOfTheFailingDiskDriveOrWindowsHomeServerSavedMyMarriage.aspx

On Losing Data and a Family Backup Strategy

http://www.hanselman.com/blog/OnLosingDataAndAFamilyBackupStrategy.aspx

Make your Website Mobile and iPhone Friendly - Add Home Screen iPhone Icons and Adjust the ViewPort

http://www.hanselman.com/blog/MakeYourWebsiteMobileAndIPhoneFriendlyAddHomeScreenIPhoneIconsAndAdjustTheViewPort.aspx

Adding OpenSearch to your website and getting in the Browser's Search Box

http://www.hanselman.com/blog/AddingOpenSearchToYourWebsiteAndGettingInTheBrowsersSearchBox.aspx

Developer != Designer

http://www.hanselman.com/blog/DeveloperDesigner.aspx

ASP.NET MVC Preview 4 - Using Ajax and Ajax.Form

http://www.hanselman.com/blog/ASPNETMVCPreview4UsingAjaxAndAjaxForm.aspx

Hanselminutes Podcast 116 - Distributed Caching with Microsoft's Velocity

http://www.hanselman.com/blog/HanselminutesPodcast116DistributedCachingWithMicrosoftsVelocity.aspx

Introducing RockScroll

http://www.hanselman.com/blog/IntroducingRockScroll.aspx

The Weekly Source Code 25 - OpenID Edition

http://www.hanselman.com/blog/TheWeeklySourceCode25OpenIDEdition.aspx

A Smarter (or Pure Evil) ToString with Extension Methods

http://www.hanselman.com/blog/ASmarterOrPureEvilToStringWithExtensionMethods.aspx

Memories of Zimbabwe - You can't afford to go home

http://www.hanselman.com/blog/MemoriesOfZimbabweYouCantAffordToGoHome.aspx

How do Extension Methods work and why was a new CLR not required?

http://www.hanselman.com/blog/HowDoExtensionMethodsWorkAndWhyWasANewCLRNotRequired.aspx

The Weekly Source Code 22 - C# and VB .NET Libraries to Digg, Flickr, Facebook, YouTube, Twitter, Live Services, Google and other Web 2.0 APIs

http://www.hanselman.com/blog/default.aspx?month=2008-03

Squeezing the most out of IIS7 Media Bit Rate Throttling

http://www.hanselman.com/blog/SqueezingTheMostOutOfIIS7MediaBitRateThrottling.aspx

The Weekly Source Code 19 - LINQ and More What, Less How

http://www.hanselman.com/blog/TheWeeklySourceCode19LINQAndMoreWhatLessHow.aspx

Microsoft - Surviving First Three Weeks as a Remote Employee

http://www.hanselman.com/blog/MicrosoftSurvivingFirstThreeWeeksAsARemoteEmployee.aspx

Knowing when to ask for help - Microsoft SharedView

http://www.hanselman.com/blog/default.aspx?month=2008-02

Wiring the house for a Home Network

http://www.hanselman.com/blog/WiringTheNewHouseForAHomeNetwork.aspx

Using an IDE to write PowerShell Scripts

http://www.hanselman.com/blog/UsingAnIDEToWritePowerShellScripts.aspx

Visual Studio Programmer Themes Gallery

http://www.hanselman.com/blog/VisualStudioProgrammerThemesGallery.aspx

The Weekly Source Code 15 - Tiny Managed Operating System Edition

http://www.hanselman.com/blog/TheWeeklySourceCode15TinyManagedOperatingSystemEdition.aspx

MS Deploy - New IIS Web Deployment Tool

http://www.hanselman.com/blog/MSDeployNewIISWebDeploymentTool.aspx

Verizon FIOS TV - Review and Photo Gallery

http://www.hanselman.com/blog/VerizonFIOSTVReviewAndPhotoGallery.aspx

.NET Framework Library Source Code available for viewing

http://www.hanselman.com/blog/NETFrameworkLibrarySourceCodeAvailableForViewing.aspx

How-To: New ASP.NET 3.5 Extensions Video Screencasts

http://www.hanselman.com/blog/HowToNewASPNET35ExtensionsVideoScreencasts.aspx

Moq: Linq, Lambdas and Predicates applied to Mock Objects

http://www.hanselman.com/blog/MoqLinqLambdasAndPredicatesAppliedToMockObjects.aspx

Wiring the house for a Home Network - Part 6 - Identifying Performance Factors of Home Gigabit Networks

http://www.hanselman.com/blog/WiringTheHouseForAHomeNetworkPart6IdentifyingPerformanceFactorsOfHomeGigabitNetworks.aspx

Power Consumption of the HP MediaSmart HP Home Server

http://www.hanselman.com/blog/PowerConsumptionOfTheHPMediaSmartHPHomeServer.aspx

Review - HP MediaSmart Windows Home Server

http://www.hanselman.com/blog/ReviewHPMediaSmartWindowsHomeServer.aspx

Wiring the house for a Home Network - Part 5 - Gigabit Throughput and Vista

http://www.hanselman.com/blog/WiringTheHouseForAHomeNetworkPart5GigabitThroughputAndVista.aspx

Wiring the house for a Home Network - Part 4 - Thank You Cat 6 Gigabit Ethernet

http://www.hanselman.com/blog/WiringTheHouseForAHomeNetworkPart4ThankYouCat6GigabitEthernet.aspx

New Job, New House, New Baby, and Designing a Totally New Home Office

http://www.hanselman.com/blog/NewJobNewHouseNewBabyAndDesigningATotallyNewHomeOffice.aspx

Wiring the new house for a Home Network - Part 3 - ISP Hookup

http://www.hanselman.com/blog/WiringTheNewHouseForAHomeNetworkPart3ISPHookup.aspx

Screencast HowTo: IIS7 and PHP with FastCGI

http://www.hanselman.com/blog/ScreencastHowToIIS7AndPHPWithFastCGI.aspx

Wiring the new house for a Home Network - Part 2 - Design Q&A

http://www.hanselman.com/blog/WiringTheNewHouseForAHomeNetworkPart2DesignQampA.aspx

Wiring the new house for a Home Network

http://www.hanselman.com/blog/WiringTheNewHouseForAHomeNetwork.aspx

Improving LINQ Code Smell with Explicit and Implicit Conversion Operators

http://www.hanselman.com/blog/ImprovingLINQCodeSmellWithExplicitAndImplicitConversionOperators.aspx

Scott Hanselman's 2007 Ultimate Developer and Power Users Tool List for Windows

http://www.hanselman.com/blog/ScottHanselmans2007UltimateDeveloperAndPowerUsersToolListForWindows.aspx

Reading to Be a Better Developer - The Coding4Fun DevKit

http://www.hanselman.com/blog/ReadingToBeABetterDeveloperTheCoding4FunDevKit.aspx

robocopy

XCopy considered harmful - Robocopy or XXCopy or SyncBack

http://www.hanselman.com/blog/XCopyConsideredHarmfulRobocopyOrXXCopyOrSyncBack.aspx

How To Sync your Apple Newton MessagePad with Outlook 2007

http://www.hanselman.com/blog/HowToSyncYourAppleNewtonMessagePadWithOutlook2007.aspx

Three Things I Learned About Software WHILE NOT in College

http://www.hanselman.com/blog/ThreeThingsILearnedAboutSoftwareWHILENOTInCollege.aspx

The CodingHorror Ultimate Developer Rig Throwdown: Part 1

http://www.hanselman.com/blog/TheCodingHorrorUltimateDeveloperRigThrowdownPart1.aspx

Leaving Comcast for Verizon Fios - Upgrading the Home Network to Fiber Optic

http://www.hanselman.com/blog/default.aspx?month=2007-04

On Losing Data and a Family Backup Strategy

http://www.hanselman.com/blog/OnLosingDataAndAFamilyBackupStrategy.aspx

Making your Application Automatically Update Itself

http://www.hanselman.com/blog/default.aspx?month=2007-01

=====================================

Jeff AtWood Coding Horror

=====================================

Dictionary Attacks 101

http://www.codinghorror.com/blog/archives/001206.html

Best (or Worst) Geek Christmas Ever

http://www.codinghorror.com/blog/archives/001200.html

Secrets of the JavaScript Ninjas

http://www.codinghorror.com/blog/archives/001163.html

Reducing Bandwidth

http://www.codinghorror.com/blog/archives/000807.html

Who Needs Stored Procedures, Anyways?

http://www.codinghorror.com/blog/archives/000117.html

Recommended Reading for Developers

http://www.codinghorror.com/blog/archives/000020.html

Why Can't Microsoft Ship Open Source Software?

http://www.codinghorror.com/blog/archives/001144.html

Large USB Flash Drive Performance

http://www.codinghorror.com/blog/archives/001127.html

CAPTCHA is Dead, Long Live CAPTCHA!

http://www.codinghorror.com/blog/archives/001067.html

Jeff Atwood Coding Horror: Programming: Love It or Leave It

http://www.codinghorror.com/blog/archives/001202.html

The Greatest Invention in Computer Science

http://www.codinghorror.com/blog/archives/001129.html

Trojans, Rootkits, and the Culture of Fear

http://www.codinghorror.com/blog/archives/000929.html

Building a PC, Part IV: Now It's Your Turn

http://www.codinghorror.com/blog/archives/000918.html

Upgrading to a High Efficiency Power Supply

http://www.codinghorror.com/blog/archives/000871.html

SEOs: the New Pornographers of the Web

http://www.codinghorror.com/blog/archives/000835.html

Firefox as an IDE

http://www.codinghorror.com/blog/archives/000780.html

Building a Computer the Google Way

http://www.codinghorror.com/blog/archives/000814.html

Dude, Where's My 4 Gigabytes of RAM?

http://www.codinghorror.com/blog/archives/000811.html

Why Can't Programmers.. Program?

http://www.codinghorror.com/blog/archives/000781.html

Everybody Loves BitTorrent

http://www.codinghorror.com/blog/archives/000795.html

Remotely Waking Up Your PC

http://www.codinghorror.com/blog/archives/000790.html

Hard Drive Temperatures: Be Afraid

http://www.codinghorror.com/blog/archives/000748.html

Is Your Database Under Version Control?

http://www.codinghorror.com/blog/archives/000743.html

====================================

Phil Haack

===================================

MVC POSTS

Everything You Wanted To Know About MVC and MVP But Were Afraid To Ask

http://haacked.com/archive/2008/06/16/everything-you-wanted-to-know-about-mvc-and-mvp-but.aspx

http://haacked.com/archive/2008/10/16/aspnetmvc-beta-release.aspx

http://haacked.com/archive/2008/03/10/thoughts-on-asp.net-mvc-preview-2-and-beyond.aspx

http://haacked.com/archive/2008/05/23/updated-northwind-demo.aspx

Some of great posts i read from Phil Haacks "Not Your Typical Top Ten Of 2008 Post"

http://haacked.com/archive/2008/12.aspx

-----------------------------------------------------------

" The single most important thing you must do to improve your programming career"

http://weblog.raganwald.com/2008/04/single-most-important-thing-you-must-do.html

Powerful CSS-Techniques For Effective Coding

http://www.smashingmagazine.com/2008/02/21/powerful-css-techniques-for-effective-coding/