Purpose of this article is to help you with few steps of commands to provision a new Azure Cosmos DB database instance through Azure CLI or Azure Cloud Shell. Here is the snippet: <# This Bash script should help you create a Azure Cosmos DB instance using Azure CLI with bare minimal configuration #> export… Continue reading
Category: Codes
Codes are an Irish indie electronic quartet from Dublin, consisting of Daragh Anderson, Eoin Stephens, Paul Reilly and Raymond Hogge. Their debut album Trees Dream in Algebra was nominated for the 2010 Choice Music Prize. The band have established themselves swiftly as a very exciting and energetic live act and to date have supported such bands as Keane and The Airborne Toxic Event.
Codes formed in late 2007 when all members – who had been friends for several years – found themselves available to compose and play music together. Previously, Daragh and Paul had played in another group that disbanded, while Raymond – who had just recently moved to Dublin – also left a band that he was involved with.
In early 2008 they released 2 independent singles –”This is Goodbye” and “Guided by Ghosts”, that both entered the Irish top 50 at number 32 and number 43 respectively. Both singles were well received critically, helped towards a growing fan base and secured the band their first major shows,…
Back to Basics : Singleton Design Pattern using System.Lazy type
This article takes you to a simpler/alternative approach in making a Singleton Design Pattern implementation using System.Lazy class rather that using our traditional approach. Singleton Design Pattern implementation without lazy initialization: This code is thread safe enabled [code language=”csharp” padlinenumbers=”true”] /// <summary> /// Singleton class /// </summary> public class AppConfig { private AppConfig() { }… Continue reading
Disable Client Side validation on a button click – ASP.NET MVC
ASP.NET MVC we use client side validation using jQuery.validate plugin, which will be based on Model – Data Annotation validation attributes. In some cases we might want to disable such validation on a button click wherever it is not needed. For example: The below code block will register validation block for Title property in the… Continue reading
WP8Dev– How to identify the sensors supported on your Windows Phone
This post will give you an overview on how to identify the sensors supported on your Windows Phone. As a developer when you are developing for Windows Phone – and your application would need to interact with certain sensors in windows phone to achieve a certain functionality, you would need to verify whether the sensors… Continue reading
HTML5 – Introduction to HTML5Shiv for Internet Explorer 6/7/8
HTML5Shiv is a JavaScript workaround, discovered by Sjoerd Visscher, to enable support styling of HTML5 elements in versions of Internet Explorer prior to version 9.0, which do not allow unknown elements to be styled without JavaScript. Means your CSS classes and attributes will not be applied to the particular HTML5 specific display element, until and… Continue reading
Zip(Archive) API’s in .NET Framework 4.5 – Part 2 – ZipFile Class
In my previous post I shared some information on API’s/Classes included as part of System.IO.Compression namespace in .NET Framework 4.5, and given on overview of ZipArchive class. Once such class I would be sharing some insight with post today would be ‘ZipFile‘ class. The ZipFile class provides convenient static methods for working with zip archives:… Continue reading
Zip(Archive) API’s in .NET Framework 4.5 – ZipArchive Class
With release of .NET Framework 4.5, Microsoft has introduced new classes in to System.IO.Compression namespace. These classes will add the necessary programming support for Zipping(Achiving), and Extracting support for Zip Files in your .NET Source Code. Below are the newly introduced classes as part of .NET Framework 4.5: ZipArchive – Represents a package of compressed… Continue reading
Windows Phone Development–Background Agents in Windows Phone
Windows Phone came through long way after it’s initial release on Oct 21st 2010. Windows Phone 7.5 update release called as “MANGO” brought lots of improvements including Multi tasking capabilities etc. With the introduction of multi-tasking ( it is not true multi tasking, but an efficient application switching which ensures that only one application will… Continue reading
Apple Push Notifications Service API & C#
To start with Apple Push notifications I would have to first explain what is Push Notifications? In normal mobiles Push services are often based on information preferences expressed in advance. This is called a publish/subscribe model. A client might "subscribe" to various information "channels". Whenever new content is available on one of those channels, the… Continue reading
Using External Configuration Files in .NET Applications (C#)
This post is about making a small code snippet which read from an external configuration file and get the custom configuration entries from it. I went through the solutions. My target was to checkout how we can use the external configuration files in an ASP.NET Web.config. The idea is that there are more than one… Continue reading