Better HN
topnewbestaskshowjobs
Log inSign up

baohaojun

42 karma · joined May 2, 2013 (13y ago) · 15 submissions

Submissions

1.

I may have fixed a bug in bash(lists.gnu.org ↗)

3 points · by baohaojun · 5y ago · discuss

2.

After using Linux for 10+ years, I made a video (Chinese with English subtitle)(youtube.com ↗)

2 points · by baohaojun · 10y ago · 1 comment

comment 11y ago · link · parent

I use tramp for minor config file editting, it's not too bad. But when coding remotely, I like to setup 2 copies of code, one local, one remote. I always work on the local copy, then when I need to build, I use rsync to push the local code to the remote server for building remotely (because only the remote server has the os/compiler/cpu resources). It works great😁

comment 13y ago · link · parent

I have developed a very similar scheme for myself independently (haven't heard of z before, but thanks). A further idea is another command <code>e</code>, which is used like: <code>e reg1 reg2...</code>, and it will query z's database to see if there is a file in z's directory which matches the regs, and if found, open that file in Emacs. A similar command <code>f</code> will only print the path, so that <code>firefox $(f reg1 reg2)</code> will open the found file using firefox.

5.

Ajoke: Abducting Java Onto Emacs, K is silent(github.com ↗)

1 points · by baohaojun · 13y ago · discuss

6.

Firefox: Better Tab Reuse (for IDE Help Integration)(baohaojun.github.io ↗)

1 points · by baohaojun · 13y ago · discuss

comment 13y ago · link · parent

Thanks for the info, it must be the relatime that I saw this behavior. Were it noatime, this idea won't have worked at all (I think I have seen noatime used on embedded devices).

comment 13y ago · link · parent

Yes, there is more than one way to do it:-) Had I read the git ls-tree manpage more patiently, I should have wrote:

    git ls-tree HEAD -r --name-only

comment 13y ago · link · parent

Sorry, and you guessed right, `pn N` is just my shorthand wrapper for `awk '{print $N}'`.

10.

Stripping kernel/uboot source to 10% for code reading(baohaojun.github.io ↗)

35 points · by baohaojun · 13y ago · 12 comments

11.

The code is not really code, the comment is(baohaojun.github.io ↗)

2 points · by baohaojun · 13y ago · discuss

comment 13y ago · link · parent

Thank you:-)

comment 13y ago · link · parent

Sorry, more detailed post can be found here: http://baohaojun.github.io/beagrep.html

The github project is https://github.com/baohaojun/beagrep

And your guess in very right:-)

14.

Beagrep: grep 2G source code in 0.23s(baohaojun.github.io ↗)

4 points · by baohaojun · 13y ago · 2 comments

15.

Beagrep: fastest grep on earth(baohaojun.github.io ↗)

2 points · by baohaojun · 13y ago · 2 comments