-
Recent Posts
- Software developer images with DALL-E 3
- java.lang.IllegalArgumentException: The Unicode character [デ] at code point [12,487] cannot be encoded as it is outside the permitted range of 0 to 255
- Framework Laptop Review
- Software developer images with DALL-E 2
- Svg-based 3D model in OpenSCAD via Inkscape/DXF
Archives
Categories
Meta
Category Archives: Software
Grails Start – Error initializing the application: null
When you encounter this error, try grails clean. That helps in my case (the error occurs sometimes when running grails run-app from the command line, Grails 2.2.4) | Error [localhost-startStop-1] ERROR context.GrailsContextLoader – Error initializing the application: null Message: null … Continue reading
Posted in Software
Leave a comment
Grails Log to Database with Custom Log4J Appender
When you move to more asynchronous processing with Grails (e.g. as with quartz jobs), there’s no user-visible error when something goes wrong. There’s only the logs, and those aren’t the most prominent place for putting failures of mission-cricital jobs. In … Continue reading
Posted in Software
14 Comments
Resize and Crop All Files to Fixed Size with Imagemagick Convert
Here’s the imagemagick command (in a loop in a Windwos batch file) for doing this to all files: resize to fixed size 100×100, with each dimension being at least 100 (regardless of the aspect ratio, but preserving it) crop the … Continue reading
Posted in Software
Leave a comment
Get H2 Database Version String
For retrieving the server version of a H2 database you connect to use SELECT H2VERSION() FROM DUAL which returns something like 1.3.174 Recently needed this for preventing an application being started with a specific version of H2 (which contained a … Continue reading
Posted in Software
Leave a comment
Grails ClassCastException com.sun.proxy.$Proxy cannot be cast to org.springframework.orm.hibernate3.HibernateCallback
When launching a Grails app, you sometimes get a java.lang.ClassCastException: com.sun.proxy.$Proxy28 cannot be cast to org.springframework.orm.hibernate3.HibernateCallback Just clear the .slcache directory. On windows, that’s %userdir%\.grails\.slcache On *x, it’s something along ~/.grails/2.0.4/.slcache/ Unfortunately, that happens up to several times a week. … Continue reading