
Screenshot for the Betfair PHP Demo application
Betfair PHP Demo is simple application developed for a customer wanting a basic application which they could use as a framework for building a more complex betting interface.
The application is developed in PHP5 and uses SOAP to interact with Betfair to login, select markets, get account details and place bets. Page data refreshes automatically and market prices are refreshed every 1 second.
The design uses object-oriented design patterns to keep the code well-structured and ready for extension.
The code was fully documented including UML class and sequence diagrams.

The Chocolution screenshots.
The Chocolution sell healthy, raw chocolate making kits. Their chocolate is created using methods that preserve the natural goodness in the cacao bean which mainstream commercial processes destroy.
The site was completed in collaboration with Edda Jones who provided the designs.
Morley Computing used the designs to build the site using HTML, PHP and CSS. The website also uses a custom shopping cart built using the Google Web Toolkit (GWT). The cart was integrated with PayPal Express Checkout using the PayPal API.
Visit The Chocolution website.
When enabling Drupal modules a 500 Internal Server Error can often appear with the default installation. Too identify the cause of the problem look in the error_log file for your web server.
Each time I have encountered this problem the cause has been due to the PHP memory limit being exceeded. The typical error message if you have allocated 16MB is:
PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 77824 bytes) in /xxx/yyy/zzz/xxx/drupal/modules/node/node.pages.inc on line 221
There are several very easy ways to fix this by increasing PHPs memory limit:
memory_limit = 16M to your php.ini file (recommended, if you have access)
ini_set('memory_limit', '16M'); in your sites/default/settings.php file
php_value memory_limit 16M in your .htaccess file in the Drupal root
See: http://drupal.org/node/76156 for more details.

QuickFire: Custom Betting Software for the Betfair Exchange
QuickFire is a custom Java application developed to operate with the Betfair Exchange. Our client required a simple application to select markets and simplify/speed-up the trading process during in-play horse races for both the main and Australian exchanges.
The application was built using Java 1.6 and our own Core Betfair API, a custom, robust platform we have developed to ease and enhance development of Betfair applications.
Although the application is built entirely in Java, making it capable of running on any operating system, it was also delivered with a custom installer for Windows for ease of use.
More details: Custom Betfair Development.
Morley Computing have just completed a customisation of the BizDirectory PHP application on behalf of the British Thought Field Therapy Association (BTFTA).
The existing PHP application provided the essential functionality but it was also necessary to modify the PHP interface with PayPal for paid advertising.
If you want to do a recursive chmod on a set of files below a given directory or folder using the bash shell you can do the following:
find . -type f -name ‘*.php’ -exec chmod 644 {} \;
This command can be easily adapted to work for other file types or modes. The ‘.’ following ‘find’ specifies the root directory for the operation.
How to chmod all folder/directories below the current directory…
find . -type d -exec chmod 755 {} \;
Alternatively, chmod on all directories below a given directory (./somedir)
find ./somedir -type d -exec chmod 755 {} \;
A quick example of how to get the name of the localhost using the Java InetAddress class.
String hostname = null;
try {
InetAddress localhost = Address.getLocalHost();
if (localhost != null) {
hostname = localhost.getHostName();
}
} catch (UnknownHostException e) {
e.printStackTrace();
}
System.out.println("Hostname is " + (hostname != null ? hostname : "Unknown") );
Configuring the Eclipse IDE to use a local CVS (CVSNT) repository on windows isn’t an entirely obvious procedure since CVS and Eclipse are geared to working on Linux/Unix. It is actually quite simple to do but if you miss a couple of points you could spend hours fiddling with it without any luck.
The following article by Seth Thompson walks you through the process:
Seth Thompson’s CVSNT + Eclipse = Pain FAQ

Poster for Java Mobile Application (J2ME)
The ‘Discover Grassington’ Java (J2ME) mobile phone application developed by Morley Computing on behalf of AudioTrails.co.uk for The Yorkshire Dales National Park Authority has now been launched . See the attached poster for details. Visitors to Grassington in the Yorkshire Dales can now discover the town via the latest mobile technology. Mobile phone users can download a free guide from the National Park Centre by using the bluetooth feature on their mobile – no phone reception required. The application is a custom-built Java application built using the J2ME Polish Framework for MIDP compatible mobile phones. Visit the websites:
