News for hackers. Stuff that matters.

frankerz

Re:Vim Tips For Intermediate Users on Wednesday May 20, 2015 @12:27AM (#9574678)
Since I usually work with small laptop screens I tend to use vim tabs more than split. I find these key combinations quite comfortable:

nnoremap L :tabnext<CR>

nnoremap H :tabprevious<CR>

nnoremap <C-N> :tabnew<CR>

Also if you use offline docs (I only know Zeal) it would be pretty helpful to map the offline doc application to the K key depending on the language

nnoremap K :exec "!/usr/bin/zeal --query ".&ft.":".expand('<cword>')."&"

The above copies the word under the cursor and query it with zeal.

Re:Vim Tips For Intermediate Users on Wednesday May 20, 2015 @12:18AM (#9574645)
I think what he means is just put both

set relativenumber

set number

In your .vimrc

Re:The Traveling Salesperson Problem on Sunday May 03, 2015 @09:20PM (#9483843)
It's quite sad that some people's first reaction to everything is to assume that the other carries an agenda and there's a need to be defensive.

Person A thinks that everyone else is a sexist person with an agenda. Person B who doesn't agree with person A thinks everyone else is a radical feminist with an agenda. It's a never ending cycle of stupidity.

/rant

Re:Mill: Go-style concurrency in C on Friday May 01, 2015 @09:59AM (#9471276)
I'm not very good at C, but from my understanding this library uses longjmp functions which means it's cooperative multithreading rather than preemptive isn't it?
Re:Fuzzing Nginx – Hunting vulnerabilities with afl-fuzz on Thursday April 30, 2015 @08:06AM (#9464504)
> The problem you now see is that nginx never actually exists

I think you meant exits instead of exists.

Nice write up btw.

Re:The Mighty Named Pipe on Wednesday March 11, 2015 @11:08PM (#9189026)
It seems like fish shell's ">" process substitution equivalence is not working as well as bash's though

https://github.com/fish-shell/fish-shell/issues/1786

Re:The Mighty Named Pipe on Wednesday March 11, 2015 @05:45AM (#9183305)
How does the > process substitution differ from simply piping the output with | ?

For example (from Wikipedia)

tee >(wc -l >&2) < bigfile | gzip > bigfile.gz

vs

tee < bigfile | wc -l | gzip > bigfile.gz