Wednesday, February 28, 2007

Extreme Programming Part 1 - Introduction

Extreme programming or XP is a software development methodology that aim to improve software development productivity, reduce risk and cost. The main focus is to develop software in incrementally, rapid prototyping and communicate frequently that lead to accept requirement changes frequently ( most programmers hate it) and However XP doesn't work for all scenario specially for mission critical system and large system because those system normally needs highly formal specification whereas XP programming is just the opposite.

The main challenge of XP is real fun because you need to do everything yourself and you will deal with customers frequently and communicate with your peers frequently. You got to work out with a prototype very fast an usually you need a code generator to generate the whole application for you. Eg. Iron Speed http://www.ironspeed.com/ does the job. You got to test it and evaluate it for whatever reason to meet the requirements. XP is great if you have a small team around 2-6 people.

To be continued...

Tuesday, February 27, 2007

Concurrent Remote Desktop Sessions in Windows XP SP2

Since Windows XP does not allow multiple concurrent access at the same time using the remote desktop server, however here the link to workaround with.

As for me i applied the terminal server patch (Please follow the link to download the patch below) to the Windows XP pro and i works after restarted. However you need to do one extra step in order you can remote the client user.

Here the extra step

Go to Control Panel > Administrative Tools > Computer Management > Local User and Groups > right click the selected user (create a new user if you want) > properties > Member Of > Add > Advance > Find now > Choose Remote Desktop User > Click Apply and finally OK.

You migh need to change to different port by editing HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\PortNumber

Now you have successfully turn your Windows XP pro into a terminal server which could support multi concurrent user using Remote Desktop.

Cheers!

http://sig9.com/articles/concurrent-remote-desktop

http://www.kood.org/terminal-server-patch/ (Recommended)

http://riccardo.raneri.it/blog/eng/index.php/2006/04/24/windows-xp-multiuser-remote-desktop/

http://www.golod.com/2005/10/enabling-multiple-remote-desktop-sessions-in-windows-xp-professional-and-media-center-edition-2005/

Monday, February 26, 2007

Get ready with your ASP.NET app using ADAM Membership using ActiveDirectoryMembershipProvider Class

If you want to manage storage of membership information for an ASP.NET application in Active Directory and Active Directory Application Mode servers, you need to do these thing:


  1. Install ADAM. Download ADAM from http://www.microsoft.com/downloads/details.aspx?FamilyId=9688F8B9-1034-4EF6-A3E5-2A2A57B5C8E4&displaylang=en
  2. Install into your Windows Server 2003 (recommended).
  3. After the installation you need to follow this tutorial presented here. [Download Pdf]
  4. You need to configure web.config, please follow the http://msdn2.microsoft.com/en-us/library/system.web.security.activedirectorymembershipprovider(VS.80).aspx
  5. That's it and you are ready to test drive!

Have you encountered this error before?

Unable to establish secure connection with the server using SSL

The reason is because you did not follow my tutorial. :)

Linq to SQL get started snippet example

Well, here the problem:

Given that you have 2 table in many to many relationship, how create using Linq?

First of all you need to normalize it to 1 to many format. Since you are using Linq, it is safer that each and every table has 1 identity autonumbered column to prevent any CRUD failures (Hope this will be fixed soon).

Now you got 3 tables, since you are dealing with > 1 table therefore you're recommended to create a transaction to perform any CRUD.


Here are the code snippet

using (System.Transactions.TransactionScope scope = new
System.Transactions.TransactionScope())
{
try
{
//initialize it and
the connection created
pfData = new PersonalFinanceDataContext();

//Create spending type, the first table
SpendingType
spendingType = new SpendingType();
spendingType.Name = accountName;


//Create Account, the second table
Account accPayable = new
Account();
accPayable.AccountName = accountName;


//Map them together, by a mapper table
SpendingAccount
spendingAccount = new SpendingAccount();
spendingAccount.Account =
accPayable;
spendingAccount.SpendingType = spendingType;

//remember to add into database context else everything will be
lost!
pfData.SpendingAccounts.Add(spendingAccount);

//Save it
pfData.SubmitChanges();

//commit it, everything is successfully done!
scope.Complete();
}
catch(Exception ex)
{
throw "Bad linq" + ex;
}
}

hope you have some basic idea of how easy that linq to sql could do for you.

Sunday, February 25, 2007

ASP.NET skinning

I found this website really helps in skinning ASP.NET application. http://www.dotnettreats.com/SampleThemes/

Carso Virtual University Proposal

These are the proposed features of this project and I would invite you who are interested in realizing the Open Virtual University Program.

Core features:

  1. Students and tutor membership management
  2. Class scheduling, course booking and students & tutors' timetable management.
  3. Students performance ranking and enrollment statistics.
  4. Automated e-exam creation by selecting question from questions' bank.
  5. Custom personal web pages for students and tutors.
  6. Course materials management. File sharing, upload and download facilities.
  7. Course enrollment system.
  8. Voting and suggestion system.

Optional features.

  1. Thesis plagiarism detection.
  2. Automated timetable scheduling system.
  3. Subject's advisor expert

All these features would be implemented in Dotnetnuke module. Any other web framework such as using community server 2.1 is under consideration. Custom ASP.NET framework maybe suggested.

I need 2 web designers specializing in skinning ASP.NET user interface. 5 software developers, 1 database designer. i will be your project manager i this Carso's VU project.

Please drop me a line if you wish to participate.

Great codeproject articles for those interested in artificial intelligent

Today i came across this link http://www.codeproject.com/script/Articles/list_articles.asp?userid=1181072 and i found that the author Andrew Kirillov is wonderful in his those written articles. I have been a fan of artificial intelligent science since i was in high school. I would like to invite you guys 2-5 to work along with me a project called car parking system which is useful for finding empty car parking spaces. Besides, the system also suggest the shortest path and the most minimum time to obtain car parking space. The project would be implemented in Windows Mobile 5.0 and ASP.NET web application. Those who are interested please write some comment on this post.