February 2009
The Archives
-
02.08.09Unlocking a user account# passwd -u user Unlocks user's account. That is, lets user log in (a locked account is one prevented from logging in).
-
02.06.09Differences between files, with your favourite editorSome people complain about cmp, diff and other tools because the output is not user friendly. Ok, if you have the same thoughts and you like VI(M), this is a lucky day for you: $ vimdiff file1 file2 Starts vim in diff mode, highlighting the differences between the two files. Both files will be showed at the same time by means of a vertical split (:vsp). A good way to copy changes from one file to the other. In order to do that, it would be useful a good knowledge of copying, cutting, pasting, folding, unfolding and other features of vim
-
02.04.09Batch convert RTF to PDFYou've got the full details here (the OpenOffice Forum site). After following the instructions there, I was able to convert a bunch of some 500 rtf files into pdf's with the following single 'line of code' (although there must be a newline after the first quote ') $ find /Users/pedrofortunyayuso/Desktop/fichitas -name "*rtf" | while read -r i ; do /Applications/NeoOffice.app/Contents/MacOS/soffice -invisible "macro:///Standard.MyConversions.SaveASPDF($i)" ; done All the above shows my computer as an evident OS X, but this works on Windows (the referred site does the job on Windows, using, obviously a different shell construct) and, as far as I know, on ...
-
02.02.09Currency conversion scriptIn this time of crisis perhaps we need to pay more attention to financial issues. I am interested in converting some currencies so I have written a script that given two currencies, converts on to the other. The script searches the info on Google Finance's page. An example of its usage is: $ ./currencies.sh EUR USD 1 EUR = 1.316 USD The available currencies are: EUR - Euros USD - United State Dollar GBP - British Pound JPY - Japanese Yen CHF - Swiss Franc CAD - Canadian Dollar AUD - Australian Dollar INR - Indian ...