DOTNET POWER PLAY
.NET stuffings and MICROSOFT (C) technologies
Wednesday, March 29, 2006
Thursday, March 23, 2006
Monday, March 20, 2006
David Hayden [MVP C#] : Open-Closed Principle - IFormattable, IFormatProvider, ICustomFormatter
David Hayden [MVP C#] : Open-Closed Principle - IFormattable, IFormatProvider, ICustomFormatter: "Jeffrey provided an example of a SocialSecurityNumber Class in his recent post, called EVERY application has a natural domain model - level 200.
The class is really a template that leaves things rather wide open, but it served his discussion nicely and didn't need to be built-up futher. Here is the class 'template':"
Wednesday, March 15, 2006
Saturday, March 11, 2006
Jeremy D. Miller -- The Shade Tree Developer : Jeremy's Second Law of TDD: Push, Don't Pull
Jeremy D. Miller -- The Shade Tree Developer : Jeremy's Second Law of TDD: Push, Don't Pull: "Laws of TDD is probably something that should be written by someone with more authority in the community, but I've got a blog and I thought of it first, so here goes. I'll expound on each of these at some point in the misty future, but just for fun here is Jeremy's Laws of Test Driven Development (I'm certainly not claiming any kind of originality here. Some of these rules predate TDD anyway).
Isolate the Ugly Stuff
Push, Don't Pull (this post)
Test small before testing big
Avoid a long tail
Favor composition over inheritance
Go declarative whenever possible
Don't treat testing code like a second class citizen
Isolate your unit tests, or suffer the consequences!
The unit tests will break someday
Unit tests shall be easy to setup"
Friday, March 10, 2006
A Brief History of Microsoft on the Web: Reflections on microsoft.com from Birth to 'Middle Age'
A Brief History of Microsoft on the Web: Reflections on microsoft.com from Birth to 'Middle Age': "
In the beginning, www.microsoft.com was just one computer tucked under a table at the end of a long hallway. It was designed to test Microsoft's first 32-bit Windows implementation of TCP/IP, the software plumbing in Windows that enables Internet communications. "
Thursday, March 09, 2006
Tuesday, March 07, 2006
System.Data.OracleClient requires Oracle client software version 8.1.7 or greater. on ASPNET 2
Roy Tore Gurskevik's weblog : System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.: "When usign System.Data.OracleClient with Oracle9i client, i got the following message while connecting to the Oracle database from and ASP.NET application.
System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.
Cause
Security permissions were not properly set when the Oracle 9i Release 2 client was installed on Windows with NTFS. The result of this is that content of the ORACLE_HOME directory is not visible to Authenticated Users on the machine; this again causes an error while the System.Data.OracleClient is communicating with the Oracle Connectivity software from an ASP.NET using Authenticated User privileges.
Solution
To fix the problem you have to give the Authenticated Users group privilege to the Oracle Home directory.
Log on to Windwos as a user with Administrator privileges.
Start Window Explorer and navigate to the ORACLE_HOME folder.
Choose properties on the ORACLE_HOME folder.
Click the �Security� tab of the �Properties� window.
Click on �Authenticated Users� item in the �Name� list.
Uncheck the �Read and Execute� box in the �Permissions� list under the �Allow� column.
Re-check the �Read and Execute� box under the �Allow� column
Click the �Advanced� button and in the �Permission Entries� verify that �Authenticated Users� are listed with permission = �Read & Execute�, and Apply To = �This folder, subfolders and files�. If not, edit that line and make sure that �Apply To� drop-down box is set to �This folder, subfolders and files�. This should already be set properly but it is important that you verify it.
Click the �Ok� button until you close out all"
Monday, March 06, 2006
Ajax alert raises security, scalability issues
Ajax alert raises security, scalability issues: "With Ajax-style applications on the rise, organizations need to consider potential security vulnerabilities and performance issues, according to XML security vendor Forum Systems Inc., which today issued an alert today on this topic. "
Eric Pascarello dissects Ajax security vulnerabilities
Eric Pascarello dissects Ajax security vulnerabilities: "Pascarello's Rules of Thumb for Ajax Security:
If you use user authentication, make sure you check for it on the request page!
Check for SQL injections.
Check for JavaScript injections.
Keep the business logic on the server!
Don't assume every request is real!
Check the data with validation!
Look at the request's header information and make sure it is correct. "
Sunday, March 05, 2006
Saturday, March 04, 2006
SH/SC Wiki : UsefulWindowsSoftware
SH/SC Wiki : UsefulWindowsSoftware: "H/SC Wiki: UsefulWindowsSoftware
ShscWiki :: LogIn :: PageIndex :: RecentChanges
This is an organized list of all the software mentioned in the most recent incarnation of the perennial 'post some cool software' thread in SH/SC. In particular, the thread this list was based on was 'Share your recent 'cool programs' that are keepers', which has recently been closed, and will soon be going to the great big archives server in the sky. A previous thread can be seen here [requires archives access], or here as an html document."
Friday, March 03, 2006
Create your own Parameter to the data-source control's parameters collection
Fredrik Norm�n's blog - NSQUARED2: "Create your own Parameter to the data-source control's parameters collection Sunday, January 22, 2006
Category: ASP.Net 2.0
When you use the data-source controls such the SqlDataSource or ObjectDatSource etc, you probably also add parameters to the data-source control�s specified commands, such as the SessionParameter, ControlParameter, ProfileParameter etc. You can also create your own parameters. This post is about how you can create your own Parameter for the data-source controls."
Download details: Anti-Cross Site Scripting Library V1.0
Download details: Anti-Cross Site Scripting Library V1.0: "Microsoft Anti-Cross Site Scripting Library V1.0
Brief Description
This download contains the redistributable files for the Microsoft Application Security Anti-Cross Site Scripting Library."
Characters filteration or validation for XML document.
Characters filteration or validation for XML document.: "Characters filteration or validation for XML document. "
Single and Double Quote for XML document
Single and Double Quote for XML document: "Single and Double Quote for XML document
On my last article we are talking about replacing special character for XML document which was working great but our testing team able to break it again. The single and double quote character are different from NOTEPAD to Microsoft Word .Here is how it looks and it's decimal/Hex value
"
Thursday, March 02, 2006
Brian Knight, SQL Server MVP : Pubs and Northwind databases not installed in SQL Server 2005
Brian Knight, SQL Server MVP : Pubs and Northwind databases not installed in SQL Server 2005: "Pubs and Northwind databases not installed in SQL Server 2005
I love the new Microsoft SQL Server 2005 sample databases (AdventureWorks and AdventureWorksDW). Compared with the Northwind and even worse the Pubs databases, they're amazingly more real-world. They show best practices and demostrate a good portion of the 2005 features. The problem lies in a lot of the SQL Server 2000 examples on the Internet still work in SQL Server 2005 and content that's specific to 2005 is still being produced. So, what to do while you wait for the examples to be updated? Why not live like it's 2002 and install the SQL Server 2000 sample databases? That way the sample RDL files, T-SQL scripts and most other examples on the net will work. "
Wednesday, March 01, 2006
Test Driven Development with ASP.Net and the Model View Presenter Pattern
Jeremy D. Miller -- The Shade Tree Developer : Test Driven Development with ASP.Net and the Model View Presenter Pattern: "Test Driven Development with ASP.Net and the Model View Presenter Pattern"
Rex V: an AJAX Regular EXpression eValuator -
Rex V: an AJAX Regular EXpression eValuator -: "This site is a Regular Expression evaluator for three different regular expression systems:
PHP PCRE.
PHP Posix.
Javascript."
CodeSmith templates : .NetTiers
Files: .NetTiers: ".NetTiers are CodeSmith templates for object-relational mapping that takes an existing SQLServer database and automatically generates a personnalized Data Tiers application block to use in your .Net applications.
Core features include:
Generates ready to use Visual Studio projects and solution.
Fully integrate with Entreprise Library application blocks architecture. Shipped with it's own plugin, so you can configure your application directly from the entlib configuration console. "