Archives for Software Dev - Page 47
Visual Studio – VS find matching brace
1. Place your cursor either before or after the OPENING brace. 2. Type CTRL ] (CTRL and CLOSE BRACKET) – it should jump to the closing brace
Hibernating Rhinos – nHibernate Profiler
1. To get started with this powerful profiler, simply install the NuGet package (look for nHibernate Profiler). it places all the required assemblies in your project AND…
Multiple iphones (iOS devices) – One PC
How do you sync multiple devices to one iTunes? In general, one iTunes instance = one device – try and change devices and you have a nightmare on your hands.…
nHibernate transactions and rollbacks
Introduction The same rollback considerations that apply to normal SQL transactions also apply to nHibernate transactions. Rollback Scenario Suppose you have two SQL Statements – the first one tries to…
Fluent nHibernate setting database transaction isolation level
Introduction Normally, if you do NOT specify the isolation level for an nHiberante transaction, it will remain undefined. This is bad for many reasons – the primary one being that…
Agatha–Getting Started–First Application
Introduction The advent of WCF has made life simpler for web service developers . Passing complex types, quick serialization, write once run with multiple bindings (and hence multiple consumers) etc.…
WCF – The maximum string content length quota (8192) has been exceeded while reading XML data
Introduction The DataContractSerializer in WCF serializes objects to XML Streams. There is a size (length) limitation on these streams. They are restricted by default to 8k (8192 bytes). While this…
Visual Studio Using Too Much Memory
When running by itself (no project opened and no extensions), Visual Studio 2012 takes less than 100 MB. When you open up your projects, those add to the total memory…
Async Await in Web API Controller
Introduction In WebAPI (part of mvc 4), controllers are view-agnostic. They do not return data to a view – rather they return pure, formatted data (either JSON or XML –…
Using Database Tuning Advisor for individual queries
Often times, instead of tuning an entire database, we are interested in performance tuning a single offending query. This can be accomplished by applying the tuning wizard to a specific…