intanto.org logo Ars est celare artem.

Technology or magic?

Wed, 17 Sep 2008

vim-latex
To make vim-latex package in ubuntu work again just type:
sudo vim-addons -w install latex-suite
Enable connection sharing in ssh
ControlMaster auto
ControlPath ~/.ssh/master-%r@%h:%p
So that if you ssh multiple times you'll need to enter password just one time :)

Tue, 16 Sep 2008

Nervous program
While compiling a latex text and converting it to pdf using dvipdfm I found this curious warning

Hmm.  A TFM file is larger than it says it is!
Proceeding nervously...

Mon, 08 Sep 2008

python tips
There are some useful and elegant python idioms I would like to remember so I write them here:
new_list = [fn(item) for item in a_list
            if condition(item)]

result = ''.join(fn(i) for i in items)
(found in Code Like a Pythonista: Idiomatic Python)

Thu, 28 Aug 2008

Encfs on top of gmailfs

If you want to exploit the free and fast space available from gmail as a backup but what it to be "big brother" safe just use encfs on top of gmailfs.

Install gmailfs and encfs and follow these steps:

  • copy in ~/.gmailfs.conf and customize with your preferences:
[connection]
# The proxy URL
#proxy = http://user:pass@proxyhost:port
# or just 
#proxy = http://proxyhost:port
# The number or retries for the proxy connection.
#retries = 3

[account] username = yourgmailusername password = yourgmailpassword

[filesystem] fsname = anythingyouwant

[references] # reference = filesystem:username:password

[logs] # Change this to DEBUG for verbose output (useful for debugging) level = INFO # if you'd like logs to go to stdout, comment out this variable. # For logging to, say, stderr, use /dev/stderr of your system's # equivalent for it logfile = ~/.gmailfs.log

  • then create ~/gmailfs
  • execute /sbin/mount.gmailfs /usr/bin/gmailfs.py ~/gmail/ && encfs ~/gmail/enc/ ~/enc/

Now everything you copy in your local ~/enc will be encryted in your gmail account. :)

Update: current ubuntu version has some problem. I suggest you to use latest version.