Tags
ajax ant apache asp.net Automation blogging capistrano compact framework continuous integration cruisecontrol csharp database DOJO-Toolkit dsl erlang exercises firefox functional programming grails groovy hibernate hql HTML Java JSON Life mock-objects msbuild nunit ObjectBuilder oracle orm performance rails rest ruby-on-rails software-development spam sql subversion validation version-control WebDAV windows-mobile WordPress xmlAds
Archives
Category Archives: Code
MongoDB Replication is Easy
Database replication with MongoDB is easy to setup. Replication duplicates all of the data from a master to one or more slave instances and allows for safety and quick recovery in case of a problem with your master database. Here … Continue reading
MongoDB and Java: Find an item by Id
MongoDB is one of a number of new databases that have cropped up lately eschewing SQL. These NoSQL databases provide non-relational models that are suitable for solving different kinds of problems. This camp includes document oriented, tabular and key/value oriented … Continue reading
Random but Evenly Distributed Sets of Numbers
Let’s say one is a computer programmer and let’s say one’s wife (or roommate; or significant other) does social science research (a totally hypothetical scenario of course). When doing social science research one needs to create randomized groups of participants. … Continue reading
Posted in Code, Python
Leave a comment
Announcing Grails Constraints Custom Domain Constraint Plugin
I’ve released my first public Grails Plugin today. The Grails Constraint plugin gives you the ability to create custom Constraints that you can apply to your Domain classes to validate them. These are applied and act just like the built … Continue reading
Struts2 Map Form to Collection of Objects
The Struts2 documentation contains examples that are often basic at best which can make it challenging to figure out how to do things sometimes. I was working on creating a form that would allow me to select values from a … Continue reading
Password Strength Validation with Regular Expressions
Regular Expressions are both complex and elegant at the same time. They can be made to look like someone was just randomly hammering on their keyboard. They are also an incredibly efficient and elegant solution to describing the structure of … Continue reading
Scala and Adding New Syntax
One interesting thing about some languages is their support for adding new syntax. While all languages have the ability to add new functions or types some have specific properties that make it easy to add what looks like new built-in … Continue reading
Grails Embedded Classes ClassCastException
Using ORM tools allow you to map the data to a database independently of how your object model looks. Grails supports one-to-many and one-to-one relationships if you want to have the data in different table. But what about when you … Continue reading
Update Table Data in Grails using Ajax Calls
Using Ajax for simple forms can offer users a very clean, simple and fast way to input data. I came across a situation recently where I was looking into replacing a document based workflow with an application. The documents themselves … Continue reading