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

I recently had to set up a few CentOS servers with PHP , MySQL , memcached and ketama, and ended up writing this script to do it. You can grab the whole thing from subversion (you’ll need the php folder as well). ...

June 23, 2008 · 3 min · Dave Perrett

Subversion Server on CentOS

Install a couple of packages via yum : $ sudo yum install httpd subversion mod_dav_svn ...

March 27, 2008 · 2 min · Dave Perrett

Format JSON with PHP

...

March 11, 2008 · 2 min · Dave Perrett

jQuery i18n Translation Plugin

2013-03-28 Update : This plugin is now hosted on GitHub 2010-09-29 Update : This plugin has been moved from subversion to git, and now has a dedicated project page . Subversion updates will be discontinued, so please update your links to point to the latest version! ...

February 21, 2008 · 1 min · Dave Perrett

jQuery SimpleColor Color-Picker

2013-03-28 Update : This plugin is now hosted on GitHub 2010-09-29 Update : This plugin has been moved from subversion to git, and now has a dedicated project page. Subversion updates will be discontinued, so please update your links to point to the latest version! ...

December 18, 2007 · 1 min · Dave Perrett

Adding Appfuse Dependencies

I recently had trouble importing the com.sun.media.jai imaging library into appfuse : The import com.sun.media.jai cannot be resolved To add a dependency in your pom.xml, first add the new repository (may not be strictly necessary if the library is already in the default appfuse repositories) : ...

December 5, 2007 · 1 min · Dave Perrett

Default Values With Hibernate Annotations

To set the default value of a field with Hibernate, you can use the columnDefinition argument : ...

December 5, 2007 · 1 min · Dave Perrett

Get complete AppFuse sources

To get the complete, exploded source of an AppFuse application, run : $ mvn appfuse:full-source

November 28, 2007 · 1 min · Dave Perrett

Appfuse "failed to lazily initialize a collection of role"

If you are getting a failed to lazily initialize a collection of role error in AppFuse , you need to un-comment the lazyLoadingFilter filter and associated filter-mapping in src/main/webapp/WEB-INF/web.xml . <filter> <filter-name>lazyLoadingFilter</filter-name> <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class> </filter> <filter-mapping> <filter-name>lazyLoadingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>

November 27, 2007 · 1 min · Dave Perrett

Skip AppFuse Tests

To skip tests when compiling/running AppFuse applications, add the -Dmaven.test.skip=true argument to your Maven call : $ mvn jetty:run-war -Dmaven.test.skip=true

November 27, 2007 · 1 min · Dave Perrett