Category Archives: Web

DRYing Grails Criteria Queries

When you’re writing code, Don’t Repeat Yourself. Now say that 5 times. *rimshot* One of the things that I find myself repeating a lot of in many business apps is queries. It’s common to have a rule or filter that … Continue reading

Posted in Code, Groovy, Web | Tagged , , , | 11 Comments

Using Quartz.NET, Spring.NET and NHibernate to run Scheduled Tasks in ASP.NET

Running scheduled tasks in web applications is not normally a straightforward thing to do. Web applications are built to respond to requests from users and respond to that request. This request/response lifecycle doesn’t always match well to a long running … Continue reading

Posted in .NET, Web | Tagged , , , , | 6 Comments

CruiseControl With a Specific Version of Grails

Continuous Integration is a good practice in software development. It helps catch problems early to prevent them from becoming bigger problems later. It helps to reinforce other practices like frequent checkins and unit testing as well. I’m using CruiseControl (CC) … Continue reading

Posted in Automation, Code, Groovy, Web | Tagged , , | Leave a comment

Integrating ObjectBuilder with ASP.NET

ObjectBuilder is a .NET framework made for building Inversion of Control or Dependency Injection containers. Unlike Spring or Pico, ObjectBuilder is not a full DI framework, instead it’s a framework for building DI solutions. Yes, that’s incredibly weird to me … Continue reading

Posted in .NET, Web | Tagged , , , | 1 Comment

All Database Backed Web Apps are “Just CRUD Apps”

It’s time to end the debate between “Just simple CRUD Apps” and “more complex” apps. Very complex behavior can be expressed through a small set of fairly simple rules. This is often described as emergent behavior or just emergence. The … Continue reading

Posted in Web | Tagged , | Leave a comment

Mongrel Cluster and Apache Need Memory

I use a VPS hosted by SliceHost as my personal server. SliceHost uses Xen to host multiple instances of Linux on a single machine. The performance of this setup has been very good. I have been running: Apache 2.2 with … Continue reading

Posted in Ruby, Web | Tagged , , , | 5 Comments

Interact with REST Services from the Command Line

REST is becoming more popular as a means of implementing Service Oriented Architectures (SOA) as well as merely providing simple remote APIs for interacting with systems. The main reason for this is that it provides a very simple means of … Continue reading

Posted in Ruby, Web | Tagged , | 3 Comments

Making Session Data Available to Models in Ruby on Rails

Ruby on Rails is implemented as the Model View Controller (MVC) pattern. This pattern separates the context of the Web Application (in the Controller and the View) from the core Model of the application. The Model contains the Domain objects … Continue reading

Posted in Ruby, Web | Tagged | 19 Comments

RESTful Rails for Ajax

Ruby on Rails 1.2 added full support for building RESTful services to the already nice web page support. REST is a conceptually simple idea, yet incredibly powerful. REST is a Web based API to an application. It builds on the … Continue reading

Posted in Code, Ruby, Web | Tagged , , | 2 Comments

Using SQL Compact Edition Under ASP.NET

What is SQLCE? SQL Compact Edition is the “low end” version of a SQL database solution from Microsoft. It is a single-file, application managed, database implementation. It doesn’t have all of the bells and whistles of the high end database … Continue reading

Posted in .NET, Web | Tagged , , | 1 Comment