Better HN
topnewbestaskshowjobs
Log inSign up

pieceofpeace

766 karma · joined Mar 20, 2009 (17y ago) · 85 submissions

Submissions

1.

Why Rust for Low-Level Linux Programming?(groveronline.com ↗)

200 points · by pieceofpeace · 10y ago · 226 comments

2.

Half of U.S. Freelancers Wouldn’t Take a Job No Matter What(techcrunch.com ↗)

2 points · by pieceofpeace · 11y ago · discuss

3.

Becoming Productive in Haskell(mechanical-elephant.com ↗)

354 points · by pieceofpeace · 11y ago · 203 comments

comment 12y ago · link · parent

No, it is actually more secure than Lastpass because the site is opened by KeePass directly (in the browser he specifies).

comment 13y ago · link · parent

I have a repo with 3000+ files and I can't notice any delay searching with CtrlP. I have the following custom file listing command in my vimrc:

    let g:ctrlp_user_command = {
      \ 'types': {
        \ 1: ['.git/', 'cd %s && git ls-files'],
        \ 2: ['.hg/', 'hg --cwd %s locate -I .'],
        \ },
      \ 'fallback': 'find %s -type f'
      \ }

comment 13y ago · link · parent

Best approach would be to use the 'ui-if' directive from angular-ui

  <ul>
    <li ng-repeat="name in names">{{name}}</li>
    <li ui-if="!names.length">There are no names in the list</li>
  </ul>
: http://angular-ui.github.com/#directives-if

7.

PyPy - Call for donations for Software Transactional Memory(morepypy.blogspot.in ↗)

9 points · by pieceofpeace · 14y ago · 1 comment

8.

Alan Turing’s school reports(alexbellos.com ↗)

5 points · by pieceofpeace · 14y ago · 1 comment

9.

A Crazy Programming Language Idea: Prescriptive Trait Inference(lambda-the-ultimate.org ↗)

2 points · by pieceofpeace · 14y ago · discuss

10.

Maciej Fijalkowski's view on PyPy's future(lostinjit.blogspot.com ↗)

86 points · by pieceofpeace · 14y ago · 21 comments

11.

New Year's Python Meme(blog.doughellmann.com ↗)

1 points · by pieceofpeace · 14y ago · discuss

12.

Colorless green ideas sleep furiously(en.wikipedia.org ↗)

2 points · by pieceofpeace · 14y ago · discuss

13.

How Much Do Mood Swings Drive Business Cycles?(freakonomics.com ↗)

2 points · by pieceofpeace · 14y ago · discuss

14.

Spot Pornography on Facebook for a Quarter-Cent an Image(bits.blogs.nytimes.com ↗)

1 points · by pieceofpeace · 14y ago · discuss

comment 15y ago · link · parent

http://www.exquisitetweets.com/tweets?eids=eqt3bK9L1E.equdE5...

"I would really love to know the contents of the CBP file on me. It's too bad that they refuse to disclose it via TRIPS or any other system."

comment 15y ago · link · parent

> I don't think "cowardly" is the right way to put it.

Oh, is "apathetic" a more comfortable label ?

> The level of harassment you put up with is obscene, and that you continue to stick to your guns in the face of it is admirable. That said, it's not something that most people want in their lives.

That guy is getting harassed a lot because he is alone. I don't think the overloads up there have the courage to harass tens of thousands - do they ? Wide ranging support means less heroism will be required to get what people want. He is not fighting a personal battle, right ? It is better to fight smaller battles now and avoid the possibility of all out wars that we are seeing in Africa and the Middle-East.

> Dealing with the level of harassment you face imperils all of those goals. Unless someone is dedicated to a cause and willing to sacrifice a lot to serve it, it's unreasonable to ask them to invite that kind of drama into their lives.

So, that person won't even "want to meet or correspond with" them. Do they realize the stark contrast between Jake's priorities and theirs.

comment 15y ago · link · parent

We (India) are prospering because we are united.

Pakistan and China are trying to help India 'break free' but I am sure they won't succeed.

comment 15y ago · link · parent

You are right that "the purpose of many the constraint techniques seem to be aimed at creating puzzles that are amenable to humans, not solving them"

I shared the link because I found his sudoku generator and the constraint methods interesting.

> That would be backtracking.

Let me quote the first para in full:

  The solver uses depth first and/or breadth first tree search
  with constraint propagation to prune the search for the next
  best move (forms of forward checking.) There are space/time
  tradeoffs between depth/breadth first search and the constraints
  used; sudoku(1) has options to control the combinations.
  The common characteristic for all constraints, here and elsewhere,
  is that they avoid trial and error. Its fine for a computer
  to guess and backtrack but a definite breach of puzzle manners
  to require a human to do so.
I could be wrong but, yes, it does use backtracking to find the constraint that can give a number for an empty cell but it never has to change a number it has put in a cell. That differs from the trial and error approach that moves forward by guessing values and checking if it leads to a valid solution.

comment 15y ago · link · parent

Glenn Flower has written an (open source) program that solves using constraint propagation only. It does solve some of the hardest Sudoku's.

He discusses the strategies used here: http://www2.research.att.com/~gsf/sudoku/

comment 15y ago · link · parent

You can also do this:

  $ man man

comment 15y ago · link · parent

Dating is generally considered a 'dirty thing' outside metros. Urban India is mostly monolithic. The real differences are only seen in semi-urban and rural regions. And yes the sub-cultures are quite varied but that doesn't mean there is no pan-Indian identity to which you can market. Understanding the differences and similarities is the key if you want to reach the majority of the billion plus population.

comment 15y ago · link · parent

Ctrl-r is what I use too. Usually requires fewer keystrokes than other methods discussed here. And it works for all commands in shell history.

comment 15y ago · link · parent

[From: http://www.laweekly.com/2010-12-09/news/jeremy-marks-attempt...]

The first thing to understand is that Jeremy Marks touched no one during his "attempted lynching" of LAUSD campus police officer Erin Robles.

The second is that Marks' weapon was the camera in his cell phone.

The third is that Officer Robles' own actions helped turn an exceedingly minor wrongdoing — a student smoking at a bus stop — into a state prison case.

---

Edit to add: Jeremy wasn't smoking, just recording the cop (which is legal in his state)(wo)man-handling the smoker.

24.

The Dangerous Myth of the Hero Entrepreneur(project-syndicate.org ↗)

6 points · by pieceofpeace · 16y ago · 2 comments

comment 16y ago · link · parent

That is not the point the Google spokesperson was trying to make.

The full quote: "It says a lot about Microsoft's approach to customer lock-in that the company touts its proprietary document formats, which only Microsoft software can render with true fidelity, as the reason to avoid using other products".

So they were complaining about MS making it hard to decode the Word format and making it tough to preserve format when importing.

comment 16y ago · link · parent

> There are an infinite number of minor things that would be pretty good to do that would "just take a minute."

The search link is at least as relevant as the bookmarklet link and certainly more relevant than the webmynd and mixpanel links with images.

> Basically, points exacerbate the "someone is wrong on the Internet" trap.

While i am not sure about that, I suggest that voting for comments should be delayed like the temporarily hidden reply link, that may reduce some reflexive voting.

comment 16y ago · link · parent

Do you prefer large corporations over FCC to "control the Internet"?

comment 16y ago · link · parent

> acting like greedy assholes to the point that the regulators step in

Yes, simple risk/return analysis? And they were warned too.

"Don't harass the chicken that lays golden eggs too much."

123