skysight-inc/HackerNews huggingface dataset:
The point the article makes on comparing floating point values and the floating point type is true, but it's not because of any rounding error.

It's because the comparison operators are defined for every value. That is, "True < []" is valid in Python 2.7, along with any other 2 values, regardless of type. This is a surprising instance of weak typing in Python, which is otherwise strongly typed, which is why this was fixed in Python 3 (https://docs.python.org/3.0/whatsnew/3.0.html#ordering-compa...).

This is also not a case of Python doing something useful, like with '"foo"*2'. The result of the comparison is defined, but it's not useful. I suppose it was useful for making sure that you can always sort a list, but there are better ways to do that.
I think you aren't helped by the studies that have been done on people who have self-diagnosed 'hyper-sensitivity', that have shown that they can't reliably detect EMFs.

http://www.who.int/peh-emf/publications/facts/fs296/en/

This leads people to think that this means that no-one can be effected, whereas it could be that the self-diagnosed simply have a large false-positive (a high-proportion of people that while believing to, do not have any hypersensitivity).

It also doesn't help that there have been no proposed mechanism by which EMF could act on the CNS/body. It also doesn't help that usually the signals complained about are orders of magnitudes smaller to other signals that people might just not be aware of/think about, like TV/Radio transmissions.

You're right that it's not very easy being in the fringes, here's hoping you get better.
I wish the author put the single sentence at the end to the up with a TL;DR; note: send verification emails, which I don't agree 100% while the article/author claims that's the 100% right way.
How do you manage the syncing of presumably a huge amount of data amongst many groups?
[video] zoro.im – Introduction
What is auto-sklearn?
I've had wires go on me as well, but for me it's more typically the housing for the earbuds themselves - they come apart - or the electronics inside - they just stop working.
I was. if you have a plenty of files, how could you search something in a specific folder? e.g. I want to search 'hadoop' in my personal work notes, not in public ebooks and slides.
...a different setting on the browser level?
Just get a ThinkPad. This X230 is the best machine I've owned in terms of build quality.

I stopped giving money to Apple when they started gluing batteries and soldering memories. That's just disrespectful both to the environment and to the end customer.
> Apple would never in a million years make a user-hostile decision like this simply to collect royalties

Why doesn't they Macbook ship with the dongle to connect it to HDMI screens and regular USB then? Why does that dongle cost almost $100?

Tim Cook's Apple is VERY MUCH in the business of lopping things off to just sell you an addon later.
Entr: run arbitrary commands when files change
Zoro.im is a new avatar of Skype, Viber and WhatsApp
Bitwise Patterns
I actually think that communities might sponsor your moving on their turf as this will mean you'll spend your BI there for prolonged time.
The documentation of most modules cited in the article start with a paragraph in red and bold warning the reader of the same danger explained by the author. So this is a nice compilation, but nothing new and nothing somebody looking at the documention of the module he's using will miss.

There are nonetheless good remarks about poor design choices of Python which can lead to misconceptions to newbies, such as naming `input` the function that does `eval(raw_input(prompt))` (as casually documented[0]), and the existence of such function in a first place.

[0] https://docs.python.org/2/library/functions.html?highlight=i...
>It's not an anomaly, but it can be a surprise for people who don't understand what it does.

That's almost a tautology though.
> You aren't putting yourself in the shoes of a beginner.

How do you know if I am putting myself in the shoes of a beginner or not? And what kind of beginners are we talking about? Are they comfortable with a browser? Do they already know how to program something? You can't expect a single document to be relevant for all kind of people. The reference documentation has a clear target audience, which apparently conflicts with what you expect from it.

> And that's assuming you even realize that you should run ctrl-f, why should you?

> (you've searched for sample instead of example for instance)

Okay, so you are talking about absolute beginners, with no experience whatsoever with programming.
And the C++ and PHP pages are somewhat useful for them?

> I've already read some tutorials or am not interested

> Let's say I'm a beginner [...] I want to match a regex.

Now, you are saying that you already have experience with programming?
Google "python tutorial regex" gives plenty of results, the first of them being currently "Regular Expressions HOWTO" (https://docs.python.org/2/howto/regex.html).

Absolute beginners need a teacher, a mentor, or a step-by-step book, or a very gentle tutorial, or an online REPL. That's fine. You can't please everybody in the reference documentation.
Great esthetics at the expense of good engineering has been Apple's way for a long time. Whenever there is a choice between making something look nice vs, making it be durable or last long, they opt for it to look nice. If they can make you fall in love with a device, you won't mind paying to replace it when it breaks.

Tell me, what is the logic behind buying a beautiful but fragile iPhone if you must encase it in an Otter Box just to survive daily use and the occasional drop? Who cares how thin it is or about the hue of the rose gold if it's buried inside a thick case?

I read a story about how Apple despised the look of Dell charging cables with their thick cable reinforcers everywhere a cable interfaced with a plug or electrical component. So Apple made thin cables with no reinforcers that would easily get damaged from normal use, and people would have to go buy more cables.

Why have iPhone screens been so fragile? Because they are pretty. All my iPhone friends would keep using their cracked phones because they didn't want to pay to fix them. What's so pretty about walking around with a cracked screen?

The world was a better place when Nokia engineering was a dominant influence. Attractive durability is superior to what Apple sells.
coltea, I say this fairly nicely, having seen your posts many times here on HN, your posts are so consistently composed of Apple apologia as to be irrelevant to any discussion about the company or their products. You're kind of the poor man's John Gruber of HN.

I don't mean this to be personal, but I've never seen you post (and I just searched back comments on HN) anything even remotely critical of Apple, and most of your Apple related posts relate to you popping up to defend the company or "clarify" something that could be construed as negative to the company. If I didn't know better, I'd say that you worked for the company -- but you've claimed you don't a couple of times.
1. Never give up.
2. Get to work.
Are there long term studies of the health effects of blood donation?

I wonder if there's a way to have a control group that thinks they donated, but didn't. Fake blood pack maybe?
Frustration would be a more appropriate term than hate.
yeah homework pressure in the dutch secondary education system is high at the higher levels. on top of that kids learn very few useful skills. it needs to change and every politician tries but then everything gets watered down because of politics. sweet irony.
Why Apple Axing the Headphone Jack Is a Good Thing
The finger-prick test could be used as a general screening tool for people visiting their GP."
Sounds like a Theranos clone. Maybe same result?
> The point the article makes on comparing floating point values and the floating point type is true, but it's not because of any rounding error.

Do you mean this example? (it's the only one I can find about floating point comparison)

> 2.2 * 3.0 == 3.3 * 2.0

It's definitely due to accuracy error. (rather than type comparison) How would you explain it otherwise?
It's fast in China, which is saying something.
Git diff tips and tricks
Both Czech and English are Indo-European. The stronger test would be to compare with more diverse languages.

I do not know the answer. I did find from http://wals.info/chapter/87 that in Ojibwa, "words expressing adjectival meaning are really verbs".
See https://medium.com/bull-market/a-cynic-s-guide-to-fintech-3c...

If by "blockchain" we mean "distributed peer-to-peer append-only transaction databases", then that corresponds to #7 on Dan's list, "Getting your act together with respect to an industry standard where the industry has conspicuously failed to do so". The use of a blockchain system for handling certain kinds of money transmission transaction might be viable. The irrevocability is still a problem for all blockchain systems: what happens when a mistake is made or a key is leaked or lost?
Thanks for the comment.

Yea, I've done my share of marketing. I don't know if I would claim I'm good at it or not. Right now, everything is a bit rough, so it needs some work. I just wanted to get something out and start getting peoples thoughts. If I decide to move forward with it, I'll clean everything up, and create a better landing page for it, explaining features, etc.

This isn't anything new. There are other monitoring apps out there, but some of them are a bit expensive. I'm thinking about charging half of what the others charge.
>Also, Google docs is free.

And so is Office Online. Always has been, six years now.

http://office.microsoft.com/online/

https://en.wikipedia.org/wiki/Office_Online
I get that it's stated wrong I'm just trying to work out how water resistant for a 50m distance swim would work :) That would be the most useless feature addition ever, especially considering how long they spent pushing it during the keynote.
It's not always that.

Let's use the "filtering chars from password" example above. You can't put some special chars in password field, and you want to change that so it's doing normal hashing where special chars don't matter.

In a larger org, even changing a practice like that so that it "makes more sense" can have a big ripple effect.

You have to

* explain to someone else on the team who came up with the original process that it's flawed (and why)

* explain to other dept that they need to update their testing process (and why)

* get support dept to change their language/process

* change outbound messaging in all affected places (perhaps with code you can't touch, involving other teams)

* possibly have a flag that deals with 2 versions of data

Even if your change brings you in to line with normal/safe practices, you may have to fight multiple inane battles, spend loads of time and political capital, and at the end of the day, you'll be able to also accept a !"@+'$ in a password field? Most people will not grasp the bigger issue at play.
The Wonderful, Weird Economy of Burning Man (2014)
How to Set Up Continuous Delivery to Heroku
Just to expand on that - many banks employ Excel basically as a frontend for their own analytics/database (using own functions with addins). A popular trick is to allow functions to return handles that stand in for objects.
Using that, you can run not only Monte Carlo simulations and PDE solvers in a pricing sheet, but even run a whole trading book including risk in Excel.

Of course, you can then also overwrite certain cells to pad your PnL, as a few Credit Suisse traders did in 2007/2008 to hide their losses in mortgage backed securities. They basically overwrote bond prices to some fictitious value, overstating the PnL of their position by $540m or more...
How is decoding code words not substantive?
Neither "real" nor "imagined".

An asserts checks DESIRED constraints.

>AFAICT, an assert only tells me what you wish your program did, but that has absolutely no bearing on what it will actually do.

Depending on the implementation, an assert can either merely log or absolutely stop a program that doesn't pass its test, so it very much has a bearing on what the program will actually do.
He's spot on about plastic. They recently discovered bacteria that can degrade it:

http://arstechnica.com/science/2016/03/does-newly-discovered...
I'm not a fan, but I do see and appreciate his point of view.

His twitter is usually a gas too.
This gap is very nicely filled by the Python Module of the Week series https://pymotw.com/3/ which focuses on examples rather than exhaustive docs. I believe the blog is coming out as a book called "Python standard library by example".
Ready-made templates to build apps without code on Bubble
> So a real-world example, then, that it takes 20 years for a new, efficient 2 billion-euro post-trade system with full central-bank backing to start recouping its cost.

Right, so the article establishes that clearing systems currently are eyewateringly expensive!

> It would be a miracle if blockchain could repeat this feat in a fraction of the time without similar backing or funding.

Well maybe - but the whole point of disruptive technologies (mobile phones, uber, etc) is that they can do what existing technologies do at a fraction of the cost.

Not to say that there isn't any hype in this space, but the pie is worth so much that it's surely worth a decent chunk of R&D budget!
This may be about squatting, rather than a burglar. A squatter can take occupation of an abandoned building if they do not break in, so if a door is open or something like that. Usually they break a window and replace it immediately to be able to support their claim.
>The world outside simply is hell.

You'd be surprised.
He's earned it.
Yeah I'm familiar. It can be useful. I just find it easier to move around workbooks/sheets via sheet/cell reference, especially with multiple users. I used to do the naming thing but I found it less efficient.
Ask HN: Why browsers don't verify cheksums of downloaded content?
Sometimes linked content from download pages gets compromised. I was wondering why there is no user friendly way of verifying checksums. Or maybe I am missing something?

It would be nice to have some HTML markup so the browsers would be able to do verification automatically. But making browsers' download managers compute most popular hashes after downloading and displaying it somehow for many would be enough. This simplified solution would make me take a peek to see if checksums look right, it would be much better than what I do now - I only check hashes after downloading from suspicious (to me) websites.
Innovative napkin selection tool
I don't see long term success for it, but the first few months will probably be lucrative enough for Nintendo.
Not quite right, there is considerable pressure from auditors to switch from Excel to "systems".
Thanks for the analysis of their benchmark, I wanted to view the details by myself but it required creating an account on their page.

> There is no superior "compression" technology

Isn't it feasible to employ special encoding for time series data? For example, to encode a series of timestamps like 1473333629, 1473333630, 1473333631 you could encode it as 1473333629, +1, +2 (where +1, +2 are encoded in one byte). And there are many cases of such metrics with adjacent values, like averages, counters.
I think the point of the parent comment is that they should. I'm not even a regular user of Python (or dynamic languages in general), and yet the list of things in the article doesn't seem all that surprising.
But even PHP has a way to escape shell arguments safely
The game is a real flagship for "compelling idea badly implemented". It doesn't run on quite a lot of Android phones, it's really resource hungry and prone to crashing, the Pokemon location system has never really worked, and the only interaction between players is indirectly at the gyms.

And yet it's still compelling enough to play. And I mean play, rather than sink microtransaction money into like the big money mobile games.
First endless runner anywhere! Invented the genre.
> We do not do email activation by forcing people to click a link in their email to validate that they received it

Have you considered doing email validation without forcing users to comply? It's fairly common to require valid emails after X days, or in order to unlock N features. Gets the advantages of having valid emails without the disadvantages of a drop signups.
Yes, the delta encoding scheme you described (and other fancy coding schemes such as bitpacking, varints, RLE or a combination thereof) are frequently employed in columnar storage formats and databases. Columnar storage is basically a generalization that allows one to apply these optimizations to all kinds of data (not just timeseries). One popular open-source implementation of columnar storage that I am not affiliated with is https://parquet.apache.org/.

(On the other hand, columnar storage also has a bunch of tradeoffs/downsides so it's not a superior choice for every db product.)

My point about no "superior compression technology here" was specific to the linked benchmark. I.e. the lack of this potential optimization in cassandra does not appear to be the reason for the space blowup in the benchmark, but rather that they're duplicating the series ID for each sample.
Docker on Mac runs in a VM, either by one of the traditional virtualisation solutions (Virtualbox, VMWare, Parallels) or via xhyve. The VM acts as a Docker server, so the client on the mac side just passes options to the Docker VM. See: https://docs.docker.com/engine/installation/mac/
>I hate to be negative, but what really is the point of this? That a simple webpage without any content can be fast? Of course it can.

No, that most "content" making webpages slow is useless BS bloat.
"Also, a curse on Microsoft for localizing Excel formulas - what where they thinking ?"

+1. It's like programming in Java or C and all the keyworks (if, interface, etc...) were changed to the local language.

Madness.
Thanks for taking the time to drill into the study. It's just disappointing that the journalists apparently didn't have the time (or didn't consider it relevant).
2016 Nike Huarache Monopoly|www.NikeHuaracheusa.com
The part of the article about an issue with name mangling of private fields is somehow misleading.

The feature is just some syntactic sugar.

When within a class, private fields such as:

class Foo:
def __init__(self):
self.__bar

are accessible from within other methods of class Foo as `self.__bar`. But that's just syntactic sugar, the real name of `self.__bar` is `self._Foo__bar`.

So from the outside "world", including `hasattr()`, you can still access `self.__bar` as `Foo()._Foo__bar`.

>>> class Foo():
... def __init__(self):
... self.__bar = 'hello'
... def show(self):
... print(1, self.__bar)
... print(2, getattr(self, '__bar'))
...
>>> foo = Foo()
>>> foo._Foo__bar
True
>>> foo.show()
1 hello
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 6, in show
AttributeError: 'Foo' object has no attribute '__bar'
>>> foo.__bar = 'world'
>>> foo.show()
1 hello
2 world

In the end, when `x.__private` is setup outside of the class definition, obviously, it's a new member as its name differs from the internal name `__private` (which really is `_X__private`).

From within the code doing `getattr('X', '__private')` will return the `__private` setup from outside the class, and `getattr('X', '_X__private')` the one defined from within the class.

The whole point of that feature is to ensure that members defined within a class that are not part of the public API are left untouched when that class get subclassed, to avoid unexpected behaviours.

Here's an example of why this has been designed:

>>> class A:
... def __init__(self):
... self.__internal = "this is a"
... def show(self):
... print(1, "A", self.__internal)
...
>>> class B(A):
... def __init__(self):
... super(B, self).__init__()
... self.__internal = "this is b"
... def show(self):
... super(B, self).show()
... print(2, "B", self._A__internal)
... print(3, "B", self.__internal)
...
>>> B().show()
1 A this is a
2 B this is a
3 B this is b
>>>

There's nothing that should be surprising or asymmetrical to anybody who've read the python documentation, and use that feature appropriately. It's maybe a weird feature, but it's still a coherent and homogeneous behaviour and actually adding more safety to codes.

Documentation references:

* https://docs.python.org/3/faq/programming.html#i-try-to-use-spam-and-i-get-an-error-about-someclassname-spam
* https://docs.python.org/3/reference/expressions.html#atom-identifiers
Isn't this more error prone?
Don't Blame a 'Skills Gap' for Lack of Hiring in Manufacturing
Only a tiny fraction of human knowledge is transmitted through knowledge. Humans can't describe the wiring of their visual cortex, or the intuitions they feel. Expert chess players find it impossible to explain why they make the moves they do. Mathematicians can make proofs and explanations, but they still find it very difficult to transmit their underlying mathematical intuition. Even the purest fields of math can only really be learned through experience and practice, not just following a few proofs mechanically.
Java experts you should follow on Twitter
Cheap Men/Women Nike Air Max Shoes Online – Www.AirMaxShoes.co.uk
>Not all websites can do without all of that - imagine a photography site, or an e-commerce site, etc. without pictures?

No, but I can imagine an photography site, or an e-commerce site without useless non-content pictures and shit-loads of CSS and JS.
> With a TRF of 1.7

TRF?
Call me skeptical, but it's sad to see how hard the stock market responds to online buzz of a product not yet in stores and not yet available without even knowing whether Nintendo will receive any long-term value from it. The current price is being driven purely on speculation, bang for buck bubble expansion. As soon as any "real world" effect is revealed regarding the value of Nintendo, market price will adjust accordingly.

People aren't interested in investing in Nintendo, they just want short term profit.
Two spaces indentation will give you the proper rendering for code snippets.
> An asserts checks DESIRED constraints.

Then imagined it is. Your desires are totally a part of your imagination, unless you make them become real.

> Depending on the implementation, an assert can either merely log or absolutely stop a program that doesn't pass its test, so it very much has a bearing on what the program will actually do.

Point taken. Unfortunately, logging errors or aborting the program won't make assertions magically become true, though.
Isnt Japans population aging quite quickly though? When some concentration of retirement aged people is reached, surely these attitudes will see a decline also?

I always hear about how Japan is making robots to take care of the elderly, because there will soon be more elderly than young - so i guess im going off that.
Definitely don't want to use INDIRECT in large sheets, as it is volatile (i.e. always dirty).

(Just to clarify: Excel maintains a DAG (directed acyclic graph) of dependencies, and upon changes marks cells dirty, then only recalculates what is required when F9 is hit. Cells containing volatile functions, being always dirty, always trigger a recalc of all their children.)
> my hard drives are SSD

Of course that's entirely irrelevant as the page completely fits into the ram of the server (or even the CPUs cache for that matter)
So, on the topic of people making horrid decisions when it comes to money, I recommend a movie called "The Box" inspired by a sci-fi short novel by Richard Matheson called "Button! Button!" (Wikipedia https://en.wikipedia.org/wiki/Button,_Button_(The_Twilight_Z...). Not a spectacular moving, but two hours or so well invested, I believe.
And the TL;DNR being: developers can't be expected to do a good job. Some of them in fact will do a terrible job.

This can be said for every industry involving people.