The miscellaneous mutterings of an experienced Umbraco Developer.

Posted in   Development #Git

This is more a note to myself put here in case anyone searching for the same solution might find it useful. Yesterday I pulled a remote into the wrong local branch and couldn't find a way to reset the branch again to undo my mistake. Fire up your chosen command prompt, which for me is currently the Console2 Command Prompt and enter the following command. [code]git reset --hard ORIG_HEAD[/code] This solution is suitable for undoing a pull or a merge. Full details on the git-reset Manual Page. I still find Git a bit harder to master than Mercurial so I can see me adding a few more short posts on here for my own future reference.…

Read this article

Posted in   Software #Windows

I am a sucker for a good looking GUI so when an opportunity presents itself to try and improve my workspace to make it more easy on the eye I will generally take it up. Recently I read a post by Scott Hanselman 'Console2 - A Better Windows Command Prompt' and I immediately got myself over to SourceForge to download a copy of Console2 for myself. The project describes itself as "a Windows console window enhancement. Console features include: multiple tabs, text editor-like text selection, different background types, alpha and color-key transparency, configurable font, different window styles". I'm not going to cover how to configure your instance of the Console because Scott's post already does a very good job of this, however, what I do want to share with you is my own configuration and how I have made it a bit more useful for me. First of…

Read this article

Posted in   Development ,   Umbraco ,   Feature ,   UCommerce

Once again my recent work has brought me back around to messing around with Globalisation issues again. This time it is with regards to writing a customer payment provider for UCommerce implementing the HSBC XML API. Certain fraud rules were being flagged on all transactions during testing due to an incorrect or missing country code, checking the documentation again it reads "The 3 digit ISO country code for the customer’s country", this is in fact not the alpha but numeric country representation as defined by ISO 3166 Country Codes. Unfortunately this cannot be obtained through the .Net Framework alone as I have done with similar issues previously so I needed to write an extension method as advised by Søren Spelling Lund in this forum post. In case this is of use to anyone else I am posting up my extension method as this will also have uses outside of…

Read this article