Glen Berseth

I am an assistant professor at the University de Montreal and Mila. My research explores how to use deep learning and reinforcement learning to develop generalist robots.

misc Articles


  • Wed 17 April 2013
  • misc

Putting a steering algorithm into SteerSuite

Glen B



This is a guide I created which I hope to turn into a Wiki some day on how to put your steering algorithm in SteerSuite.

  1. First things first
    1. Your agent needs to extend the SteerLib::AgentInterface class so that is can be used properly with the gspacialDatabase
    2. If your algorithm …


  • Tue 19 March 2013
  • misc

Postgresql Transfer Database to New Tablespace with Python

Glen B

This is a quick script I wrote in python to generate the sql file needed to transfer one database to another tablespace.



 #!/usr/bin/python

# will generate the sql file needed to alter the tablespace for a database.

import psycopg2
import psycopg2.extras
import sys

#
# Configuration
#
host = '';            # The host on …


  • Sat 09 March 2013
  • misc

Rare but powerful Unix/Linux commands

Glen B

This blog is a list of some of the more powerful but not as frequently used Linux or Unix commands.

Need to copy a large amount of files from one directory to another

find \(directory1 -maxdepth 1 -type f -name '*' -exec mv {} $directory2/. \; </pre><pre class="programlisting"></pre><pre class …



  • Fri 08 March 2013
  • misc

Eclipse Find/Replace

Glen B

This is a quick example on how to use the power of find and replace in eclipse. Some might say that eclipse find and replace is not as powerful as something like vi or sed but it is still rather powerful.



I had a program where I wanted to transform …