HNHacker News
TopNewBestAskShowJobs

clvv

65 karma · joined April 28, 2010

submissionscomments
clvv··on 10-year-old problem in theoretical computer science falls
This video has a very good introduction to the problem.

https://www.youtube.com/watch?v=eAiJocr6ZKg

clvv··on Command line tools for the novice
Tools similar to z:

1. [Autojump](https://github.com/joelthelion/autojump), first implementation and what z was based on, written in python. Functionality similar to z.

2. [Fasd](https://github.com/clvv/fasd), feature-rich fork of z, support for files, support for more shells and platforms (BSDs, Android).

clvv··on Fay -- A proper subset of Haskell that compiles to Javascript
I think the compiler would already be available in javascript if that's the case.
clvv··on Fay -- A proper subset of Haskell that compiles to Javascript
It is always better to have alternatives. Being self-hosting and compiling to a widely-used language like javascript is definitely a plus. Another useful case is that an interactive "Try Fay" page can be setup (like "Try CoffeeScript" page).
clvv··on Fay -- A proper subset of Haskell that compiles to Javascript
I wonder if there're any plans to make it self-hosting. It would be more appealing if it can run in browsers and node like CoffeeScript.
clvv··on Mozilla Wants Hundreds Of Thousands Of Firefox OS Developers
I hope Firefox OS will get frequent updates just like desktop browsers. If Mozilla manages to bring all the advantages of modern desktop browser technologies on to a mobile platform, I vision they will gain their market share.
clvv··on Why Do We Wear Pants? Horses.
What about Native American cultures? They had not seen horses until the Europeans arrived, but they certainly had pants.
clvv··on Vim clutch
If you're using X, then xcape can map both Esc and Ctrl to Capslock. https://github.com/alols/xcape
clvv··on Codestre.am: streaming your code to the masses
Here is a quick-and-hackish way to stream / broadcast your terminal (http://www.commandlinefu.com/commands/view/6788/):

    script -qf | tee >(nc -l -p 5000) >(nc -l -p 5001) >(nc -l -p 5002)
The client can then run `nc your_ip port` to watch your terminal live.

Also, I once wrote a node.js script that broadcasts recorded terminal sessions. To see a demo:

    nc wei23.net 5000
Code is on Github: https://github.com/clvv/scriptbroadcast
clvv··on Android device as dev machine
The problem is the lack of an efficient input method. I personally haven't come across any good soft full keyboard. And special keys won't work on bluetooth keyboards on old Android versions. I personally do not have a ICS device yet, but I think it's definitely possible to develope on ICS if the input problem is solved.
clvv··on Introduction to Unix shell
> It's a near certainty that a bash interpreter will be available on a Unix system; bash has become the JVM of the Unix world.

Don't assume this if you want your shell scripts to be portable. Follow posix standard instead.

clvv··on HP's touchpad was bound to be a flop
I agree that WebOS has a good ambition. But maybe that they should have updated their software stack more often. If you look at the software versions, such as Webkit, V8, node, you find that their collection of tools are heavily outdated. That's completely against the nowaday web standard of fast updating.
clvv··on Scientists' proposed calendar synchronizes dates with days
People can accomplish the same thing after learning a mental algorithm to calculate the day of the week. Doomsday rule, invented by Mathematician John Conway, is one of the easier ones to remember.
clvv··on Some Asians' college strategy: Don't check 'Asian'
An asian high school senior here. I'm currently in the process of applying to colleges. In most college applications, demographics are listed under the section where they say the information you provide won't hurt your change of getting in. I have not and will not lie about my race on any of the applications. I understand that, statistically, it will hurt my chance of getting into a top-tier college, considering I don't have perfect SAT score and GPA. But I believe that the admission officers would be wise enough to evaluate a person as a whole instead of just puting "tags" on him/her.
clvv··on Ask HN: Any good Macbook Air alternatives?
I've been using HP dm1z for half a year now. It's a pretty good portable laptop with good battery life. Although in terms of computing power it won't compare to the airs. But at $400 it is a pretty good MacBook air alternative.
clvv··on Mysterious number 6174
Some related references:

http://mathworld.wolfram.com/KaprekarRoutine.html

http://en.wikipedia.org/wiki/6174_(number)

The Wolfram link contains a list of Kaprekar numbers and Kaprekar sequences in common bases.

clvv··on Intel predicts 10GHz chips by 2011 (from 2000)
I believe the reason is memory latency, and the sequential nature of CPUs. http://en.wikipedia.org/wiki/SDRAM_latency

I'm no expert on this subject but I think Moore's Law is more or less still true, as we are getting more and more cores. Note that Moore's law never stated that clock speed doubles every 18 months. In fact, more transistor can cause a decrease in clock speed because of more gate delays.

http://en.wikipedia.org/wiki/Gate_delay http://en.wikipedia.org/wiki/Cpu#Clock_rate

Please correct me if I'm wrong.

clvv··on Gray code at the pediatrician's office
A partially related topic(maybe many of you already know): I was learning about minimizing logic expressions the other day, and I learned about the Karnaugh Map, which uses Gray code for its axes. You can read more about it here: http://en.wikipedia.org/wiki/Karnaugh_map
clvv··on Solarized - Color scheme for vim, mutt, terminal emulators
Lucius: https://github.com/vim-scripts/Lucius
clvv··on Fast JavaScript Max/Min
> Posted: January 13th, 2007

That's four years ago.

clvv··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··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··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··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··on Why are INI files deprecated in favor of the registry?
Dotfiles are really great in terms of portability.
clvv··on Firefox 4 RC now available
My modified version of your analogy:

Firefox: Emacs

Chrom{e,ium}: Vim

clvv··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··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··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··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.
Page 1 of 2Next →