skysight-inc/HackerNews huggingface dataset:
TBH that's true for most foods (not necessarily less but not exactly what the label says).

The most common way of calculating the caloric value for food is by calculating the fat, fatty acids, proteins and carbohydrates by weight and assigning them the common caloric value this in itself is not accurate to begin with.
The more accurate way is going to be by testing the overall caloric potential of the food before digestion and then checking the caloric value of the fecal mater after digestion, but that isn't something easy to do.

If you are selling a hand made sandwich that data might be available for most ingredients and you'll end up having quite an accurate caloric value. But with many processed and mass produced food products that's simply not the case as it's quite hard to estimate what exact caloric value your body would extract from each portion with so many ingredients from various sources.

The biggest problem is that not all foods are digested the same way this is both universal e.g. foods with higher percentage of non soluble fibers reduce the caloric value (10-30%) and non-universal per person specific metabolism, your personal digestive track biome and many other factors like how much activity have you done before and after eating.

Eating a more or less rounded meal on an exact schedule and a very mild exercise (like a casual walk) shortly after the meal can reduce the amount of calories your body extracts from the food quite considerably.

Now it's true that genetics and some other circumstances play quite a big role, but eating on schedule and not sitting straight after heaving your food can do wonders for some one who is trying to either lose or maintain weight.
Yes burning a couple 1000's of extra calories a week at the gym can do wonders but in many cases it's not as effective as proper diet management and diet management isn't about counting calories is about finding a good combination of what your body will digest well but not over digest and teach your body that it doesn't need to hoard everything because it knows that the next meal will come on time.

When you eat regularly and induce a system in which your body would rather metabolize what it needs straight away and use that instead of hoarding everything and converting it to fat while burning your glucose reserves (which what induces the odd hour cravings) works better than just counting calories.
You can have 2 people eating at exactly their BMR with the same caloric intake and outtake and one would lose weight and the other would gain it just because one eats regularly 4-5 times a day and the other eats irregular meals and snacks when they feel hunger.
My understanding is that the OS X EULA does not permit OS X to be run on non-Apple hardware or in a virtual machine that is not also running on Apple hardware.

So if you want to test on OS X (including Safari) then you need at least one Mac.

Sharing a single Mac for testing could be enough, but given a team of more than a few devs and it may become a bottleneck.

You can run Windows and Linux VMs on a Mac - without breaching any EULAs.

For web devs who care about Safari, Macs become almost mandatory.

Note, I do not own or develop on a Mac. I primarily work on a desktop simulation software written in Java. I found the Mac love professed by other devs I know somewhat bewildering for a long time. I was only when I dabbled in some web development with a Rails app that I realised how much pain came from browser differences across platforms. Now the strong preference for Macs made more sense.
if they had instead found that there were more calories, they could have branded it as 'a better energy food'...
What is your memory style?
Chill dude. Don't blow a gasket.
The benchmark page of the pybind11 documentation [0] compares build times and generated library size with Boost.Python.

[0] http://pybind11.readthedocs.org/en/latest/benchmark.html
Facebook to Publish Designs for `Big Sur' AI Computer Hardware
It currently appears to be mostly stop.
On my machine, (Ubuntu 14.04) look only performs a binary search if the "-b" option is passed (unless no file is specified, in which case it behaves as described in the linked manpage). My manpage notes in the compatibility section:

look uses a linear search by default instead of a binary search, which is what most other implementations use by default.
There's some real effort that was put into it: https://lists.freebsd.org/pipermail/freebsd-current/2010-Aug.... I don't know how it compares to all the alternatives.
Report from the first reproducible builds world summit
I can't get the first level to play, seems things are still overloaded. Really looking forward to this though, hope you will post or email again once things settle to remind us about it.

edit: this is the message im getting trying to play first steps, if it helps, dashboard says "Trades.Exec() (Status: playable!)" (3:08 UTC)

> We couldn't start the level: This level has been locked by a different server. (Sorry if this happened accidentally as a result of a server crash -- it will clear up in an hour.) Refresh page to check if server is down?
I have considered myself a night owl all my life, ever since I was a kid. I typically stayed awake until 4am or later. Weekends, always sleeping super late -- 2pm, often later. Having a 10-6 job has always been hell (and 9-5 impossible), with frequent oversleeping. The last few years I have been going to bed around 1am, but still struggling to get up early.

About 4 weeks ago I started limiting my caffeine intake. I only drink a bit of espresso in the morning, then nothing after that. The impact was immediate: I suddenly found myself waking up before my alarm clock, every day. In the weekends I am generally up at 8am, which for me is highly unusual. I'm weirded out by it, actually. Caffeine seems to really mess up one's circadian rhythm.

(I don't think the OP is a night owl; an evening person, maybe, but going to bed by midnight is laughably normal.)
Dell currently makes two laptops that officially support Ubuntu and they're great. I had my company buy me one when I started there and I'm very happy with it.
When sorting the file first I get no output anymore:

sort ~/.zshrc -o /tmp/.zshrc

look "#" /tmp/.zshrc

Sorry for the noise but I am confused... :|
Will cheaper health insurance raise wages? The evidence is thin
Ruby Web Applications Without Rails
College graduate earning and learning: more on student choice (2011)
I misremembered a bit; it was Turn Off Apache Keepalive: https://hn.algolia.com/?query=patio11%20apache%20keepalive&s...
Really hoping they can also find non-full-time placements.
Bitcoin Days Destroyed
There's a corollary to Betteridge's Law: when someone posts an article with a question mark in the headline to Hacker News, someone will inevitably post a comment to the article that mentions Betteridge's Law.
Where I live, the sun sets in November and returns in February at this time of the year. Sync to that ;)

Likewise it does not set for weeks in summer.
Because they can both stop working around the same time.
Kcal = 1000 calories

calorie = amount of energy required to heat 1g of H2O 1 degree Celsius

This is defined in chemistry 101.

This entire thread sort of makes me want to face palm.
Managed to get through level 2 eventually, lot of retries while boxes were being rebooted etc. The calls to /gm must allocate an instance or something of that sort as once you manage to get lucky on that step the game will work it seems.
Did you guys consider using Elixir/Phoenix? Seems like it would have been a good fit (in terms of scalability) for what you guys have built.
It's seems the site is extremely broken, I can't navigate anywhere and clicking links that have "#" href's don't do anything.

["handleListAllowedLevels", Object]
blotter-bundle-dd01d8c9.js:1549 No level specified in URL.
blotter-bundle-dd01d8c9.js:1605 ["enterLevel does not think it can reenter level: ", "first_steps", NaN, Object]
blotter-bundle-dd01d8c9.js:2602 ["handleEnterLevel -> startLevel", Object]
blotter-bundle-dd01d8c9.js:2556 ["Error starting level:", Object]
Madeon Adventure Machine
I wish I could sit down with every person on this thread and devote as much time as required for me to hear out their position and me to make mine. But, since I can't and since the info is already out there, I'll just say, please, pleaseeeeee go educate yourself.

Humanity has just about built the infrastructure to lock in 2 degree temp increase. We are talking about a matter of years, not a decade. We are talking about locking in, not higher probability.

Yet, there is uninterrupted talk of growing our economies (but little talk of reducing the wealth gap). If our economies are to continue growing. If we continue to be an extraction oriented species. If we continue to spend tens of billions a year searching out new fossil fuel reserves when we can't use half of those we already know of without pushing the 4-6 degree threshold..?

Nature, will go on. Some portion of humanity, will go on. It's not the end of the world. Just the end of the world as we know it.

If today everyone ditched their cars and used public transit and bikes, we shut down the airlines, and became vegan we'd be most of the way there. Switch to organic farming and cradle-to-cradle manufacturing would almost surely get us the rest of the way there.

Yeah, I know, that's not going to happen and people don't want it to. My point is simply, the solution is not some black magic or future technology. The solution is simply a choice.

edit: for cradle-to-cradle, see... https://en.wikipedia.org/wiki/Cradle-to-cradle_design
The "ack" you reference is apparently faster only in that it's easier to specify exactly which files to search or not to search, which obviously can also be done with grep, e.g. combined with 'find'.

As for grep itself, it has had many incarnations over the decades with various pluses and minuses.

The current GNU grep allows 3 kinds of regex, basic/extended/perl -- the latter being what ack supports.

Note that Perl regexes have extensions beyond regular languages that are inherently slower than the automata specified by basic regexes. Power versus speed.

E.g. grep(1): "Back-references are very slow, and may require exponential time."

For further info:

> why GNU grep is fast
> Mike Haertel mike at ducky.net
> Sat Aug 21 03:00:30 UTC 2010

> Here's a blog post from 2006 about a developer trying to "beat grep" and looking at the algorithms it uses; it goes into a little more detail about the "doesn't need to do the loop exit test at every step" optimization mentioned in this email.

http://ridiculousfish.com/blog/posts/old-age-and-treachery.h...

via

https://lists.freebsd.org/pipermail/freebsd-current/2010-Aug...

The best writeup is surely by the inimitable Russ Cox, who really really explains clearly when grep as of 2007 was one of the only fast regex implementations:

Regular Expression Matching Can Be Simple And Fast [#1]
(but is slow in Java, Perl, PHP, Python, Ruby, ...)

Russ Cox 2007 jan

http://swtch.com/~rsc/regexp/regexp1.html

(This is a 4 part series but IIRC part 1 has the highlights)

I'm sure that various other tools have been strongly influenced by this famous essay, and so many more things may be as fast as grep by now, but still...

P.S. one of the other high profile "ack"-like search tools would be "ag", aka "The Silver Surfer".

"The Silver Searcher is a 3-5x faster drop in replacement for ack (which itself is better than grep)."

2013

https://www.reddit.com/r/programming/comments/16bvah/the_sil...
After you've read this, read the annotated version: Elon Green's interview with Gay Talese about the piece, interspersed into the text. http://niemanstoryboard.org/stories/annotation-tuesday-gay-t...
A lot of the best graduate textbooks are pdfs of lecture notes. 40 pages, no nonsense.
Yes, Virginia, There Is a Santa Claus
I don't have an article but my intuition is that it reduces variance. It smears the probability of getting "unlucky" with the hashes across all of the buckets.
It's the best possible bridge platform for *nix development.

POSIX enough that tools and environments work pretty well without a mountain of hacks and workarounds (e.g. Cygwin).

Mac enough that the user experience is coherent and consistent across the overwhelming majority of applications. (e.g. drag n drop, key bindings, media interop, etc.)

Popular enough to have native MS Office in orgs where that's still a hard requirement.

I tried to force myself to go full Linux by swapping out my Macbook Air for an X1 Carbon Gen 3 running KDE Plasma 5. The environment was nice and customizable and I was able to get pretty comfortable with it, but the instant I wasn't using a qt5 & KDE 5 frameworks application, the user experience fell apart. Couldn't set my key bindings the way I like in GTK apps because the GTK/GNOME teams apparently gave up entirely on accels files and key-themes. Media interop was pretty much non-existent, and there were lots of annoying little bugs (e.g. resizing a window would drop its focus leaving in a context where there was no active window and I'd have to click back in it.)

I still use Kubuntu 15.10 on a 12-core Dell T5500 w/ 48GB RAM for running larger distributed systems simulations/tests, and it seems about a hundred times more usable than the Windows 7 machine my job originally provided, but when I want to move fluidly between development, making arch diagrams, writing docs, or creating conference decks I can't escape how much better the complete experience is on my Macbook.

Also, LibreOffice Impress somehow managed to make a UX more bewildering, broken, and obtuse than PowerPoint, which I'd previously thought to be impossible. Viva la Keynote!
I asked her today and she said they don't have any procedures if the like.

It's a shame that a company like that takes no responsibility and it's horrible that there's nothing in place to make sure they do.
Wait, so do Office 365 Home customers not get "unlimited" storage anymore?
How Radioactive Poison Became the Assassin’s Weapon of Choice
An open library will be something really cool to have! Give it a though, I'm eager to see what others diagrams
Good point. I did that on purpose in order to do a full rebuild -- but I suppose for the purposes of "is rustc fast", it's actually more interesting to just do a build without clean (although one would have to manually remove the built binary and/or change the code in order to force a rebuild?).
It looks like a throwback to Windows 95 because it actually appears to clone the NEXTSTEP look and feel, which is what Windows 95 also cloned.
I think there is a distinction to be made between surveillance and data, and I do not necessarily think you need to go full cypherpunk to make a meaningful difference. The cat is well out of the bag on data collection and analytics and it will be that way forever.

However, people working within institutions that contain sensitive data can help affect positive change from the inside as well as the outside. Be a voice for the security of user data within your organization, and do what you can to meaningfully contribute to methods that increase user anonymity and business models that do not require being excessively intrusive into the personal details of others. There is something you can do everywhere, and it is far better to have people privacy-minded even inside of the classical "surveillance" companies than having these companies run recklessly without a voice for the user. In fact, it may even have more impact than yet another frontend for yet another OTR implementation.
That four degrees meant that during the last ice age Chicago was under a mile of ice. It's livable if you survive it.
Corporate procurement practices and policies definitely come into play, as well.

With Linux, there isn't a consensus laptop model that everyone will request. One ends up with a lot of one off business cases, vendors, service contracts, etc.

With Mac, you have a consistent upgrade cycle, one service contact, and no fragmentation of OS distribution usage, etc.

TLDR;
It's easier to say "I want a macbook pro w/ cinema display..." and "we hired another developer, please re-order a mac dev setup", than any similar Linux setup.
And yet, postmodern bullshit does a lot of real harm in this world.
Part of my overall claims here is that the police state aspect of our government only kicks in on priority targets. Average person or project in crypto doesn't matter. A good case would be solid protection that applies to high-value target. Might support those like Wikileaks, Snowden, or terrorist cell that happens to use a specific product.

So, we saw LEO's and payment processors largely kill Wikileaks by cutting its donations off. Wikileaks supporter and Tor evangelist Jacob Appelbaum does plenty OPSEC to avoid problems they aim at him. Lavabit, Snowden's email provider, was shutdown after receiving a secret order to compromise all its users and lie to them about it (see records if you doubt that part). Surespot allegedly pulled its warrant canary after ISIS used its tech. Apple and other companies doing end-to-end messaging are getting hit hundreds of millions at a time via Virnetx: a shell company for patents from NSA, CIA, and SAIC.

Seems to be a number of actions and reactions against anyone that becomes a problem. Most never see it. Hence, would doubt it's a concern. That they do enforcement part with "legitimate" organizations and courts makes that more so. That's be beauty of the modern, Dual State: invisible to most means odds of questioning or getting rid of it are lower than prior surveillance and police state models.
I can't even imagine going to bed at around 9:45pm. It's ingrained in my body that around that time is still early and the world is quiet so I can work peacefully. I usually go to bed around 2am and wake up around 9am. I understand the freshness of working on a new body (morning), but I think the best I can do is 12am. Idk, I think its up to you how you manage your hours and how productive you are. 5am's aren't for everybody.
Research links creativity and inability to filter irrelevant sensory information
Well I'll give them that the options are awesome, 64 GB of Ram and PCIe solid state drives with top of the line graphics and CPU for about the same as a top of the line MacBook Pro $3+k. But it is heavy, kind of ugly, and low battery life. Which to me means I might as well just buy a desktop for less.
Last I checked, people had been successful in banning "assault" rifles.

I'm not aware of a time in the US where encryption was banned for the populace.
If a cat could talk
Yes but as the Christian world was coming out of the dark ages the Islamic world went into one and has yet to emerge from it.
This question.
I would say the same for a lot of HNers.
Audiobook style narration for the web
Suggestion: deploy your GM server as Docker containers on kubernetes and auto-scale while you enjoy some fine wine in a casual atmosphere. :).

Seriously, good luck. Success hurts sometimes.
I wonder if the same would hold true for voracious (book) readers? Not as popular these days, maybe there's an equivalent of the "everybody reading their paper on the train" picture for this too.
Website that summarizes and removes bias from news articles
If there is one place in the American government where "checks and balances" have become a farce, it is in the sheer amount of things the executive branch can get away with by EO. I will be very interested to see what, if any, effect they can have on actual gun control with an Executive Order, and just how fast the Judicial Branch strikes this down.

It is far easier for us to vilify guns and maintain the status quo versus recognize and fix what is actually causing all of this violence: the quickly widening cultural polarity between Americans. An actually united populace and culture does not often shoot itself to death. There's too much money to be made by making people pick sides instead of join on a common one, and until that changes, I don't think America will ever solve its violence problem.
I believe it is capped at 1 TB now.
Not literally.
`ls /usr/bin/?? /usr/bin/???` can be interesting to skim through.
I can't even begin to describe how timely this project is to me. I'm working on a research project that had chosen C++ over Python for performance reasons. We started with boost and later decided to ditch it because, well, it's boost.

Later when we decided to provide a Python binding, I find myself in the same place all over again -- we might have to use boost for the binding. Luckily I haven't written anything yet and spotted this library on HN :)
Spaced repetition is good for memory[0]. When I read on a subject I will usually read several books in the same area spread out over 6-8 months to reinforce those memories. I felt the repetition in 'Thinking Fast and Slow' helped me soak up and retain the ideas much better, although I've probably forgotten much of that book by now.

I read this policy paper on nuclear weapons that I found in the trash near my house. It consisted of five essays, each essay critiquing the prior essays. The repetition combined with argumentation had a powerful effect and forced me to engage in thinking about the issue under discussion. I wish more books would do that. It was around 80 pages which was a perfect length.

[0]: https://en.wikipedia.org/wiki/Spacing_effect
What is "an AI system with the ability to make high-quality decisions"? Do automated derivative trading models count? Do systems which decide how much to bid on a RTB ad exchange count?

The first problem is not new. We have a similar problem with some corporations, for example.

"A sufficiently capable intelligent system" is as real as "sufficiently hostile aliens". It's hard to argue and reason about a fictional system with a assortment of properties picked by someone aiming to spreading fear.
Guerrilla Grafters Quietly Grow Fruit on SF Street Trees Using Latest Tech
The Equinox Solstice
I like the concept of tiling managers, but find the implementation lacking. Touting being entirely keyboard driven and configured by learning what to edit in some text configuration file seems like an anti-feature to me in a GUI management system.

I want to be able to drag the windows around to rearrange things with my mouse, not have to remember or look up keyboard shortcuts. The model of dragging things around with a mouse is intuitive and simple. Sure, have the keyboard shortcuts as well, but give us both! If I wanted to have to look up the documentation every time I need to perform the simplest operation with my software tools, I’d use git.

I would love to see some sort of tiling layout manager you could run on top of KDE. (Heresy, I know.)
Go 1.5, 1.5.1 huge page fragmentation on Linux leads to OOM  – fixed in 1.5.2
The standardized ones are described in the Shell & Utilities section of POSIX:2008/SUSv4 online at http://pubs.opengroup.org/onlinepubs/9699919799/
>You're seriously blaming the Chinese people for their heavy-handed government?

Yes.
One thing I've found that is handy is to record the video while narrating the process (this will slow your actions to a comfortable pace) but only record the video. Go back after that and focus on the narration/explanation. You'll cut down on the "uh..." "um...". When you piece them together, the viewer won't know and your delivery will be much smoother.
Nice non-sequitur.
It seems that working publicly on information privacy tools (and especially the Tor Project) increasingly makes you a target for nation-state-level adversaries. I'm very curious who the actor was, and what they expected to gain of value from Twitter accounts.

I find it extremely unlikely for this attack to have been perpetrated by the United States; after all, Twitter is an American company and a three-letter could just NSL them for the data they wanted on these "activists".
Any pointers to that nuclear policy paper? (ideally other than digging through my neighborhood's trash cans)