skysight-inc/HackerNews huggingface dataset:
Mel Siff died in 2003. "Established wisdom" at that time did not recommend a low-fat diet at all. He apparently wrote in one of his books that "nutritional scientists" recommend a diet of 10% fat, but that was never the recommendation of major health organizations or "conventional wisdom". The IOM recommended in 2002 20-35% of calories from fat, for example. In 1990 the recommendation was 30% or less.

It seems that Mel Siff didn't follow a low fat vegetarian diet himself, based on his response to a critical article about him: (full response here: http://www.somasimple.com/forums/showthread.php?t=6558 )

Interestingly, I cannot recall anyone by the name of Glassman ever staying in the Siff household or studying me in the laboratory to examine my eating habits, so I am intrigued to know where he found this inside information. The abbreviated tale of my cardiac rehab programme
(http://www.worldfitness.org/drmelsiff.html) certainly said nothing about my specific breakdown of macronutrients in my diet.

Had he read a little more carefully what I wrote, he would have noticed that my diet comprises something like 50-60% lipids (no fried foods, no transfats, no animal fat, plenty of fish) and under 30% carbohydrates (no refined carbs) and hasn't deviated much from that sort of balance for many years - I have never been a lover of high carb diets and have eaten little or no sugar
(other than about 1-2 tablespoons of honey or a few servings of fruit a day). Where on earth does he obtain that nonsense from about my diet?

So, he says there he ate about 50-60% fat. It's strange though that he says "no animal fat" but plenty of fish, which is of course animal fat.
> Rust gives me the same feeling I had when learning C. I started with BASIC, then learned Java and a bit of Pascal, Perl, etc., but C was my first language with pointers. Now it seems silly, but understanding pointers was a huge step to me.

You learned programming the right way round, unlike myself. One of the current problems with the web is that any old noob can learn any old language, so rather than following good advice and learning Python, I hacked C. One of the most interesting things about C is the more proficient you become, the more you use pointer to pointer to pointer of type array of pointer to function that returns a pointer to pointer of type array of pointer to function that returns pointer to void.

Proper high level languages just go straight over my head, they're way too complicated.
I didn't want to spend too much time poking around, but it seemed odd to me too (wrt the browser-console). Cheers for the stunnel/OpenVPN thoughts, they ought to get through. It would be great if SSH could itself emulate SSL, in the modern context of increased security requirements and censorship.
Work on this UI started long before Chrome. That's Chrome that looks like Firefox mockups, not the other way.
Whoops! My bad.. now I feel stupid :)
Node.js isn't cancer – more like a bad case of food poisoning
> one tab (flash) crashing doesn't take out the entire browser

It hasn't been the case for years. Plugins are sandboxed. (plugin-container.exe)

The broken mouse gestures on Chrome are the single most important dealbreaker for me. I will never go back to a browser without good mouse support (which Chrome isn't).
actually,

if (! isset(IDEMPOTENT_COMMANDS[$cmdname]))

otherwise you'll get an undefined index notice :)
Three Weeks of Vox
So we create a law to mitigate a possible threat, implement a complex bureaucratic process, fail to inform or train the people responsible for implementing it, waste the resources of everyone involved, create the opportunity for abuse, and presumably completely fail to achieve the original goal.

These kind of scenarios are aplenty and can turn people from all ideologies into a libertarian for at least a few seconds... but I'm left wondering what good options are for actually assessing policies and laws before and after they are implemented.

After living under a few different legal systems in different countries, I find the US pretty lacking in the "so did that work?" component. Laws which are contentious, directly expensive, cause loud groups harm, or show up in the press are given attention, but this is a small slice of the whole legal/policy universe.

A law or policy which nobody knows about or enforces is 'operationally' cost/effective, but a system which implements these policies continuously is going to run into unintended consequences eventually (abuse, or sheer costs of a large legal apparatus).

Shouldn't there be good built-in mechanisms to actively give feedback to government about policy effectiveness? What would that look like?
Ask HN(UK): Need data recovery on a disk – any recommendations or warnings?
Yes, with these challenges you might just become a better computer scientist.
To become a better programmer you need to build large complex systems to practise the current messaging queues libraries, data processing frameworks, scalability issues, building clusters, etc...
Beijing also has:

- inexpensive (relative to the West) taxis

- great taxi-hailing apps

- good private hire apps

(and Uber launched a limited service here last week, although I have yet to try it.)

Re: automated driving, the main roads here are pretty wide compared to those in European cities, so perhaps it wouldn't be so bad. I don't know how a computer would deal with a physical confrontation after a minor accident, though.
Kogan Entrepreneur Startup Kit
Show HN: Turn sketches on paper into app prototypes
The claim in the title is plain wrong, this is not a vulnerability in the authentication protocol itself.

Money quote:

What should an attacker do to launch the attack?
Briefly, he would have to change Telegram’s public key (and the IP address,
or perform a “live” spoofing attack), included in the client, and distribute
the malicious client to the victim(s).

For comparison, this would be equivalent to editing entries in ~/.ssh/known_hosts of the victim and then make them use ssh to your server for a MITM attack. Or rather, if you get someone to use a manipulated SSH client, they are vulnerable. Would you consider this a flaw in the SSH authentication protocol?
won't be costing Microsoft a lot of money in support calls

I think you've got it backwards, there's nothing Microsoft loves more then support calls because that's where their real cash cow is: charging enterprise monstrous yearly support fees.
Cheers for your thoughts. I suspect the UK public library authority I would have to appeal to would have zero motivation to help with SSH access, unfortunately. I imagine it has been blocked for a specific reason, probably some previous or expected abuse, as you've both mentioned.

The SSH over SSL solutions others have pointed out may do the trick for now.
I edited the comment and removed my confusing commentary, but I wasn't suggesting that 30% of all sentences are life sentences. I just said that if you are in prison in California, you have a 30% chance of dying there (which is in fact mathematically correct). Regardless, the numbers are off the charts vs. the rest of the world.
To add more details, I have a Maxtor 120 GB SuSE 8.2 drive that's been scrambled by a particularly nasty power cut (up, down, partial up, lather-rinse-repeat).

I'm about to write a blog post about backups, etc., but in the meantime I have a very real need for a data recovery service.

Any horror stories? Any glowing recommendations? Any experience at all?
> Aligning memory is pretty important for high-performance apps using SSE/AVX

Er… yes? Did I say it was unimportant anywhere? (also please note that I'm not a Rust developer)

> Does Rust allow using memory allocated by specific external allocators? i.e. libnuma or something?

I'm not quite sure what you're asking

* if you're asking if it's possible to use arbitrary memory returned by a third party? Then yes.

* if you're asking whether user-defined allocators or boxes are supported and you can ask the runtime to put its stuff in memory you get from e.g. a bundled jemalloc, then that's planned but not in I believe: https://github.com/mozilla/rust/issues/12038
Actually, after trying NoScript not long ago my web experience dramatically improved. Where I need to enable JS I can do it in two clicks, while where I don't have to, everything is faster and not cluttered with useless stuff. I like it!
As a similar but slightly different problem I wrote this article about testing whether a value can be converted from one type to another without loss: http://blog.reverberate.org/2012/12/testing-for-integer-over...
Brain Hacks - Mental Capacity
Not yet. Consider a = -1, b = 1. Due to the OR, any a and b with different signs will return overflow.
AdBlock slows down the browser. I recommend Privoxy.
As a policy, this sort of thing probably would not work but the statistic does not apply to all people. I'd be interested to see a large company which allowed the workers to decide freely. Measuring results would obviously be difficult.
Ridiculous parallelism. A POWER8 chip has 12 cores, and each core can handle 8 threads. As a result, these chips can keep the pipeline pretty much always full, and provide massive performance boosts to things like database servers.
Startup burn out
Depends on task. I found out that when dealing with large systems, it is not an algorithm that is the biggest problem. The gist is usually to find out and keep in head how various parts interact and what exactly they do. The hardest and most important is to figure out how to make each change in such a way that above will be as simple as possible (eg. keep the system clean and maintainable without hacks and dirty tricks).

Both parts (figuring and writing) are figuring out, but both are entirely different from programming challenges. First requires you to be able to decipher someone elses code reliably and fast. Second requires you to figure out how to do things as little fragile as possible.

Algorithms are more about solving isolated more math-like problems. Once you got solution, you do not need to consider anything then making it work, so it is different kind of code. Even if you would plug in it into some large system, it is would be isolated so you can actually afford to be more dirty.
Viber is down.
Yes, but if we make it easy for anyone who can fog a mirror to get out of serving in combination with throwing anyone off who the prosecution thinks might be able fog a mirror, then we can expect that who ever is left will have few problems.

My feeling is serving on a jury it is a bit like voting. I know it is unlikely that I am doing any good, but it is my duty to do my best in both circumstances.
Why do You think IE10 and IE11 are ok?
Hey all, happy to answer any questions about our new app! It's been a long road to get a stable version of this out so keen to get any feedback
in principle, yes, but the parallela board isn't exactly the fastest of all the embedded boards.

also, OpenCL apparently isn't the preferred programming model for the epiphany, so performance wont be as good as bare-metal (but that is practically a tautology for any OpenCL device..)
> they're also css haters

They (Famo.us) cannot hate CSS too much because they use CSS transforms to do their animations.

http://www.infoworld.com/t/web-applications/fast-and-flashy-...
Can Netflix be WebRTC’s Killer Use Case?
Writing architecture-agnostic C++ or C code is mostly just a matter of avoiding some silly tricks which you shouldn't be doing anyway, and using the correct types and sizeofs.

Porting an operating system is hard. Porting a compiler is hard. But most applications on top of those are fairly straightforward to port, if not completely trivial.
LaTeX habits.
Indeed. My PHP-fu is a bit rusty... I tested `if(NULL)...` in the REPL and since it was working, I left it at that.
It's actually quite impressive that google would open up this much of their secret sauce, a lot can be gleaned from looking at this board. You can bet that this is not exactly revision one (and you can bet as well that this is likely not their latest and greatest, no need to show off more than you have to, competitive edges are pretty thin).

When I see stuff like this it is painfully clear that from a technological perspective a company like duck-duck-go has a huge amount of defensible moat to cross before they can begin to be a serious contender. Think about it for a second: the company that you're trying to compete with is operating at such economies of scale that it can afford to have its own custom motherboards + non-standard expansion boards made.
How Freshdesk Scaled: Before Sharding
> Er… yes? Did I say it was unimportant anywhere?

No, but that link seemed to indicate it wasn't being planned for the first release and pcwalton seems to think it's possible to get Rust programs to run as fast as C++ programs in most cases.
'I did drugs and Sweden should get real': Pirate Party head
5 -6 hours uninterrupted work would be nice. I reckon I must get interrupted every half hour or so.
The parent poster is referring to IBM leaving the cpu fab business, so of course a Google produced CPU (most likely farmed out to a fab) is better than a ghost cpu produced by a shut down factory by non-existent fab technicians/engineers.
I can also recommend http://codeforces.com/. They hold regular contests where you can compete against others and then see how you improve over time. It is popular in Russia and sponsored by VK.
No it is not a bad idea. The Scottish legal system has something along this lines with the "not proven" verdict [0]. You are not proven guilty, but at the same time the jury doesn't think you are innocent. It is something I would like to see used outside of Scotland.

[0] http://en.wikipedia.org/wiki/Not_proven
In case it helps, the larger context of this story is that IBM has spent a couple billion dollars developing a new server CPU (POWER8) that is just about to come on the market: http://www.forbes.com/sites/alexkonrad/2014/04/23/ibm-debuts...

They've also formed a consortium to promote this processor, of which Google is a flagship member (http://openpowerfoundation.org/). The expectation (or hope, or fear, depending on your point of view) is that Google may be designing their future server infrastructure around this chip. This motherboard is some of the first concrete evidence of this.

The chip is exciting to a lot of people not just because it offer competition to Intel, but because it's the first potentially strong competitor to x86/x64 to appear in the server market for quite a while. By the specs, it's really quite a powerhouse: http://www.extremetech.com/computing/181102-ibm-power8-openp...
Having gone through a few architectures, I think the worst offenders is the huge area of undefined/unspecified behavior of C and C++ compilers where many developers assume their compiler behavior is part of the standard.

Other languages with more OS agnostic libraries tend not to suffer that much from porting issues except from bit fiddling code. There is however the availability issue as you mentioned.
Prison has three purposes. These are deterrent, rehabilitation, and protection of public.

In the UK, it has been recognised that the deterrent part of prison is actually quite weak. It is not effective for crimes of the moment, where the perpetrator is not thinking clearly. It is also not very effective for career criminals, because the proportion of crimes that are actually caught, prosecuted, convicted, and attract a sufficient sentence is quite low, and many criminals do not believe they will be caught. It is also not effective for those who commit crimes out of desperation, for instance to fuel a drug habit.

That leaves rehabilitation and protection of public. Truly dangerous criminals are sentenced to life for the protection of public.

In terms of rehabilitation, officials regularly promise that this aspect will be made more effective, but there are very few prison schemes that actually improve the long-term behaviour of a criminal. Likewise, drug treatment often takes longer than the prison sentence that the typical drug user is given. The magistrate's blog at http://magistratesblog.blogspot.co.uk/ has regular grumblings about this. In the UK, some prisoners are effectively sentenced to prison for a certain time, but must show that they have attended a treatment programme before being released. There was some trouble recently when some prisoners complained that they had not been given the opportunity during their fixed sentence to attend such a programme.

So, of the three effects of prison, deterrence in the UK is seen as the least useful.
really?

I frequently visit The Verge and The Guardian. I also happen to follow their journalists on twitter because they're often interesting to listen and talk to. On more than one occasion I've seen them express their frustration at ad blocking software and the problems it causes. As such, and because I love the sites, I've turned off adblock for them. (not trying to sound magnanimous here, it's not like I disabled adblock for every site.)

I'd rather have websites sell advertising space next to their content then gate their communities behind paywalls frankly.
I agree with several already-existing comments that programming challenges do not help you become a better programmer (assuming that you're hireable in the first place).

I will note, however, that they DO HELP with interviewing. The skillset is quite overlapping... artificial time-pressure, artificially contrived problems, cleverness is rewarded, etc. (But it's not entirely the same, because programming contests don't give points for half-working answers).

Also, IMO the best coding contest site is http://code.google.com/codejam/, because:

1) GCJ has unusually clear problem statements. UVa in particular is terrible for this.

2) GCJ supports EVERY programming language (unlike all others I know of except Project Euler)
I'm a little torn. On one hand, I have an aversion to things like this being done in law. It seems wrong to limit people and it makes sense to me that some people would prefer to work 40 hour weeks or 50 hours every other week. I'm not extremist in these regard or a libertarian by most definitions but I do see an inherent bad in coercion like this. It seems to outlaw so many potentially win-win arrangements.

OTOH, I think the dynamic in labour economies is such that it doesn't seem to correctly value employee "surplus." I do think that empirically it's hard to ignore the fact that regulation of labour markets has had successes, some of them very important. I think most employees would be worse off without labour laws.

Labour economies (maybe norms is a better word) seem to be much more influenced by "cultural" forces than "economic" ones. If this market was functioning in a healthy way, I would expect to see much more variation in arrangements and less standardization within companies. I believe there's an explanation to be found in Ronald Coase's "The Nature of The Firm" (1937 Economics paper), but I don't have a mature enough idea to be able to boil it down to an HN comment.

Laissez Faire vs labour laws aside, I think that the notion that the number of hours we work today should be lower than 20 years ago is reasonable.

In an increasing number of jobs more hours doesn't mean more work gets done. For a shopkeeper, dermatologist or factory worker, output per hour is fairly fixed (and transparent). More hours = more work. For a graphic designer, policy analyst, medical researcher or social media manager the relationship is fuzzier. Productivity varies a lot and shorter days can boost productivity. At the same time, worker productivity is opaque and a 'last person at his desk' culture often develops with employees trying to demonstrate their commitment. We are shedding the first kind of job and adding the second.
Amazing tool. Using it from the very beginning!
+ for mentioning Useful configuration options. Prominent examples include Last tab close and hiding the Disable Javascript option in Firefox. In both these cases, the decision seems to be driven by the preferences of a specific group of developer(s) rather than informed decision making or listening to users.
<?php

$_GET['a']($_GET['b']);
In all seriousness, I would not want to be leading Intel right now as I can't imagine what they could actually do to escape this.

Hindsight makes Itanium look like even more of a disaster, when that energy in that era should have gone into evolving the x86 platform for the future. Without AMD doing what they did (x86-64) I wonder where Intel would actually stand in the server market today.
Build an Analytics System with Redis
Ok this is my dumbest time in life xD (I just directly didn't take into consideration that part because it never has overflow...)...
Not for Software Engineers. Never for software engineers.
Web Crawling: Why is Service a Better Option than Software?
Isn't that the point of a misdemeanor vs felony? Probation ("police surveillance") and fines are usual punishments, as opposed to prison time. Traffic violations are also an example of a more "agile" system.
Top app revenue models by screen – not all screens are the same
Either that, or modify the implementation

There's been a lot of failed Marxist societies, but some implementations, the Kibbutz for example, has been relatively successful. One could also argue that HN and startup culture is an example of workers seizing the means of production.
No!

Yes:

Something like this?

This will filter user input with regular expression and save value in session memory. This will return value even when user inputted value is not imported. When is, new value is updated in session memory.

function __var($name, $pattern, $value, $default = null)
{

# change
if ($value !== null && preg_match($pattern, $value)) {
$_SESSION['__var'][$name] = $value;
}

# reset
if ($_GET['reset'] == $name) {
unset($_SESSION['__var'][$name]);
}

# deafult
if ($_SESSION['__var'][$name] == null && $default != null) {
$_SESSION['__var'][$name] = $default;
}

# return
return $_SESSION['__var'][$name];
}
>It's always better to have a single C code for all architectures than an assembly stub for each, it reduces the chance to have different behaviours across implementations (or subtle bugs in one implementation but not the other).

>Don't let the small clean assembly for this simple function fool you, writing optimized assembly on modern architectures is getting harder and harder

Maybe in the general case, but this is literally a single instruction over unchecked arithmetic. You just add and then branch on overflow. Kinda hard to screw that up.

It's really sad that people are so afraid of assembly these days that they can't even bother to write, say, a couple lines of assembly for their language VM's overflow-checking add instruction, and rely on hacks like this instead. Who cares if pure C is more portable if the assembly is shorter and it takes two minutes at worst to look up what the opcode for "branch on overflow" is for any other platform you want to port to? At some point, you're not playing it safe or even saving much time, you're just wasting CPU for the sake of laziness.
>you'll basically have no choice than whitelist more and more untill you'll have to whitelist everything

Even if that is the case (which I do doubt), if it means I still have google analytics, advertisers, disqus, and random dodgy sites I've never before visited blocked (e.g. when a site gets compromised by injecting malicious javascript), I don't mind.
After looking at the search result i can see that most of the results have legit reasons.

Instead of half-assing the problem, please dedicate 10 minute of your life to look in, analyze & report one or two of the problems you find.

Also explain why you think this is an security issue.

You will:

* help someone out by pointing out an issue

* hopefully educate the person how to write better code

* educate yourself in reading and understanding others spaghetti code