playlog: every Spotify play in a SQLite file

I wanted a weekly log of the albums I listen to, and I found out that the Spotify API only gives you your last 50 plays. You can ask Spotify for your full history, but the export takes days to arrive, and the day after you get it it’s already old.

Trait-based ERC-721 swaps with gasless listings

More than a year ago I was working on a Token Redeem dApp for the Keycard Hardware Wallet that supported both ERC20 and ERC721 tokens. While working on that I had the idea of adding some gamification to a standard ERC721 contract: something similar to what I used to do when I was younger, swapping NBA cards with friends to collect all the players of my favourite team.

The Keycard hardware wallet smartcard explained

Keycard is a smartcard that comes with two pre-installed applications, the one you use as a hardware wallet paired with your devices and authenticated with a PIN, and the Cash applet, which can be used straight away without any other device.

Signed request query string with Elixir

SignedRequest is a simple Elixir module created to sign request query strings using HMAC.

Build and restart your Go web app with Fresh

Fresh is a command line tool that builds and (re)starts your web application everytime you save a Go file.

ActiveMusicbrainz - How to use the Musicbrainz database from Ruby

If you need to use Ruby to access the Musicbrainz database you can use ActiveMusicbrainz. ActiveMusicbrainz is a library based on ActiveRecord that automatically creates one model for each Musicbrainz table and defines the main associations between them.

How to deploy Go with Traffic on Heroku

It’s really easy to deploy a Go application based on the Traffic web framework on Heroku. Let’s start with a simple example.

musiXmatch API library for NodeJS

I’ve just published my first NPM package, and it’s called musixmatch. With this library you can easily use the musiXmatch API with a few lines of javascript. Install it with NPM:

web-app-theme 0.6.1 for rails 3

The new version of web-app-theme finally supports Rails 3. Check out the repository on github. It also supports Haml template generation using html2haml, like devise does.

UPDATE: the version 0.6.2 fixes a bug in the Haml generation when you use form_for blocks.

Ruby library for the musiXmatch API

If you want to search for lyrics and tracks with Ruby using the musiXmatch API, check out my repository at http://github.com/gravityblast/musix_match