Calling a function on the power set of a sequence

Author: Dave Cassel  |  Category: Software Development

[Update: This post was originally labelled “Calling a function on all permutations of a sequence”. John Boyer was kind enough to point out that the function works for power sets rather than permutations, so I’ve updated this post accordingly. Thanks, John!] A project I’m working on required me to call a function on the power […]

Do it yourself

Author: Dave Cassel  |  Category: Entrepreneurism

I have a little story to tell that I hope will inspire someone to pursue an entrepreneurial goal. I came across a notebook recently. I don’t remember exactly when I used this one, but it was somewhere around ’97 or ’98. Back then, I was playing chess on a web site called ItsYourTurn.com. I loved […]

A RESTful chess service: part 5

Author: Dave Cassel  |  Category: Software Development

Welcome to part 5 of my series on designing a RESTful chess service. Don’t worry — today’s is the last of the planning posts, then we get to some code. The last two steps laid out by the authors of RESTful Web Services are to consider the typical course of events and to consider error conditions. […]

A RESTful chess service: part 4

Author: Dave Cassel  |  Category: Software Development

This is part four in a series of posts walking through the process of building a RESTful chess service. I’ve been slacking off a bit in the pace of my posts, but hopefully that will pick back up — I have a bit more travel coming up, and evenings spent hanging out in hotel rooms […]

A RESTful chess service: part 3

Author: Dave Cassel  |  Category: Software Development

In part 2 of this series, I defined the data set and resources for my service. I’ve been following the procedure listed in RESTful Web Services for how to lay out the service. Here are those steps again: Figure out the data set Split the data set into resources For each resource: Name the resources […]

A RESTful chess service: part 2

Author: Dave Cassel  |  Category: Software Development

In part 1 of this series, I laid out my goals for a RESTful chess service, based on the RESTful Web Services book from the O’Reilly series. The authors present a procedure for designing services, the first two of which are: Figure out the data set Split the data set into resources The use cases […]

A RESTful chess service: Part 1

Author: Dave Cassel  |  Category: Software Development

I recently got a copy of RESTful Web Services, a book in the O’Reilly series that I read some time ago. I first read it when I was introduced to REST as an architectural style. It helped me get my head around a number of the concepts. I decided that I want to refresh my […]

Why is it flickering?

Author: Dave Cassel  |  Category: Software Development

A friend of mine is learning JavaScript and jQuery and I recently helped her out with a problem she was having. She wanted to mouse over an image and have another <div/> appear, giving information about the image. Okay, nothing real strange there. But in her initial implementation she would mouse over the trigger image, […]

Passing a sequence to xdmp:eval()

Author: Dave Cassel  |  Category: Software Development

When using MarkLogic Server, you’ll sometimes need to execute a command against a different database than the one associated with your application. Enter the xdmp:eval() function. eval() lets you execute any code you can put into a string. Among its several options is <database/>, allowing you to execute a command against a different database. As […]

Upgrading MarkLogic server on Ubuntu 9.10

Author: Dave Cassel  |  Category: Software Development

There are other posts out there describing how to install MarkLogic Server on Ubuntu versions 9.04 and 8.10. This post will update these directions for Ubuntu 9.10 and go over the steps for upgrading from MarkLogic 4.1-2 to 4.1-4. It’s a minor update, but it’s the first time I’ve upgraded my install; might as well […]