skysight-inc/HackerNews huggingface dataset:
Its surreal watching snabbdom on HN.

Snabbdom is a gem of a library, it makes microsoft ( angular) and facebook ( react ) look like idiots.

Whoever came up with dom diffing in Facebook is clever, but facebook took that idea and made it into a weird beast, which doesn't integrate well with the rest of the open web ecosystem ( I guess facebook has way too many downstream engineers )

Snabbdom implements the core dom-diffing algorithm and leave the architecturing to you and that is where its power lies.

Snabbdom is really powerful when you mix it with the rest of the small libraries that are written in the UNIX way.
I agree. It was comical to me, actually; I tried it as soon as it came out and the first thing it was asking for was my password. This from a group that was supposed to be security conscious? Yeah, no, I'm not sudoing for some "random" script without even being told what was about to happen.
Pokemon Go gave me hope for this planet
Mentioned above: It's un-opinionated as in styling is drawn back but not to the point of it being ugly. Look at a Blaze site and it doesn't look like a Blaze site. Everyone can tell when a site has been Bootstrapped. It's aiming for an un-opinionated solution rather than source code
Not mentioned here is that Australia misses out on these repayments when its graduates go abroad and don't return (as I understand it). Source: a colleague went to university in Australia, went to graduate school in England, and now works in the US; he hasn't paid back a dime.
Looks like IPython Notebook is almost an ideal way to interact with a computer (as an information processing device, rather than, for example, a game machine).
> Tsimane music also doesn’t make use of harmony: only one series of notes is played at a time, so the relationships between notes don’t matter in their musical tradition.

This makes me wonder if the Tsimane don't hear dissonant harmony, but just two different melodies, like two different people talking at once rather than a chord.

Maybe in a way this is similar but opposite to how it takes a little bit of listening before you can hear Tuvan throat singing clearly - at first it sounds like one note, but after a while you get better at hearing the overtones they're modulating.

Personally, I find that some chords that sound dissonant when played alone and out of context turn around completely and sound gorgeous and intriguing when played as part of a piece.

Minor 6 chords are amazing in the right context, and diminished and augmented scales too. Some of my favorite Bach pieces are the ones that hit a measure or two of fully diminished key.

Is it possible that part of the surprise here is that we've overstated dissonance as something negative, and led ourselves to expect something "dissonant" to be more cacophonous than it really is? I do prefer describing music more in terms of tension and resolution than consonance and dissonance. And tension is a critical part for the resolution to have it's full effect and power, it provides the contrast, and it often comes with as much or more subtlety and beauty, as far as I can tell.
Thanks both.
The idea that each type has its own control flow primitives is bothersome. It's taken over Rust:

argv.nth(1)
.ok_or("Please give at least one argument".to_owned())
.and_then(|arg| arg.parse::<i32>().map_err(|err| err.to_string()))
.map(|n| 2 * n)

I'm waiting for

date.if_weekday(|arg| ...)

Reading this kind of thing is hard. All those subexpressions are nameless, and usually comment-less. This isn't pure functional programming, either; those expressions can have side effects.
Well, let's not read much into it. The headline says that dissonant tones sound fine to people not raised on Western music. It doesn't say that dissonant tones don't sound fine to people raised on Western music. ;)
> you can do better than 20-30 cents in the US.

> The key is to avoid the big brand name meters,

> Get a meter from True or ReliOn. These are available retail online and at major brick and mortar pharmacies for around $10-15 for a kit that includes the meter, some lancets, and around 10 test strips. Example: [1].

Agree. When I shopped for a meter at my local Kroger pharmacy (King Soopers here) my only decision was how much are the strips. Mine is an OnSync, and the strips are branded Kroger; the in-store pharmacist told me that Kroger worked with a manufacturer to make an affordable setup.

Everyone has their needs and such, but all things being equal, shop for the cheapest strips, and then the meter that takes them.
I don't mean that Google literally 100% replaces that use-case, but that the answer is that search engines got good enough that directory curation was no longer marketable.

So nowadays what you'd previously look up in something like dmoz you now just search for in Google.
I noticed my four year old daughter relishes quite outlandish and dissonant modern classical music. The sort of stuff most people ask me to shut off the moment it starts.
At least in the US, unfortunately there is not much you can do. Report to the police and hope you get it back. In the US you hope that someone just took it for a joy ride and it will turn up within 25-50 miles of where it was stolen. Checking apartment building parking lots and shopping centers within that radius may prove successful. This is not usually the case though.

Most often though within 24-48 hours of being stolen one of two things are happening. The thieves are most likely part of a bigger operation and your car is being dismantled for parts or is in a shipping container for export. Either way, by this time you the VIN will have been altered and the car changed enough to make it look slightly different (i.e. painting). Yes, what you see in movies does actually occur to some extent.

If by some remote chance your car is found by you, do not touch it or move it without first contacting the police. If there is any hope of catching the individual(s) responsible it will be before you touch or drive it away.
Sorry to hear about your son! Hopefully your son wasn't in ketoacidosis by the time he was diagnosed, and the initial days were just training and not ICU.

My own experience with using the Dexcom G4 CGM with my 1-year old son was extremely negative. First, it was terrible to insert the sensor -- it is a clunky mechanism which would sometimes fail and leave you with a worthless sensor, and at best would leave your child in screaming pain for minutes afterwards. The sensors would often fail, or start falling off long before their 7-day promised lifespan. The adhesive caused allergic reactions which left nasty red welts, and eventually you run out of fresh places to insert them.

When they were working at their best, you would have a readout which would tell you approximate glucose level, and if you are heading up or down. However, there are no error bars, and errors can be very significant. More calibration (measuring with a strip and entering the measurement into the CGM) is not always better. Sometimes we would find it was exactly correct, sometimes it would be 50 or more points off. You still always have to measure before dosing because the accuracy just isn't there.

The biggest issue we would have is, leaving the CGM under the crib so that it was in-range, and then checking it during the night, many times we would end up with the dreaded '???' in place of a blood sugar reading, and a large gap in the chart. Dexcom blamed the CGM and replaced it twice; the problem kept recurring.

Then, the times when the CGM was not losing its mind or its signal, it would frequently start false alarming -- it does not have a hysteresis algorithm to prevent the alarm from triggering over and over again if you are lingering and constantly crossing over a threshold. As anyone with a young child knows, sleep is a priceless commodity, and unnecessary alarms going off multiple times throughout the night are a total deal breaker.

For a system which was supposed to increase glucose control and peace of mind, the G4, for our 1-year old and us, did neither. Add in the extreme cost ($350/mo for sensors, assuming they all even work) the utility just wasn't there for us. Two G4 Platinums and a few sensors now sit in the back of the closet collecting dust.

We used syringes for almost a year before switching to the OmniPod pump. It is similar physically to the G4 sensor, except it auto-inserts the cannula which helps a lot, although our youngest still cries for a couple minutes after each insertion (every 3 days). A controller acts as the glucose monitor, and also lets you enter in the carbs and it calculates the appropriate bolus. It's a nice system, except the pods also fail early about 20% of the time, they can fall off and leave rashes and puncture wounds, and they waste a huge amount of insulin for children since the minimum capacity for a 3-day pod is nearly 100 units. But it's hard to beat the convenience of dosing for a meal when you're eating out and you just have to push a few buttons.
I notice that "internationalism" has acquired a pejorative connotation of late, particularly in the right-wing US media. I'd just like to put in a good word for internationalism, which has successfully staved off a land war in Europe for 70 years now, and is the best / only hope we have of preventing WWIII going forward...
I'd like to see a good CLI design involving sandboxing-by-default, and handling object-capabilities (e.g. file descriptors) as first-class objects.

Right now, "convert a.jpg b.png" passes the strings "a.jpg" and "b.png" to ImageMagick's convert command, but that command is free to open whatever files it wants, since there's no distinction between strings vs resources such as filenames, network sockets, etc.

You can do this with pipes in simple cases, and bash has some support for this, but it's very primitive and the syntax is cumbersome.
A trivial and artificial example is g(z), defined as the sum of G(n, z) for n from 1 to infinity, where G(n, z) = 0 except if z is -1, in which case it is n.

Thus g(-1) is 1 + 2 + 3 + ... while g(z) is otherwise 0 + 0 + 0 + ... = 0. And then the zero function is the unique analytic continuation of g.

The reason people care about the Riemann zeta function is because of its deep connections to analysis, number theory, and physics.
A shell for loop is not arcane — that's one of the shell's most basic control structures. It uses one fewer external command (no "find"), which is a great way to avoid the weird (and common) corner cases.

But anyway, I think you missed where I wrote, "treating the output as objects would be an improvement", and presented a better example in support of your suggestion.
Interesting how they discuss risks in open source. If one can make a guess from other software it is very likely that open source at least in the future will outperform proprietary solutions. Standardization organizations should start to think about how to make their certification processes attractive for FOSS projects, imo.
On this point of using a null char to separate things: do you people think that automatically using it when I/O is not connected to a terminal is a good idea?
Quote from the arstechnica article:

> This suggests that preference for consonance over dissonance isn’t baked into universal human auditory processing, but is rather something we develop by being exposed to certain kinds of frequency relationships in the music that we hear.

No, that is not a conclusion that can be drawn from the experiment and not the conclusion the paper draws.

Quote from the paper:

> The results indicate that consonance preferences can be absent in cultures sufficiently isolated from Western music [...]

From what I understand the experiment shows that there are peoples that have not developed harmony until now. They make music, but they only play notes in a sequence never simultaneously.
This is not surprising, western music developed real harmony only in the modern era, music of the middle ages was mostly melodic.

That they have no harmony does not mean that preference for consonance over dissonance isn’t baked into universal human auditory processing because if they would develop harmony they might end up with the same preferences we have because we share the same human auditory processing.
Most of this should be obviated when the ? operator is ready. But until then, there is no primitive for 'work on the type you wrapped in Option, short-circuiting and returning None at the first sign of failure', so it has to be done in the library.
(Shrug) Seems like someone who's about to die peacefully of old age or disease would be inclined to do it somewhere other than a peat bog.
Yeah that's the old school NPH variety. While you can certainly manage with it, you'll not manage well.

Modern diabetes management includes either pumping or multiple daily injections (MDI). With MDI, you use a long acting insulin as a basal, or background, insulin. And then you'll use a rapid insulin to bolus for meals and to make corrections for unexpected spikes.

The pump is similar to MDI but you only use rapid insulin and the pump delivers a steady basal stream throughout the day, and you still bolus at meals and for unexpected spikes.

These two things allow diabetics to eat whatever they want.

We did the old school way for the first few weeks because that's the only way the doctors in Vietnam knew how to do it. It really sucked numbers wise.
10,000 hours is nice whole cozy number. But it's not about 9,000 hrs or 11,000 hrs. You have to keep at it for an extended period of time. That's where passion and innovation helps you sail thru.
I have no idea what publications they're referring to in this article, but here's what you probably came to read:

Article: [Fat, sugar cause bacterial changes that may relate to loss of cognitive function](http://oregonstate.edu/ua/ncs/archives/2015/jun/fat-sugar-ca...)

Study: [Relationships between diet-related changes in the gut microbiome and cognitive flexibility](http://www.sciencedirect.com/science/article/pii/S0306452215...)

-----

Article: [This is your brain on sugar: UCLA study shows high-fructose diet sabotages learning, memory](http://newsroom.ucla.edu/releases/this-is-your-brain-on-suga...)

Study: ['Metabolic syndrome' in the brain: deficiency in omega-3 fatty acid exacerbates dysfunctions in insulin receptor signalling and cognition.](http://www.ncbi.nlm.nih.gov/pubmed/22473784)

-----

Also: [Systems Nutrigenomics Reveals Brain Gene Networks Linking Metabolic and Brain Disorders](http://www.sciencedirect.com/science/article/pii/S2352396416...)
Going through man pages would certainly help. Otherwise you're analyzing the source code of scripts or worse, binaries. I won't say it's impossible, but I'm not convinced the effort is worth it. That said, I think it could be made much easier to make completion scripts rather than all the shell-specific stuff that exists now.
Journalists have as much responsibility to the truth as scientists. It is possible to entertain people using only the truth.
Being married to an Iranian, I hear a lot of persian music. Especially the traditional one sounds really "dissonant" to my western ear and it took me years to accustom. Of course for my wife and all of her family persian tunes sound perfectly harmonious.
> But anyway, I think you missed where I wrote, "treating the output as objects would be an improvement"

We already agree about that part (at least sort of). Instead I wanted to address the part where you declared my example invalid and where we're talking about nothing else but the details of this one example. Did I choose it poorly? Was it too simplistic? Maybe, it really depends on your tastes. I content that arguing about whether or not the find command is usefully implemented is besides the point. The problem lies deeper and is more systemic than that.

I'm not arguing that a loop construct is arcane, I'm arguing that in practice such scripts turn arcane really quickly, and that there is something substantial to be gained from having tools exchange information in a structured, machine-centric format - and also from switching to a human-centric control format.
German here, only limited experience of staying in the US. But at least here we have the prejudice that Sweden has the best European social system. Best schools, doctors, health care, job security, income. Is that way off from what you think? If it's partially true, and your system is at least as good as Germany's then you need to stay. Only go to the US if you are super rich. Then treatment there is better. In the middle (even upper middle) you are probably way better in Sweden.
Reducing if statements does shrink the possible state space, however using additional abstraction might increase it even further.
Blaze doesn't mention Bootstrap specifically regards opt in. But Bootstrap does apply CSS to some elements without permission. Foundation even more so. SemanticUI too. Blaze is different than all of these in that it gives the power back to you!
While I certainly hope we keep peace with each other, but I think what people want is for it to be easy to choose which sort of government they live under, but what we get is other governments "forcing" our government to do things our country doesn't want.

(I put "forcing" in quotes because quite often it's more of an excuse than a reason.)
Often times when I read about "ideal" ways of programming, I'm curious if it's ever implemented in a production code base built by a team.
Agree. I think the plain ipython shell can go a long way now. It will pop up a graphic, and you can access the surrounding shell. In theory you can just live in ipython; I've tried it but I stumbled too much.

Next on the spectrum would be the QT version of ipython. And then of course ipython notebook/jupyter.

What really looks promising is the Jupyter Lab, currently in alpha.

http://blog.jupyter.org/2016/07/14/jupyter-lab-alpha/

https://pypi.python.org/pypi/jupyterlab
I recently switched from doing my C/C++ debugging in gdb to Eclipse here are some of my thoughts:

-> Eclipse can be easily be started from the command line - e.g. "cdtdebug.sh -e ./a.out". A minimal version of Eclipse opens up, and you can immediately step through code, no need to create projects.

-> While GDB TUI mode somewhat mitigates the issue of not having context when debugging it IMHO pales in comparison to seeing the full file in Eclipse.

-> In Eclipse I can see so much more information than gdb. I can see several expressions all being updated, memory views, I can highlight expressions in code. With gdb I could only ever see one thing at a time.

-> Although GDB has more functionality than Eclipse, I found since I couldn't remember certain GDB commands and so I just didn't use certain features that I find myself constantly using in Eclipse because it's just a click away.
It's an argument for a consistent timezone.

If you're exposing an API to (or otherwise sharing data with) third parties, they're unlikely to have standardized on your localish timezone, unless they happen to share it.
If you're consuming a third party API (or otherwise consuming data from them), they're unlikely to have standardized on your localish timezone, unless they happen to share it.

If you live in a disconnected bubble, your localish timezone might be consistent enough. You probably don't live in a disconnected bubble. Your localish timezone is not consistent. It is not "Universal". It is not UTC.
There is a much simpler mathematical treatment of this series that appeared in my class on quantum field theory in the computation of the vacuum energy. In that case, the series was treated as

lim \epsilon -> 0+ ( \sum_{n=1}^\infty n e^{- \epsilon n} + ...),

that is the series was multiplied by a decaying exponential function with a rate of decay that goes to zero. This sum can easily be evaluated for small epsilon takes the form

sum = 1/epsilon - 1/12 + ...

Crucially, there was another term in the calculation that naturally appeared that canceled the 1/epsilon. Without that other term, the sum would of course be infinite when epsilon -> 0.

This is much simpler than analytic continuation through the complex plane, and again, this is how the physics calculation appears in QFT courses. There is no need to appeal to complex analysis here, which leads to all of this mysticism and confusion.
I can see the other side of it though - (roughly speaking) money changes hands -> definitely a contract, non-monetary licence -> probably a contract. IF they don't use CC-BY-SA images often, it might be cheaper/less risky to just offer a token payment rather than getting their legal team to check the CC licence.
Hm yeah, I was thinking of something more natural, like requiring the G(n,z)'s themselves be analytic on some domain. Anyway, sure the Riemann zeta is important, but I'm not sure how it's canonical.
Black Screen has some pretty interesting ideas:

https://github.com/shockone/black-screen
--help would be a good thing to learn from too. But again, that assumes that --help or even a man page was implemented.
Any feedback you can give would be appreciated ;)
This. Perspective is important, especially in light of recent events in Europe.
Wow, I hadn't heard of hypothes.is before, that proxy implementation is awesome. I like the highlighting/commenting feature on Medium, for example, and this adds it to any document transparently, it looks like. Good stuff.
Show HN: 'To'. A command line tool to quickly cd into directories or open files
cost would be highly variable.

insur. depends on your employer and 100 other factors.
some plans very little cost others maybe 25%.
if you are independently employed insur will run about $25,000 to 35,000 per year for the family.

if your son is "healthy" and is a "good" diabetic he can get by on about $6,000/year. this would be if he eats well, moderately active and maintains sugar well.
fyi if athletic this doubles or triples amount of insulin consumed.
if your son takes very poor care of himself very erratic sugar 100-350 and 5-8 extra trips to the ER and or doctor and you want the top end insulin pump, humalog, humalog pens etc then the cost could be as high as your imagination.
It's a fine line between brevity and rudeness.
For governments. For individuals wishing to immigrate, not so much.
Have a cronjob that backs up your crontab?
This was the idea I used when I did

https://bitbucket.org/iopq/fizzbuzz-in-rust/overview

I still had to bottom out at
https://bitbucket.org/iopq/fizzbuzz-in-rust/src/9e5fcaabbd5f...
The biggest problem is going to be expense, followed by reliability and power when out-and-about.

I'm not sure where you are, but in the USA compatible pumps probably start at around $1,000. That doesn't include the monthly cost of the CGMS sensors, which is also significant.

If you're in a country with universal healthcare, and the healthcare provider is willing to cover the CGMS sensors you might have success. (Some govt healthcare services will cover CGMS sensors for people that can't tell when they are hypoglycemic.)

If the person with diabetes (PWD) is very mobile, reduced size and weight will have to be at the forefront of your thinking. However, that requires the most expensive OpenAPS hardware (the Intel Edison - see the mmeowlink wiki).

If the PWD is ok with a larger device due to a bigger battery, you could use cheaper hardware (Pi zero and a 20,000mah battery). It'll still need daily charging, though.

One idea: you might find running things overnight only might have an advantage, depending on whether they have a stable relationship with a shelter. The system would then cover them for a reasonable amount of time every day without the challenge of waterproofing, batteries, etc.

If this is feasible, the best place to start is with the simplest config, as documented at https://github.com/openaps/docs/blob/master/docs/docs/walkth...

Let me know if I can be of any support. My details are in my profile. Alternatively, you can find us on the intend-to-bolus channel on gitter.
so, the price for peace is to further the international 1% and give up democracy in exchange for plutocracy?
It's pretty hard to subsequently argue that you didn't agree if you took the money and cashed the check.