Where are the AIs?

read more

Philosophy

---

Intro to the C++ STL

I did a guest lecture for my advisor where I gave an introduction to the C++ standard template library. The slides for that talk are here.

read more

C++0x

---

The Cross Entropy Method

The cross entropy (CE) method is a technique to solve optimization problems such as the travelling salesman problem. The paper “A Tutorial on the Cross-Entropy Method” by Boer, Kroese, Mannor, and Rubinstein gives very detailed information about the CE method and also shows how to apply it problems like travelling salesman, max-cut, and maze traversal. Unfortunately the paper is rather dense. Fortunately, you can just read the rest of this post to learn more about cross entropy the easy way.

read more

Algorithms, Winlab Programming Talks

---

User editable text boxes in flashpunk

Flashpunk doesn’t have its own user editable text boxes but we can make some easily enough. The text boxes I have in mind should start receiving input when they’re clicked on, should support being tabbed through, and should be the same size as the text inside of them. Those are the only requirements I’m going to meet here so if you want borders, a blinking cursor, or anything else fancy you’ll need to add them in yourself.

read more

---

Callbacks and lambda function in actionscript 3

I haven’t written anything I’ll write a quick article on using lambda function to make callbacks simple in actionscript. I’ll be using Flashpunk to whip up an example. The basic idea here that we’d like to have a generic object run a function when it is clicked, but we want to be able to specify different functions for different instances of the objects. For example, imagine a generic button class that allows you to specify a different action when clicked. Furthermore, we can extend this to be even more useful with some lambda function magic. Let’s take a look at what the callback class will look like:

read more

---

« Older Newer »