jQuery style Ui dialog over flash banners

I was doing some extra job for one of the clients, some changes on the web site full of blinking flash banners. Idea was to get users’ attention even more by displaying some floating windows… lovely … Obvious choice would be jQuery modal dialog… So I made it … Unfortunately it has shown up that some of the flash banners remain ‘over’ the dialog, and some of them don’t. After digging into that I figured out that the reason behind that is one of flash parameters: “wmode” (thanks God this is not another inner flash issue).

NLog binaries compiled to run under Medium Trusted environment

To save any one hassle with downloading NLog, StructureMap sources, updating assembly info in order to allow it to be run under Medium Trust, compiling them I have decided to attach a copy of compiled binaries. Or, simply how to run Nlog on shared hosting (like GoDaddy and others). NLog for Medium Trusted environment Happy coding!

Checkbox has to be 'checked' - with unobtrusive jQuery validation and ASP.NET MVC 3

Is it a pretty common scenario to have a checkbox on a form, that is required to be checked during POST-ing of a form. This usually happens when we have a typical ‘Agree to Terms and Conditions’ element. When I started to play with unobtrusive JavaScript validation in new ASP.NET MVC i was pretty sure that decorating boolean property with [Required] attribute will solve that issue. Surprisingly it doesn’t. The key to this problem lies in interpretation of jQuery validation ‘required’ rule.

Silverlight Flash and Html5 on Job Market

There have been a lot of buzz after unfortunate interview where by Bob Muglia admitted that: our (Microsoft) strategy with Silverlight has shifted. That somehow disappointed me, as I was planning to take a closer look at Silverlight. Well, according to guys from Redmond, future belongs to HTML5 - whatever that means. I have decided to check how does the market look like in industry of so called RIA - Rich Internet Applications.

Weird exception (with the simplest solution) after playing with Entity Framework

I have been playing with Entity framework Code-First approach (this is definitely the way I am going to use for my next project, i love it). Anyway, doesn’t matter if it is Code-First or Database-First approach, from time to time I keep on getting an exception: The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value. The statement has been terminated. It always takes few minutes to remember - what was that.

Manually forcing ELMAH to log exception

ELMAH is one of those projects that I use for literally ALL my own projects. It is an easy to implement error-logging component - for ASP.NET (MVC as well). The best thing about it is that it comes with web page that allows you to view all logged errors (even those of ‘yellow screen of death’), plus email notification or rss feed. wow ?! Okay, so ELMAH logs all of our unhanded exceptions… What about the case when you ‘catch’ exception but would still like to log it in ELAM defined medium.

How to implementing log in to site with Facebook account in ASP.NET MVC

I have decided to enable users that already have a Facebook account (who hasn’t ?!) to log on my site with their Facebook credentials. Process has shown to be pretty easy but It took me some time to figure out few things. I have decided to implement so called ‘Single Sign-On’ and I pretty much followed guildlines from http://developers.facebook.com/docs/guides/web. So, not to loose your precious time, let us start from the beginning.

LINQ Enumerable.Agregate with Path.Combine

Path.Combine accepts two parameters. Just two… So when we combine multiple path we have to deal with with nesting of Path.Combine: string rootDir = "/root/app"; string folder1 = "users"; string folder2 = "mike/upload"; string filename = "text.xml"; var path = Path.Combine(rootDir, Path.Combine(folder1, Path.Combine(folder2, filename))); There are 2 ways to handle this: 1. Use Enumerable.Agregate: string rootDir = "/root/app"; string folder1 = "users"; string folder2 = "mike/upload"; string filename = "text.xml"; var path2 = new string[] { rootDir, folder1, folder2, filename }.

Debugging silverlight in Firefox and Chrome

Well, it seams that war between Firefox and Chrome in my life is not over yet, despite brave decision I have made…. I was forced to write small widget in Silverlight, and to be honest I was having hard time debugging it in visual studio - somehow, I couldn’t hit any breakpoints. Well shit happens. After an hours spend on that i’ve decided to change browser to IE thinking - Microsoft products goes well with Microsoft products.

Page 2 of 4