Shanidar

Titular notícies
Tardor
Dissabte 14 Novembre 2009 - 22:01
Tardor

Petites ànimes
Diumenge 1 Novembre 2009 - 11:57
Petites ànimes


Coca de crema cremada
Dijous 23 Juny 2011 - 18:00
A casa no ens agrada la coca de Sant Joan. Seran les fruites confitades, serà el briox sec, serà que els petards ens confonen... La coca de Sant Joan no triomfa.
Des que vam descobrir que també podíem menjar coca de pinyons farcida de crema, però, ens posem les botes.

Aquest any he decidit fer una versió de coca de Llavaneres... versió? Doncs sí, perquè m'he oblidat de comprar pinyons i he acabat improvitzant amb ametlles laminades que he trobat per casa.

Com veuràs m'hi he matat poc: làmines de pasta de full comprades i tota la feina en mans de la Thermomix. Però així és més senzilleta!

Apa, a gaudir de la recepta!

Pa d'oli amb llavors i farigola
Dissabte 16 Octubre 2010 - 15:20
Des que vaig pispar la màquina de fer pa a ma mare (ei, que no la feia servir, ella!!) he fet un munt de pans: tipus brioche, pa de motlle, de llet, de mantega, amb diferents tipus de farina... però cap em deixa fer tantes variacions sense donar-me maldecaps com la base del pa d'oli. Hi puc afegir les llavors que vulgui, les herbes que vulgui, pipes, fruites, etc... que sempre queda bé! I aquesta d'avui és la variació que he preparat especialment pel World Bread Day.


The Small Hand, Susan Hill
Dilluns 31 Octubre 2011 - 22:48
Un vespre d'estiu, un venedor de llibres antics agafa un camí equivocat anant a visitar uns clients i acaba en una casa gairebé en ruïnes. Tot i que sap que no hauria de ser allà i que s'està fent fosc, no pot evitar acostar-se a la porta i mentre mira embadocat l'entrada nota clarament com una mà infantil li agafa els dits... només que allà no hi ha cap nen. No hi ha ningú.

Una casa vella, un jardí abandonat, un fantasma infantil...
Típics i tòpics elements d'un llibre de por, que promet pell de gallina... però que queda en allò que podia haver estat.

Un monjo elèctric sobre un cavall en un desert.
Una porta enmig del no-res.
Un excèntric multimilionari que és assassinat mentre es deixava notes a sí mateix al contestador automàtic de sa germana.
Un sofà encallat a mitja escala.
Un gat que no ha desaparegut mai.
Un detectiu amb corbata a ratlles verdes i camisa de quadres vermells. Evidentment, un detectiu hol·lístic que es diu Svlad Cjelli però que es fa dir Dirk Gently.
A cada pàgina que passa, una situació més absurda.
Res encaixa i tot tindrà sentit al final.
Què es pot esperar sinó d'una novel·la de Douglas Adams?



Just in case you don't know, vi is an advanced text editor, drting back from the same era as emacs was developed (emacs started slightly earlier). Sort of the Jekyll to emacs' Dr Hyde. Emacs users despise vi users, and vi users mock emacs users. This is what the editor wars are all about: "Eight Megabytes And Constantly Swapping" versus "vi has two modes: writing and beeping". If you have been long enough in this blog, you know I'm in the emacs side, but you also know I'm curious enough to delve into the other side.


My first contact with vi was in our first programming class at the University, Informatica (Computer Science). Vi was the editor of choice for the course, so much that you did not have any other option given. Along with a Linux cheatsheet and a short C manual came a vi cheatsheet. A lot of people came to hate vi, a lot of people came to love it. I was more in the hating side, but it wasn't that bad. After a while I just started using a "normal" Linux editor (it was Kate, maybe?) and kept using it (or UltraEdit when I was in Windows) until the end of my degree.

When I finished my degree I had to be a teacher of Calcul Numeric (Numerical Analysis), the third (and last) programming class in the degree. At home I was still using Windows, because the wifi card in my notebook had no Linux drivers and in my office we were using Ubuntu. I needed a cross-platform editor that was quick, versatile and could last for a lifetime. I tried vi (again) and emacs, emacs won the war for two reasons. First was the fact that it was extensible programming in Lisp, and I had already a decent knowledge of Lisp. The second was AucTeX and its "preview" option for LaTeX editing. Nothing can beat pressing C-p C-p C-d and seeing your formulae come to life in your editor. I became an emacs advocate for this reason, then after 5 or 6 years I've found many more reasons why this is the editor. Or, the operating system, if you prefer.

But advocacy is nice, but knowing all the players in the field is better. My department pals used vi (at least most of them), and it was impossible to convince them to switch. I decided learning vi (or vim, vi iMproved) was something I had to do some day, to learn what was there. After all, if I liked it so much I could set viper-mode in emacs and use vi keys in emacs. The best of two worlds, if that world is so nice.

Then the guys at Applidium released a Vim port for iOS devices. Whoah! Even if I'm an emacs guy to the bone, a modal editor is way better than anything else available in the app store, at least for raw editing power. And I say with knowledge, because I've tried most writing apps for iOS devices (see this post).

As an additional reason, Matt Might posted a New Year's post detailing several resolutions for programmers. Among them was breaking your comfort zone to keep your mind sharp. The first example? Switching to vi from emacs or vice-versa. He used to be an emacs user before getting to use Vi. I don't think I could go that far, but these were enough reasons: advocacy (from me, not against me), iPad+bluetooth keyboard and breaking my comfort zone.

How is the experience so far?

Well, I'm writing this post in my sofa, with my iPad and my bluetooth keyboard sitting in my lap. I'm still getting used to having to exit editing mode to move around: I'm very used to pressing C-a or C-e to go to the beginning of end of line. An additional problem is that even with the bluetooth keyboard, Esc can't be mapped to the Esc event, and I needed something to do it. I have jk (pressed together) for it. It was a suggestiond I saw in Hacker News' comment thread for the release of the app, and it's quite handy. Not so much with the on-screen keyboard, but for now it's okay. To remap this, press backslash (the current mapping for Esc) and then :imap jk . Of course if your usual writting language involves writing the jk combination frequently (I think I could come up with one or two examples in Icelandic), this is not the best combination. The other suggested option is :imap al . Easy to tap in a virtual keyboard, not so straightforward in a normal keyboard.

I found out also how to change the font size, at least for now this works (maybe there will be more fonts available in the future), type :set guifont=Courier:h24 (for 24 pixels)

To round everything, I just installed the famous solarized color theme, dark in vim for iPad. Until now I had just thought it was an overhyped color scheme: I had tried in my emacs and didn't enjoy it that much. But in my iPad it shines with a distinct colour, it's so much easier on my eyes that it hurts to get out and write an email! To install it in your vim for iOS, first download solarized.vim from the git repository, then plug your iDevice and use iTunes File Sharing to copy this file to the vim app. Then open vim, :e solarized.vim and :call mkdir(.vim/colors/) (to create the directory needed for it) :w .vim/colors/solarized.vim This is just because I didn't seem to get iTunes File Sharing to work with hidden files (a file starting with a dot is hidden). Then you have to add the following to your .vimrc:
syntax enable
set background=dark
colorscheme solarized
I recommend using this app for any emacs lover out there with an iPad. Of course, it is not emacs, but vim is a pretty awesome text editor, and it's always handy to learn to use it.

To have a useful list of vim commands at hand I installed the Vimmy app, a universal app with the most common vi commands. I can switch to it via the multitasking gestures in my iPad, or use it in my iPod Touch while I'm using it in the iPad.

Conclusion

I don't think I'll ever switch from emacs to vim any time in the future, as I said AucTeX is definitely too good. Of course since then I've found many more things I love: having a REPL for Python, Clojure or Lisp inside my editor. There's even a REPL for PostScript! Also local remote editing with tramp... There are too many things I use on a daily basis and I can't barely remember, they are so entrenched in my .emacs file I can't even realise what they are. But for my iPad it is an awesome addition to write text on the go.

Again, if you have never used vim before and are interested, give it a try. Of course the first time you open it it will be... a jump into the unknown. Tap the screen, press :e filename and start editing happily. Esc (well, jk or backslash, as the initial mapping) :w to save. And you can even :q to exit to springboard!






2011 un buen año
Dissabte 31 Desembre 2011 - 16:11
Hoy le da por terminar su singladura al 2011, este fantástico año en el que tantos hemos descubierto tantas cosas, y al que deberíamos estar eternamente agradecidos.




Leer más... 2011 un buen año



iWith.org difon Teaming
Dilluns 16 Gener 2012 - 21:22
Avui ha nascut Teaming.net, un projecte en el qual vam començar a aportar idees i esforç el 2008 i que transformarà la manera com les persones ens impliquem en els projectes solidaris.


Continue reading iWith.org difon Teaming


Les targetes porten el missatge solidari d'Iwith.org i de les organitzacions que hi col·laboren. Moltes organitzacions i ONG han enviat preciosos dissenys que permetran difondre el seu treball desinteressat i altruista.