Day to day good stuff I find regarding my work
Tuesday, December 11, 2007
On Microsoft
Some intresting Webcasts http://www.informit.com/podcasts/channel.aspx?c=3761c00b-ef8f-4385-9b08-a6e1c7a9a35f&rl=1
Tuesday, November 20, 2007
Sunday, October 28, 2007
Domain driven design
Reading the book Applying Domain-Driven Design and Patterns by Jimmy Nilsson
and are gathering links and commens in this blogpost
Ben Scherman has a good article serie about doing a project using Domain-Driven Design and Nhibernate
10 tips about using Hibernate
Repostory
Repository, the Foundation of Domain Driven Design
Persistence Last
Evans model-to-work
Value Objects
LINQ
LINQ to SQL comment
Non-scalar Value Objects aka "Complex Types"
and are gathering links and commens in this blogpost
Ben Scherman has a good article serie about doing a project using Domain-Driven Design and Nhibernate
10 tips about using Hibernate
Repostory
Repository, the Foundation of Domain Driven Design
Persistence Last
Evans model-to-work
Value Objects
LINQ
LINQ to SQL comment
Non-scalar Value Objects aka "Complex Types"
Wednesday, October 17, 2007
Wednesday, September 19, 2007
Coalesce
Coalesce goes C# « Only Talking Sense
... the null-coalescing operator in C# 2.0.
string name = (userName == null? “” : userName);
There’s nothing wrong with this code ....but the ternary operator ?
you can now write
string name = userName ?? “”;
Powered by ScribeFire.
Wednesday, August 08, 2007
Sharepoint Solution Installer
http://blog.mondosoft.com/ontolica/archive/2007/03/14/Generic-SharePoint-2007-Solution-Installer.aspx
Install a MOSS development environment
SharePoint Visual Studio Project Templates
Application Templates for Windows SharePoint Services 3.0
Preparation Guide for Exam 70-541
TS: Microsoft Windows SharePoint Services 3.0 - Application Development
Install a MOSS development environment
SharePoint Visual Studio Project Templates
Application Templates for Windows SharePoint Services 3.0
Preparation Guide for Exam 70-541
TS: Microsoft Windows SharePoint Services 3.0 - Application Development
Sunday, July 15, 2007
Subversion
PDF http://svnbook.red-bean.com/nightly/en/svn-book.pdf
Subversion on Windows quick start
C:\mgns\Visual Studio 2005\Projects> svn import RegAdmin file:///c:/regadminrepos -m "Initial Import"
C:\mgns\Visual Studio 2005\Projects> svn checkout file:///C:\regadminrepos "file://C:\mgns\Visual Studio 2005\Projects\RegAdmin"
Subversion on Windows quick start
C:\mgns\Visual Studio 2005\Projects> svn import RegAdmin file:///c:/regadminrepos -m "Initial Import"
C:\mgns\Visual Studio 2005\Projects> svn checkout file:///C:\regadminrepos "file://C:\mgns\Visual Studio 2005\Projects\RegAdmin"
Wednesday, July 04, 2007
Wednesday, June 27, 2007
Thursday, May 24, 2007
Java Persistence API v1.0 (JPA)
http://www.cornerstone.se/expertzone/dev07/sessions_java.aspx
Declarative mappingFramework APIQuery LanguageTransaction Support
Entiteter: skall vara rena
ORM: Håller det hela i synk
Tjänster
Transparent Persitance
JPA 1.0 Declarative Object Relational Mapping
1. Classes are mapped to tables
2. Fields are mapped to columns
3. All types of relationships are supported
4. Support for embedded objects
5. Use either annotation or deployement descriptors
Laxy loading potentiellt problem med många sm@a
Eager loading kan ge stora SQL statements
Guideline Use laxy on relations and "fetch join" on queries
(Select * from Employee e LEFT JOIN FETCH e. phoneNumbers WHERE )
Contructor expressions in queries
Buld update delete
Valideringar - Lifecycle Callback
Declarative mappingFramework APIQuery LanguageTransaction Support
Entiteter: skall vara rena
ORM: Håller det hela i synk
Tjänster
Transparent Persitance
JPA 1.0 Declarative Object Relational Mapping
1. Classes are mapped to tables
2. Fields are mapped to columns
3. All types of relationships are supported
4. Support for embedded objects
5. Use either annotation or deployement descriptors
Laxy loading potentiellt problem med många sm@a
Eager loading kan ge stora SQL statements
Guideline Use laxy on relations and "fetch join" on queries
(Select * from Employee e LEFT JOIN FETCH e. phoneNumbers WHERE )
Contructor expressions in queries
Buld update delete
Valideringar - Lifecycle Callback
Wednesday, May 09, 2007
Excel macro
Problem Fylla alla tomma celler i vald range i Excel med dom ovanfor.
Losning
Macro se
http://www.mvps.org/dmcritchie/excel/fillempt.htm
Losning
Macro se
http://www.mvps.org/dmcritchie/excel/fillempt.htm
Monday, May 07, 2007
Produktivitet
Nice links
Getting Things Done GTD
Getting things done
A survey of the Get Things Done Landscape Apps
Getting Things Done: The Art of Stress-Free Productivity Summary
Blog om GTD
A survey of the Get Things Done Landscape Apps
Getting Things Done: The Art of Stress-Free Productivity Summary
Blog om GTD
Software
MindManager Pro http://www.mindjet.com/eu/
MindManager Pro http://www.mindjet.com/eu/
Monday, April 16, 2007
Updated Nhibernet article
NHibernate Best Practices with ASP.NET, 1.2nd Ed. - The Code Project - ASP.NET
NHibernate Best Practices with ASP.NET, 1.2nd Ed
powered by performancing firefox
OO Design Principle metrics
http://www.parlezuml.com/metrics/OO%20Design%20Principles%20&%20Metrics.pdf
http://www.objectmentor.com/resources/articles/CoffeeMaker.pdf
http://www.objectmentor.com/resources/publishedArticles.html
http://www.objectmentor.com/resources/articles/Principles_and_Patterns.pdf
http://www.objectmentor.com/resources/downloads.html
http://www.objectmentor.com/resources/articles/CoffeeMaker.pdf
http://www.objectmentor.com/resources/publishedArticles.html
http://www.objectmentor.com/resources/articles/Principles_and_Patterns.pdf
http://www.objectmentor.com/resources/downloads.html
Wednesday, April 11, 2007
Best Practise in error handling webparts in Sharepoint 2007
Uploaded as an article to CodeProject
http://www.codeproject.com/useritems/Errorhandling_in_Webparts.asp
When installing a webpart in Sharepoint 2007 you need to have some kind of model how to handle errors. This is the approach I have used.
The entry points in the code are
1. CreateChildControls
Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
2. Render
Renders the control to the specified HTML writer.
The problem is that the user should get somekind of feedback in a readable format telling him OOhps the secound problem is how to communicate this to the System Administrator
My Approach
a) Create a private variable to store the Exception
private Exception childException = null;
b) In CreateChildControls have a try/catch and catch the error in the childException variable
try{
base.CreateChildControls();
.....}
catch (Exception exp)
{
HttpContext ctx = HttpContext.Current;
ctx.Trace.Warn(ex.ToString());
childException = ex;
}
c) In Render check if the have a try/catch and catch the error in the childException variable
and then display the result in the page by using labels..
protected override void Render(System.Web.UI.HtmlTextWriter writer)
{
if (childException != null)
displayErrorMsg(writer, childException);
try
{...
...
...
}
catch (Exception ex)
{
displayErrorMsg(writer, ex);
}
where
private void displayErrorMsg(HtmlTextWriter writer, Exception ex)
{
this.Controls.Clear();
this.Controls.Add(new LiteralControl(ex.Message));
if (ex.InnerException != null)
{
this.Controls.Add(new LiteralControl(ex.InnerException.Message));
}
this.Controls.Add(new LiteralControl());
base.Render(writer);
HttpContext ctx = HttpContext.Current;
ctx.Trace.Warn(ex.ToString());
}
http://www.codeproject.com/useritems/Errorhandling_in_Webparts.asp
When installing a webpart in Sharepoint 2007 you need to have some kind of model how to handle errors. This is the approach I have used.
The entry points in the code are
1. CreateChildControls
Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
2. Render
Renders the control to the specified HTML writer.
The problem is that the user should get somekind of feedback in a readable format telling him OOhps the secound problem is how to communicate this to the System Administrator
My Approach
a) Create a private variable to store the Exception
private Exception childException = null;
b) In CreateChildControls have a try/catch and catch the error in the childException variable
try{
base.CreateChildControls();
.....}
catch (Exception exp)
{
HttpContext ctx = HttpContext.Current;
ctx.Trace.Warn(ex.ToString());
childException = ex;
}
c) In Render check if the have a try/catch and catch the error in the childException variable
and then display the result in the page by using labels..
protected override void Render(System.Web.UI.HtmlTextWriter writer)
{
if (childException != null)
displayErrorMsg(writer, childException);
try
{...
...
...
}
catch (Exception ex)
{
displayErrorMsg(writer, ex);
}
where
private void displayErrorMsg(HtmlTextWriter writer, Exception ex)
{
this.Controls.Clear();
this.Controls.Add(new LiteralControl(ex.Message));
if (ex.InnerException != null)
{
this.Controls.Add(new LiteralControl(ex.InnerException.Message));
}
this.Controls.Add(new LiteralControl());
base.Render(writer);
HttpContext ctx = HttpContext.Current;
ctx.Trace.Warn(ex.ToString());
}
Monday, March 12, 2007
To do
Configure This: Parameterize Your Apps Using XML Configuration In The .NET Framework 2.0 -- MSDN Magazine, June 2006
Parameterize Your Apps Using XML Configuration In The .NET Framework 2.0
ASP.NET.4GuysFromRolla.com: Examining ASP.NET 2.0's Membership, Roles, and Profile - Part 5
CAPTCHA
powered by performancing firefox
To do
Configure This: Parameterize Your Apps Using XML Configuration In The .NET Framework 2.0 -- MSDN Magazine, June 2006
Parameterize Your Apps Using XML Configuration In The .NET Framework 2.0
powered by performancing firefox
Thursday, January 25, 2007
Another UML tutorial
UML Tutorial - Class Diagrams
http://pigseye.kennesaw.edu/~dbraun/csis4650/A
powered by performancing firefox
Wednesday, January 24, 2007
UML
http://www.agilemodeling.com/artifacts/classDiagram.htm
http://www.isk.kth.se/kursinfo/6b2030/lektioner/for2/uml1/association.shtml
http://www.isk.kth.se/kursinfo/6b2030/lektioner/for2/uml1/association.shtml
Wednesday, January 03, 2007
Subscribe to:
Posts (Atom)
Links
Labels
- "Sharepoint" TypeMock "Isolator For SharePoint" (1)
- ASP.NET (1)
- SharePoint (1)
- WSS (1)