Sign in
AppDev: Something You Should Know by Irena Kennedy
Everything that is related to application development, and other cool stuff...
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
.NET
Application Development
Async
Config
Deployment
Environment
RIA
Silverlight
SQL
Telerik
TFS
Tools
Visual Studio
VSTS
WCF
Web
Archive
Archives
September 2012
(2)
March 2012
(1)
January 2012
(2)
April 2011
(1)
March 2011
(2)
October 2010
(1)
September 2010
(1)
August 2010
(2)
December 2009
(4)
November 2009
(1)
September 2009
(1)
June 2009
(2)
April 2009
(1)
December 2008
(2)
February 2008
(1)
October 2007
(3)
September 2007
(1)
August 2007
(7)
July 2007
(5)
June 2007
(8)
May 2007
(19)
April 2007
(42)
March 2007
(43)
February 2007
(33)
January 2007
(21)
December 2006
(7)
November 2006
(20)
October 2006
(22)
September 2006
(20)
August 2006
(23)
July 2006
(19)
June 2006
(12)
May 2006
(22)
April 2006
(20)
March 2006
(23)
February 2006
(20)
January 2006
(21)
December 2005
(14)
November 2005
(19)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
AppDev: Something You Should Know by Irena Kennedy
SYSK 95: Expand Your Horizon – Learn About NUMA
Posted
over 7 years ago
by
irenake
2
Comments
NUMA stands for Non-Uniform Memory Access or Non-Uniform Memory Architecture. NUMA is a computer memory design used in multiprocessors, where the memory access time depends on the memory location relative to a processor. Under NUMA, a processor...
AppDev: Something You Should Know by Irena Kennedy
SYSK 94: as, is, where keywords in C#
Posted
over 7 years ago
by
irenake
9
Comments
There are a few keywords one should be aware of: The as operator is similar to a cast but on any conversion failure null is returned as oppose to raising an exception. Note: it will not do the conversion (cast != data type conversion)! Personally...
AppDev: Something You Should Know by Irena Kennedy
SYSK 93: SQL 2005 – How to Script Database One Object per File
Posted
over 7 years ago
by
irenake
6
Comments
In SQL 2000, there was a feature many of us loved and used heavily – ability to script all database objects one per file. This allowed the scripts to be stored in a source control tool for versioning purposes. Unfortunately, this feature is missing from...
AppDev: Something You Should Know by Irena Kennedy
SYSK 92: How to Clear or Remove Certain Items from “Recent Projects” List in Visual Studio
Posted
over 7 years ago
by
irenake
0
Comments
If you create or view a lot of sample projects or demos, you’d love this. While there is no GUI for this, all the recently opened projects are stored in the registry under HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\ProjectMRUList key...
AppDev: Something You Should Know by Irena Kennedy
SYSK 91: Cool Trick -- Move an Entire Paragraph with a Key Stroke
Posted
over 7 years ago
by
irenake
6
Comments
The other day, I accidentally discovered an easy way to move a line (or number of selected lines) up or down in your Word document… Say, you had a bullet point or a paragraph (or any other selected text) that you wanted to move up or down within...
AppDev: Something You Should Know by Irena Kennedy
SYSK 90: SQL: What Is a Hash Join and When Should You Use It?
Posted
over 7 years ago
by
irenake
0
Comments
Did you know that hash join is most efficient when one of the tables is significantly different in size than another one? Want to know why? Then read on… SQL Server uses different kinds of join operations – e.g. nested loop join, merge join, hash...
AppDev: Something You Should Know by Irena Kennedy
SYSK 89: Hashing Explained...
Posted
over 7 years ago
by
irenake
2
Comments
So, you hear all the time – Hashtable, hash value, etc. You’ve seen GetHashCode method in Object type. But what is hashing? Hashing is a process of applying one of many hash algorithms. It’s frequently used to create/use hash tables, which significantly...
AppDev: Something You Should Know by Irena Kennedy
SYSK 88: How to Avoid Hardcoding Stored Procedure Names
Posted
over 7 years ago
by
irenake
0
Comments
Say you want to return the name of the stored procedure where an error occurred… How can you do that without hardcoding the stored proc name? The answer is simple – by using the system variable @@ProcID and converting it to name. Execute the following...
AppDev: Something You Should Know by Irena Kennedy
SYSK 87: A Better MaskedTextBox For Currency Fields
Posted
over 7 years ago
by
irenake
13
Comments
You may want to save this one off and put it in your personal toolbox… The MaskedTextBox that comes with .NET has a few limitations – it does not automatically shift your digits. For example, if I enter a mask of 0000.00, and enter number 12, I...
AppDev: Something You Should Know by Irena Kennedy
SYSK 86: .NET Reflector Revisited
Posted
over 7 years ago
by
irenake
5
Comments
In SYSK 7, I discussed a tool created by Lutz Roder that can be used to decompile and analyze .NET assemblies. The tool is available at http://www.aisto.com/roeder/dotnet/ . This tool disassembles the raw assembly and translates the binary information...
AppDev: Something You Should Know by Irena Kennedy
SYSK 85: What are the key features of TFS (Team Foundation Server)?
Posted
over 7 years ago
by
irenake
1
Comments
As was announced yesterday by Rick LaPlante, the Team Foundation Server has been released to manufacture (RTM). The bits should be available to customers for download via Microsoft’s Developer Network (MSDN) within a few days. And did you know that...
AppDev: Something You Should Know by Irena Kennedy
SYSK 84: Where Do GAC Assemblies Live?
Posted
over 7 years ago
by
irenake
2
Comments
Ever wondered where shared assemblies actually are stored, and how “side-by-side” is made possible? Well, the secret is about to be revealed…. Ok, so it’s somewhere in the file system… But where exactly? You’ll need to open the console command...
AppDev: Something You Should Know by Irena Kennedy
SYSK 83: On the Importance of Calling TrimToSize
Posted
over 7 years ago
by
irenake
2
Comments
Like StringBuilder (see SYSK 16), ArrayList, Queue and SortedList double the buffer when the existing capacity is exceeded and a new element must be inserted. Try it for yourself – create an ArrayList and call its Capacity property. By default, it initializes...
AppDev: Something You Should Know by Irena Kennedy
SYSK 82: Compression Example in .NET
Posted
over 7 years ago
by
irenake
7
Comments
As many of you may know, .NET framework 2.0 contains a built in support for compressing the file or any generic stream such as FileStream, MemoryStream, TextWriter, XmlWriter, NetworkStream, etc So, now, you can compress/decompress using GZip algorithm...
AppDev: Something You Should Know by Irena Kennedy
SYSK 81: How compression works
Posted
over 7 years ago
by
irenake
3
Comments
In essence, file-compression programs simply get rid of the redundancy. Instead of listing a piece of information over and over again, a file-compression program lists that information once and then refers back to it whenever it appears in the original...
AppDev: Something You Should Know by Irena Kennedy
SYSK 80: Keyboard Shortcuts to Comment/Uncomment Code in SQL Server Management Studio and in Visual Studio 2005
Posted
over 7 years ago
by
irenake
0
Comments
If you’re a keyboard person, try this combination to comment out selected lines (works in both, SQL and Visual Studio) – press Ctrl-K, keep pressing Ctrl key and hit key C (Ctrl-K Ctrl-C). To uncomment selection, use Ctrl-K Ctrl-U.
AppDev: Something You Should Know by Irena Kennedy
SYSK 79: Good SQL Interview Question -- What is the Left Anti Semi Join?
Posted
over 7 years ago
by
irenake
0
Comments
The left anti semi join is a logical operator (read: you’ll see it referred to in the execution plan, but there is no explicit T-SQL equivalent) which returns each row from the first (top) input when there is no matching row in the second (bottom) input...
AppDev: Something You Should Know by Irena Kennedy
SYSK 78: Avoiding Infinite Loops Due to Error Handling Retries
Posted
over 7 years ago
by
irenake
0
Comments
Ok, so you want to do error handling, not just error logging… So, you catch exception, examine it’s type and contents and try to resolve the problem… Then what? Then you want to retry the logic that failed before. So, in many cases, you call yourself...
AppDev: Something You Should Know by Irena Kennedy
SYSK 77: The Difference Between Microsoft.Security.Application.AntiXSSLibrary.HtmlEncode and System.Web.HttpUtility.HtmlEncode
Posted
over 7 years ago
by
irenake
3
Comments
As many of you may know, on Feb. 26 Microsoft has released Microsoft Application Security Anti-Cross Site Scripting Library. The download is available at http://www.microsoft.com/downloads/details.aspx?familyid=9A2B9C92-7AD9-496C-9A89-AF08DE2E5982&displaylang...
AppDev: Something You Should Know by Irena Kennedy
SYSK 76: When Should You Call AddMemoryPressure?
Posted
over 7 years ago
by
irenake
0
Comments
If memory consumption happens in the unmanaged code called by your managed code, GC has no way of knowing that your small managed object has big memory footprint. For example, your code might call some legacy API, which allocates memory, and your object...
AppDev: Something You Should Know by Irena Kennedy
SYSK 75: Do You Use Your Computer From Public Places? If Yes, Read This...
Posted
over 7 years ago
by
irenake
0
Comments
With public access points available across town in coffee shops, restaurants, libraries, hotels, and airports, web access on the road is both abundant and convenient. But there's a big problem with all this openness: there's no way of knowing how secure...
AppDev: Something You Should Know by Irena Kennedy
SYSK 74: Are You Using SecureString Class?
Posted
over 7 years ago
by
irenake
1
Comments
The new System.Security.SecureString type (introduced in .NET 2.0) uses DPAPI to help ensure that sensitive data stored in string form is not exposed to memory or disk-sniffing attacks. The data is held in memory in the encrypted format, and is only decrypted...
AppDev: Something You Should Know by Irena Kennedy
SYSK 73: On the Importance of allowExeDefinition Attribute
Posted
over 7 years ago
by
irenake
7
Comments
When you create an application scoped setting, the allowExeDefinition attribute on the <section> element is omitted. For user setting, it’s added by VS and set to value “MachineToLocalUser”. The valid values for this setting are: - MachineOnly...
Page 1 of 1 (23 items)