Silveira

I'm a CS student at Federal University of Ceará, in Fortaleza, Brazil. I'm also Sun Campus Ambassador. I write this and another blog, eupodiatamatando.com.

Homepage: http://www.silveiraneto.net

Jabber/GTalk: silveiraneto@gmail.com


Posts by Silveira

what I feel when I see someone using JPG when he should be using a PNG

9 October, 2011 - 11:04 pm

Tags: , , , ,
Posted in english | 2 comments

Seriously, is that hard? To discovery which file type you have to use for your image just follow these simple instructions in following priority order: Have text? Use PNG. Is a piece of art like a draw, a painting or a webcomic? Use PNG. It is… moving! Use GIF. Is a photo? Use JPG. Is not exactly a photo but [...]

Python, flatten a list

8 October, 2011 - 6:38 pm

Tags: , , ,
Posted in english | 1 comment

Surprisingly python doesn’t have a shortcut for flatten a list (more generally a list of lists of lists of…). I made a simple implementation that doesn’t use recursion and tries to be written clearly. I get a element from a “bad” list (a list that can have another lists). If the element is not a [...]

The Fall (2006), Tarsem Singh

8 October, 2011 - 4:02 pm

Tags: , , , , ,
Posted in english | No comments

Cinema is about the ancient art of telling stories. Is about breaking the chains that hold our minds. Entertainment is good but is not good enough. We can do more and we can do better. The Fall (2006), from Tarsem Singh, is a movie that knows this. This is my kind of movie. Roy Walker (Lee Pace) and Alexandria (Catinca Untaru) The [...]

Heroku on Ubuntu 11.04 (Natty Narwhal)

28 September, 2011 - 11:43 pm

Tags: , , ,
Posted in english | 1 comment

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

14 September, 2011 - 12:28 am

Tags: , ,
Posted in english | 2 comments

I saw this one in a supermarket in New York.

Memory Card Zoo SD Test

14 September, 2011 - 12:22 am

Tags:
Posted in english | No comments

Adam Ulivi from Memory Card Zoo sent me a Samsung 8Gb micro SDHC class 4. Seems like a regular SD card but they claim to be water proof, shock proof and magnet proof. I ran a few tests using SD Tools for Android to compare it against the others cards I have around. The result: [...]