NFT built-in Swap Market with gasless listing

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.

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

Don't abuse NSLog in your iPhone game

I’m working on a simple game for iPhone based on cocos2d. Yesterday I installed it on my old iPhone3G and it was veeeeeeeery slow. After a lot of refactoring I found a NSLog call inside my game loop. It basically logged all the collision detection of the player with all the tiles in the map. After removing that it’s even faster then before. So, if you want to log something, do it, but remember to remove all these logging calls later.

Using CouchDB from Air applications with CouchDB Flex

In the last weeks I played a lot with CouchDB and I love it. I always used it from ruby but yesterday I tried to use it with flex. I started a new Actionscript project called CouchDB Flex, you can browse the source from github. The implementation is inspired by couchrest, but it’s asynchronous because I use URLLoader internally. Since the flash player doesn’t support the PUT and DELETE HTTP methods, you must create an AIR project if you want to try the library. You can find a compiled swc here, put it in your libs folder and you are ready to go. Here a small example, but it’s still in development, and a lot of functionality are not implemented yet.