quarta-feira, janeiro 28, 2009

Wasting time for nothing

Today I was developing a new project using Django when I got the following error message:
File "/home/marcio/prj/py/ProjectManager/partlist/models.py", line 29
friends = models.ManyToManyField("self", related_name='component_friends', symmetrical=False)
IndentationError: unindent does not match any outer indentation level
That error was caused by me because I unintentionally mixed tabs and spaces. I know I can't mix them but I did it and I wasted some precious time trying to figure out what was happening.

So if you see this error you will already know the solution. ;)

terça-feira, janeiro 20, 2009

Free magazine about PIC and electronics

Do you like electronics? And what about PIC microcontrollers?

Today I am writing to share the URL of an amazing site named MicroPIC. This site has many projects and tutorials. There is even a e-magazine named uControl they release for free.

If you can read Spanish go to MicroPIC and enjoy this site. I am pretty sure you will find many interesting things there.

Correction: I made a mistake when I wrote this post. uControl is not edited by MicroPIC but by a site named uControl (it is written in Spanish too).

You will see references to the e-magazine on MicroPIC but they never claimed to be the authors.

That said I restate that MicroPIC is an amazing site. Moreover, uControl is amazing too.

terça-feira, janeiro 06, 2009

Vim as the default source code viewer

I don't like the default source viewer presented by Firefox, so I decide to use a good text editor (in fact, I'm using the best one ;).

First, type about:config in the address bar and hit ENTER.

Next, type editor in the filter bar. It will show you only entries with the word editor.

A double-click on view_source.editor.path will open a pop-up window where you must type the full address to your preferred editor: /usr/bin/gvim.

Then a double-click on view_source.editor.external will change its value to true.

From now on, GVim will be used by Firefox to show you the page source.