Thursday, April 3, 2008

Blueprints To Build A Computer Desk

Sql server, concatenate a row in a SQL NULL columns

If you happen to create a stored procedure that returns a column concatenating several column base, I would be also noticed that when one of the "parts" of the concatenation is NULL, the result is NULL. Enough obvious, but quite boring like behavior.
To change the behavior of the chain you can use this option declaration


Done! Sometimes it's easy ...

Thursday, March 27, 2008

A Small Poster Templateppt

concatenated string of null strings


We often have to change the size of an image while preserving the aspect ratio, the trivial function that photoshop has got us used to take for granted, constraint Proportion and go!

Here is a function to the rescue: GetNewsize Public Function (ByVal originalsize As Size, ByVal DesiredSize As Size) As Size Dim newSize As Size

'calculate the new size Dim

nPercentW As Single = DesiredSize.Width / OriginalSize.Width

nPercentH Dim As Single = DesiredSize.Height / OriginalSize.Height

nPercent Dim As Single = IIf (nPercentH newSize = New Size (* OriginalSize.Width nPercent, OriginalSize.Height nPercent *)
'Return

newSize End Function

< nPercentW, nPercentH, nPercentW)


Friday, January 4, 2008

Mental Ward Racquel Darrian

Resize image mantendendo the proportions

Among the new features introduced in. Net else is managing connections integrated into the framework.
In practice, the connection management, connection and disconnection of the software as needed, it is for internal framework, relieving the programmer from the tedious task. Each time you create a new application, whether or Web.Net WindowApplcatione, ci si pone il problema di "dove" aprire la connessione, quante aprirne e quale sia il momento migliore per avere il massimo delle prestazioni e il minimo dell'occupazione per il server.