News for hackers. Stuff that matters.

clvv

This video has a very good introduction to the problem.

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

Re:Command line tools for the novice on Friday July 27, 2012 @03:51PM (#4303296)
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).

I think the compiler would already be available in javascript if that's the case.
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).
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.
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.
Re:Why Do We Wear Pants? Horses. on Saturday July 14, 2012 @08:39PM (#4245729)
What about Native American cultures? They had not seen horses until the Europeans arrived, but they certainly had pants.
Re:Vim clutch on Thursday June 21, 2012 @10:30PM (#4145128)
If you're using X, then xcape can map both Esc and Ctrl to Capslock. https://github.com/alols/xcape
Re:Codestre.am: streaming your code to the masses on Sunday April 01, 2012 @06:01PM (#3785116)
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
Re:Android device as dev machine on Thursday January 12, 2012 @04:31PM (#3458027)
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.
Re:Introduction to Unix shell on Tuesday January 10, 2012 @01:58PM (#3448400)
> 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.

Re:HP's touchpad was bound to be a flop on Sunday January 01, 2012 @11:26PM (#3414782)
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.
Re:Scientists' proposed calendar synchronizes dates with days on Thursday December 29, 2011 @12:18AM (#3402624)
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.
Re:Some Asians' college strategy: Don't check 'Asian' on Saturday December 03, 2011 @06:50PM (#3309288)
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.
Re:Ask HN: Any good Macbook Air alternatives? on Sunday August 28, 2011 @10:53AM (#2934014)
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.
Re:Mysterious number 6174 on Monday June 06, 2011 @03:47PM (#2626229)
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.

Re:Intel predicts 10GHz chips by 2011 (from 2000) on Sunday May 29, 2011 @07:12PM (#2597879)
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.

Re:Gray code at the pediatrician's office on Tuesday May 24, 2011 @08:42PM (#2582393)
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
Re:Fast JavaScript Max/Min on Monday March 28, 2011 @01:42AM (#2377285)
> Posted: January 13th, 2007

That's four years ago.

Re:Pick a number from 1 to 10 on Sunday March 27, 2011 @05:16PM (#2376051)
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.

Re:Time-saving tips for Linux on Thursday March 24, 2011 @12:49AM (#2362906)
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.
Re:Time-saving tips for Linux on Thursday March 24, 2011 @12:44AM (#2362895)
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.

Re:What is Bitcoin? (Video) on Wednesday March 23, 2011 @01:40AM (#2358208)
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.

Re:Why are INI files deprecated in favor of the registry? on Saturday March 19, 2011 @03:52AM (#2343182)
Dotfiles are really great in terms of portability.

Older »