skysight-inc/HackerNews huggingface dataset:
Wait, any public official? So the elected school board members in my town can't block me on Twitter if I go on crazy racist tirades, as long as they're political in nature? How about the dogcatcher? He can't block PETA animal rights screed accounts? And doesn't being forced to let cranks interact with prominent accounts increase those cranks' visibility? Is that forcing the prominent person to promote speech with which they disagree?

I think there's a lot of nuance this opinion doesn't address.
* Study everything that bdunn and patio11 have to say on here. They get it.

* Read Million Dollar Consulting. There's a whole blueprint in there to turn yourself from an everyday freelancer to a pro consultant mindset.

* SimpleProgrammer was okay. Read it if you want, but it's a bit gimmicky.

* * * H U S T L E * * *

I cannot stress this enough. At the end of the day, the only reason I got here is because I do what everyone else is not willing to do. I work my ass off and I still don't feel like a success at all. I'm a charlatan and an unknown quantity. That desire to improve and work harder is the only thing that has gotten me to where I am. Everything else is just the cherry on top.
Java version in the article:

public int parseAndInc(String number) {
return Optional.ofNullable(number)
.map(Integer::parseInt)
.map(it -> it + 1)
.orElse(0);
}

And the Kotlin equivalent...

"No problem one might say, in Kotlin, for mapping you can use the let function:

fun parseAndInc(number: String?): Int {
return number.let { Integer.parseInt(it) }
.let { it -> it + 1 } ?: 0
}

Can you? Yes, but it’s not that simple. The above code is wrong and throws NPE from parseInt()."

Yes - that's why Kotlin standard library provides, among many others, a convenient extension function String.toInt(), which is a wrapper around Integer.parseInt().

You're supposed to use that, and then you're safe from NPE, because the receiver has to be explicitly non-nullable (it's String.toInt(), not String?.toInt()).

Also there is no need to redundantly repeat "it" inside the lambda - plus you could further simplify the implementation by using type inference and converting it to expression body:

fun parseAndInc(number: String?) = number
?.toInt()
?.let { it + 1 }
?: 0

"Now, compare readability of the Java and Kotlin versions. Which one do you prefer?"

Well, I'll say orElse(0) is more readable than "?: 0" dangling at the end of the expression. However Java is more verbose. I'd say it's a matter of taste.

The difference is that thanks to Kotlin's features - which allow for creating custom DSL easily - implementing orElse is trivial, if you can't live without it:

fun Int?.orElse(fallback: Int) = this ?: fallback

This allows for:

fun parseAndInc(number: String?): Int = number
?.toInt()
?.let { it + 1 }
.orElse(0)

And this, to me, is already nicer than your Java version.
I agree that American culture is the problem. The way we oppress black people every day and force them into these ugly situations where they're forced to choose between criminality and inhumanity, it's no wonder that this happened to Tupac and thousands of other black men.
There's no Pascal to speak of in the QuickDraw source code you linked. MacPaint itself contains a big chunk of 68k assembly.
The other reply mentioning "kullback-leibler divergence" (aka KL divergence) is what you need to understand as this is the fundamental concept. Minimizing this quantity is equivalent to minimizing the given "cross-entropy loss" expression. More generally to understand where this comes from, you'll want to read about information theory.
> It applies to all government officials, but it only covers reactions to political statements. Harassment is still a valid reason to block someone.

And if the reaction to every single Trump tweet is “you’re scum I hope you die REEEEEE!”, does that person get a ban? Probably if the official’s anyone other than Trump, I’d guess. Seriously, you folks should look at the people banned, it’s a bunch of losers that would auto post some variant of “you’re an asshole” ten seconds after every Tweet, and they would rocket to the top of the reply list. In a sane world that would be considered harassment and not a valid reaction to a political statement, but whatever.
Ashton Kutcher Makes $4M Donation in XRP to Ellen DeGeneres Wildlife Fund
This is very interesting and sort of tangential to something I'd realized after I married a Scandinavian woman: If you want to get famous doing some thing, you haven't a shot in hell in a country with three hundred million people like the United States. But for example Sweden. Sweden has only nine million citizens, and more than ten percent of them live in Stockholm! This is such a relatively tiny audience. I imagined that anything you wanted to do: Write a book, sing a song, make a movie, open a restaurant, become a politician, play a sport, anything! It would be easier to attain status as noteworthy in a country with two orders of magnitude fewer people that all speak their own language, have their own culture, their own rules. I'm still convinced that this is the case, and I'd love the chance to test it someday.

Of course, please excuse my broad generalities and extreme oversimplification. But for example, most (non-Swedish) people don't know how much of Western culture is currently driven by Swedes. You go look at famous pop culture musicians and count how many of them are actually Swedes. You'll be surprised. Now, I haven't studied the rest of popular culture to know whether or not there is an equal amount of representation from other places e.g. Norway, Poland, etc. But it makes me wonder if these musicians -- every one of whom of course are as talented as can be -- if they are getting more international recognition because they have recognition in their own homeland? Or does Sweden produce musicians more appealing to Western popular culture? I'm not sure. So many questions, so many thoughts! One example of this type of idea that I've heard about in recent years is some woman from a wealthy family who did some kind of esoteric series of competitions -- skiing, I think? -- and was able to compete in the Olympics because of the lack of competitors for a slot in the team of a particular country. She was able to compete after winning a slot by default. This is sort of asymptotic to what I'm talking about, but not quite there. This is just a super-fascinating thing for me.
I wonder if psychologically, potential criminals would be more worried about getting caught if they see people getting arrested every day or if one day a year they see mass arresting. I wouldn't be surprised if one of them happened to be a more effective deterrent, although I have no idea which it would be.

EDIT: spelling
Google Chrome will resume blocking web audio in October
Step-by-step tutorial for creating and distributing an iOS binary framework
Along similar lines, does anyone know of something similar that includes multigraphs? (Graphs with parallel edges).

There's a python library called networkx, but it is so heavily object-oriented (multi-inheritance) as to make it impossible to get any benefit from reading the code.
Achieve Financial Freedom with These 7 Steps
See, that's interesting to me, because I have always read declarations aloud as "bob the Foo", even when they're written "Foo bob". Reasonable people can differ, of course. Where it's harder to differ is that is much easier to parse type-after declarations and to make a consistent syntax with them--that's why Rust et al have gone that route. To do type inference in Java (or C#) they've had to add a new keyword, `var` (and the comedic `final var` in Java), because their declaration structure just wasn't up to doing it any other way.
While I realize the article/judge's opinion specifically calls out political speech, I'm fairly sure that applies to all speech, and the political speech subset was probably chosen by the plaintiffs as an easier path to victory.
TANK: animated short film
It’s obviously possible, since lots of countries do it with English. Let’s do it right.
Oh come on. Every government in the world would like tech startups and has a bus system, but Estonia consistently has the best PR dept I've ever seen, including countries many times larger and better funded. That kind of compliment is hardly a "I don't care".
SmugMug recently bought Flickr from Yahoo [0]. Their CEO Don MacAskill recently said in an interview with Amateur Photographer magazine that they're looking to remove hurdles such as the tie-in with Yahoo's authentication system but at the same time they're leveraging the need of Flickr's community for a solid desktop experience (for curation) and not necessarily to compete with Instagram as a mobile-centric app, at least in the short term.

Long term plans are obviously still in the works but the overall idea I get is that Flickr's mobile experience going forward will be focused on consumption, while keeping most of the community engagement on the desktop site.

[0] http://www.amateurphotographer.co.uk/latest/photo-news/flick...
You always have the option to communicate with the government via first-class letter delivered by the US Postal Service, or by showing up in person during the openly published hours of operation.

If the government, for some reason, decided to only communicate via telephone calls, there would still be no duty on any private phone company to provide anyone with the ability to call the government. The government would implicitly require itself to start up and operate a public telephone company, so that any person unwilling or unable to make phone calls via a private company could use it to communicate with the government instead.

In all likelihood, this would mean that VoIP phone booths would appear in every post office, and only calls from those phones to phones registered to government offices would be connected. They wouldn't even necessarily have to use phone numbers or connect to the PSTN; a .gov or .us SIP registration server would do.

For private services, if the government uses them at all, it must use them in a fair and nondiscriminatory manner. The private company has no duty to enforce this on its government users, or to police their behavior.
Generally speaking?

I disagree. Generally speaking, given a line that makes big profit, and a line that makes small profit, all effort to the big profit line gives the greatest overall profit.

What you have presented is not general; you've presented a series of special cases where it might be a good idea to keep the less profitable line running too. There are many such special cases, but in general, if your options are a line that makes big profits and a line that makes small profits, you'll be most profitable by picking the former.
When did Unix exert any kind of serious market pressure on Apple or really any other maker of consumer PCs.
Very lovely, thank you for the suggestion. Looks a lot like default theme of Mutt and Irssi.
Ah interesting. Thanks for the info.
Right, but because they were able to use Java 10, a good amount of the pain points that Kotlin was intended to address go away. On Android, you're stuck with Java 7 with one or two Java 8 features, so Kotlin helps out a lot more.
Google Removes “Don't Be Evil” from Its Code of Conduct
Hitting toughest climate target will save world $30tn in damages, analysis shows
Before Twitter came along the president didn't have the legal ability to prevent you from criticizing him in any other venue either.
Where do you think the CIA fucking learned it from? MI6 (who learned it in opium wars 1&2) taught to OSS (CIA) how to get funding off books so congress couldn't pull the purse strings and they could do whatever they wanted... and this has indeed been proven multiple times...

You are the same kind of person who called us talking about NSA pre-Snowden "tinfoil hat conspiracy theorists" and then post-Snowden came out with all kinds of variations of "why are you surprised" and "we all already knew this whats the big deal", and "if you've nothing to hide you have nothing to fear" type of bullshit.

In the conspiracy theory arena, the main sticking point is that people far too often fail to understand the difference between inductive and deductive logic. In many cases we have very little evidence to go on, so we are forced to transition to inductive logic from deductive... but inevitably those decrying the lack of evidence the loudest tend to ignore the very real legitimacy of inductive logic and it's process when one is presented with a lack of hard evidence.
Networking the old fashioned way. Ask my friends who needs help. If they don't need help, ask them if they can think of 3 friends who might. Email/text those 3 people. Wash, rinse, repeat.
So you can cover about 95% of the library (and 99% of the games people want to play) with about 20 or so mappers. From there it can be a slog to support them all, but conceptually mappers are really very simple. Almost all of them are just registers that let you page in chunks of memory.

The most advanced mapper is the MMC5, that one can take some doing. And the VRC7's OPL audio is also a nightmare (yet used only for one game.) But beyond that, it's all really simple. Usually around 10-30 lines of code per mapper. Mostly very well documented, with the exception of how mappers detect scanlines (important for accurate emulation, not so much for full compatibility. You can just cheat and give them the PPU scanline counter.)

But, maybe I'm biased. I've emulated thirteen systems so far, and the NES was one of my favorites to work on due to the documentation and general simplicity. I know the rabbit hole goes on forever even with the NES, though.
> Any ideas why I get "You're posting too fast. Please slow down. Thanks."?

You're probably posting too fast.

(Sorry, i had to...) ;-)
Would like to know this as well.

I have been on the lookout for a similar system to SideKiq.

Unfortunately for Go, there isn't anything that matches it 100%.

I have looked into:

https://github.com/celrenheit/sandglass

https://github.com/RichardKnop/machinery

https://github.com/contribsys/faktory

In the end I went with machinery due to supporting:

- Batches (or Groups, tasks executed at the same time)

- Chains (tasks executed one by one)

- Callbacks (a task executed, on completion of a Batch)

- Cron Jobs

- Rescheduling failed jobs

- Long-runnng Jobs

- Distributed/Fault Tolerant DB (for Jobs)

- Distributed/Fault Tolerant Workers

+ other things I cant remember now.

It would be very interesting to know if this is going to be opened sourced and whether it supports the list above.
Perhaps they should be jailed instead?

https://www.theatlantic.com/business/archive/2016/02/debtors...
Watch the short first, then watch the making of, then watch the short again with much greater appreciation.

At the end of the making of, he mentions an article that itself was previously submitted to and discussed on HN:

https://news.ycombinator.com/item?id=13908458
Offering a single five star rating is a commodity these days. There’s just not much value there for consumers compared to every other index of businesses with a five level rating.

Why would I open yelp when my maps app has five star reviews built in?
i agree with your point about the way Kotlin does blocks. the '->' syntax within the block still trips me up a lot. maybe one day i'll be used to it and not have to think about it...
That's not pay per win. Yes, you could spend more quarters and put more time in front of the screen, but in the end it was your own personal skill that determined how far you went in many games. Just putting in money and time alone wasn't enough. The harder games you'd hit the wall anyways; Sinistar or Robotron 2084 are good examples of how you really needed skill in games.

Pay to win means putting more money in to the game will give you a direct advantage no matter your skill level. It might be possible to compensate for it, many times its not. Reddit had a thread where they talked about that, and an example was one person in Black Desert or Archeage killing an entire guild of players.

Edit: the main pay to win aspect in arcade games were continuing and energy or timer systems. Continuing is, but the player's goal always was to reduce the amount of continues by skillful play. Very few games i feel were impossible to do so with.

Timers are hit points counting down to eventually end the game. Gauntlet was the first big game to use it, as was Rampage.Nintendo's playchoice 10 used a literal timer, where once it counted down, the game stopped letting you play. Usually though these weren't considered pay to win...the term we used was "quarter munchers" and many of those games were co-operative so pay to win aspects didn't harm other players.
If you have more than one contactless card, you’ll need to remove it from your wallet to pay. That’s slower (at least for me) than pulling out my phone, thumb primed on Touch ID so it’s already authenticated before I tap.

Plus, if my card is stolen, it can’t be abused on multiple cheap contactless purchases. Sure the bank will refund, but it’s still a pain of a process to go through, especially if the bank pushes back at all.
Sounds like it was a terrific success based on the metric tested. They wanted viewers to see the entire ad, and making a shorter ad guaranteed that...

Video advertising doesn't generally trigger an immediate call to action; it's always been a tool of brand awareness, so why would you want to have a longer ad if most users simply skip over it?
You Might Not Need Homebrew
Exactly this is the problem of GDPR, user can lie, and you have no passive defense against it, you can't even make an excuse, you didn't know. You shouldn't even offer him a choice. The only defense is that the user gives you consent to it (at least GDPR is giving that choice). Everything else is void. Same as with slavery. You can't violate fundamential human rights even if user begs you to do it, except in states like South Korea, China (actually, you don't need to beg there =/)

I think that at the end, world will be better place due to GDPR, but there is surely some rough ride ahead - not due to respect of privacy but due to violating it so often that it became normal to us.
I too would hardly describe the 20s as "the best time of your life". The only thing that is undoubtedly best is the amount of physical and mental energy you have which almost feels for free because most youngsters don't really eat healthy and have an awful sleep schedule. Not to mention they barely hydrate themselves well, if at all.

Everything else is as you said -- it's never too late! I found the love of my life at 34 and discovered I can be even more energetic than in my 20s (although not for weeks on end which is actually a very good thing). And I am making more money than before because I now know my price and don't let myself be trampled all over. Examples in other areas exist.

RE: The hard work, I am not even convinced hard work is strongly correlated to any amount of success. Once an organization commoditizes its way to success, most creative people like designers and senior programmers eventually become miserable and move away because there's zero career and financial growth for them in the organization.
Agreed. Because they had that option to them, they were able to switch back. If they were stuck with Java 7, they may have decided that the niceties of Kotlin were worth more.
There is some value to the criticism where it's easy for Java programmers to do the wrong thing because it's possible when they shift over.

Of course, that's the price you pay for compatibility with Java, but maybe there should be tooling which can give warnings where you are using commonly abused Java tools where you'd be better off using Kotlin-specific ones.
Wonder if we'll see sites in future do the opposite too? After all, arguments can bring a lot of page views, and the rise of political polarisation has certainly helped make extreme news sites more popular...

Could be interesting (in a very depressing, rather disturbing way) to see a social media site deliberately tried to stoke up arguments with machine learning rather than trying to calm them down.
Sure, but that's more of an art installation. Duchamp's Fountains is a neat work of art, but I can't really use it for its intended purpose.
I'm using "RSS" to refer to the standard practice people actually do. It's not very important that some organization somewhere defined an official RSS standard which in principle is flexible but which in practice is never used other than in a very specific way. (Without an agreement on how to use it more generally, no one can build an offline blog archive reader, and the fact that RSS could in principle be the base is irrelevant.)

If you want to play semantics, I'm fine with rephrasing my complaint as: "We need to build on the flexible super official RSS standard -- which is little more than an XML file -- and actually agree on a way of delivering blog archives for offline reading. RSS in practice does not currently achieve this very simple goal." This is just different words to describe the same thing.

> You can write that now. It will work on existing RSS feeds, just not quite as optimally for your proposed use case as you might personally like, but it will still work.

Huh? Other website owners who would like me to be able to read their archives can modify their RSS file, but we have no agreement on how to do that in a standard way. Likewise, I could modify my RSS file, but since there isn't a standard my readers won't have software to take advantage of it.

> (History strongly suggests the large-scale content producers would actively fight you if you try,...unfortunately getting around this problem is a great deal more difficult than hypothesizing that some sort of new standard could somehow deal with it....)

The blogs I want to read offline do not have ads and do not care about this. I just want a solution that works for this simple problem, not a way to take content from people who don't want to give it to me without attaching ads.
Machine Learning Docker Containers for Digital Ocean
Don't let the Descent From Antiquity people hear you say that!
The Amazing Psychology of Japanese Train Stations
I cannot speak about Toptal, but Upwork works pretty good. You just have to avoid silly jobs,be focused and perservere.

Disclaimer: I'm italian, working remote, strong focus on nodeJS and fintech, estimated revenue for 2018 (first year of freelancing full-time, not fully from Upwork): 360K$, working 220 days per year
Choice between two turd sandwiches here.

60 billion dollars should make any regulator's eyes pop, and neither deal is good for end consumers.

Disney is out of control though, and has almost a near monopoly on pop-culture entertainment people care about. I personally would rather Fox go to Comcast, just so Disney doesn't wrap another tendril around modern film and entertainment.
Yeah exactly, if there's any left at all. Since DNA's finite and has fewer than 2^40 base pairs, any one person's direct DNA influence is likely to have been factored out completely.

Fun to think about the probabilities and combinatorics though. There are 2^40 "votes" in our ancestry for the time Charlemagne lived. Depending on how "prolific" he was, all the population crossover since then means he will occupy many of those 2^40 votes. Some people have a lot more influence than others, but it's nearly impossible to know.
Recital 15 of the GDPR states that it only applies "to the processing of personal data by automated means, as well as to manual processing, if the personal data are contained or are intended to be contained in a filing system."

So if you don't file the sign in book, it's out of scope of the GDPR.
Maybe this will lead to the end of twitter use by public officials :)
That he must leave his tweets open to all the public, and not prevent certain people from directly criticizing him in public either.