skysight-inc/HackerNews huggingface dataset:
iPhone X unlock question URGENT
Hello,
I have relocated to Beijing, China for work and will be here for a while. My upgrade was due and I got the new iPhone X with AT and T. I temporarily cancelled my cell line because it is too expensive to use overseas. Now when I purchase the Chinese SIM Card and tried to use it it says I must unlock the phone and to contact AT and T. In order for them to unlock my device it has to be fully paid off. I cannot afford to pay off the device currently so my question is, is it safe to manually unlock my iPhone X and how would I do that? Or any resolution would help so that I am able to use Chinese SIM Card I purchased couple days ago in my US Iphone X. Thank you
I sleep outside, occasionally couchsurfing. I scavenge my food and everything else. I'm not 100% currency-free, but close to it.
From all of us single people who are likely never going to have children. I'm fine with that. Hell, you can take it out of the mortgage interest deduction that I will never get.
> This kind of worthless comment is not welcome here on HN.

Neither is your comment.
Watch a Magnetic Material Skitter Around
Python list comprehensions.

They could be written as multiline loops, that are definitely more readable, but it's just so nice to whip out a list comprehension sometimes:

print([int((((1 + 5**0.5) / 2)**n - ((1 - 5**0.5) / 2)**n) / 5**0.5) for n in range(1, 21)])
Interesting that this claims to support OpenGL etc, do they work with hardware acceleration?
I bet it's peach in Diddy Kong racing. Experiential anecdotally that's the sense I have.
Related: https://en.wikipedia.org/wiki/Ettore_Majorana
What do you mean by “changes the correlation”, and how is that relevant? I don’t know what you’re getting at.
I really can't comprehend how the fate of single animals (ecologically irrelevant) frequently cause such an uproar online — more frequently cats and dogs, and never unattractive animals.

I remember the a couple of years ago the completely disproportionate violent reactions in Spain to the order for the killing of a dog belonging to a nurse that had been infected with Ebola.

It seems not even children elicit these kinds of reactions nowadays.
This area is like the endgame of the American suburban experiment. It is designed to be a collection of nice, isolated, suburban communities connected by a sprawling, auto-centric hellscape of oversized roads.
> getting things done quick and dirty on the fly

sounds about right.
And for everyone one of those I can find about a thousand HN comments telling you to push on even if you're unsure about whether you can deliver.

Edit: For that reason, most of this "I told you so" sounds like hindsight bias if it comes from someone who would normally take the attitude of "fake it till you make it", "don't wait until you're sure you have a working product".
>You could simply make it mandatory time off.

Then I won't notify the company when I've had a child. Simple as.

Don't consider going down the road of "you must declare what is happening in your private life to your private employer" as someone else did either, without at least considering what an absolute breach of privacy that would involve.
> I'm curious if these tariff taxes will meaningfully lower the budget deficit.

I think the consensus on this one was that it wouldn't.
Maternal investment has a 160M year evolutionary history (first mammals)

Paternal investmemt has at most 6M years (time since split from chimps who have almost none)
Big data targets drug resistance
Don’t forget feminism’s role in this as well. The traditional working father/stay at home mother arrangement has been deemed oppressive and degrading to women.
You'd just just a neutron reflector to shape an omnidirectional source, right?
MIPS Acquired by AI Hardware Vendor Wave Computing
This is worth a bit of explanation, see this link and the code duplicated below:

https://perlmaven.com/the-default-variable-of-perl

I agree with most everything the author says, along with the idea that you shouldn't use it that often.

----------

use strict;
use warnings;
use v5.10;

while ($_ = <STDIN>) {
chomp $_;
if ($_ =~ /MATCH/) {
say $_;
}
}

----------

use strict;
use warnings;
use v5.10;

while (<STDIN>) {
chomp;
if (/MATCH/) {
say;
}
}
Agreed. Does everyone have to pay this tarrif? Or are you suggesting certain things should be immune from tariffs?
Shkreli's crimes had nothing to do with the drug prices. Unless you think the jury/judge was biased due to it.
I doubt the lawyers would OK such a thing, even if they weren't afraid of the legal consequences. Interviewers are just employees on the loop with minimal training, and as such you're likely to run into a non-trivial portion that do dumb things in the interviews.
I suspect you're right, but that also highlights a broad problem that we have in tech. In the face of missing expertise, most people assumed, or at least were willing to believe, that it was more likely that a tech company would be able to completely disrupt the way blood tests have been done, rather than question why something as simple as "use less blood" hadn't been done already if it were feasible.
You could connect a Bluetooth keyboard to the phone and it would make a decent terminal emulator :)
The burden for companies isn’t so much paying the employee but rather losing an employee for an extended period of time.
Absolutely not true. There is plenty of evidence time and time again from the top firms in this country try.

Aviation and top R&D being stolen from Boeing, just in general corporate espionage is rampant just Google it. The kicking out of top tech firms, why is Google not there in China? Why is that fair? China does not play by any rules and therefore they can’t be allowed to play with us.

The purposeful devaluation of their currency, why is that fair?

I could go on and on. I assure you I’m not a Nazi and I really dislike that part of Trumps campaign but man he is so right on this one.
If I put a file with certain content into Google Drive, then Google Drive, or a subpoena for my Google Drive data, will return exactly those contents.

Hence, it is reasonable to apply any distinction to the content as a user of Google Drive sees it, and not as it may be stored on the backend. Hence, if the data WhatsApp pushes to the Google Drive API is unencrypted (and we're talking about the data, not about the HTTPS-encapsulated form that passes over the network), it is reasonable to call it "in clear text", and it wouldn't be reasonable to call it encrypted.
I don’t think the USA is a crucial food exporter to any market except maybe Mexico. Yes, we export lots of fruits, nuts, and animal feed, but none of this is going to be missed very much. It’s not like Thailand cutting off rice exports.
> At least Holmes “victims” AFAIK were mostly rich folks

why would that make it any better?
It's tribalism, and it has become absolutely rampant on this site recently.
Yes, that’s some bullshit there. Though they are small compared to Theranos, so uBeam will just fizzle out quietly.
Another reading is that the thought going in to the tariffs was not directed toward helping Americans, but rather creating headlines big enough to crowd out reporting on the various scandals of the administration.

Ever seen "Wag The Dog?"
It's not a syntactic feature, so it can't be syntactic sugar.

Also, it's available in many (most?) other languages: C (strtol), C++ (std::stoi), JavaScript (parseInt), PHP (intval), ...
Deaf doesn't mean weak.
You don't need the IO or state monads in other languages, but that's not the only useful monad. Applicative functors with their own do notation are pretty cool too.
Well I am not sure about blackberry but android and ios are fully compromised[0].

0:https://wikileaks.org/ciav7p1/?
The dark story behind Stalin’s popular photo with a Soviet girl
A company doesn't just exist for the benefit of its shareholders. It exists for the benefit of society and its employees.

And quite crying about down-votes.
Might be one of BlackBerry's newer Android phones.
There is a good design reason behind it and that is that augmentation are supposed to have a direct effect on how you see the world.

Also since there is gun play third person shooters tend to essentially boil down to cover shooting which gets boring really quickly and you need a very sticky camera and a boring level design to prevent players from exploiting the fact that you can easily see behind corners.
It is Android. So yes.
Food Companies Can’t Figure Out What Americans Want to Eat
> or did anything useful for humanity

China has been around for a long, long time and has gone through many phases, including the current incarnation. In this time they have done a great many things for humanity. Including, one could argue, hugely reducing the cost of manufactured goods.

You talk about fairly competing like the US does not massively subsidize many, many industries, undercutting other countries. Not to mention some of the stuff it did in the 80's around south America.

And let's not talk about the fact that the US stole a lot of trade secrets and IP during its industrialization from Britain and other countries.

Feeling threatened by another nation going through its industrialization process and iterating upon it is not a good look, IMO, especially when now the glove is on the other hand so to speak.
Nice story! I have a friend who worked in bioinformatics, but he was good at programming and went to better-paying pastures.

I wonder if the problem is twofold: 1) a lack of education compounded by 2) the rapid evolution of computer systems.

Unix is a rare beast in that not just its philosophy but even its components survive to this day and remain relevant[1]. People in unrelated fields rebuild tools that could just as well be assembled using Unix's basic components, but they're just not aware of them. And why would they look for these antiquated tools? They've been trained to reasonably expect old tools to have been replaced by newer, better, more featureful ones.

[1] AWK was created before I was born, and I'm among the more senior engineers in my 20+ team.
Python 3's string formatting is pretty useful.
What’s in a year? A Ratatouille-assisted defense of engineer bootcamps
Read the book. ALL of their tests were flawed.
Why wouldn't you be able to?
Google doesn't know about qawk. A more general toolkit that does the same thing and (presumably) more:

http://github.com/dkogan/vnlog
Google isn't a person and high-paid attorneys aren't antibodies. It's much more likely that people doing the interviews don't have a clue how to do it (likely because their expertise is software engineering, not recruiting)

The sooner we stop blaming faceless corporations and start acknowledging that each person involved in recruiting (including you and me) needs to take training and ethics more seriously, the better.
The subject you pick and the reaction of the people around you to your initial attempts makes a big difference here.

People underestimate this.

So pick subjects that interest you or are sure to tickle/provoke/excite the people you intend to show the work too.
Sorry, this comment will not really benefit the matter at hand, but I'd like to share a relevant quote I quite enjoyed when I first read it

> Syntactic sugar causes cancer of the semicolon.
- Alan Perlis
I once read the two or three first chapters of _ The AWK Programming Language_. Those chapters cover the whole language and I could read it in one sitting (actually standing; in a book store, but I digress).

To my surprise, it was powerful enough to write a somewhat limited implementation of Snake: https://github.com/johshoff/snawk
If you're going to make a financial argument (as opposed to the moral one), you should take a look at how we fund entitlements in this country. You want population growth. The financial disincentive for having kids is a real problem.
> 'less' is a joke, people who remember 'more' might find it funny, but few people remember 'more' so younger folks just think it's a nonsense name.

Carrying on the trend, there's also 'most'. https://en.wikipedia.org/wiki/Most_(Unix)
Business Owners Tell All: How Has Your Chatbot Transformed Your Business?
If you suspect that you have bad soft skills, try to find 2-3 people who are comfortable with them. I find it easier to work with 2-3 clients than to deal with teams. If your jurisdiction makes it easy, start by freelancing, incorporate later, if you need it (I didn't need to finally, until I wanted to work with a small team; Quebec/Canadian law is very freelance-friendly).

In the field I work, we mostly joke that we are a bunch of unemployable people. We like being our own bosses, working in small teams. I formed a worker's co-op with a few ex-colleagues and I'm happy with it. We also federate loosely with other companies in our field (around the FOSS project that we provide support for).
That doesn't matter. The point still stands so long as it is true for at least one economist.
In this case, where the US imposed tariffs on electronic components from China, every country that imports electronic components from China except the US.
Even vim can be made to function as an IDE.
Yes, but the setup is a few clicks.

I think the main selling point is that you run the IDE on an EC2 which runs the same OS as your production environment (even Lambda) which allows you to directly compile server code in the IDE and it just works on your server.
I'm going to guess you will get more growth in your career by learning how to be empathetic than negotiating with such an asinine argument.
Not sure if Trump and his appointees do either
Pregnancy, having kids, both for dads and moms, having a life, being older, experienced, all things that will count against you.

Starting your business sometimes seems like the only way to get things right for you.
Does your mother need to get tested for malaria often? What are you talking about.
That's a good idea. Even if you enable FDE and a strong passphrase, the court can still compel you to unlock it. They cannot compel you to automagically undelete expired messages (hopefully those are expired and removed in a secure mannner...)
Perhaps the word "if" doesn't mean what I used it to mean? In that case, you should correct my misconceptions on that subject instead.
Those of us in the rest of the world view U.S. agricultural products as subsidised and dumped on the world market. Look at the history of the Chicken Tax to see the long history of this.

The rest of the world would actually prefer jobs for our own farmers and we would also prefer to not be eating genetically modified junk from America. It is theoretically possible to live without a Harley Davidson motorbike and whatever else America actually makes these days, as for food, that is vital. Therefore in places like Japan rice is given special protection.

I hope the Chinese respond by selling off the many trillions of US bonds/debt they have been buying over the years.

I also hope that the petro-dollar is no more and that the world can move to an era of genuine fair trade.
He is good at tech and investing, no doubt. His political ideas are interesting but his money gives him way too much influence in other areas that aren't his main expertise.

And supporting Holmes for that long and even now looks really bad and is very difficult to justify.
> But I do have to wonder whether the degree of attention from the DOJ has more to do with avenging the reputational and possibly financial losses of those same board members, than garden-variety "the DOJ prosecutes fraud".

Or these two are convenient patsies..

Did they really lose money?

Theranos had huge contracts for blood testing at major national pharmacy chains for a year or two, and if you follow the timeline, there's a ton of related activity requiring well connected people which seems to indicate rushing things out the door to make sure they could get these contracts..
Cost-effective method of extracting uranium from seawater
You keep saying that he is right. You realize this discourages manufacturers from manufacturing here and instead to move that to China, right? Chinese consumer goods aren’t affected, but Made in America is now more expensive.
Although I completely agree with this for any given "one-liner" or pipeline (even if it's multiple lines), I don't believe the mere use of awk in one place in the script means using cut elsewhere isn't simpler/clearer there.

Consider a script that originally had now awk but just a

field=$(somecmd | cut -d: -f3)

but now has been modified to have awk elsewhere. Did the above just become less simple or clear? If so, is it worth changing it to the below for clarity? Does it matter if the awk predates the cut, instead?

field=$(somecmd | awk -F: '{print $2}')

I say "no" to both, although I do recognize the argument for just using the same, consistent tool everywhere, instead.
Are you bummed that they didn't go with your screenplay for the big screen adaptation starring Jennifer Lawrence [1]? :)

[1] https://www.imdb.com/title/tt5795144/
Is Blockchain Interest Really Low?
I've heard it as Emacs Makes All Computers Slow.

Probably was more applicable in the old days (as one call tell from the "megabytes" in the parent comment) than nowadays :)
The devices at the time with larger screens were larger, heavier devices that had shorter battery life. Nobody made a pocketable device with a screen that size.
I suspect this scenario is unique to the high tech software/hradware/IT industry due to the pace at which workers are expected to work at in this industry. With age related decline in efficiency, the only option available to you is to look for more managerial or organizational roles which are at higher levels in the jobs pyramid and hence fewer in number. In other industries, which have been around a lot longer than the 40-50 year old IT industry, I suspect this is not as much of a problem because their pacing issues are far better resolved.
When writing one-off Ruby scripts, I especially like using the single-line unless with Kernel.fail:

fail "bad arg" unless dir = ARGV.shift

(If you could figure out a way to also stuff that line with a transformation to a Pathname for not-nil results, I'd be in heaven.)
Anecdote: I've discovered features with Alexa on accident before. I was watching Jeopardy at my parents house and someone yelled that Jeopardy was on, and Alexa was like "let's play Jeopardy!" and booted up a game for us. I would have had no idea that Alexa could do that if it weren't for the fact that it's.. uh.. constantly listening to everything that goes on in your house.
Guide to Angel Investing
Να δείξουν την ποιότητα τους Αργεντινή και Κροατία
Eager lists have their place! Ya can't sort or slice into a generator. I like the choice.

I'm mostly still in Python 2.7 land so I forgot about the new f strings. I've never used them and I'm 50:50 only because I can do "%s %s %s" % (a.b(), z[:4], x2) without binding new variables. Can f strings do that? I don't know.

I agree about the whitespace issues. Have you seen a language do them better? I proposed using | to prefix each line for Java's string literals. At least they're explicit that way. I'm just glad Python used """ instead of backticks or or <<<START style here docs.
The system that you are proposing is anti-human. We are not machines and time does not directly equal productivity.

Diversity is a proven cultural milestone that increases the efficacy of organizations.

I'm curious what you would say to this.
What about individuals who have mental or physical disorders and need a reduced work schedule?
Legal Personhood and the Positive Rights of Wild Animals
Show HN: Play 2048 via Telnet/SSH
We currently let companies have wide leeway in what they negotiate for compensation with their employees (and contractors). But the problem that you think deserves to be banned is that some companies pay the people on parental leave?

Man do I have bad news for you, my company gives people bonuses when they have children.
But not everyone likes Markdown, it would possibly be bloated!

Maybe we should add a scripting language so that sites can use any source format they want? Oh wait.
And what cushy behind-the-scenes appointments they get after 'doing time' by playing golf at a minimum security resort for 6 months.
That is why I read Hacker News. The media will try cover up and protect Trump no matter what. Good thing commenters here can scoop the media and expose his lies.
One thing I've noticed is that in the past, performance advice was given for specific engines (e.g. V8/crankshaft). Nowadays, if any performance advice is given, it's applicable to all major JavaScript engines, and in general the advice is for developers to write "idiomatic JavaScript", leaving the optimization to the engines.
No, but I'm bummed they didn't steal the name "Pricks"!
Impregnation via the GI tract in a patient with a distal vagina (1988) [pdf]
I've heard grep is for Globally find Regular Expression and Print (which comes from the :g/re/p command of ed).
Not an expert in this field, but it seems like they could have pivoted to do a smaller sub-set of blood tests, like the immunoassays. Part of the failure was their insistence that they were going to do ALL blood tests through a finger stick. Once they had raised tens of millions of dollars based on taking the entire market, it was probably too late to de-scope the vision without losing their investors.
obligatory: https://xkcd.com/538/
On Stones in Japan, Tsunami Warnings
It probably helped that her mother was a congressional staffer and her father was a USAID exec.
physorg has been a very popular site ever since 2004 and well respected for its compilation of scientific and technical papers. It's probably not malware - a more reasonable and common explanation for bad CPU performance is that one of the web or ad frameworks they use is poorly made.
holy... fantastic material
They mainly hire people to replace others that quit/retired or to fill a new position created to support a team with a steadily growing workload. New hires are subject to a 3 month probation period during which both parties can end the contract at will. More than 80% of all positions are long term.

I would hope that someone looking for a long term employment at a company would be honest and upfront with something like a planned 1-year vacation. My only gripe with the parent poster is that they are hiding(rightfully so) this so close before their planned leave and thus do not appear serious about a long term employment at that company.
Neutron stars would presumably consist in large part of QM, if it exists.

Colliding neutron stars spray large chunks of material therefrom, into interstellar space. It is said that this contributes a significant percentage of the gold and uranium on Earth.

If QM were stable, would we not therefore expect to observe it in nature, with abundance at least on the order of gold and uranium? Perhaps there is some factor that depresses its abundance somewhat, but to have gone entirely unobserved, it would have to be many orders of magnitude less abundant than gold. Is there any theory that reconciles stable QM with the observed upper bound on abundance?
If you can only afford 10 people, you can usually also get by with 9. Even a healthy male full-time employee is a much bigger commitment financially to a company than just the salary number (i.e. you need to pay payroll taxes, insurance, benefits, equipment, recruiter fees, etc)

If you're going to be stretched thin financially after hiring a single new person, you probably shouldn't be hiring.
Austin is more liberal than San Jose.
After Seattle Ditches Its Amazon Tax, Silicon Valley City Mulls a Google Tax
>their jackass developers who think they're saving the world with their "innovation"

May want to target the psychologists, behavioural economists and similar who come up with the gamification to drive some of this narcissistic behaviour.

Not that those doing the implementation of it are guilt-free, of course.

Can't wait until society moves past this "look at me, look at me, LOOK AT ME!" phase. Or it won't, and I'll die a bitter old man from it.