Error connecting to localdb after .mdf and .ldf files are deleted.

Localdb database is very flexible and comfortable to use. Although its purpose is rather to serve a development database storage, its also possible to use it in a production. Unfortunately using it in, for instance, Click-Once deployed application generates some strange problems. One of those mystery problems I faced recently. Using localdb in production has some limitations. F…

By Mirek on (tags: localdb, categories: infrastructure)

Event aggregation

In this post I will try to present you my implementation of event aggregator, which I used in WPF MvvM application. I will also try to point out the advantages of my implementation over other found in the internet. The basic principle of event aggregator is to decouple objects from themselves, but at the same time make them still able to communicate to each other. The idea behi…

By Mirek on (tags: event aggregator, categories: code)

QUnit

Another handy javascript lib for your toolbox, but this time, for a slightly different purpose than usual – unit testing For me, javascript development has always been tied with a sense of uncertainty. I mean, you write the code, check that it works but that’s usually with strong assumptions. What if the DOM element is not there, what if a dependent script is missing. Well, wit…

By on (tags: qunit, categories: tools, web)

Web sockets

Web socket is a technology developed to establish a bi-directional communication between client and server, over the web. It works on top of TCP and hopefully will render hacks like long polling obsolete. It’s supported by all modern browsers with 2 exceptions – opera mini and the default android browser (chart can be found here). Here’s a basic example how to use it along with…

By on (tags: web sockets, categories: tools, web)

sammy.js

Another nice javascript lib that’s handy to have in your utility belt. From the library website - sammy is “a small web framework with class”. I’m sure there’s much more to it than what I will describe here, but there’s one aspect I’d like to focus on: view switching. When building a SPA or another type of ‘front-end heavy’ app, there’s a matter of representing and switching be…

By on (tags: javascript, sammy, categories: tools, web)

CoffeeScript

There’s been a lot of fuss about coffee script in the last few months. It’s a language that compiles into pure javascript. Some people like it, some don’t. So what’s it all about? Javascript causes vigorous discussions. It’s a very specific language – it has it’s flaws but has it’s strengths as well, but most importantly, it allows you to do a lot of things generally considered…

By on (tags: coffeescript, javascript, categories: tools, web)

knockout.js

Knockout is a MVVM framework for javascript. It has been around for a while, but I never spent too much time with it until recently, when pluralsight released a free training that included knockout. My impressions – this is definitely something I could utilize in quite a few places, but it carries a pretty big startup cost, so I’d think hard before using it in a project. First,…

By on (tags: javascript, knockout, categories: tools, web)

git-tf second encounter

Last time I wrote about my first impressions after trying out git-tf. Now it’s time for part two. I started using git-tf just before they released version 2 that introduced a few changes, so I was a bit confused about the ‘unexpected’ results. Let’s start with the things that didn’t change. One changeset vs all changesets By default, when you do a git tf checkin all the commits…

By on (tags: git, tfs, categories: tools)

Calculate SHA hex

Forms authentication has an option to use a web.config based authentication. One of the possible encryption algorithms is sha1. To calculate it, you can create a tool in c# (I even did that, but.. I lost it when my drive crashed) or you can use python. It’s as simple as There are probably many other ways to do that, but you must admit, this is a quick one Cheers…

By on (tags: authentication, categories: tools)

git-tf first encounter

As promised here I’ll share some info on using git-tf. Just started, so the impressions may change but as a starter that should be good enough. Intro git-tf is developed by microsoft guys and … what a surprise it was when I found a download link straight from a microsoft server. Usually, things like that provided on the same site the project is hosted but not this time (promisi…

By on (tags: git, tfs, categories: tools)