# Tag Archives: technology

## xkeyval and the 9 arguments

Recently I’ve been playing D&D with some friends. Tired of writing my small homebrew adventures in OpenOffice I turned into my old friend $\LaTeX$.

Seemed to me that a D&D adventure was specific enough to have its own document class, like article, book etc. And could not find it online, so right now I am writing one.html select jquery set selected

In this article I will explai how to write $\LaTeX$ commands accepting more than the 9 default parameters.

Filed under code, tools

## Python: Command Line waiting feedback. And some Background on why!

4.2.39 Escape sequence
A string of bit combinations that is used for control purposes in code extension procedures. The first of these bit combinations represents the control function ESCAPE.
ECMA-48 Control Functions for Coded Character Sets

1 Comment

Filed under code, curious, tips

## Trailing Whitespaces Vim

Trailing whitespaces are a pain in the ass. Adding, deleting and modifying code can lead to invisible spaces at the end of the line. This is “bad” and useless.

Here comes Vim!
`:%s/\s\+\$//`

A substitution command `:%s/<search>/<substitute>/`
Where the search is for trailing whitespaces `\s\+\$` and the substitute is “nothing”.

Writing this every time is too much effort, it’s a good idea to define a user command:
`:command Deltw :%s/\s\+\$//`

`command Deltw :%s/\s\+\$//`

now just typing the command Deltw deletes those annoyances.

### References

Vim patterns ⇒GO
Vim user_commands manual ⇒GO

Filed under tips, vim

## CODE. The Hidden Language of Computer Hardware and Software

Electricity is like nothing else in this universe, and we must confront it on it’s own terms

Charles Petzold does an amazing job in this book. It explains how current computers work without a previous knowledge required. While there was no new information for me at all, I really enjoyed the way it presents the concepts, easy and with a lot of clarifying pictures. Is one of those books that you can say “I wish I read this book while I was studying the topic”.

Some argue that it has no relevance at all because it is old (1999). I would respond that while the computer world seems to advance very fast, the bases are almost the same, (1945 First Draft of a Report on the EDVAC), but with a lot of refinement (smaller, faster, smarter).

This book is a must-have if you want to learn how a computer works and you don’t feel like reading very technical stuff.

1 Comment

Filed under books