WordPress App Builder – Automatically create iOS and Android Apps for your WordPress Site

Create your a dedicated mobile app for your WordPress site by using a simple automated tool for creating an Android or iOS app. No programming or technical knowledge is required, simply install the plugin and follow the six steps to generate your app for submission to the app store. Find out more at App Macro […]

Read more

Hong Kong Horse Racing Schedule

For the 2014 / 2015 season the Hong Kong Jockey Club has announced the schedule for races. Please follow the appropriate links: Entire 2014/2015 Hong Kong Racing Calendar and Schedule Happy Valley 2014/2015 Hong Kong Racing Calendar and Schedule Shatin 2014/2015 Hong Kong Racing Calendar and Schedule

Read more

C# Strings – Getting Started with Strings

Working with strings is a very common task for most C# developers. The .NET Framework offers good variety of tools for working with strings, but care must be taken as there are several gotchas to trip up the beginner. The first thing to note about strings in .NET is that they are Reference Types. Reference […]

Read more

Passing Parameters in C#

There are three primary methods of passing parameters to C# methods: Regular Parameter Passing This is passing parameters with no modifying keywords : void MyMethod(Student studentObj, int aNumber) { aNumber += 5; studentObj.Name = “Jon”; } In the above example MyMethod takes two parameters – a Student object and an Integer. Note the difference between […]

Read more

C# Custom Number Formatting

Very often the inbuilt numerical formatting in C# will be insufficent and you will want to apply the custom formatting for your numbers. The String.Format method is very flexible and can be used to apply custom formatting rules. The # character informs the Format method how to format the numerical value, for example to forma […]

Read more

Formatting Numerical Data in C#

C# ships with several inbuilt formatting specifies which can be used to quickly format a number, for example the ‘c’ specifier will format the number as a currency: double dbl1 = 9999999.9999999; outputStr = string.Format(“This is the currency format {0:c}”, dbl1); This will output the numerical value as a currency based on the user’s current […]

Read more

Strings are Immutable!

Working with strings is a common task in most apps but there are several ‘gotchas’ that can arise due to the immutable nature of a  String in .NET. Immutable simply means that once created it doesn’t change. This seems strange at first since the value of a string variable can indeed be altered : string […]

Read more

Groupon – A Tech Company With Zero Research and Development

This Post was originally published at Core Earnings.com In its offering prospectus Groupon billed itself as a ‘local e-commerce’ company which brings ‘the brick and mortar world of local commerce onto the internet’ which clearly defines it as an online tech business. It is therefore nothing less than astonishing to see no Research & Development […]

Read more

Using the .NET Stopwatch class to Profile Your Code

The Stopwatch class in the System.Diagnostics namespace can be used a as a basic tool to profile blocks of .NET code. System.Diagnostics.Stopwatch timerObj = new System.Diagnostics.Stopwatch(); timer.Start(); Decimal totalDec = 0; int limit = 1000000; for (int i = 0; i < limit; ++i) { totalDec = totalDec + (Decimal)Math.Sqrt(i); } timerObj.Stop(); Console.WriteLine(“Sum of square […]

Read more

Ensure a .NET App Works in Both 32 bit and 64 bit Environments

With 64 bit versions of Windows fast becoming the standard it is imperative that an app work in both 32 bit and 64 bit environments. This done using a basic configuration setting, with a few caveats of course. In Visual Studio in the project’s build options you can select the app’s Platform target, which can […]

Read more