Archive for \'Programming\'



Setup 64bit CentOS (PHP5, MySQL, memcached, ketama)

A script to setup 64bit CentOS with PHP5, MySQL, memcached and ketama.

Force MySQL Encoding to UTF8

How to force MySQL to use UTF8 encoding by default.

Browser detection with PHP

How to set up and use PHP’s get_browser() function to detect client browsers.

PHP5 on OS X Leopard

How to get PHP5 running on an OS X Leopard machine.

Subversion Server on CentOS

How to set up a subversion server with apache and CentOS

Format JSON with PHP

A PHP function for formatting and indenting a JSON string.

jQuery i18n Translation Plugin

A jquery plugin for doing client-side i18n translation.

Find Prime Factors with Python

A Python function for finding the prime factors of a given number.

Default Values With Hibernate Annotations

How to set the default value of a field with Hibernate.

Adding Appfuse Dependencies

How to add a dependency to AppFuse.

Complex Constants in Java

How to assign a complex class (such as a HashMap / ArrayList etc) as a constant in Java.

MySQL Delete On Joined Tables

How to delete records from MySQL using joined fields.

Get complete AppFuse sources

How to get the complete, exploded source of an AppFuse application.

Skip AppFuse Tests

How to skip tests when compiling/running AppFuse applications.

Appfuse “failed to lazily initialize a collection of role”

Fix the failed to lazily initialize a collection of role error in AppFuse