Latest posts

Ubuntu 12.04, gedit 3 and GPG

In Ubuntu 10.04, using gedit and gpg was really easy. Just install a package, enable the plugin, and everything works.

In Ubuntu 12.04 there is no such plugin. As an alternative you have to use external tools. It’s a bit hard to find the right syntax, so I posted it in AskUbuntu: http://askubuntu.com/questions/116996/how-do-i-encrypt-decrypt-file-within-gedit

Subtitle Editor: How to change the frame rate of subtitles in Ubuntu

How to change the frame rate of subtitles in Ubuntu

¿Por qué Equo?

http://elestorderosa.wordpress.com/2012/09/17/por-que-equo-berdeak/

How to run Crayon Physics Deluxe in Ubuntu 12.04 64 bits

I was having some trouble after installing the 64 bits package from on aold Humble Bundle release.

I found this post: http://askubuntu.com/questions/129758/shadowgrounds-game-series-dont-work-under-12-04-64-bit

So I installed some packages:

sudo apt-get install libglew1.5:i386 ia32-libs libsdl1.2debian libsdl-image1.2 libsdl-mixer1.2 libqtcore4 libqtgui4

Renamed /opt/CrayonPhysicsDeluxe/lib32 to /opt/CrayonPhysicsDeluxe/lib32ORIGINAL

And now the game runs :)

Example of minimum vows test for node.js using coffeescript

superminimum.coffee:

exports.Car = ->
  this.color = 'red'

superminimum-test.coffee

# Require vows stuff
vows = require('vows')
assert = require('assert')
coffee = require('coffee-script')
 
# Require the class we want to test
superMinimum= require('./superminimum')
 
# Instantiate the function we are testing
Car = superMinimum.Car
 
# This is a test with a title
vows.describe('Cars Application in Coffee').addBatch({
  # The next 2 lines set the "topic" of this test
  'A car':
    topic: new(Car),
    'is red': (car) ->
      assert.equal(car.color, 'red')
    'is not blue': (car) ->
      assert.notEqual(car.color, 'blue')
  # Here we could add a comma and another "topic"
}).export(module)

Run “vows superminimum-test.coffee –spec” and you get this :)

  ♢ Cars Application in Coffee 
 
  A car
    ✓ is red
    ✓ is not blue
 
✓ OK » 2 honored (0.002s)