Tags
ajax 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 meta-programming mock-objects mongodb msbuild nunit ObjectBuilder oracle orm performance rails rest ruby-on-rails software-development sql subversion validation version-control WebDAV windows-mobile WordPress xmlAds
Archives
Meta
Category Archives: Code
Check Multiple Mercurial Repositories for Incoming Changes
Currently I have a whole bunch of Mercurial repositories in a directory. All of these are cloned from a central repository that the team pushes their changes to. I like to generally keep my local repositories up-to-date so that I … Continue reading
Java Return from Finally
try…catch…finally is the common idiom in Java for exception handling and cleanup. The thing that people may not know is that returning from within a finally block has the unintended consequence of stoping an exception from propagating up the call … Continue reading
USB to Serial Adapters in VMWare
I needed to do some work using a pin pad (a device that allows you to enter a numeric code at a point-of-sale or other system) and needed to test it in a 32bit Windows environment. The pin pad uses … Continue reading
What is the Cost of Not Doing Things?
We’re really good at measuring the cost of some things. We’re good at measuring the cost of a new computers for everyone on the team, we’re good at measuring the cost per hour of a resource on a project and … Continue reading
NoSQL with MongoDB and Ruby Presentation
I presented at the Milwaukee Ruby User’s Group tonight on NoSQL using MongoDB and Ruby. Code Snippets for the Presentation Basic Operations // insert data db.factories.insert( { name: "Miller", metro: { city: "Milwaukee", state: "WI" } } ); db.factories.insert( … Continue reading
MongoDB: MapReduce Functions for Grouping
SQL GROUP BY allows you to perform aggregate functions on data sets; To count all of the stores in each state, to average a series of related numbers, etc. MongoDB has some aggregate functions but they are fairly limited in … Continue reading
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