Category Archives: english - Page 3

Heroku on Ubuntu 11.04 (Natty Narwhal)

As root execute:

apt-get update
apt-get install build-essential ruby rails rubygems1.8
apt-get install ruby1.8-dev libopenssl-ruby

Chance PATH at /etc/environment:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/lib/gems/1.8/bin"

Update your current environment:

source /etc/environment

Install the Heroku gem:

sudo gem install heroku

Run Heroku authentication configuration:

heroku auth:login

Enter the credentials for your Heroku account.

Done!

Darth Vader Piñata

I saw this one in a supermarket in New York.

Memory Card Zoo SD Test

Adam Ulivi from Memory Card Zoo sent me a Samsung 8Gb micro SDHC class 4.

Memory Card Zoo

Seems like a regular SD card but they claim to be water proof, shock proof and magnet proof.

Memory Card Zoo

I ran a few tests using SD Tools for Android to compare it against the others cards I have around. The result:

The general raw output data collected from SD Tools:

Write Speed (Mb/s) Read speed (Mb/s)
SanDisk Class 4, 8Gb 4.1 11.7
Samsung Class 4, 8Gb 5.5 17.9
Patriot Class 10, 16Gb 8.1 20.1

I use the SanDisk in my Android and Patriot on my camera. It would be a good combo have a waterproof card on my waterproof camera but this sd card can not beat a class 10 card. I may change my cellphone’s memory card for this Samsung.
If you want to try to yourselft this or others models of Micro SD card visit their store. Thank you Adam!

OpenPixels: simple sprite sheet with Processing

/**
 * Openpixels example in Processing.
 * This simple example of how to get a sprite 
 * from a sprite sheet.
 */
 
PImage bg;
PImage sprite_sheet;
PImage player;
 
void setup() { 
  // load images
  bg = loadImage("kitchen.png");
  sprite_sheet = loadImage("guy.png");
 
  /* The sprite size is 32x49.
     Look guy.png, the "stand position" is at (36,102). */
 
  player = createImage(32, 49, ARGB);
  player.copy(sprite_sheet, 36, 102, 32, 49, 0, 0, 32, 49);
 
  // set screen size and background
  size(bg.width, bg.height);  
  background(bg);
 
  frameRate(30);
}
 
void draw() { 
  background(bg);
  image(player, 100, 50);
}

See more at OpenPixels.

Getting Openpixels

Openpixels is a project of mine to create a free and open source artistic framework for game projects in any language or platform. It is going pretty well.

You can just download a zip or tar.gz of the latest version.

You may want fork it or get a git working copy of it to later make your own contributions to the project. In this case:

apt-get install git-core
cd ~
git clone git://github.com/silveira/openpixels.git

You will see something like this:

Cloning into openpixels...
remote: Counting objects: 129, done.
remote: Compressing objects: 100% (126/126), done.
remote: Total 129 (delta 17), reused 0 (delta 0)
Receiving objects: 100% (129/129), 784.52 KiB, done.
Resolving deltas: 100% (17/17), done.

And now you have a repository clone at ~/openpixels and you can start hacking.

Atiaia early releases

This was a project that me and Marco Diego created during our graduation for the Computer Graphics course. It is a ray tracing engine build from scratch in C. It was great exercise of experimentation on how implement object-oriented design patterns in ANSI C. Later Marco continued it in his master’s degree thesis implementing more features.

Parts of the sources were lost during a disk failure in the forge we hosted the project. I found some early releases and packed them here for future use. It can be useful for someone studying C or how to implement a ray tracer.

Download: atiaia_sources_by_2006.zip

Enjoy it.

ps: with this project we won the 1st place project of class and maximum grade. ;)