Author Archives: abatishchev

How to re-create symlinks of VM configs in Hyper-V using PowerShell

Hyper-V keeps VM config at %ProgramData%\Microsoft\Windows\Hyper-V\Virtual Machines\ as a symbolic link (aka symlink) to the original location. You may get them broken due to various reasons, e.g.: Server disaster and then recovery Upgrade to the next version of OS/Hyper-V and … Continue reading

Posted in Infrastructure | Tagged , | Leave a comment

How to select Azure subscription if you have more than one using PowerShell

If you have more than one Azure subscription in your account and try to upload a vhd using the instruction: Get-AzurePublishSettingsFile Import-AzurePublishSettingsFile d:credentials.publishsettings Add-AzureVhd -LocalFilePath d:my.vhd -Destination http://example.com/blob/container You may get an error saying that selected account doesn’t have given … Continue reading

Posted in Infrastructure | Tagged , | Leave a comment

Could not load file or assembly ‘Microsoft.AnalysisServices, Version=11.0.0.0

If you’re getting the following error upgrading TFS 2012 RTM to ver. 2012.3: TF255356: The following error occurred when configuring the Team Foundation databases: TF400711: Error occurred while executing servicing step Upgrade Warehouse for component UpdateWarehouseVersion during FinishInstallUpdates: Could not … Continue reading

Posted in Infrastructure | Tagged , , | Leave a comment

How to issue a self-signed certificate

To have a properly working SSL web site you have to assign a SSL certificate to it. A real one costs real money. Easily especially for development to issue a self-signed one. To create certificates I will use MakeCert.exe that … Continue reading

Posted in Infrastructure | Tagged | Leave a comment

TDD kata by implementing LINQ

I just discovered that what I’m writing right now is a new TDD kata. Very interesting and useful TDD kata. Interesting because usual C# developer uses LINQ extension methods on every day basis and it is interesting to re-implement by … Continue reading

Posted in Programming | Tagged , | Leave a comment

The Cult of Legacy

In our company’s software development division due to many reasons, most of them are unknown to me, we apparently have The Cult of Legacy: You can discuss anything but Legacy You can criticize anything but Legacy You can refactor anything … Continue reading

Posted in Programming | Tagged | Leave a comment

Your constructor smells

A code like the following looks as a “code smell” definitely: public ProductProvider( IProductDataProvider dataProvider = null, IProductDecorator decorator = null, IProductSearchCriteriaParser parser = null, IProductInventoryDataProvider inventoryProvider = null, IProductSessionDataProvider sessionProvider = null, IContentProvider contentProvider = null, IProductQueueProvider queueProvider = … Continue reading

Posted in Programming | Tagged | 1 Comment

Serfs you were and serfs you are

A wonderful phrase once said by Richard II to peasants in the of Peasants’ Revolt of 1381: Serfs you were and serfs you are; you shall remain in bondage, not such as you have hitherto been subject to, but incomparably … Continue reading

Posted in Thoughts | Leave a comment

Isolateware

After discussion with my colleague and considering the policies and practices adapted and used in our company towards globalization and isolation of software to write and support, I want to try to formulate a software development methodology anti-pattern: A software called … Continue reading

Posted in Programming | Tagged | Leave a comment

“Black Hole” software anti-pattern

During digging into eCommerce5 codebase and discussing ongoing impressions with my colleague,  I just discovered a software design anti-pattern I called “Black Hole”. As a workaround I declare a rule: Any variables passed into constructor then should be available through a … Continue reading

Posted in Programming | Tagged | 2 Comments