Angular and Focus Setting on New HTML Elements

I had to deal with an interesting problem this weekend.  I was working on a screen for a demo project that was using Angular ngRepeat directive to display multiple fields for a sub-entity of a main screen.  Something similar to the demo below. The behavior I wanted to see is as follows.  When a user …

Continue reading ‘Angular and Focus Setting on New HTML Elements’ »

Combine Angular Directives and Filters to Format UI

I was working on a demo this weekend.  One of the things I wanted to demonstrate is how to format user input in Angular applications.  I am going to use social security number input field to demonstrate the concept.  The idea of Angular filters is a simple one.  They are akin to IValueConverter in XAML …

Continue reading ‘Combine Angular Directives and Filters to Format UI’ »

Leveraging Forms Authentication in Web Api

Web Api technology is not like ASP.NET MVC, even though the two are often used together.  Although most people probably host Web Api inside IIS, and I do as well, Web Api does not take dependency on System.Web or IIS.  This allows you to self-host Web Api 2.0 application in your own process, such as …

Continue reading ‘Leveraging Forms Authentication in Web Api’ »

Checkbox Alternative for Twitter Bootstrap

I have been working on many web applications for quite sometime.  I, as pretty much everyone else, want their sites to be usable on mobile devices.  One control that is not good on mobile devices is a chekbox control.  Hence, many mobile platforms such as iOS and Windows Phone / WindowsWIndows Store Apps prefer the …

Continue reading ‘Checkbox Alternative for Twitter Bootstrap’ »

SLLauncher and Browser Mode

I had to do some work in a Silverlight (I know, I know) application recently.  One of the features I was working on is to show a web page in out-of-browser running Silverlight application.  The page is a modern page that I wrote using Angular JS.  What I found is that as soon as the …

Continue reading ‘SLLauncher and Browser Mode’ »

Detecting App Pool Recycling and Mitigating Its Effects

If you wrote any web apps using ASP.NET and IIS, you are familiar with the concept of app pools in IIS.  If you also used Entity Framework or any other library that requires some amount of work to warm-up, you have seen the effects of app pool recycling.  At that time application domain for your …

Continue reading ‘Detecting App Pool Recycling and Mitigating Its Effects’ »

Build Your First Visual Studio VSIX Plugin

I few weeks ago, I had a task that required me to use reflection against an existing assembly, find a specific type in it, and generate a similar for current project. I had to do this task a  number of times each day.  I felt it was a great opportunity to learn about Visual Studio …

Continue reading ‘Build Your First Visual Studio VSIX Plugin’ »

Oracle ODAC / ODP 12c Uninstall

A few months ago when I reimaged my machine, I installed Oracle 12c with the latest ODP/ODAC.  It worked great, but only one pluggable database is supported for development.  I decided to uninstall and go back to 12g along with ODAC and ODP.  All worked smoothly, until I tried to connect to Oracle database. Then …

Continue reading ‘Oracle ODAC / ODP 12c Uninstall’ »