Midnight Thoughts about MVVM
29 Jan 2012
What keeps bothering me about MVVM, is that user-defined views behave very differently from built-in controls. We use built-in controls like this: <ListBox ItemsSource=... SelectedItem=... /> If, however, ListBox were our own user control, it probably have looked like this: <ListBox DataContext="{Binding ListBoxViewModel}" /> class ListBoxViewModel { public IEnumerable<bject> ItemsSource { get; set; } public [...]

Perforce + Unicode = Eplic Fail
25 Jan 2012
Just created a Visual Studio Add-in using the wizard. The source files created by the wizard turned out to be UTF-16. The files I create manually are UTF-8. It is all fine until you check in UTF-16 files into Perforce. It sees line endings like this: 0D 00 0A 00 and “fixes” them by inserting [...]

Playing with Entity Framework
03 Jan 2012
As certain other “highly integrated” Microsoft technologies, entity framework seems to be high maintenance when it comes to refactoring and moving things around. To move an .emdx file from one project to another, one needs to: Move the file itself Add a bunch of assembly references to the project and to the system.web/compilation/assemblies section of [...]

Outlook/Exchange Search Performance…
06 Dec 2011
sucks. I did a search for a message from John Doe sent within last month that contains word “foo”. Took about 5 minutes on a folder with about 9300 items. It takes seconds on my Outlook Express (if I limit the date range like that). And this is not a bug, this is a feature: [...]

C++
05 Dec 2011
C++11 adds a new non-const reference type called an rvalue reference, identified by T&&. Say what?! Another grammar ambiguity? Now x && y could be a variable declaration or an expression, depending on what x and y are. Nice.

HTC Droid Incredible 2
05 Dec 2011
Not really a programming topic, but… Had it for a while now – got it from work. Very lightweight and confortable phone. But I have Motorola Droid to compare, so… 1. The speaker sucks, as it does in any other HTC phone I saw. The volume on speaker is barely more loud than the volume [...]

Windows 8: Dazed and Confused
20 Oct 2011
So, it looks like we get two operating systems for the price of one. It has two styles of apps: one more suitable for a phone (a.k.a. “Metro” style) and the other suitable for desktop. Metro apps are always full screen, they cannot be closed and do not support right click. The whole experience is [...]

Creating ASP.NET membership database: no funky passwords!
29 Aug 2011
To simplify creating and managing users in ASP.NET Microsoft created a lot of infrastructure that takes care of this boilerplate task. Part of the infrastructure is aspnet_regsql.exe utility that is supposed to create relevant tables on an SQL server. The trouble is, if you use SQL server authentication, the utility does not like passwords with [...]

JAX-WS and @XmlRootElement
09 Aug 2011
Just finished a fight with JAX-WS. It turns out that if I have a method like this: @WebService(targetNamespace=...) @SOAPBinding(parameterStyle = SOAPBINDING.ParameterStyle.BARE /* don't ask */) class MyWebService { @WebMethod MyClass getMyStuff(); } then generated WSDL depends on whether NyClass has @XmlRootElement annotation. If it does, you’re going to have a WSDL with empty input (client [...]

It’s the solar flares, stupid
08 Aug 2011
“Three large explosions from the sun over the past few days have prompted U.S. government scientists to caution users of satellite, telecommunications and electric equipment to prepare for possible disruptions” (from Slashdot). That’s it. That explains it. Everyone is just affected by the pesky magnetic fields. Why S&P should be any different? “Mommy, I lost [...]