First steps in LUA-C++ integration

EDIT: Part 2 Long time without posting, busy at work, family, etc. Today I decided to write a bit on Lua and how to integrate it with C++. ...

November 26, 2012

Sublime Text 2 RVM and RSpec

EDIT This post is obsolete. It has been superseeded by this newer post OBSOLETE OBSOLETE OBSOLETE ...

January 30, 2012

Running a custom TestRunner from rake

I was surprised when I searched in Google for ways of running a custom TestRunner in a Rake::TestTask and I couldn’t find anything directly. So after figuring out myself how it’s done I decided to share it here: ...

August 17, 2011

Compiling OpenChronos in Windows

I got the EZ430 Chronos some days ago and after play around a little with the Code Composer Studio v4 that comes with it (the free code size limited version) I got the TI firmware compiled and uploaded to the watch. Then I realized that what I compiled it was a stripped down version of the firmware called Limited as the code-size-limited CCSv4 cannot be used to compiled the Unrestricted firmware. ...

February 11, 2011

Training a specific opening with Rybka Aquarium

I recently bought the Rybka 4 Aquarium + Chess Assistant 11 combo from ChessOK and I was trying to figure out how to practice openings with it. So here is what I found: ...

September 19, 2010

From textdrive to Joyent Shared Accelerator

After delaying it for long, long time I finally moved from Textdrive to Joyent Shared Accelerator. The improvement has been considerable. The response time has halved (blue line), and after a few days I switched to jekyll for the blog platform and the improvements has been event bigger!

August 18, 2010

Fixing Disqus

I was checking the Disqus threads for my site in the Disqus web page and I noticed that there was something wrong. Some threads had the wrong url, pointing to http://localhost:4000 and some had the wrong title (instead of the title the url was showing). I came to the conclusion that this was due to the fact that I’ve been using disqus_developer=1 to test locally after migrating to Disqus and the threads that I visited for the first time locally got the local url (localhost) and the because disqus couldn’t get the title from that url (since it was a local url) it assigned a title based on the (local) url. ...

August 17, 2010

DiffMerge/WinMerge for Cygwin Git

After reading several blogs and pages I got SourceGear DiffMerge and WinMerge working with Cygwin’s Git. First you need to put some scripts in the path that serve as wrapper for invoking DiffMerge and WinMerge. I created 2 wrapper scripts for DiffMerge diffmerge-diff.sh and diffmerge-merge.sh See the source code in the gist. I also created two more scripts for WinMerge: winmerge-diff.sh and winmerge-merge.sh. You can find the source code for scripts in the same gist. All four scripts rely on githelperfunction.sh to properly convert the path and set variables. ...

August 5, 2010

Migrating from Wordpress 3.0 to jekyll

I finally migrated from Wordpress to Jekyll. It wasn’t difficult but not easy either so I decided to write my experience in this blog. I’m assuming that you setup a basic Jekyll site: _config.yml, _layouts, _posts, etc. A good start is to clone mojombo jekyll site and remove the _posts and images. Although the Jekyll wiki describes how to use converters to migrate from Wordpress I didn’t follow that path because it requires direct access to the Mysql database. ...

August 5, 2010

Wordpress migration: " (quotes) and ' (apostrophe) being replaced with “ and ’

I migrated from TextDrive to a Joyent Shared Accelerator and in the process I had to migrate the Wordpress MySQL database as well. After the migration the " and ’ where showing as “ and ’ respectively. It was a charset problem. Apparently the problem was that the data itself was already in UTF-8 within a Latin1 database (due to WP default charset). So I did the backup again (like this) ...

July 29, 2010