clvv
|
15 years ago
|
on: Pick a number from 1 to 10
Interesting project. I'm looking forward to see the results. This reminds me some of the mental algorithms I was thinking about: How do you generate a random number without electronic devices? How do you generate a random permutation without electronic devices? How do you generate a hash without electronic devices? How do you do the above most efficiently? How about without any pen, pencil or paper?
It will be cool if you can master mental cryptography.
clvv
|
15 years ago
|
on: Time-saving tips for Linux
I found myself using Emacs keybinding for line wise operation and movement in both vim and shell. It is just verbose to switch between editing modes sometimes.
clvv
|
15 years ago
|
on: Time-saving tips for Linux
Another trick that I don't see people mention(excuse me if somebody here already did) is the bash history completion:
\esc \tab
This will complete based on your history, argument wise. Very useful when tab completion itself doesn't satisfy you.
clvv
|
15 years ago
|
on: What is Bitcoin? (Video)
Interesting, but until some real use case or adoption, these Bitcoins sound like Internet stocks to me.
edit: I didn't really look into it, but I'm going to now.
clvv
|
15 years ago
|
on: Why are INI files deprecated in favor of the registry?
Dotfiles are really great in terms of portability.
clvv
|
15 years ago
|
on: Firefox 4 RC now available
My modified version of your analogy:
Firefox: Emacs
Chrom{e,ium}: Vim
clvv
|
15 years ago
|
on: Poll: What OS do you currently use?
I just can't imagine having Windows on my computers again. *nix(especially Linux) feel much more user friendly to me. It is absolutely uncomfortable using Windows when sometimes I just have to(at school, fixing somebody else's computer etc.) Arch Linux is great. Ubuntu will be better if it has a rolling release.
clvv
|
15 years ago
|
on: Full Text RSS Feed: Get the whole feed and nothing but the feed
A similar service:
http://fivefilters.org/content-only/ and it is opensource too. It uses a PHP version of readability to extract the full content. Also can the author of fulltextrssfeed.com explain some of the implementation details? I was planning on a similar project with node.js, jsdom and readability.
clvv
|
15 years ago
|
on: CUPP crams ARM inside of a MacBook Pro, makes it run Android with a button press
I think Android is more optimized for touch-screen devices but I was hoping Chrome OS will bring more ARM laptops to the market. Now it seems like that's not gonna happen, but Windows 8 being ARM compatible should bring more ARM laptops to the market. Sadly that won't happen any time soon.
clvv
|
15 years ago
|
on: CUPP crams ARM inside of a MacBook Pro, makes it run Android with a button press
I would prefer if they just make a ARM laptop. Seriously, why aren't there any decent ARM laptops? I know there are a few ARM/MIPS laptops out there but they are all either old(new platforms are much more powerful) or comes locked.
clvv
|
15 years ago
|
on: VimGolf.com - real Vim ninjas count every keystroke
who voted this down? 3G is obviously 2 key stokes while :3<CR> is 3
clvv
|
15 years ago
|
on: VimGolf.com - real Vim ninjas count every keystroke
You can achieve even less key strokes if you have your vim automatically removes trailing spaces, which is a neat feature itself and a common hack.
autocmd BufWritePre * :%s/\s\+$//
53 is the least I got.
clvv
|
15 years ago
|
on: VimGolf.com - real Vim ninjas count every keystroke
A quick thought: use surround.vim plugin for this.
clvv
|
15 years ago
|
on: VimGolf.com - real Vim ninjas count every keystroke
I think this is the shortest solution unless someone has sort mapped to hot-keys, which is unlikely.
clvv
|
15 years ago
|
on: VimGolf.com - real Vim ninjas count every keystroke
Until somebody can come up with at least some method of restricting vim scripting, the results are useless(one can easily only use 4 key strokes by key mapping as you can see). But, on the other hand, you can't just disable vim from loading scripts, because there's no point in mastering the plain old vim without any plugins, custom key mappings and such.
clvv
|
15 years ago
|
on: Spelling Corrector in 21 lines of Python
I have seen this one before somewhere, and what amazes me is that how you can solve problems without a hassle if you get the "trick" right. Another case I read was that Google use(at least used) two vectors(each consists of many 0s and 1s, which in turn represent whether the web page has the keyword or not) to represent web pages, and calculate the angle between the vectors to figure out the similarity(a value) between web pages.
clvv
|
15 years ago
|
on: Pong written in both flash and HTML5. Left side is flash, right side is HTML5.
Looks like my left cerebellum and my right hand is winning, not sure if it's because of HTML5 or not. Flash is using less CPU, Ubuntu 10.10 64bit with Chrome 8.0.552.23 and Flash 10.2 d161.
clvv
|
15 years ago
|
on: Use Vim Like A Pro
Also, :x is the short version of :wq(also available in vi). And some people put their rc files up on github, here is my vimrc file:
http://github.com/wei23/dotfiles/blob/master/.vimrc I cherry-picked a lot of useful features from different vimrc files on github and dotfiles.org
clvv
|
15 years ago
|
on: Use Vim Like A Pro
Some vim users also remap their caps lock to Esc (modify ~/.Xmodmap on linux, also doable on Windows and Mac), whereas Emacs users will probably remap their caps lock to Ctrl.
clvv
|
15 years ago
|
on: Ask HN: Who Plays Go?
I lived in China during my childhood, and one of the things that I was involuntary involved in was playing Go, my parents simply made me do it. Despite the fact that I didn't really like it, I still kept learning it for several year. And by the time when I finally convinced my parents that I was not going to or even want to be a professional Go player, I was amateur 4 dan by Chinese standard, and I was about 10 years old. I stopped playing since then, but I can still pick it up and play once in a while, maybe with a skill level of around 2 dan I guess. Look back from now, Go looks interesting, but when I was forced to learn it at the age of 7, it was all boring and dull.
It will be cool if you can master mental cryptography.