How to spot the differences.

Ok.. first of ..  SO what .

Reality – once you try this you will NEVER have an issue finding the differences between two similar pictures. As a test try finding the missing star in the bottom image without it.


It took me literally seconds to spot it after following the instructions on the above page


How to copy files from One Project to another during build – C#

A couple of key points.

  • There are a some special variables you can use to aid you.
    $(SolutionDir) and $(ProjectDir) These will always resolve to where the project is sitting and remove you need to have to script out the entire path.
  • Xcopy is the tool you need to do the copy, but at the end of the command you need to add the /Y parameter to ensure you don’t exit with “code 2″
  • The Place you need to add this to make sure the copy takes place is the “Build Events” tab of one of you solutions project directories


xcopy “$(SolutionDir)ControlProject\*.ascx” “$(ProjectDir)UserControls\” /Y

IN the above example, all ascx files are copied from a directory under the Solution (in my case a project that contains a number of UserControls) to the local project’s UserControls directory.

The /Y specifying that we will overwrite any existing files/

Validation of viewstate MAC failed. FIXED!

Have you ever experienced the good old “Validation of viewstate MAC failed.” Machine Key etc…

I had read a lot of different posts on various sites relating to this but just recently found a soulution. Most posts tend to hint at the Machine.config file (which you cant touch in a hosted environment) and or altering the Pages key of the web.config – which is most likely not going to work.

The trick is to actually add and encryption key to your web.config, it should be added to the system.web section.

The following link will create a machine key “Key” for you.

it should look something like..

<machineKey    validationKey="A7981C75ECB13C5626FBCD54CBC22786DD54480D5D37B3C9B19CE15CAE400F46E66F59BEF98BB82D3FBB4E4C500F697A1BFFBF43D184E240B589435DC66D3732"   decryptionKey="27186006621354C85C4154DB9F38410C8AA935322816E4C0E574EF0063DA3006"   validation="SHA1"   decryption="AES" />

Paste that into your web.config and say good bye to that annoying error!!


Rebuilding the UMBRACO Undex’s

There is an off chance that your index files in UMBRACO ( umbraco.config ) may become corrupt. If this is the case there is a nice built-in utilitie that can be used to rebuild all the index’s and fix the issues that your site is experiencing.

add the following to your website’s root address “Umbraco/dialogs/republish.aspx?xml=true”

e.g. if the site was you would enter

Follow the prompts.

I found myself having to use this to fix a problem where the Dynamic menus were adding nodes that didn’t exist and breaking links on nodes that did.

Quick and easy fix

Well done umbraco team.


Android codes

Android is going to be very popular now these days.Android market provides wide range of applications for fulfill all your needs.As a Android user all you need to know about Android OS. So here i m sharing with you some secret code. This code helps you to access some hidden option which are generally not given as default.Plz use this code carefully because if you are unaware of these advanced settings then it may be harmful for your phone.

*#*#7780#*#*   – This code is used for factory restore setting.This will remove google account setting and System and application data and settings.
*2767*3855#   -  This code is used for factory format, and will remove all files and settings including the internal memory storage. It will also reinstall the firmware.
*#*#4636#*#*   – This code show information about your phone and battery.
*#*#273283*255*663282*#*#*    – This code opens a File copy screen where you can backup your media files e.g. Images, Sound, Video and Voice memo.
*#*#197328640#*#*    -  This code can be used to enter into Service mode. You can run various tests and change settings in the service mode.
*#*#7594#*#*   -  This code enable your “End call / Power” button into direct poweroff button without asking for selecting any option(silent mode, aeroplane and poweroff).
*#*#8255#*#*  -  This code can be used to launch GTalk Service Monitor.
*#*#34971539#*#*    -  This code is used to get camera information.Plz avoid update camera firmware option.
WLAN, GPS and Bluetooth Test Codes:
*#*#232339#*#* OR *#*#526#*#* OR *#*#528#*#*   -  WLAN test (Use “Menu” button to start various tests).
*#*#232338#*#*    -  Shows WiFi MAC address.
*#*#1472365#*#*    -  GPS test.
*#*#1575#*#*    -  Another GPS test.
*#*#232331#*#*   -  Bluetooth test.
*#*#232337#*#    -  Shows Bluetooth device address.
Codes to launch various Factory Tests:
*#*#0842#*#*   – Device test (Vibration test and BackLight test)
*#*#0588#*#*    – Proximity sensor test
*#*#0*#*#*    -  LCD test
*#*#2664#*#*   -  Touch screen test
*#*#2663#*#*    -  Touch screen version
*#*#0283#*#*   -  Packet Loopback
*#*#0673#*#* OR *#*#0289#*#*    -  Melody test
*#*#3264#*#*    -  RAM version
Code for firmware version information.
 *#*#1111#*#*   -  FTA SW Version
*#*#2222#*#*   – FTA HW Version
*#*#44336#*#* – PDA, Phone, CSC, Build Time, Changelist number
*#*#4986*2650468#*#*   – PDA, Phone, H/W, RFCallDate
*#*#1234#*#*  – PDA and Phone

CMS Systems.. (UMBRACO)

I have reciently started looking at what i feel to be a superior CMS system that is both intuative and powerfull. It’s name is UMBRACO and is based on the .net framework. To make learning the system easy, they have a great series of video tutorials that will allow a dotnet developer to quickly take advantage of this platform and end users to do much the same.

From the developers perspective after you have loaded the site on your system I would recomend the following videos (free) – it is also worth mentioning that a lot of the videos have tutorial documents that are linked to them at the bottom right hand corner.. These are defniitely worth grabbing as they contain sample code used in the tutorial and can help to jump start understanding.

So.. in order of what makes sense of you are thinking about creating a “Custom” umbraco installation.

(start here - select free to eliminate videos that you cant view – but it is worth getting the full series.. I would just review all the free content before you purchase your subscription..)


PS.. as i work through the tutorials and gain a greater undrstanding this page will get updated (probably quite quickly)


Java Script Libs worth looking at.

Of course you need to start with

JQuery, JQueryUI, JQuery Mobile but there are a number of other libs that are worth keeping an eye on.







Irish View of Yhacting (olympics)

This is simply brilliant!

Great tips on searching google!

Dealing with Mulitple (same key) Query String items in C#

Today i bumped into a problem that was quite easy in the (good old) days of traditional ASP.

Our webapplication needed to pass multiple id’s to a page in it’s query string. The query string was built by simply “joining” a list of id’s and passing that into the url.

var QString =String.Join("&id=", item.OrderConfirmationData.VendorOrders.Select(x => x.VendorOrderNumber))

This would build a query string that looked something like

Reading it back via server side code using somehting like to string returned a comma seperated string. (that might not have been bad if some of the values had comma’s in them. :)

e.g. 1,23,43,103

This inturn caused us to split the results to and array based on the comma. arghhh that was when the fun started.

So.. the solution.

The querystring object in .net has a .GetValues method. If you pass in the Parameter name, it return a string array of values..

At that point parcing the values is easy and clean. e.g.

var values = Request.QueryString.GetValues("id");
foreach (var item in values)
litSPLIT.Text += item + "<br />";