alvin's blog

The stuff I post on Facebook: A trip to Dunkin' Donuts

(In case you ever wonder what I post for my friends on Facebook, the posts often look like this. It may be helpful to know before reading it that I’m known to have a bit of a donut addiction.)

Person behind the counter at Dunkin’ Donuts: “Hi, how can I help you?”

Me: “Hi. I’d like two donuts.”

“Two donuts?”

“Yes, four donuts.”

Software cost estimating in an agile development environment (PDF)

I’m currently working on a trilogy of “books” (booklets) about software cost estimating, and the third book in the series is about estimating the time and cost of software development projects in an agile development environment. The book isn’t complete yet, and some of it may not make sense without the first two books in the series, but I thought I’d release it here today, as almost everyone has some sort of “agile” development environment going today (or at least I hope so).

How to run a Scala application in a jar file while setting the classpath

I don’t know why, but without digging into it more, all I can say right now is that I can’t use the Java Sound API from within SBT. Whenever I try running sbt run, I keep getting the following error message, even though I know that my app and sound file work fine when I package my Java application normally:

javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input file

As part of the debugging process I created a little shell script named run.sh that contained these two lines:

Getting a random element from a list of elements in Scala

In working on projects like SARAH and other apps where I’m trying to make a computer seem more “human”, I’ve been making my software reply to me in random ways. What I’ve found is that this ends up being an easily repeatable pattern, where you have a list of possible replies, and then you randomly return one of those replies.

Syndicate content