Recently I had an opportunity to review the “Essential Slick” book published by Underscore.io.
The overview on the book page states that this is a book aimed at intermediate Scala developers who wish to quickly become productive with the Slick database library. Having read the book, and before delving into the details, I can confidently say that it provides an excellent guide to working with Slick.
The book is structured as follows:...
Fuzzy Logic Example #2 Introduction Few months ago I came across a paper titled, “Animated Fuzzy Logic” by G. Meehan and M. Joy (pdf). The abstract of the paper is as follows:
In this paper we aim to give an introduction to fuzzy logic using the language Haskell to implement our solutions. We shall see how the high-level, declarative nature of a functional language allows us to implement easily and efficiently solutions to problems using fuzzy logic and, in particular, how the presence of functions as first-class values allows us to model the key concept of the fuzzy subset in a natural way....
Fuzzy Logic Example This example is taken from the second edition of the “Artificial Intelligence: A Guide to Intelligent Systems” book by Michael Negnevistky.
The problem is to estimate the level of risk involved in a software engineering project. For the sake of simplicity we will arrive at our conclusion based on two inputs: project funding and project staffing.
Step 1 The first step to convert the crisp input into a fuzzy one....
Better iTerm on Leopard iTerm, the replacement for the default Terminal.app, has been around for a long time. I have resisted using it for a variety of reasons. At one point it was running far too slow on my machine. After that it was a bit buggy. However, a couple of days ago Terminal.app crashed at took with it an unholy amount of work in progress. Perfect opportunity to give iTerm a shot....
Working with Vim and IPython Note: the text below is not for the faint-hearted. Setting up Vim to communicate with IPython is currently not very straightforward. The situation will improve soon.
When I write Python code I tend to use IPython quite a bit to test and experiment. Currently this means quite a bit of reloading and writing test code in the IPython shell. I’ve always been a little jealous of the Emacs folks for being able to communicate with the Python shell with ease....
The new Matplotlib book shows how to animate line drawing. What I really needed was bar graphs. I didn’t see an example of animating bar graphs in the book (probably because it is follows naturally from the line animation example). The bar graph documentation for matplotib shows how to create a set of bar graphs. The code for animated bars is below.
import sys from PyQt4 import QtGui from matplotlib.figure import Figure from matplotlib....
Finally figured out how to make bash delete words the same way Vim does. For starters I enable vi editing mode in readline. So, when i press Ctrl-W I expect bash to delete up to the previous word delimiter. By default bash/readline deletes up to the previous space. So, to enable the use of punctuation as a word delimiter while using vi editing mode one has to use the following in the ~/....