Lessons learnt from the world of Software Development, Object Oriented Design and .NET Architecture.
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. However, I came across a method where I could at … Continue reading
The same rollback considerations that apply to normal SQL transactions also apply to nHibernate transactions.
Suppose you have two SQL Statements – the first one tries to insert (and runs into a primary key violation). The second one tries to … Continue reading
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 SQL Server does not know what to do with undefined and … Continue reading
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. – have contributed to its popularity. However, larger WCF projects start … Continue reading
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 helps in avoiding Denial of Service (DoS) attacks, it is an incovenience … Continue reading
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 of course. However, if you find Visual Studio (2012) using … Continue reading
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 query as shown below:
From within Query Analyzer, select ‘Analyze Query … Continue reading
This is just a quick note to highlight a commonly used web testing metric for making an initial determination of where the source of bottleneck(s ) might be.
Most commonly, testers measure the total response time for a web page. … Continue reading
I had to insert a few lines of code in about 700 different files. However, the insertion had to be in a specific place (just before the start of a transaction – so just before using (var transaction = session.BeginTransaction).The … Continue reading