HNHacker News
TopNewBestAskShowJobs

321abc

256 karma · joined June 28, 2009

submissionscomments
321abc··on Mark Cuban: The most patriotic thing you can do is "get rich"
"Patriotism is the last refuge of a scoundrel." -- Samuel Johnson

"The most patriotic thing you can do is get rich." -- Mark Cuban

Sounds about right.

321abc··on What is so wrong with thinking of real numbers as infinite decimals?
Also see:

http://speleotrove.com/decimal

321abc··on Coding Horror: Are You a Digital Sharecropper?
Wikipedia makes money through fundraising.
321abc··on FreeRice: Hack a site to feed the world
Just make your bot mimic the activity of a real human, and it won't take any more resources than a real human. And if you're crafty enough about it, no one will ever know (much less the advertisers, who are probably both clueless and don't bother to even try to check if real humans are using the site).

The only problem is that most real humans probably earn a few grains of rice, get bored, and forget about the site. So a bot effectively mimicking a typical human user wouldn't be of much use (unless it was distributed on many different computers).

Maybe some altruistic hackers could create a virus which installed ricebots on systems it infected. Though, unfortunately, that idea would likely backfire, as the ricebots would be quickly detected and that would generate negative PR.

321abc··on Forget Starbucks, work at the library instead
Bring your own snack, and coffee in a thermos bottle. Then just step outside the library for a few minutes to eat/drink what you brought.
321abc··on Forget Starbucks, work at the library instead
Maybe you could set up an SSH server on port 80.
321abc··on The shy connector: How to get strangers to talk to you
According to Carl Jung, who invented the terms introvert and extrovert, the two are really about preferring to focus inside or outside yourself. They don't necessarily have a social connotation.

The introvert, according to Jung, generally perfers to focus on his own feelings, thoughts, ideas, dreams.

While the extrovert, generally prefers to focus on things outside himself, like objects, other people, and their ideas, feelings, etc.

So, in the original sense, these definitions have absolutely nothing to do with shyness or lack thereof, or about feeling "drained" by interaction with people vs being alone.

An introvert could be perfectly happy being with other people, as long as he can focus on his own internal world. And an extrovert could be happy being alone, but as long as he can focus on people or things outside himself.

321abc··on Withold password, go to jail
Don't worry, citizen. It's only those Koran-memorizing terrorists who have something to fear. You are quite safe. Go back to sleep.
321abc··on Withold password, go to jail
I've been using computers since the 1980's, and have had dozens and dozens of passwords. I honestly don't remember the vast majority of passwords I've used in the past.

Many of the passwords I currently use have been randomly generated and are stored in a password storage app, the database in which these passwords are stored could be easily lost, damaged beyond recovery, or to which I could forget the master password.

So, if legally required to produce a password for some reason, I could quite conceivably go to jail even if I were willing to provide the password, but just couldn't remember what it was (or if it was one of the randomly generated passwords that I'd never memorized in the first place but no longer had access to for some reason).

321abc··on Ask HN: What email client do you use?
claws

http://www.claws-mail.org

321abc··on Dolphin Speak Relies on Brevity
"The researchers broke down each of these 30 behaviors into individual units. A side flip, for example, requires a dolphin to jump and land on its side -- for a total of two behavioral units."

This sounds so arbitrary. Why is jumping and landing counted as two units? If a dolphin jumps, it's going to land no matter what. Why not count it as just one point?

"Head butting takes four units, as two individuals jump, hit and use their heads."

Why four and not two?

"A simple turn involves just one unit, so does a forced blow of air out of a partially closed blowhole."

This is the only part that makes sense.

"After hundreds of hours of observation and analyses, the scientists concluded that dolphins perform simple, one-move behaviors more often than complicated, multi-faceted actions."

Or it could just be that it takes a lot more energy (and sometimes cooperation) to perform the actions which they happened to assign higher number of units to, regardless of their complexity.

"Scientists call this phenomenon the "law of brevity," and it exists in all human languages"

Or perhaps it has nothing to do with language, but everything to do with dolphins only being able to perform a limited number of actions that require lots of energy and cooperation.

321abc··on Scientific Speed Reading: How to Read 300% Faster in 20 Minutes
According to "Reading rate: a review of research and theory" by Ronald P. Carver, speed reading (not to be confused with mere skimming) doesn't work.

See: http://www.amazon.com/Reading-Rate-Review-Research-Theory/dp...

321abc··on Signs that you're a bad programmer
Using ctags and a good editor (or an IDE) will make the process of seeking to (and jumping back from) subroutines a lot less painful.
321abc··on Signs that you're a bad programmer
The author lists the following as a symptom of being "unable to reason about code":

"5. 'Bulldozer code' that gives the appearance of refactoring by breaking out chunks into subroutines, but that are impossible to reuse in another context (very high cohesion)"

I disagree with this. The purpose of breaking out code in to subroutines isn't only for code reuse. If you don't break out code in to subroutines, at some point your code is going to become unwieldy and difficult to read.

I try to stick to the rule of having each subroutine consist of no more than a page of code (so that each subroutine can be seen all at one time, without needing to scroll). Often that leads me to break up the subroutine in to many other subroutines. This improves readability greatly and makes it much easier to reason about the code. If any of the subroutines I break my code out in to happen to be reusable, that's just icing on the cake, not a necessity.

321abc··on Vim Plugins You Should Know About, Part IV: snipmate.vim
The snippet plugin with the most features at present seems to be xptemplate:

http://www.vim.org/scripts/script.php?script_id=2611

There's a pretty interesting screencast about it here:

http://vimeo.com/4449258

321abc··on Best Vim Tips
CTRL-R inserts from the register that follows it.

See :help i_CTRL-R and :help registers

321abc··on Best Vim Tips
This is just the tip of the iceberg.
321abc··on From TextMate to Vim
Yes, when learning it it is useful to know that :wq can be decomposed in to :w and :q and combined in to :wq! and :w! and :q!

But once you know that I think it's simpler to just type ZZ

321abc··on From TextMate to Vim
Tip: Instead of :wq you can just type ZZ
321abc··on From TextMate to Vim
When you start, be sure to first go through the vimtutor (just type "vimtutor" in your shell).

Then, if you have questions, come to #vim on freenode. There are lots of very, very experienced and knowledgeable people there that will be happy to help you learn.

Then, if you still need more, there's:

Vim tips wiki: http://vim.wikia.com/wiki/Main_Page

The best collection of vim scripts: http://www.vim.org

321abc··on How Learning a Second Language Changed My Life
What didn't you like about Farber's book?
321abc··on The Lost Tools of Learning: Grammar, Dialectic, Rhetoric (1947)
According to Jacques Ellul (the favorite author of the Unabomber, and one that, ironically, almost led to his arrest) it is education that makes us vulnerable to propaganda.

From the introduction to Ellul's book "Propaganda":

  A related point, central in Ellul's thesis, is that modern propaganda
  cannot work without 'education'; he thus reverses the widespread
  notion that education is the best prophylactic against propaganda.
  On the contrary, he says, education, or what usually goes by that word
  in the modern world, is the absolute prerequisite for propaganda.
  In fact, education is largely identical with what Ellul call
  'pre-propaganda' ...

  [Ellul designates] intellectuals as virtually the most vulnerable
  of all to modern propaganda, for three reasons: (1) they absorb
  the largest amount of secondhand, unverifiable information;
  (2) they feel a compelling need to have an opinion on every important
  question of our time, and thus easily succumb to opinions offered
  to them by propaganda on all such indigestible pieces of information;
  (3) they consider themselves capable of 'judging for themselves'.
Ellul's book on propaganda is well worth reading, as is his classic "The Technological Society".
321abc··on The Lost Tools of Learning: Grammar, Dialectic, Rhetoric (1947)
Are you white supremacists or christian fanatics? I've heard that, in the US, they are the most likely to homeschool their children. Do you think that's true?
321abc··on How Learning a Second Language Changed My Life
A fantastic book about learning languages:

How to Learn Any Language: Quickly, Easily, Inexpensively, Enjoyably and on Your Own

by Barry Farber

- http://www.amazon.com/How-Learn-Any-Language-Inexpensively/d...

which is available as a PDF here:

- http://fld.hit.edu.cn/english/webedit/uploadfile/20085121524...

Some articles on the TPR method for language learning:

- http://www.languageimpact.com/articles/rw/tprmax.htm

- http://www.languageimpact.com/articles/other/krashentpr.htm

- http://www.languageimpact.com/articles/other/ashertpr.htm

- http://www.languageimpact.com/articles/other/ashertpr.htm

- http://www.languageimpact.com/articles/rw/firstday.htm

More great articles on language learning here:

- http://www.languageimpact.com/articles/articles.htm

321abc··on [dead]
I, for one, welcome the demise of the shit media like the big papers, which have already reduced their value to toilet paper. Hopefully, the cable "news" stations will follow their lead to extinction.

Alternative media are far, far better. And yes, that includes blogs, the best of which publish original content by professional reporters.

321abc··on Advanced vim tips and tricks
Some other great vim resources:

Vim tips wiki: http://vim.wikia.com/wiki/Main_Page

The best collection of vim scripts: http://www.vim.org

#vim on freenode

321abc··on ZFS, btrfs, and copy-on-write b-trees
This article has just been slashdotted:

http://hardware.slashdot.org/story/09/08/01/0211232/A-Short-...

321abc··on Concentrate helps you work & study by eliminating distractions (mac app)
Or linux?
321abc··on Famous Perl One-Liners Explained, Part II: Line Numbering
One liners like this is why Perl has a reputation of being like line noise. I'm a big fan of Perl, but if any of my employees wrote this kind of write-only code, I'd fire them.
321abc··on How To Live (Comfortably) on $36 A Month For Food
That's not the meaning of the word "natural" in the context of nutrition, from my understanding. Perhaps the word you're looking for is "traditional".

Semantics aside, I'll gladly grant you that lard is a food that has been eaten in the past. But, once again, that doesn't mean it's necessarily better than other foods that haven't been eaten in the past.

An good example is "golden" rice. An argument could be made (and has been made) that golden rice could save millions of people from devastating vitamin deficiency which they would continue suffer from were they to avoid golden rice for their "traditional" foods.

Plenty of traditional foods just aren't very nutritious or healthy.

← PreviousPage 2 of 4Next →