HNHacker News
TopNewBestAskShowJobs

aliem

53 karma · joined February 2, 2009

submissionscomments
aliem··on Websites Built with Kohana PHP
Kohana is a very nice project when you are forced to use PHP to develop a webapp, it's quite simple to use and fast.

The community forums are active and friendly, the only lack I saw (some time ago) was the documentation, but the code is very clean and well documented with concise and clean comments.

I used it right before my complete switch to RoR, I was happy with it, but php is still the big poorly designed language-mess which has always been.

aliem··on Ask HN: What's in your .vimrc file?
I just keep swap files and backup ones in my .vim/ directory

  set backupdir=~/.vim/backup
  set backup
  set directory=~/.vim/tmp
This to see line numbers on the left (i find it a bit more readable instead of watching at the bottom-right)

  set number
added a simple way to speedup my writing with (I know it's crappy but it works ...until you need to add just one bracket/quote)

  " autocomplete parenthesis, brackets and braces
  inoremap ( ()<Left>
  inoremap [ []<Left>
  inoremap { {}<Left>
  
  " autocomplete quotes
  inoremap	'  '<Esc>:call QuoteInsertionWrapper("'")<CR>a
  inoremap	"  "<Esc>:call QuoteInsertionWrapper('"')<CR>a
  inoremap	`  `<Esc>:call QuoteInsertionWrapper('`')<CR>a
  
  function! QuoteInsertionWrapper (quote)
    let col = col('.')
    if getline('.')[col-2] !~ '\k' && getline('.')[col] !~ '\k'
      normal ax
      exe "normal r".a:quote."h"
    end
  endfunction
and mapped f1/f2 to switch buffer

  noremap <f1> :bprev!<CR>
  noremap <f2> :bnext!<CR>
Some of this wall of text was stolen from a nice, but a bit too big, vimrc i found somewhere

If you need something specific try http://vim.wikia.com/

aliem··on Earn 43 cents every time you infect a Mac
It seems so, but following the policy you'll have to host your vm's over an OSX server edition.
aliem··on [dead]
maybe but it's been a nice 1-minute-reading-1-minute-smile (or i should say 0N3-M1N8-R3D1N-1M1N-SM1L3)
aliem··on Ask HN: Novice developer looking for weekly LAMP dev lessons
I agree you first need to enlarge your basic knoledge of the language thru a book (there are soo many about php).

btw as far as i can see it seems you mostly need to learn how to test and debug your applications.

If the codebase is becoming unreadable and confusing consider a complete rewrite on your own or by moving to a lightweight framework (I liked code igniter and kohana in my php days) or even a different language (Ruby and Python are nice languages)

aliem··on What if YouTube made the black empty space white? [PIC]
It's definitely better with "turn off the lights", White is too bright for my eyes and adds distraction.

for greasemonkey users: http://userscripts.org/scripts/show/49726 "turn off the lights" everywhere in youtube :)

aliem··on Carrot2 Clustering Engine
grrr damn web designers .... I need to READ not to watch nice shadows everywhere!

... aw a Cmd+ resolve this, but the whole design do to hell nicely :)

aliem··on Linux: It doesn't get any faster
When I sit down at someone's customized Linux machine, ... I just open a nice terminal emulator or a virtual tty and get the work done (i can do it even in osx)
aliem··on JPlayer: Fully CSS stylable mp3 player plugin using jQuery
here's the answer:

http://dev.w3.org/html5/html-author/#the-video-element http://dev.w3.org/html5/html-author/#the-audio-element

... but with the exception of IE (unless someone write some kind of activex to support it)

aliem··on Ask HN: What WYSIWYG editor are you using to make HTML form/textarea input easy
I'm a fan of MarkitUp + Textile, nothing more, it seems users likes it once they get used to the simple textile syntax. I'm against wysiwyg javascript editors, they tend to add a lot of overhead over the web page. The only wysiwyg editor i could recommend is WYMeditor (.... even if it isn't really visual editor).
aliem··on [dead]
nice SEO :)
← PreviousPage 2 of 2