From the category archives:

Web

Rapache on Ubuntu 9.10

November 15, 2009

I’ve just now stumbled across Rapache, a useful GUI tool that makes configuring apache easy. I found it by accident in the Ubuntu Software Center, but unfortunately it would freeze while trying to add a new domain. I searched the web for answers, and found a bug report.
This didn’t specifically reference Ubuntu 9.10 (rather, 9.04) [...]

Read the full article →

Just for a bit of fun… whohasmorefollowers.com

May 4, 2009

Recently I jumped on the Twitter bandwagon and created whohasmorefollowers.com - a simple service that lets you compare the number of followers for 2 Twitter users.
This weekend I added a game feature to it - the player is presented with 2 random twitter users (from the top 50) and is challenged to guess which user [...]

Read the full article →

Redirecting javathinking.com to www.javathinking.com

April 18, 2009

I thought it would be a good idea to redirect requests to http://javathinking.com to http://www.javathinking.com and I found out how to do that easily here.
Basically I just needed to add the apache directives:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^javathinking.com
RewriteRule ^(.*)$ http://www.javathinking.com$1 [R=permanent,L]
In ISPConfig this can be done easily through the administration console rather than editing the apache config [...]

Read the full article →

grails-selenium-0.5

September 16, 2008

I’ve just released a new version (0.5) of the selenium plugin, which fixes compatibility problems with Grails 1.0.3. Hopefully all is well now and I’d like to apologise to all the users out there who ran into problems. If you encounter any more issues, you can email me at paul@javathinking.com.
On another note, it would be [...]

Read the full article →

No Dialect mapping for JDBC type: -1

April 23, 2008

This Hibernate error came at me out of the blue while working on FilmSuggestions.com - I innocently added a constraint to one of my Grails domain models, setting the maxSize of one of the fields to 2000. This changed the table schema making the column type TEXT instead of VARCHAR.
The problem came from a native [...]

Read the full article →

Wordpress error - Allowed memory size of ## bytes exhausted

April 4, 2008

I just came across a problem using wordpress that stopped everything working - any request to the Wordpress site resulted in a blank page. In the log file for the host, I could see:
PHP Fatal error:  Allowed memory size of 8388608 bytes exhausted (tried to allocate 14592 bytes) in <path to a plugin php file>
Removing [...]

Read the full article →

grails-selenium-0.4

March 21, 2008

This information is out of date - please see http://www.grails.org/Selenium+plugin
Version 0.4 of the grails selenium plugin is now available.
This version adds:

scripts to create and run tests
a postResults url for displaying the final test results

Details are as follows:
run-selenium
Runs Selenium in the specified browser.
Specify the path to your browser as a command line parameter i.e.
grails run-selenium /usr/bin/firefox
or, [...]

Read the full article →

Firefox profiles

March 16, 2008

If you share a login with someone else (ie. family) Firefox profiles can be very useful. Likewise, if you are a developer and you have several different contexts or modes of operation, profiles can make life a lot easier.
I use them at home with family members - you can set each person up with their [...]

Read the full article →

grails-selenium-0.3

March 13, 2008

Version 0.3 of the grails selenium plugin is now available.
This version:

Adds GSP support for writing tests
Fixes bug where hidden directories were shown as suites
Fixes bug on windows with invalid URIs to html tests

To use GSP to generate the tests, use the <sel:test> tag, followed by nested <sel:row> tags.
<sel:row> can take either:

one ‘line’ attribute where [...]

Read the full article →

Regression testing grails plugins

March 12, 2008

For regression testing the grails plugins I’ve released, I have a shell script that:

cleans up any previous runs
packages the current code for the plugin OR downloads a release from my web site
creates a new grails app
copies preprepared resources into this new grails app
installs the plugin

Now all I have to do is run the application and [...]

Read the full article →