Being exceptional

Apparently, in Python, it is easier to ask for forgiveness rather than seek permission. That is to say, the normal approach when writing Python code is to assume that what you are trying to do will work properly. If something exceptional happens and the code doesn’t work the way you were hoping, then the Python interpreter will tell you of the error so that you can handle that exceptional circumstance. This general approach, of trying to do something, then cleaning up if something goes wrong is acronymically called EAFP (”easier to ask for forgiveness than permission”). ...

29 de mayo de 2012 · 1 min · 101 palabras · Nacho Cano

Writing Plugins for gedit 3 with Python

This is a guide to programming plugins for gedit 3, the default text editor for GNOME 3. gedit 3 uses the Libpeas GObject plugin system and the plugins can be written using C or Python. This guide will only cover writing plugins with Python. » micahcarrick.com

23 de mayo de 2012 · 1 min · 46 palabras · Nacho Cano

Vim: revisited

I’ve had an off/on relationship with Vim for the past many years. Before, I never felt like we understood each other properly. I felt that the kind of programming I’m doing is not easily done without plugins and some essential settings in .vimrc, but fiddling with all the knobs and installing all the plugins that I thought I needed was a process that in the end stretched out from few hours to weeks, months even; and it the end it just caused frustration instead of making me a happier coder. Recently, I decided to give Vim another shot. This time around it was different – something in my brain switched and now for the first time in my life I’m proud of my knowledge of Vim. My philosophy of it has changed to ”less is more”, my approach was more disciplined and my motivation stronger. And so you don’t spend as much time learning as I did, I am going to lay down some fundamentals. ...

20 de mayo de 2012 · 1 min · 167 palabras · Nacho Cano

Dario Taraborelli: The Beauty of LaTeX

There are several reasons why one should prefer LaTeX to a WYSIWYG word processor like Microsoft Word: portability, lightness, security are just a few of them (not to mention that LaTeX is free). There is still a further reason that definitely convinced me to abandon MS Word when I wrote my dissertation: you will never be able to produce professionally typeset and well-structured documents using most WYSIWYG word processors. LaTeX is a free typesetting system that allows you to focus on content without bothering about the layout: the software takes care of the actual typesetting, structuring and page formatting, producing documents of astonishing elegance. ...

16 de mayo de 2012 · 1 min · 106 palabras · Nacho Cano

Learn to speak vim – verbs, nouns, and modifiers!

Using vim is like talking to your editor in ’verb modifier object’ sentences, turned into acronyms. » yanpritzker.com

14 de mayo de 2012 · 1 min · 18 palabras · Nacho Cano

Curso de Asterisk

» dragonjar.org

14 de mayo de 2012 · 1 min · 2 palabras · Nacho Cano

How To Make Your Own Text Adventure On A Computer

If you have made a text adventure in your mind that you really like, and you’re tired of dictating it and would rather make it in a computer language, this page is for you! I’m teaching you a shortcut to make a text adventure, for those who actually know Python. » bluezandmuse.com

14 de mayo de 2012 · 1 min · 52 palabras · Nacho Cano

Learn to Hack

Attack servers, crack passwords, exploit services, beat encryption - everything you need to protect yourself from evil. There are two rules of computer security: one – don’t buy a computer; and two – if you have to buy a computer, don’t turn it on. If you break these rules then you’ll be opening yourself up to potential problems. No system is 100% safe from hackers, but by following a few simple steps you can make yours much harder for intruders to attack. ...

14 de mayo de 2012 · 1 min · 84 palabras · Nacho Cano