skysight-inc/HackerNews huggingface dataset:
This is, in fact, the exact reason for the _source attribute which is being discussed in this article - you can use namedtuple to easily create a structure, get its source, and then edit it to suit your individual project needs. E.g.:

>>> from collections import namedtuple
>>> FullName = namedtuple("FullName", "forename surname")
>>> print(FullName._source)
from builtins import property as _property, tuple as _tuple
from operator import itemgetter as _itemgetter
from collections import OrderedDict

class FullName(tuple):
'FullName(forename, surname)'

__slots__ = ()

_fields = ('forename', 'surname')

def __new__(_cls, forename, surname):
'Create new instance of FullName(forename, surname)'
return _tuple.__new__(_cls, (forename, surname))

@classmethod
def _make(cls, iterable, new=tuple.__new__, len=len):
'Make a new FullName object from a sequence or iterable'
result = new(cls, iterable)
if len(result) != 2:
raise TypeError('Expected 2 arguments, got %d' % len(result))
return result

def _replace(_self, **kwds):
'Return a new FullName object replacing specified fields with new values'
result = _self._make(map(kwds.pop, ('forename', 'surname'), _self))
if kwds:
raise ValueError('Got unexpected field names: %r' % list(kwds))
return result

def __repr__(self):
'Return a nicely formatted representation string'
return self.__class__.__name__ + '(forename=%r, surname=%r)' % self

def _asdict(self):
'Return a new OrderedDict which maps field names to their values.'
return OrderedDict(zip(self._fields, self))

def __getnewargs__(self):
'Return self as a plain tuple. Used by copy and pickle.'
return tuple(self)

forename = _property(_itemgetter(0), doc='Alias for field number 0')

surname = _property(_itemgetter(1), doc='Alias for field number 1')

You can then pretty simply remove the inheritance from tuple and change the properties to get the behavior you describe.
That assumes the referee should be in control of private resources and decisions, instead of simply ensuring all parties are abiding by the rule of not violating each other's property rights and of fulfilling their contractual obligations. That IS a normative position that not everyone accepts.
Yes - bring back the wolves!
One big advantage of using namedtuples, aside from the immutability I mentioned elsewhere, is that you can rely on a namedtuple having particular fields. So if you're using dictionaries, you have to worry about KeyError wherever the dict is used, but if you're using namedtuples, you can't create them without assigning values to all of the fields. Dictionaries are still great for their intended purpose -- to represent a mapping -- but namedtuples are nicer if what you really want is a lightweight object.
The Trader Joe's Lesson: How to Pay a Living Wage and Still Make Money in Retail
Caching does not have the same expectations for persistance that a database has. If data in Redis gets blown away, I don't really care. If data in my RDBMS or NoSQLDB gets blown away, it's a huge problem.
No, I totally agree with that sentiment. Things have changed for our younger generation and sadly in most cases, not for the best. It blows my mind sometimes to think of my grandfather working a factory job with my grandmother not working while raising 8 children. Oh, and they owned their own home which was a nice middle-class abode and also drove decent (but not luxury) cars. Grandfather retired at 58. Grandmother died at 86, some money still in the bank.

So yes, things have changed for many reasons. Our middle class, outside of those in a few booming sectors is struggling, if not outright choking. College is becoming a no-win proposition for some and at 33, I certainly am not expecting a life like that of my grandparents or great-grandparents, for better or worse. So I get it. I was just pointing out that there is a middle ground between those two viewpoints on either end, and perhaps, just perhaps a solution is somewhere in that terrain.

I'm not holding out hope though, as there are so many forces at work right now and...yeah our leadership is making me a bit nervous.

^These observations is all America-centric, I know that. I don't pretend to know how things are for every young person globally and don't want to act like I do.
That has been my experience too.

The hardest part about moving away from Google around 4 years ago was migrating all my account email address to new providers.

That basically took me an afternoon. No big deal.
Essentially every single aspect of our cultures understanding about how to accomplish things and do work is a direct outgrowth of assembly-line manufacturing. Mental work is fundamentally different. But we continue to treat mental work as if its the same thing as mindless physical rote repetition. Humans aren't capable of extended periods of mental exertion. 40 hours of work a week was fine when moving sheet metal into a press. For mental work, it's counter-productive and borders on the cruel. It's certainly harmful to every effort that pursues it.

But habits die hard, and the management class is more addicted to the manufacturing-driven mindset than junkies are to heroin, so it'll take awhile to change.
But the stringCache reference is not final, it's just transient. Because there is nothing within the toString() implementation that enforces a happens-before effect, nor is there anything similar on stringCache itself (such as volatile), threads are not guaranteed to see anything correctly with respect to stringCache, or the layoutChars() method.

The problems in layoutChars also affect the thread-safe behavior of toEngineeringString() as well.
I thought it was "Lyme disease can be a life long issue"?
ISPs are always free to throttle all services. Or (gasp) stop lying about so-called "unlimited" plans.
I don't get it. I can comfortably hold my phone pinched between my thumb and index fingers at just about any location. The finger on the bottom just needs to be a little closer to the center of gravity. A sensor where my 6+ says "iPhone" on the back (about 1.5" above the bottom) would work fine. But even if the sensor was up high, so what? It'll still work if your finger is between the phone and the reader.

As for the thumb, just flip your phone over. Although this would suck if you need any visual feedback, obviously.
Global DIRT
It's slightly tangential, but you might find this project, and the surrounding community, to be of interest.

https://climate.apache.org/

Also, in addition to historical data that's already collected and available online, an interesting side note is that it's possible to directly receive some satellite data yourself using a relatively inexpensive SDR (Software Defined Radio) device. This article deals specifically with receiving images from NOAA satellites, but there are probably other signals floating around out there that would be useful to you.

https://www.rtl-sdr.com/rtl-sdr-tutorial-receiving-noaa-weat...
Yes, that is why it is surprising this type of device and behavior was used. It is something you'd expect from a sleazy car lot, not a new car dealer (regardless of brand).
This is complete tin foil hat thinking, but this seems like a high stakes game.

It's one thing to do competitive landscape research. It's another for your "host bot" to be able to record and analyze all of the guest bots in aggregation. This feels like asking for hiybbprqag all over again.
It would certainly be interesting to hear some evidence or justification for this position, given that the record of governments with respect to privacy over the Internet era (at least) has been uniformly dismal and getting worse.

It certainly seems like the positive statement "government is not motivated to protect individual privacy and will not effectively do so" is well-supported by current experience.
Wait, why did you need to use XVFB with PhantomJS? Isn't Phantom headless as is?
Very interesting. I don't have a college degree, but I do have a well established and successful career as a senior software developer.

And yet, literally this week I am submitting applications to multiple universities in order to complete my CS degree (I have about a years worth of credit). I am doing this on the recommendation of my management as well as the encouragement of my wife. Is it going to be easy? Nope. Is it going to be worth it? I sure hope so.
> I think in the US you do courses for years before you start actually researching, which is what you're there to do in the first place.

This varies a lot by program in the US. Some schools want you to take 10 classes in the first two years. You can, of course, do research but your mind will be elsewhere. Others don't care as long as you pass your quals and take the required number of courses by the end of your PhD.
Didn't the article say Google, not Schmidt, gave $21 million to the think tank?
I'm an amateur at all this (and maybe the article stated this explicitly), I use Garageband. I find the main reason to do your recording and mastering in 24 bit is so you have room to change the level of each track without the sum of them clipping. When you are trying to set the levels of each track you have two constraints if you use 16 bit. The first is you need to keep all of them low enough that the overall recording doesn't clip but you also don;t want to over compensate and use only half the dynamic range available in 16 bit.

Doing this process in 24 bit gives you a large margin of error to play with. No real point to keeping that for the recording people are going to listen to
>This argument isnt worth having

Well at least we can agree on something.
1) The current insurance company-based system is held up by government regulation; altering it would likely reduce government intervention in the economy.

2) I don't understand how government reducing their backing of student loans is "bigger government". Could you explain that?

3) I agree that improving infrastructure is bigger government, but it is widely seen as an acceptable role for government, not "a manifestation of a communist/socialist society." On the other hand, "pushing back against overly aggressive zoning laws" is clearly the opposite of bigger government.

In addition to all this, your statement that "all of those are manifestations of a communist/socialist society" needs an explanation for why this matters. Why is it necessarily true that a manifestation of a socialist society is a bad thing?
No idea why this is here, but I'm the speaker and happy to answer any questions.
> Except you also inherit the tuple behavior.

It sounds like you might be happier with attrs if you want an easy to construct class that doesn't have tuple behavior:

http://www.attrs.org/

http://www.attrs.org/en/stable/why.html#namedtuples
When has that NOT been the case? :)

Until WW1, war was seen as a part of life, and for serving in the military was seen as brave, noble thing for young men to do. Even now, we expect most young people to start at the bottom and move up "through hard work" while the scions of the rich start at great positions and build a career without ever having to do minimum wage (exception is certain careers that require skills and are booming, such as technology).

And while the young people are struggling to meet ends meet, they have even less time for politics, participation etc.
Ability to work the hours you want, part time, from wherever you want? I assume most people who decide to go freelancing is not for the steady money but for the freedom.
Front-end JS? Need, mainly. Most of the UI/UX people I worked with have not maintained their skills, and I was getting tired of knowing more and doing better work than them in their own field. As it happens, there's a much better market for that work than for the back-end and architectural work I've been doing the past couple of decades.

Oil-and-gas? Luck - I live in a city with a lot of head offices. Eventually almost everyone works for one of them :) It was just my turn. But it looks like a long-term gig, which is great.
What are some examples of popular songs that had their loudness boosted?
It's a stupid example I gave, also sometimes the connection has to take the not shortest route due to legal restrictions. So no, not always.
>Doing a PhD in the UK helps, in and out before the funding dries up in 3-4 years is expected along with no class requirements and no masters needed (can go in straight from Bachelors)

I think this is the key sentence for a US perspective. 2 years of course work + 3 years of research for 5 years total is common in STEM fields.
I would go so far to say that nobody should ever use Lucene as a data store. It's very easy for it to get corrupted because it was explictly designed to support fast full-text searches at the expense of persistence (because your data is supposed to be persisted elsewhere).
This is a nice touch but insisting that it should be part of the stock functionality for a basic data structure makes no sense to me.
The celebrity has large budgets for other projects, and he or she may direct to the other project manager: 'please use my other investment's product, I want to make sure it actually works'.
I recently came across this video of a color sensing tomato sorting machine.

https://youtu.be/j4RWJTs0QCk

Really shifted my mental ranking of where agricultural processing was at.
the nation now has more female college students(undergraduate and master and PhD at all levels) than male students, one reason I believe is that boys are more susceptible to games.

parenting is a profession without a degree and you have to learn by doing, and hard to get it totally right all the time. games are indeed a true headaches(if not the biggest headache) for many families, it is getting much worse because of the powerful smart phones and tablets these days, it is just the reality.
Why is the JIT not allowed to do this? (Assuming publishing isn't volatile)
The reordering could also be caused by the CPU, not only by the JIT.
If the JIT isn't allowed to reorder, we also need to prevent the CPU from reordering.
Otherwise it doesn't make sense to restrict the JIT from reordering if the CPU could still reorder later.
We would need to emit memory barriers for non-volatile loads & stores to prevent reordering on architectures like ARM.
This sounds quite expensive.

This doesn't make sense to me. Am I thinking wrong? Can you point me to documentation/reference that states that the JIT isn't allowed to do this?
Don't worry, that is exactly what they'll end up doing. Hope you have alternatives.
No, but if I was, I bet I could keep them from having to reboot their cloud services every week!
We should be cautious, but provided the scientific community is ok with it, I see no reason to limit editing human DNA to just treating disease.

What is the downside of increasing the number of geniuses? What is the downside of saving someone from dealing with severe teenage acne? Why should some men have to worry about their genitalia being well below average in size? Why should some women never experience an orgasm?

I get the instinctual revulsion to the idea of playing God or reducing our diversity, but I try to model my ethics as if I didn't know who I was going to be in the simulation before hand. These are changes that we should be advocating for if they are possible.
Or you know, have your lunch :P
Human CO2 contribution and the basic warming effect are well understood.

Nature absorbs more CO2 than it emits, but not enough to offset the amount we are putting out. Thus, the global CO2 concentration has been rising over the past 100+ years, especially in recent decades.

A higher CO2 concentration blocks more thermal radiation from exiting through Earth's atmosphere into space. When this energy is blocked, it stays on Earth, raising the temperature.

Using models that have made successful predictions in recent decades, we can predict that we are in for at least another 1 degree Celsius raise in global temperature, and very likely more if we don't work hard to counteract the issue (and stop emitting so much CO2).

This temperature increase will have very real, significant consequences, and we saw it coming many years ago. There is a reason all other developed countries in the world don't deny climate change.
Vultr is half the price of DO and has even more regions.
112 Russian writers ranging from great, to absolutely freaking great
> everybody knew the whales did not have baleen when they were land-dwelling, I mean, how would that work

And what if everybody were wrong? Perhaps some quirk led to development of baleen, which the proto-whales discovered was useful in the sea. So they stayed there.
Don't even get me started on "Software Robots", aka RPA (Robotic process automation). Yikes what a misuse of terminology.
Oregon University has precip/temperature data for CONUS freely available!

http://prism.oregonstate.edu/
IMO, the core issue is we simply don't understand DNA that well and are likely to introduce many problems potentially across a huge swath of the population.

Disease treatments on the other hand are likely a lot more straightforward and the net gains are also likely larger.
That's a strikingly high number. Do 2/3 of Americans even approve of GMO food?
The problem you are talking about is different and can be solved with traditional means (i.e. sprinklers) if needed. But due the fact the prior rain water is present on site for a longer time instead of being drained off in sewers they may not need to run the sprinklers as often (another benefit!)
This is computationally very heavy, but, more importantly, for practical purposes you want to have a tunable parameter to balance between sorting by pure rating average and sorting by pure popularity.

Often you also want to give a configurable advantage or handicap to new entries.
These are cool but the footage I recall seeing was clearly from the 1990s and lifted from VHS tape.
I'm not in Texas - I'd love to visit someday, I know a couple of people who lived in Houston until a few days ago.

I'm in Alberta, Canada - kind of a sibling to Texas :)
Yes, I agree. Most people I know would use RDBMS such as Postgres to store bulk of business data (customer accounts, transactions, receipts etc) and then use complementary systems for other purposes (so could be Memcache/Redis for caching, ElasticSearch for logs etc).

It's not a false dichotomy of using either Postgres or Redis, you can use them alongside each other, they have different uses.
India blocks mobile internet in select states ahead of expected violence
Second batch of volunteers enter China's 'Lunar Palace'
How to Have a Bad Career as a Stanford Graduate Student [pdf]
The Forrester Wave: Continuous Delivery and Release Automation, Q3 2017
Show HN: Visualizing transit vehicles in real time using React-map-gl
Why not give good service and pass costs to customers?
Maybe running with net neutrality should be the next ISP innovation? It's clear that there's enough consumer market demand that they could make money from it, I don't understand where the ISP's tunnel vision of "only way to innovate is if net neutrality is killed" comes from.
You're right. It's been proven a bunch of times that people are more likely to leave negative reviews than positive ones, or to remember bad experiences more overall.

Zendesk actually did a survey on this back in 2013:

http://cdn.zendesk.com/resources/whitepapers/Zendesk_WP_Cust...

And American Express found something similar in their Global Customer Service Barometer survey as well:

http://about.americanexpress.com/news/docs/2014x/2014-Global...
I was astounded to see that there is a perceived shorted of gold rushes.

"Filecoin Suspends ICO After Raising $186M in One Hour" https://news.ycombinator.com/item?id=14988132
> Humans aren't capable of extended periods of mental exertion

The humans on my thesis committee are definitely capable of extended periods of mental exertion. I don't know if it's something you're only born with or if it's something you can train but I bet I'll find out in a few years.
I came back to HN (does it fall under #3 or #5?) just to remark something along these lines ...
Ci de qualité
Turn their platforms into utilities, take the other bits and scatter them into different companies.
> science is never final

Why not wait till we're (more) certain? What's the worst that could happen? Catastrophic, runaway climate-change? I say we risk it - at least the science will have been settled...

FUD works both ways.
I largely agree with this, but in some fields I also think it is an over supply of PhD problem as well.
If folks want to join the movement the staff is building, you can get involved here: https://citizensagainstmonopoly.org/

If you want to do more than that, here is some more information on the staff, story and other action items: https://goo.gl/9a7KkC
Let's see what they do about the iPhone SE. Its success already appears to be an issue for Apple (lower margins) and a radical redesign of the flagship version could steer more people towards the SE (esp if it receives an update). Wouldn't be surprised if they discontinue the SE.
Building Interactive Visualizations with React, D3, and TypeScript
If you're running hundreds of very small tests, that one time initialization could take up a large portion of time.
> Like, why should we conclude that we need that sort of consent to administer a questionnaire for experimental purposes (i.e.: gaining generally useful knowledge), but that there are no substantial issues of consent when it’s for diagnostic purposes (i.e.: gaining information about that particular patient) instead?

1. Researcher incentives. Data => publications => prestige. If the procedure actually contains some inherent risk (e.g., a surgery) then this mismatch between the priorities of the physician and the priorities of the researcher matters. Even (actually, especially!!!) if the physician and the researcher are the same person.

2. Publication. De-anonymization is a real risk even if you're careful to only talk about patient # N in the publication.

3. Patient preference. Just because I allow my hosting provider to access my servers for the purpose of maintenance doesn't mean I'm OK with them accessing my servers for the purpose of surveillance or to read my personal emails. Purpose matters. Some patients won't want data about them used in the context of a scientific study. Patients should and do have the right to insist on that preference. Frankly, the presumption otherwise is exactly why IRBs exist.

This story sounds stupid because -- aside from de-anonymization or data leaks -- there are actually no substantive risks associated with this study. Change "questionnaire" to "open heart surgery" and all of this process starts to make a lot more sense.

FWIW I'm not saying IRB's aren't completely overbearing when it comes to benign studies. They totally are. But that doesn't mean these processes aren't well-justified in other circumstances.

(Also, a lot of this pain is completely avoidable if you learn and follow the rules, which isn't actually nearly as hard as this post makes it out to be IME.)
Would it be more accurate though?
I disagree that the others' points about Strings having final values make this irrelevant.

It's the references that must be final in order for things to be irrelevant, but stringCache (nor the other instance-level variables used by layoutChars() such as scale, intCompact, etc.) is not final. It's just transient, which doesn't affect anything with respect to thread-safe behavior.

If stringCache was final then this problem wouldn't exist. Neither would it exist if stringCache was volatile (though you would potentially duplicate work).

The implementation of toString() (specifically the assignment of stringCache) is a perfect example of an unsafe publication in the Java Memory Model world.
This is just laziness. Waiting for the next wonder to fix their health than taking control of it now and live a healthy life.
Trump administration adding extra hurdle for green cards
The probability my son will be stung by a bumblebee
Net Neutrality is the idea that ISP cannot target only specific addresses/services when they throttle your connection.
Tuscan espresso beans roasted with oakwood
When Coonskin Caps Were Cool