HNHacker News
TopNewBestAskShowJobs

niggler

4,711 karma · joined September 5, 2012

submissionscomments
niggler··on Harder than it looks: rounding a float to the nearest integer
The article explicitly says

"For the sake of simplicity, in this series of posts, we assume that the argument is positive and we allow the function to round any which way if the float argument is exactly in-between two integers."

As a result, adding the condition

    float myround(float f)
    {
        if(f < 0) return -myround(-f); /* <-- the fix */
        /* ... */
    }
suffices
niggler··on Startups That Rejected $100M Offers
The point is that turning down an acquisition is a gamble (past performance is no guarantee of future results). That's not "positive" or "negative". People remember the success stories but oftentimes don't think of the failures ("survivorship bias")
niggler··on Web Framework Benchmarks Round 4
How are multiple cores handled? For example, with node.js, the standard way to scale is to run multiple instances (but according to https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast... only one instance is run).

I wonder how the results would change if only one or two cores were enabled (using taskset or isolcpus)

niggler··on Survey of Commonly Available C System Header Files
Does Cygwin GCC include the same set of posix headers as Unix GCC?
niggler··on Living On Bitcoin For A Week
"Pure sitespam, this."

Forbes.com as a whole is spam. I'm genuinely amazed by how many articles get upvoted. I guess whatever anti-voting-ring measures in place here can't compete with forbes employees :/

niggler··on Employee Turns Gaming Network Into Private Bitcoin Mine
yesterday's discussion: https://news.ycombinator.com/item?id=5636233

EDIT: wow has wired always been this bad? 16 trackers/ads according to ghostery, 20 according to disconnect

niggler··on Poll: Do you have a 3d printer?
Linux Desktop refers to the entire package, not just the underlying plumbing. OSX is MacOS built atop a BSD variant.
niggler··on The MEAN Stack: MongoDB, ExpressJS, AngularJS and Node.js
tl;dr: never underestimate "reader's tacit or criminally negligent acquiescence."

'If you honestly say: "This is good with <product>, this is bad with <product>".'

In order to evaluate the veracity of the claim, you have to try the product. And if you have to pay money to try the product to verify the claim, then it's unclear as to how many people will actually bother to verify. If you price it high enough that the number of people is zero, then you could say whatever you want without others knowing if you are being honest.

niggler··on Ask HN: Freelancer? Seeking freelancer? (May 2013)
'I refuse to write "seeking work" in capital letters under my real name'

SEEKING WORK is not the same as OUT OF WORK. The former admits cases where an opportunistic person with a job is looking for something to do on off-hours.

niggler··on The MEAN Stack: MongoDB, ExpressJS, AngularJS and Node.js
Human nature.

People get burned when they assume honesty and find that counterparties are dishonest. It's harder to get burned if you go into business or other intellectual relationships without expecting honesty. And I think, push come to shove, many founders will do what is necessary (no matter how unscrupulous) to keep their startup alive or to ensure the big payday, even if it comes at the price of turning back on promises or contracts with customers

I recommend you read http://www.zerohedge.com/node/13972 (the Conflicts/"Full Disclosure" Policy for zerohedge.com) as I think it captures the point very well.

niggler··on The MEAN Stack: MongoDB, ExpressJS, AngularJS and Node.js
Ultimately most of the technical differences boil down to a single tradeoff between performance and reliability.

In some use cases, you have many transactions against a data store that won't be modified once it is set. In a case like that, mongodb is acceptable.

In other use cases, you have more complicated transactions involving lots of separate logical units. For example, lets say you are building an inventory and order management system. Someone wants to buy a widget. You need to reduce the widget inventory and push it into a customer's order, essentially an "Atomic" operation. AFAICT there's no "simple" data model under which MongoDB can give you atomicity.

In order to make a decision, the best bet is to figure out those requirements and just try one that fits the bill.

niggler··on The MEAN Stack: MongoDB, ExpressJS, AngularJS and Node.js
Do you honestly expect a product or company blog to give an unbiased account of the product or company?
niggler··on The MEAN Stack: MongoDB, ExpressJS, AngularJS and Node.js
Lets be fair here: this is on mongodb.com, so of course mongodb will be hailed as the third coming of Christ.
niggler··on The MEAN Stack: MongoDB, ExpressJS, AngularJS and Node.js
One of the many compile-to-JS languages. Or just using emscripten.
niggler··on Craigslist's Allegations Of "Copyright" Violations Thrown Out
Original document: http://3taps.com/images/pics/430_138734862-Judge-rules-in-fa...
niggler··on Add .txt As the Extension of Your Readme file
"Maybe it is some new kind of link bait."

Ghostery shows one analytics package, Disconnect shows 4.

Trying to rack up pageviews for future ads?

niggler··on Add .txt As the Extension of Your Readme file
Do people use README or README.md for README files formatted in markdown?
niggler··on Apple has a Software Problem — Why I’ll be Switching to Android
"Apple gets most things right in terms of hardware."

Applies to Macs as well.

niggler··on Ask HN: How did you make your first $10,000?
About.com paid out $800, a few small companies paid $100, but Northrop Grumman took the prize for paying out $9300

Although not explicitly stated, I think there was a minimum requirement of $100 to get a payout from a given company. Checks were issued from each company individually, so you literally had to make $100 from a given company to get that payout.

niggler··on Ask HN: How did you make your first $10,000?
AllAdvantage: https://en.wikipedia.org/wiki/AllAdvantage

Back when I was in middle school (on AOL)

niggler··on An Appeal to Google: Make ".io" a gccTLD
What does gccTLD stand for?
niggler··on Path fined $800,000 by FTC
Can someone more familiar with COPPA give a summary of the requirements?
niggler··on Brain teaser: what does this switch statement print?
No discussion of C switch statements is complete without a reference to Duff's device: https://en.wikipedia.org/wiki/Duffs_device
niggler··on My former employer Opera Software has filed a lawsuit against me
Isn't Mozilla corporation (not foundation) for-profit?

Edit: according to http://en.wikipedia.org/wiki/Mozilla_Corporation it is for-profit

niggler··on Microsoft Azure Sales Top $1 Billion, Challenging Amazon
I played around with Azure and Heroku for node.js hosting and found that Azure wasn't as painful to setup and didn't trip up as often as Heroku (though my statement should be read as more of a criticism of Heroku than an endorsement of Azure)
niggler··on Managers to Millennials: Job Interview No Time to Text
I think the voting at https://news.ycombinator.com/item?id=5628769 has slowed down now and we can safely conclude that it is still a majority (albeit not as strong as it was in the first few years of HN)
niggler··on Poll: Undergraduate Alma Mater
The exact ranking is somewhat arbitrary, but the rankings do generally put the schools most people consider as "top schools" at the top. Comparable schools have somewhat similar rankings.

But at the end of the day, the education is only as good as the effort you put in. You can graduate from a school that isn't ranked highly and still be incredibly successful

niggler··on Poll: Undergraduate Alma Mater
PG went to Cornell IIRC
niggler··on Poll: Undergraduate Alma Mater
Question has been edited
niggler··on Poll: Undergraduate Alma Mater
UChicago was top-10 when I was applying for colleges, and to be honest I don't give much credence to the exact ranking. The set of schools in the top 20 match roughly what I would expect (saying top 5, for example, would exclude schools like MIT and Stanford)
← PreviousPage 2 of 34Next →