Notice This is a beta feature offered by Google. Also this is automatic translation, which means the results are often inacurate and/or hilarious. Enjoy.

ARCHIVES / RSS
Blog

Back online !

h3  ~  10 Feb 2008, 11:33  –  2 comments

My blog was down for the last week, I had a strange problem with django and I had hard time fixing it. I suspect the caching but I'm still not sure.

However, when I did this site I didn't kew much about django (and python to be honest). So I though it would be a good to occasion to consolidate my code and take advantage of the generic views. It's wonderful how it's easy to refactor and reuse code in with django.

Oh.. and I did myself a favor, I learned vim, now definitely my best editor. Thanks Vince :D

Among other things here the things that changed:

  • now using generic views when possible (most of the time)
  • cleaned css
  • added hypem songs I currently listen (nice little add-on hypem !)
  • now using archives / latests views for the blog instead od pagination (see top right)
  • removed contact section, merged it with "about me"
  • finally composed something for the about me section :)
  • removed comments in portfolio, nobody used them
  • added gallery preview in portfolio index
  • blog: fixed layout but in comment preview
  • blog; now the textarea "remember" if it was enlarged
  • blog: now the "grow" arrow works in comment preview mode
  • realigned layout *

* note: now my site probably broken in IE and I wont fix it :) I'll explain why in my next blog post.

post a comment Comments

hey, nice blog. ca you tell me if you used a specific resource for learning vim? i have it installed for weeks now, but i cant seem to stand it for more than a few minutes :P

gumuz ~ February 11, 2008 at 11:59 a.m.

Yeah, it was actually my second try.. the first time I wasn't really impressed. My session must have looked something like this:

> help ... open .. kcawofoawiefjafuckit

But I stumbled upon a graphical cheat sheet and that was it, my learning cuvre spiked. In two day I was really confortable with vim.

Quick tips:

  • ctrl+s will freeze a ssh terminal, use ctrl+q unlock. (I wish I knew that before :D)
  • lines mumbers <em>:set number</em> and <em>:set nonu</em>
  • syntax highlight <em>:syntax language</em>
  • syntax highlight for django templates <em>:syntax htmldjango</em>
  • regexp seach and replace <em>:%s/search/replace/gc</em> (g for global, c for confirm)
  • open a split window <em>:sp filename</em>
  • open a vertical split window <em>ctrl+w</em> then <em>v</em>
  • check for custom ~/.vimrc on the net, there a lot of good stuff in here

I still have problem with yank, I use it as simple copy paste but I know I could do more with it.. oh and I still find that using letters instead of arrows is akward.

Hope it will help you ;)

h3 ~ February 11, 2008 at 6:03 p.m.
Copyrighted stuff .. u know.