IJCAI Session Notes: Rebel Agents

What follows is a set of notes I took during two of the IJCAI Goal Reasoning workshop talks, about rebel agents. Both talks were presented by the same speaker and both focused on rebel agents. These talks were quite short and the speaker had to go fast, so I feel like I missed out on a lot of the information I wanted to record. As a result some parts are obviously omitted and more than usual are written from memory today, increasing potential inaccuracies or misinterpretations.

Continue Reading »

IJCAI Session Notes: Learning Common Sense

Below is another set of IJCAI session notes. This was the first invited talk in a day-long workshop called Architectures and Evaluation for Generality, Autonomy & Progress in AI (AEGAP). The speaker, Oren Etzioni, talked about some of the work the Allen Institute is doing to drive the creation of common sense in AI. He focused especially on a need for a concrete benchmark to measure results when it comes to implementing common sense.

Continue Reading »

IJCAI Session Notes: Verifying Agent Based Autonomous Systems

For the past couple of days I’ve been at IJCAI - the International Joint Conference on Artificial Intelligence. It’s been a three-day whirlwind of workshops and tutorials. I took a lot of notes, and as with ECAL last year I figured organizing them into blog posts would be a good way to review some of the takeaways. Note that the intended audience here is future-me, and I could very well have made mistakes or misinterpretations in my own notes.

Continue Reading »

go-sql-driver and MySQL 8

I should know better than to use a latest tag in a Docker image. I’d never do this at work, so why did I do it in my hobby project? I blame Go’s nature of dealing with package versioning (that is, the lack thereof) for putting me in the “let’s use latest!” mindset (and yes I know they’re working on it). Anyway, I should know better, but here we are, writing this post.

Continue Reading »

Input Club K-Type and /dev/tty impressions

This post will have some general impressions of Input Club K-Type and matt3o’s new keycap profile (MT3), with the /dev/tty color scheme. Both products were ordered from Massdrop last year. K-Type The K-Type came first. I haven’t spent money on a mechanical keyboard since my Das in 2011 or 2012, and up until I got the K-Type I’ve been typing on a Tesoro Durandal with MX Brown switches. My requirements for my next board were:

Continue Reading »

Some SnailLife Go client testing notes

I’ve started working on client tests, which have been getting very neglected compared to the server. I figured I’d write some quick notes on what I’ve done so far before continuing, before I forget. The first thing I’m choosing to focus on testing is interaction with the server. I’m already testing my API on the server side, but I also want to make sure I’m sending correct requests and handling responses correctly from the client.

Continue Reading »

Testing SnailLife Go repositories

Every SnailLife model struct has a repository struct to go with it. Since all repos are implementing the same Repository interface I wanted to reuse most of the code for testing them, but also allow for custom repo-specific tests. For example,OwnerRepo does some stuff that StableRepo does not - like optionally retrieving stables belonging to an owner. For now I am going about it as follows, but any feedback or suggestions for a better way are more than welcome.

Continue Reading »

Excluding mocks from coverage reports

I noticed that my coverage reports were including mock packages. To get rid of this instead of running go test like this: go test -race -coverpkg=./... -coverprofile allcoverage1.10rc.out ./... I am now running it like this: CVPKG=$(go list ./... | grep -v mocks | tr '\n' ',') go test -race -coverpkg $CVPKG -coverprofile allcoverage1.10rc.out ./... go list ./... lists all packages in my project; we pipe that through grep -v mocks to exclude mocks; we then pipe that output to tr '\n' ',' to replace newlines (each package is listed on a new line) with commas.

Continue Reading »

Testing SnailLife Go on Go 1.10

This is quick braindump of getting SnailLife Go building and testing on Go 1.10. A few days ago I decided to start building and testing SnailLife Go on Go 1.10 RC 1 (now RC 2). It took a bit of wrangling, but after updating my local environment and finding the best image to use for GitLab CI, I now have it building on Go 1.9 and 1.10 rc 2.

Continue Reading »

GitLab CI for SnailLife Go

I finally got GitLab CI up and running for the SnailLife Go port. The CI just runs the bash scripts I already had to test and build client and server. I had to make some changes for the tests to be able to run without the auth config files (which I obviously don’t want to submit to a public repo). Now, if an auth config file is not available I look for environment variables to get the Auth0 client ID and secret.

Continue Reading »