Posts de ‘Gabriel Falcão’

[Gabriel Falcão] Geeks from venus eat geeks from mars at breakfast

Saturday, January 31st, 2009

Many of my friends (maybe, so many) are geeks, but i’ve recently noticed that they are forked in two kinds thus I found completely fair to name as “Hedonistic Geeks” and “Parnasian Geeks”. Therefore, the hedonistic ones can also be labeled as “geeks from mars”, thus makes the parnasian ones from “venus”.

The hedonistic geeks

They keep doing computing stuff every single day of their lives, but it’s kinda enough for them. The rest of the days (vacation and weekends), are free day in which they feel the social duty of keeping at least a bit away from their computers.

Most of them have videogames such as Wii and XBOX, and it works like a “more social life”, they use Macbooks, and do use softwares such as iPhoto, Safari, Quicksilver and so on. Oh… yeah, I almost forgot, they use to have an iphone too.

Putting bluntly, hedonistic geeks can define themselves as geeks or not, because they don’t always accept their geekness to everybody. They are too cool for doing programming, hacking and stuff through the free days.

The parnasian geeks

Parnasian geeks love what they do, love what they are good when doing. They do programming and hacking for work, and keep doing it at the free time for fun.

They prefer Thinkpad as macbook, EMACS or VIM instead of Coda or Textmate. They dont have videogames, because they just can’t waste their hacking time playing videogames.

Instead, they create softwares suck as linux kernel, GNOME apps, python true stuff and so on.

Parnasian geeks are romantic with their geekness, and if they decide to don’t geeking in the free time, will not be playing videogames, but looking for people to have a real social life, to dance, to make the difference. And even to look for a partner to get married and keep their specimen in this world.

To be continued …

[Gabriel Falcão] Hosting and deploying django apps on Dreamhost

Tuesday, December 2nd, 2008

About two years ago, I’ve signed up to Dreamhost. My goals were and still being to host my personal projects, websites and so on.

Once I am a Django web developer, one of my first actions were to create a django deployment setup, good and flexible enough. The time passed on and have been got new experiences, and the best desision, i think, was to create a new python sandbox, i mean, a customized python environment.

How is it possible ?

Simple! Just compiling python from scratch, with a fake root path (a prefix)

Anyway, the deployment process involves more variables, like setting both htaccess and dispatch files for each project, installing some basic modules such PIL and MySQL and so on…

So, i ever wanted to create a super duper script to do all that “dirty” work. And i did it last weekend!

I were working ia a freelance job and decided to create a subdomain to host test instance of them.

A new sandbox, ready to make my tests to create the super script.

So folks, i present you the brand new: django_dreamhost.sh :)

It’s composed by 4 files:

  • django_dreamhost.sh itself
  • djangify.template - a template with will become a script to setup new projects (htaccess and dipatch files, for instance)
  • htaccess.template - a template that will become the .htaccess of each project of yours
  • dispatch.template - will become the dispatch.fcgi for your projects as well

“But do i need to download all them ?”, of course NO!

You just download the main script, and he will do all do hard work!

“I wanna contribute, modify or do anything with that script, can I ?”, of course yes! All parts of the script are GPLv2 +

You can also always get the development version through git repository:

git clone http://git.nacaolivre.org/django_dreamhost

Don’t want to get all code, just the script ?

Download it at: http://gnu.gabrielfalcao.com/django_dreamhost/django_dreamhost.sh

What does that script do ?

He will do the following steps:

  1. Download Python, Django, Python-setuptools, Python-fastcgi to a directory called downloads
  2. Extract all
  3. Create a local root at $HOME/.myroot and the subdirs etc and usr
  4. Set the new bin path to you global path through bashrc and bash_profile
  5. Compile and install python to the new prefix: $HOME/.myroot/usr
  6. Install Django, rename django-admin.py to django-admin
  7. Setup your bash-completion to support django scripts
  8. Install the python modules above with the new python
  9. Install PIL and MYSQL modules through easy_install (setuptools)
  10. Download the template scripts to $HOME/projects/script_templates
  11. Replace the custom tags in templates
  12. Move the djangify.template to the new bin PATH: $HOME/usr/bin and give it execution permission

I thinks it’s all.

I currently use Fabric to help on deployment, and i have a quite smart basic setup for it to work with this dreamhost django environment, but it will be approached in the next blog post :)

See you, folks!

[Gabriel Falcão] Graduation done!

Saturday, July 12th, 2008

Today i’ve reached my first graduation.

It’s funny to think that i’ve made a friend during the course, but he wasn’t from my class, actually, he done another course, but our classes joined to some lessons. The funny fact is a long history….

The government of Brazil have a project who support students with “high scores”, paying private universities, this is really awesome and give great oportunities to people who could not get it by themself.

The thing work like this: You make a test, based on your score, you can choose a range of different courses and universities.

So, this dude, Glauco, choose as first option the course of “Free Software Technology” and as second option he choose “Web development technology”,  and I choose the inverse: Web developement as first and Free Software as second option.

The funny fact in all this is because we got the inverse of first options. So if nowadays i know, develop and give my blood trying to help free softwares, maybe Glauco should be in my place, and I in yours, but i am so happy to this haven’t happened :)

[Gabriel Falcão] MOSV

Tuesday, July 8th, 2008

There is a group of free software here in Belo Horizonte/MG named Minas Livre in which we often made hack parties. Last weekend we done a 48h hack party, with pit stops to sleep (only). During the conversations, a subject was brought: CSV.

A dude said that CSV must be considerated only when using commas, so if you use a semi-colon would be SCSV (semi-colon separated values).

It was going too boring when i thought: Off course, don’t fight for little stuff. Use MOSV (Memory offset separated values).It is simple!

[Gabriel Falcão] New blog!

Sunday, June 29th, 2008

i’m proud to present my brand new blog!

It’s awesome to be able to publish hackerish stuff like GObject, Python, GNOME, and anything else related to coding and freedom.

For now that is all!