skysight-inc/HackerNews huggingface dataset:
interesting function parameter name shadowing issue they highlight. had not run into that, but, wow, that adds some serious confusion.

i also heartily agree with the article's points about nullable types and Java library interop: it's pretty annoying to deal with Kotlin non-nullable types that have to interoperate with existing Java libraries that have nullable types in return values or function callback parameters. i have way more question marks in my Kotlin code than i originally thought i would.

i also appreciated the article's scrutiny of the name and type order reversal in Kotlin and the "::" syntax for getting the class literal (::class vs ::class.java). still trying to get used to that.

and as for the learning curve, i have to admit that it's been steeper than i expected when i first saw introductory presentations. Kotlin feels very abbreviated. the smart type inference and things like 'lateinit' have sometimes surprised me in their behavior. these aspects of Kotlin are indeed very smart, sometimes too smart for me. i feel like i have to think harder to understand a piece of Kotlin code, which is ok, but somehow, i wasn't expecting that based upon the initial presentations.

overall, Kotlin is ok i guess, but, to go off-topic for a sec, as an Android programmer i wondered why Google chose to emphasize adding a new language when many other aspects (e.g. documentation, the jumble of GPS, Firebase, GCM and 3rd party libs, mysterious adb failures, emulator problems, instant run, etc), of the ecosystem needed improvement/simplification/clarification more desperately.
Watching what happened to Tupac seems to prove the point that rap and thug culture can be toxic. Prison could not have helped either.

He went from social activist rapper to rapper-gang member and it got him killed.

That doesn’t mean that it’s the music itself but the effect it has on the culture. And anyone arguing that music doesn’t affect culture is clearly wrong.

Movies do it too. A movie like “Zero Dark Thirty” that glorified torture is hurting the culture too. People in the military watch it and it changes their outlook for the worse.

It’s a hot button issue but that doesn’t mean your impulsive reaction is correct, just because you didn’t let the movie or music damage you directly.
Or better, make it public which accounts he blocked... (assuming this list hasn't already entered public record by way of this judgement)
Re: Sound quality: I wonder if you might have more success compiling a more well-known C (or similar) based emulator down to webasm and running it that way.
Sure we can, the easiest case is not all rap is built on racist stereotypes that diminish blackness.
Perfect time to quote one of my two 'must have parenting books', The Collapse of Parenting.

"To become a better parent, one must become a better person."
Sounds awesome! So now, where can I submit my job application? Just kidding xD But if seriously that's cool. I'd suggest Southeast Asia - Chiang Mai, Thailand or Bali for your next retreat which would be fun and definitely affordable in comparison with SF.
Ugh. This is only tangentially related, but Segment has always looked great, but is so incredibly, ridiculously overpriced for web analytics.

If you want to slap it on your website for basic analytics, you better not get any traffic to speak of, because they charge you about $.01 per monthly tracked user, anonymous or identified.

If you get 100k visitors per month (not even THAT much), it's $1,125/mo. Their pricing estimator stops at $2,375 / month for 225k monthly tracked users.

God forbid you put it on your site or in your mobile app and then anything you do goes viral. It'll bankrupt you.

Who on earth is this aimed at? Is this only suitable for tracking logged in users? Or only suitable for enterprise companies?

Better yet, what about what they're doing is so difficult and expensive, when many of the places you'd be sending these analytics (which will be handling the same number of events) are free or cheap at this level of use?

Segment has always seemed cool, but overpriced for web analytics by a factor of 20-50x.

OK, rant over.
How does it not make sense? It absolutely makes sense that a spy would be exchanged, then assassinated later.
Does it cost as much money or draw in as much funding is the real question.
Isn't it? Afaik so far this has only been affecting one US employee in China.
That same employee was diagnosed with "a mild brain injury", whatever that's even supposed to mean, but he's the only one and he has an injured brain.

Couldn't it be that he felt these sensations because of the brain injury and being impressed by what happened in Cuba lead to him making connections that don't exist? People are impressionable like that, that's why the placebo effect, and mass hysteria, are very real things.
Or have to work with that person, which is especially bad since one of the goals of this kind of posts is to advertise your company.
That used to be the case, but the build tools have supported lambdas for a while now, and it works even on very old devices.

On the other hand, Java 8 classes like java.util.Stream only exist on API 24+ devices. So if you want to support older classes, you can't use the standard stream library.
It may be unproductive - and for what it's worth, I agree - but it also highlights a core difference of ideology. Call it individualism versus collectivism, personal responsibility versus victimhood, or whatever else you want to apply to it; the fact remains that conservatives virtue signal by claiming responsibility while liberals virtue signal by assigning victimhood, regardless of whether either of those things are strictly true.
The parent wasn't saying that it does.

The parent was pointing out why the logic is dubious, using a reductio: if you consider Twitter[1] a public square (as the court does), and thus you can't stop people from "petitioning the government" through it, then it's a double-edged sword: they must also protect the same speech that would be protected in a public square.

It seems a more sane resolution is to treat Twitter like a private venue where an official addresses some members of the public, like the room for the Correspondents Dinner: they have no obligation to let any specific person in (esp. after they're deemed abusive). It's just that Twitter is a private venue with a much higher capacity.

The right to petition the government is not the right to petition it in every possible venue. US Citizenship or personhood does not mean you can e.g. ask questions at a press room briefing; there are filters they can apply.

[1] technically, the subset of it involving interaction with government officials
It's not Trump's personal account, though. It's become an official account of the Office of the President.

And anyone who's upset at the content of replies to Trump should probably go and look at the content of replies to Obama.
I love emulators like this person too. My dream has been to write a TI-85 emulator. I know there is a few out there, but none for the Mac. I used that calculator a ton in HS, and that's where my love for the Z80 came from.
I bet on this angle.
Disclaimer: not super familiar with Kotlin or Java.

Safely calling option.map and having the function assume it's not called with null is very useful. Is that a real drawback to Kotlin or is there something missing from this post?
> You also built one of my favorite unique sites (share latex).

Credit where credit is due: Henry and James built ShareLatex. I simply re-skinned it. They are the real heroes.

> how did you manage 5 prospects per day? That seems like an incredible amount of work that would break up my flow. Is this more like one day a week of hitting up 30 leads? Where did you find all of these prospects?

I aggressively sought opportunities. I recently posted about the collection of remote job sites I found [1], trust me, I was doing a lot of outreach and taking meetings. The advice I got from a dear friend was I should be networking at least 2 hours a day. I was doing that on top of the 8ish hours I was billing to clients.

> why did you choose a 3 pronged approach of blog post, personal site AND consulting site? What’s the incremental value of the other two given one?

Good question. I came to this conclusion after months of torturing myself over trying to master my personal brand. Here's why - your personal site serves to drive an audience of people who google your name. Those may not be the same kinds of people who are looking for consulting. Plus, if I every sold my consulting business or pivoted, it's not tied to my name. Same with my blog. Better to name your blog in relation to the vertical you are pursuing, rather than have it be yourname.com/blog. No one is googling the topics I'm interested hoping to read about my opinion. They just want an opinion/content from an authority. I write about front-end/development/UIs, so UserInterfacing as my blog is much more relevant than simply my name. Does that make sense?

> can you describe, or give any links about value based fixed cost pricing?

Guys like Brennan Dunn and Jonathan Stark are all about this. Check their stuff out, they're really much better at it than I am.

[1] https://userinterfacing.com/here-is-the-full-list-of-my-50-r...
This goes beyond generations.

Technology, especially the widespread technologies like smartphones are something that just happened upon most people.

So most people haven't adapted on how to use them responsibly. Just look around the average cafe, you can usually find a group of people sitting together but not talking about anything, they just look at their phones.

This also seems to reveal an underlying issue, one which I also experienced. Before smartphones usually, you'd make up conversation, smalltalk, even if you didn't want to talk or had anything interesting to say. These days instead of doing that people just seem to ignore each other and do something that is interesting, using their phones.
Facebook marketplace expands into home services
To be fair, at this point of removal the amount of DNA you share with Charlemagne is likely to be similar to the amount of silver nitrate in a homeopathic remedy.
I agree with you, but there was some speculation that it could be Russia trying to ruin diplomatic ties between the US and Cuba. And Russia does have quite the history of abusing diplomats (though typically only within Russia.)

This article just recently came out on the topic:
https://www.politico.com/magazine/story/2018/05/19/michael-m...
Words change overtime if there's enough momentum. I'm not advocating it should but... it's already possible "crypto" has more adoption with the masses than a niche community using it for cryptography.
Then they can still respond. I'm no fan of Trump, but I understand wanting to reduce the noise in my Twitter feed.
I think the confusion is that the design of this page:

https://www.indiehackers.com/products

is closest to the old layout where each block linked to the founder interviews. I basically wrote the site off until today because it looked like the interviews had been walled off.
That case isn't about "trolling," it's about causing physical harm to someone through electronic means. It's more equivalent to electronic warfare. I don't equate trolling (which is annoying, and irritating) with electronic warfare (which could literally kill you).

And if it isn't subjective, then what is the objective measure that you use to determine if something is "trolling" or not?
From the article:

"However, the anti-Kaspersky train picked up steam following revelations last year of a bizarre incident in which the company slurped up classified documents and source code from the home computer of a National Security Agency contractor running Kaspersky Internet Security software. That contractor, Nghia Hoang Pho, pleaded guilty last year to willfully mishandling classified material by taking it home.

"Kaspersky claimed the incident was an unintended byproduct of its routine malware scanning. The source code was for an NSA hacking tool, which Kaspersky’s product properly flagged for analysis by malware researchers. But because the code was bundled in a ZIP archive with the classified documents, Kaspersky’s software uploaded the entire thing. When Eugene Kaspersky realized what had happened, he ordered his researchers to immediately delete their copy of the documents and code, the company asserted in a blog post last year. “The archive was not shared with any third parties,” the company wrote."

Presumably, it was an isolated incident and we can trust Kaspersky's statement about their actions. No?
Zerodrop: Stealth URL toolkit for bypassing censorship filters
To be fair, like with any art form, there are good and bad works at all levels of commercial activity. There are fantastic indie projects no one has heard of, fantastic triple A/blockbuster titles that make millions and great games from every level of obscurity in between. Same with the terrible stuff.

But as you mentioned, if you're interested in a particular medium, you'll soon realise what's good and what isn't. And there's always enough to fit pretty much anyone's tastes too.
No. @realDonaldTrump ceased being a personal account when he started using it for official business.
I think some of the fears about such an overt system being implemented in the US or other Western democracies are overblown. A democracy will always feature different opinions and the opposition will always object to a social credit scoring by the ruling party or coalition.

The bigger problem I foresee is that other autocracies will see China’s social credit system as a basis for their own societies, much in the way that China proved to the developing world that you don’t need Western-style democracy to be a successful and wealthy economy.

Edit: upon reflection, I think a far larger threat for the West is if China starts socially scoring us. Then we’re in trouble. China already owns or has influential stakes in far too many Western media outlets, especially Hollywood. And I can’t think of a single way that the West could stop China from doing it.
Traditionally, the publisher exercises control (and has responsibility for) content. So who are the publishers here? What parts of twitter are the public forum? Twitter itself, or individual accounts as well?
it's impossible to compete with subreddits sitting on common names, like "science".

10-20 years ago people made the same argument about .com domain names. Didn't turn out to matter then, either.
A single guy, feeling weird sensations in his head, who ended up being diagnosed with a brain injury.

Which begs the question: What was there first, the brain injury or the weird sensations? Who's to say his weird sensations are not the result of said brain injury? Which imho is the far more plausible explanation.
Behold the development of a permanent ruling class, complete with hereditary dynasties.
I don't think any of these cities are actively handing Amazon money, just not taxing them. None of the cities on the list absolutely NEED amazon to survive, so they're not going to completely overextend themselves.
Please don't cross into incivility in Hacker News comments.

https://news.ycombinator.com/newsguidelines.html
Seems like they haven't learned from other countries that have had trouble with unpaid debts and taxes. People can't pay their debts if the penalties for owing the debts prevent them from holding a job.
> There can be only one /r/science,

That's a design choice. Generic broadcast is easier to implement than personalization. It's been known to be a poor design choice for large-scale social media since before USENET's Eternal September. It was especially clear each September before. But broadcast is easy, so here we still are on reddit/HN.

Personalization is the design concept that different people see different content in the "same place". Or even the same person, but at different times of day, with their varying preferences. When you want to relax with puns, you can see puns. And when you wish to ask or answer inexpert questions, you can do that. And when you wish to see only high-quality expert discussion, you can see only that. So shifts in demographics needn't destabilize communities. "When calculating my view, severely deemphasize input from people who have joined since September." Bad needn't drive out good.

We've known how to do this better for decades. And it's very important for society. But... here we still are. Here we still choose to be. Someone please please disrupt this.
Someone has my-last-name.com for my last name. They are selling email accounts for like $30 a year. No. Bitches.
And I am tired of the "tired of JavaScript hype and new frameworks every week" speech.

It has a huge community, of course there will be new things created every week.

But, if it as bad you will not even hear about it, if you hear it is probably good or better on some aspects compared to others, who doesn't want that? do everyone wanted to be stuck with MooTools or JQuery forever?
Calling Optional.map(foo -> foo.bar) is effectively equivalent to foo?.bar in Kotlin. What GP was saying is that the author is using things like parseInt and other non-idiomatic things because the author is not familiar enough with the language. Even if it weren't about parseInt vs toInt, the author could have used "number?.let(Integer::parseInt)" instead of "number?.let { Integer.parseInt(it) }" (but of course "number?.toInt()" is the idiomatic way to convert a nullable string to a nullable int).
I’m one of those that disagree :)

I prefer Apple Pay over contactless as you can often go over the £30 limit of contactless. Eg I’ve spent £80+ at Waitrose and paid using Apple Pay. Plus it is more secure- you must authenticate to use it- and that added security doesn’t take long at all (under 1 second to Touch ID). I’ve got 3 cards (two debit, one credit) linked to Apple Pay.

I only have one contactless card, which is just to replace my Oyster card for tube/public transport travel, and that’s only because it’s quicker to pay with when going through the gates. I explicitly called the banks and told them to send me non-contactless versions of all my other cards.

Oh, and Apple Pay doesn’t suffer from card clash. Which is one of the other reasons why I only have one contactless card in my wallet.
Right, but he's not going to see it. But regardless of whether or not Trump wants that noise on his twitter feed, he's stuck with it for as long as it's an official government account.
I see it going to the other extreme, where people believe anything can be faked, and politicians, criminal, etc start to dismiss evidence of their wrongdoings as fake, and people believe them.
The story provides a figure depicting the structural formula of actual fentanyl, and next to it similar fentanyl-like molecules that are being trafficked.

Caption: "Yan Xiaobing was indicted for distributing these similar compounds; making slight changes to the molecular structure can have unpredictable effects on potency."

Also: [I]n recent years, rogue chemists have unearthed instructions for analogues that researchers discovered decades ago but never put into legitimate use.

While Chinese authorities control fentanyl, they’ve been slow to ban new analogues.
You missed

"Even less hawkish U.S. officials worry that the company could be compelled under Russian law to weaponize their code to spy on U.S. government networks. The company works so closely with Russia’s Federal Security Service, or FSB, that agents are sometimes embedded in the firm’s Moscow headquarters."

("Agents" is likely an incorrect term (I hope) and is uselessly vague.)
Wow. Where is the government oversight here?
It’s how dealers drum up new business. When one customer ODs, other customers flock to the dealer whose product just proved its potency.
Ask HN: How Long Can a DE C-Corp Delay Foreign Qualification Filing in CA?
Just incorporated in Delaware in order for a few of us to be able to split equity while we build our software, and assign the IP to the company. We do not expect to be doing any transaction in CA (customers, suppliers, etc...) for a while as we write our code, and it is quite possible that we won't launch until 2019. We have no office, no employees.

Do we still have to register in the state of CA w/ foreign qualification filing right away, even though we're likely to just be building software this year, or can this be delayed until we start "open up the service to the public" (or perhaps there is a criteria that defines another more appropriate time)?

I've read the "official rules" but it seems like they may be a bit open to interpretation as far as "transacting intrastate business". I imagine I'm not the only one with this type of structure and wonder what others do/did.

Thanks in advance!
Why would I want to pull my phone, unlock it, if I can just tap my card instead?
> That or just stopped listening when they listed what I wanted anyway. :)

I guess you'll never know if they actually said "XOR" or not then :)
> tourists started bringing money in

To nitpick - Cuba did very well as a tourist destination even without US tourists. It's the US _investments_ in the tourist infrastructure that started to appear and matter.
What happens when you weight things by YouTube views?
TypeScript also has the weird reversed type declaration. I've never understood it; it's so much less natural to read. Having the type first allows you to easily mentally parse it as "A Foo named bob".
As a musician, if you feel the need to publicly shame people that sing your lyrics, you might have a problem.
If you read the article, he is defining this group of 'great white males' to be three writers who the literary world actually refer to as 'The Great Narcissists'.

https://www.dfwsociety.org/2017/12/02/call-for-papers-great-...

He specifically substituted 'narcissist' with 'white male' as if he's using it as a synonym.
Motel Caswell.
We do want to open source the code. In order to get to production we took some shortcuts which tightly integrated some components of this system with Segment’s infrastructure and would make it hard for anyone to deploy. We discussed open sourcing the code along with this blog post but we felt like it would have more value once we’ve put a bit more work into it to make it easier to work with, and add a couple of features we have in the pipeline.
JuiceSSH - android, highly recommened
GSuite
a t2.micro EC2 - tiny websites, personal url shortener, screen with ssh sessions to every machine I have access to
more Win10 licenses then I care to admit to - my VMs gave keys!
Hulu, Amazon Prime, Netflix, VRV, DirecTV Now - HBO is included in dtvnow, and we're grandfathered in to the intro $35/month plan
Office 365 from work - If I love jobs, I'll pick up an Office subscription myself.
> politically convenient warmongering against Russia for going on 2-3 years now

You realize Russia has invaded (and annexed territory from) multiple neighboring sovereign nations over the last 10 years? The idea that the west is simply posturing to set up a war with Russia while Russia is starting actual wars is laughable.
> It's obvious that it's entirely unclear to businesses what they should be doing here.

What's obvious is that many of them were ignoring the existing DPA and PECR law, and were slurping as much data as they wanted from a variety of sources, and sending marketing email to those contacts.

And now GDPR is coming in a lot of them have realised that they don't have a lawful basis for holding or processing that data, and certainly not for sending marketing to the contacts, and so they're cleaning their databases.

This is a feature, not a bug.

Companies that only held the data they needed; knew why they were holding it; and had correct permissions (if that was needed) are not having much problem with GDPR.