skysight-inc/HackerNews huggingface dataset:
> done easily with vanilla virtualenv, vanilla pip, vanilla setup.py, and a Makefile

I wouldn't call that "easy", but OK.
I struggled to get through the latest incarnation of The Mist because of this very thing. I like to think that this is what got it cancelled, since it was an otherwise cool concept, just ruined.
Why do you believe that the default should be "allow gambling" with only the option to opt out, with a different method of opting out with every singe platform.

Imagine if that were our default computer security stance. "Let the websites do whatever they want; it's up to the users to educate themselves and limit what websites can do."
Institutional investors literally move markets. It's what they do, and their investment policies may actively shape the future they wish to have.
Sounds a bit like Marshrutkas, which are cheap vans that function as the primary “public transit” system in many post-Soviet cities.

https://en.wikipedia.org/wiki/Marshrutka
> One of the problems with async is that it's viral. Make a function async and your entire call graph has to be made async

In most languages, including Rust, async functions can call synchronous functions, so this isn't entirely true.

> unless they handle the future manually without await.

At some point, the futures are always handled manually, e.g., via the run-time, or in Rust case, by scheduling on an Executor, which is nothing but a fancy name for a library that manually handles a lot of futures.

> If you look at typical code in languages with async/await such as JavaScript and C#, awaiting is the common case.

Do you have any example of code that uses await more than synchronous functions ?

> So if async causes your code to be littered with awaits anyway, it makes more sense to make awaiting the default (just like it's the default for the rest of the language) and "deferring" the exception. Call it "defer" or something.

If the purpose is just to change the defaults, then you'd need `defer vec.len()` to access the length of a vector, or `defer array[i]` to index into an array, or `defer obj.foo` to access the field `foo` of an object, ... unless you want to make all of those operations `async`.

If you make await the default and add a `defer` operation that doesn't awaits, then it's hard to imagine how the resulting code could contain less `defer` annotations than `await` ones.

At that point you might choose one of the many non-zero-cost solutions to removing the async distinction, and call it a day like Go does.
Because of the Swedish constitution, everyone in Sweden's name, address, birth date and, yes, personal identity number is completely public information. Thus the systems and processes in Sweden have necessarily developed around a threat model of a potential attacker knowing all these details.

The solutions Sweden has to proving identity despite this are not exactly radical: photo ID documents, and secure ID apps (encrypted certificates) on phones or smartcards.
I’m quite certain the US government demands “show us your papers” of many individuals within 100 miles of the US border on a daily basis.
"What you can offer" is not the same as "what others think you can offer". So it is absolutely different.
$30 seems kinda high for what it does.

You can do this with cron and the mac screenshot cli. I have been for years. It’s the best way to fill in your time sheet.

I also made a small react app that shows thumbnails and supports zoom and splitting the time with export. Glad to push it to a repo if people want it.
I take it to mean that all men are monsters.

If there were “woman in the middle” attacks, and people gender-neutralfied it to “witch in the middle”, there would be an uproar.

Yes, male witches are a thing, though it is a rare usage of the term (vs warlock), just like monsters are usually portrayed as male. Also, some women self-identify as witches for religious reasons. I still suspect there would be an uproar.
Also, Thailand is a upper middle income country. Developing sure, but slightly richer than China and Mexico on a gdp per person basis.

Singapore and Hong Kong get a lot more tourism (per GDP) and are both high income city states.
A decade? Can therapy really take that long?
For what use case? for math and tech programming in the 90's I would have gone with Fortran.
I guess it can happen, but in my experience, I had more problems with overly long names hurting readability: something like ExampleDataUpdaterFactoryConfigReader. (No, I don't think IDE makes them acceptable because you still have to read them in the code, IDE or not.)

Of course, 80-character limit doesn't guarantee good naming, but it acts as a friction against adopting ultra-long names, occasionally forcing devs to find a better alternative. YMMV.
Lessons at 20
Well this is anything but a new complaint. I would assume a user who has worked in Python for some modest amount of time to have made peace with this. One works in Python knowing that this can and will happen (well one does have linter on steroid like mypy now to counter these).

Python code needs more testing, more run time type checking of function arguments than a statically typed language. If that's a deal-breaker then one shouldn't be using Python in the first place. What you gain though is some instant gratification, and the ability to get something off the ground quickly without spending time placating the type checker. Its great where your workflow involves lot of prototyping, exploration of the solution space and interactive use (ML comes to mind, but even there int32 vs int64 can byte, correction, bite). I see it as a trade off -- deferring one kind of work (ensuring type safety) over another. Hopefully that deferral is not forever. I like my type safety but sometimes I want that later.

What I typically do is once I am happy with a module and I do not need the extreme form of dynamism that Python offers (something that's frequently true) I take away that dynamism by compiling those parts with Cython.
That’s reassuring if true, do you have evidence to back it up?
"A reasonable person knows they can't have a fighter jet."

I'm not sure I buy this argument. A reasonable person knows they can't have a billion dollars for winning a silly game. Yet, a billion dollars is indeed (sometimes) the Powerball award, and you can't deny the award to the winner saying "obviously you should have known we wouldn't actually give you the billion dollars at the end".

The lesson should have been for Pepsi: don't do the promo if you can't afford the prize. Instead, they were happy to get the free advertising and yank the prize away at the end.
I don't disagree, but tourism can be a trap like Oil - it makes the country complacent in other forms of development - and in cases outiright hostile to them.
Movie: Asterix: The Secret of the Magic Portion See Our Review and Download
> Games like Factorio do show indeed that it's possible to just sell an excellent game for $20-30 and be profitable.

Sure, but that means nothing since games of the quality of Factorio come along once in a blue moon. It's nice that selling filet mignon is profitable, but selling a decent burger has to be profitable too to have a viable industry. That has proven to be difficult in the games industry under the current circumstances.

(And if any here disagree, ask yourself, "is the software or service I'm building for my employer comparable to a Factorio or whether it's just another average product/SaaS and whether or not my employer "deserves" to be profitable to sign my paycheck".)
Just because the incumbent lacks finesse doesn't mean you can 'eat their lunch' without having better features or a better UI.

People need a reason to change the software they use; when it means retraining a district full of teachers then the reason needs to be good.
If you mean clear as in readable, I disagree. async/await greatly increases readability of code. remember callback hell? remember callbacks for exception handling? they all dissolve into code that reads as synchronous.
This is all just down to a poor choice of words, and maybe syntax.

The choice of `async`-vs-not is not the one you describe. What we label with `async` is a particular compilation style that makes the function interruptible in userspace, in exchange for making synchronous and recursive execution a bit more complicated. This style is important because it gives you event loop-style concurrency without the performance costs of threads (kernel or userspace/green/etc).

However, this compilation style still leaves the choice you describe up to the caller. Most languages seem to reverse the default choice syntactically, but you can still synchronously block on a call to an async function or run it concurrently with something else. It just so happens to be useful primarily for doing the latter, so it gets lumped in with it. (And we get unfortunate misunderstandings like "What Color is Your Function?" that miss this point.)

As an example of a language that doesn't reverse the defaults, look at Kotlin's `suspend fun`s. While they still have `async`-like callee annotations to control the compilation style, a simple function call behaves the same regardless of the callee, and you instead use various `spawn` or CSP-like APIs to get concurrency.

If changing the keyword and making the defaults match threads/CSP isn't enough, perhaps viewing the annotation as part of an effect system would help? The thing being tracked here is "this function can suspend itself mid-execution," and a good effect system even functions be polymorphic over things like this. For example, an effect-polymorphic function passed a closure or interface can automatically take on the effects of its callees, simplifying the program somewhat if you're faced with viral async-ness.
This feels like an article that assumes a lot about what you are doing while bingewatching, when I do it I pretty much never eat anything unhealthy and I often do it in the company of friends. At that point the only point that is still standing is the point of remaining sedentary for several hours. And I think in that sense there are far worse offenders even though the point still stands.
If you want to you're very welcome to.

That's really not the same thing as Google actively developing a tool to block soft paywalls, that will primarily be used by people to just not pay for things who really don't give a stuff about people running things on their computer or not.
Just maybe he wanted to help rectify the situation and not go to prison?
NULL license plate not such a bright idea
Unfortunately it doesn’t work that way, and it has everything to do with the victim. We wouldn’t be talking about it otherwise.
Just Start Out – Story of Sup
Here's a question - if you have 1 in 1,000, or 1 in 1M odds of getting a specific item, is it acceptable to list those odds as "<1%"? That's what occurs today when companies are forced to reveal rates. It's misleading at best.
Awesome, its one my fav places for random images :D
The bugs you describe should both be easy to catch with unit tests. It sounds like the problem is not that you're using Python, it's that your project lacks tests. Sure, you can typo this sort of thing; but it should be apparent within seconds when your tests go red.

(And nowadays, you can also use type hints to give you a warning for this kind of thing, e.g. your IDE/mypy will complain about passing a string where the function signature specified a List.)
Eh, I disagree. At least, in the absolute you pose. I don't need to invalidate the opinion of drug users who advise against it. I think there is merit in "I did X, it wasn't worth it".

Though, perhaps we read the Parent's message differently.
As mentioned in the post, the eventual home for this functionality will be in OpenTelemetry. Specifically, it will eventually be integrated into OpenTelemetry JS (https://github.com/open-telemetry/opentelemetry-js), which is being built up from the start to have the core parts be usable in the browser.

Disclaimer: I work for Google and was the original author of OpenCensus Web, and coached Cristian, the intern who wrote the post.
"only women, children, and dogs get loved unconditionally" --Chris Rock
It's called chain migration and it's well known that you can go beyond just siblings, parents, and children:

> As a general rule, it is impossible to obtain U.S. green cards for one’s grandparents, aunts, uncles, nieces, nephews, and more extended relations – unless you can create a chain of relationships so that a more immediate family member can petition for them. For example, instead of petitioning for a grandparent, a U.S. citizen could petition for his or her parents; and they could, after receiving a green card and eventually U.S. citizenship, petition for their parents (your grandparents).

https://www.alllaw.com/articles/nolo/us-immigration/who-is-e...

The numbers fully support this too as I mentioned there are far more skilled workers with Visas and green cards vs family members/relatives in Canada than the US:

> Contrary to conventional thinking, it could be argued the U.S. system is more “compassionate” than Canada’s. Almost seven in 10 of those who settle lawfully in the U.S. are close relatives of previous immigrants. Each U.S. immigrant on average sponsors 3.5 family members.

> Canada, meanwhile, restricts “family reunification” immigrants to about one in five. Canada mostly picks immigrants to boost economic expansion. Two of three immigrants are brought in because of their skills and education. Trump’s plan, created by son-in-law Jared Kushner, copies Canada’s reasoning.

US = 70% family/relatives, Canada = 70% skilled workers

https://vancouversun.com/opinion/columnists/douglas-todd-wha...

Our immigrant communities are famously successful too. In large immigrant communities like Brampton outside of Toronto, Hindus often rank #1 in income per capita, beating out Christians, Jews, atheists, etc. The Chinese communities in Richmond Hill, Markham, and Mississauga are also very successful. You can't drive through those neighbourhoods without seeing Mercedes and Teslas parked everywhere.
Two of the skills mentioned are ones I've failed at. Making a great omelet and folding fitted sheets.

I've never made an omelet that is very good and I've tried a bunch of variations. I've had lots of omelets in restaurants that are great.

For the fitted sheet skill, I've watched the videos on people doing it and it feels a little like the old how-to-draw-an-owl meme. Step one and two make sense, but then step 3 is magic.
Tourism usually involves seeing the same things everybody else has seen, and taking a picture to tick a box.

I think it's actually more novel nowadays to develop a really intimate knowledge of your home city/town/place and be content with that.
credit freeze
“Sagittarius a* Our Galaxy's Black Hole Suddenly Flashing 75-Times Brighter
This has been proven false multiple times, including EA explaining to their investors that removing lootboxes from Battlefront 2 had no material impact on the profitability of the game.
Automatically Download Podcasts with the Raspberry Pi
So it's already happening kind of! I think what the OC was talking about would be such yachts, but solar powered, or cross continent trips in self driving electric cars.
Many people might have flagged it as offtopic of this forum.
While I find your comment quite rude, I remember having a “What the fuck!” moment when I saw the huge McDonalds on Champs-Elysees.
I think that is a very negative notion. It completely omits the part where people meet each other, talk and learn. It’s probably difficult to measure but I bet that tourism is making the world a more peaceful place.
This is, IMO, a terrible article that doesn't even begin to discuss any of the reasons why infrastructure in the US costs so much.
It is more realistic than Takedown vs Freedom Downtime.

See URLs hereunder.

https://en.m.wikipedia.org/wiki/Karl_Koch_(hacker)

https://en.m.wikipedia.org/wiki/The_Cuckoo%27s_Egg

https://en.m.wikipedia.org/wiki/Chaos_Computer_Club
A better example would be something like:

def my_calc(x, scale = None):
if not scale:
scale = 1
return (x + 4) * scale

where the (x + 4) bit stands for some interesting calculation whose result is being scaled: this code makes it unclear whether or not scale == 0 is intentionally conflated with scale == None or whether this is a programming error. It would be better to do this, if this is intentional:

def my_calc(x, scale = None):
if scale == 0 or scale is None:
scale = 1
return (x + 4) * scale

Or, if it's unintentional, one should have written:

def my_calc(x, scale = None):
if scale is None:
scale = 1
return (x + 4) * scale
> https://apple.stackexchange.com/questions/254485/silencing-y....

If you read the comments there, you will see that this doesn't work for Mojave. I've run those commands on High Sierra (or what the previous version was), but Mojave made them unusable. All related and linked answers also don't work for Mojave.

> FaceTime issue: FaceTime menu > Turn FaceTime Off

Funnily that option is greyed out if you are not logged in, and I guess doesn't do what you think it does.

> Software update without Apple ID

My main problem there is that I don't want to update (because how the fuck do I know that Apple won't brick other features I'm used to), and can't silence the notification for forever.
> It's not something we should trivialize or laugh at or compare to baseball cards.

This seems like a strange comparison to reject. Baseball cards were originally 'prizes' packaged with other products, and they were randomized to create excitement and keep people brand-loyal while they hoped to find the prize they wanted. They're the precursor to CCG booster packs, and from there to MMO loot systems, so of course we should compare loot boxes to baseball cards!

And it's even darker than that. The major originators of baseball cards were tobacco companies, so you'd go out and buy ATC cigarettes in hopes of getting Honus Wagner. The causal chain from baseball cards to smoking to cancer was far tighter than the chain from loot boxes to problem gambling to suicide, and yet we're told that loot boxes are a real problem, not like baseball cards. Exploiting people, and targeting kids, with randomized prizes is way older than B.F. Skinner's work.

It's a minor side note of course, not the core of the discussion, but it's a bit concerning to see a researcher specializing in loot boxes botch his history so badly.
I'm a big fan of giving more feedback to developers at compile-time. A while back I wrote a Java library that makes it easy to add static checks that would otherwise be runtime errors. Link in case someone finds it useful: https://github.com/overstock/annotation-constraints
Is this is 100% client-side and would work offline?
How do you deal with state in a language that would prefer to be stateless?

Encapsulation? No one gets direct access to the state. Instead, there are methods or functions for dealing with the state indirectly, crafted to protect those outside.

Answer: wrap the entire external universe and all its messy state up into an object, then pass that down a chain of functions which can return "universe, but with some bytes written to the network" (IO monad)

Sounds like "Outside the Asylum" from the Hitchhiker's Guide to the Galaxy universe. Basically, someone decided the world had gone mad, so he constructed an inside-out house to be an asylum for it.

http://outside-the-asylum.net/

"A monad is a type that wraps an object of another type. There is no direct way to get that ‘inside’ object. Instead you ask the monad to act on it for you." How is a Monad anything different than a particular kind of object wrapper?

https://www.infoq.com/presentations/functional-pros-cons/
Well, that's what they're doing.
Maybe the most ridiculous aspect of US credit reporting: federal law only mandates that you be able to obtain a free copy of your report once per year - why is this not “whenever the hell you want”? It just generates a PDF from their database!
They are using "communist" to evoke the idea of a Soviet-style command economy, not actual communism.
Lucidworks Nets $100M for AI-Powered Search
Awful article. The primary reason is that government has very low accountability, so it's ripe for corruption.
If you expose the OpenCensus service directly to the internet, then a malicious user could definitely send traces directly to it.

We recommend in the blog post that you write an endpoint in your frontend web application that would proxy the writes of traces through it. That way you can add whatever rate limiting / authentication middleware you have for your overall application so that only logged in users can submit traces for your web app (or severely rate-limit those from unauthenticated users).

Basically, we are aware of this issue and our approach right now is to ask you to handle it in an application-specific way.
What's wrong with your omelets? I've made hundreds of ugly omelets but now I can make a pretty one about 3 out of 5 times.
Our current IP protections are copyright, patent, and trade secrets. It's a mistake to conflate the three. Stealing trade secrets is a bit different from mimicking another's visual identity (rounded corners).
Maybe some costs are protectionist measures but I for one see plenty of value in having an actual insurance, or knowing that the car is properly checked, that the driver understands the concept of driving as a job, etc. Insurance being the biggest chunk, basically to make sure that you (the potential victim) can be compensated. Those costs are there to protect the regular person.

Imagine "home" restaurants, where people can just sell food from their own kitchen with the same kind of regulatory oversight your private kitchen gets. What's the recourse when you eventually get sick or worse? Who do you blame for allowing this? How do you get compensated?

There are good examples now where people argued against the value of regulation right up until they got burned (see the lack of regulation in crypto and how easily this was exploited with no recourse from the victims).
Show HN: Remote Jobs in the United States
Oh come on. Here in the US Midwest the examples are many. I pick up trash along the roads near my house. The past few years, corresponding to the huge influx of idiots from god only knows where, the amounts of litter I pick up has increased tenfold. It used to be just a few items after the winter thaw, not it's simply constant.

I'm fine with immigration if the people coming in can understand OUR standards and come up to them. I'm not at all interested in living in 3rd World conditions.
They're not using the 2 weeks allocated to them as it is.
It's pretty much the same in Canada. I never seen it used for anything outside of the tax context.
I only had a chance to glance at it at work, but first impression is positive ( which is usually half the battle ). I will play with it home. Neat.
Articles About The Wrong Kind Of Tourists Are Overwhelming The Hacker News Front Page.
> Are there still local cultures anywhere in the world?

There are, yeah. Even city to city in sub-regions of different countries.

> people are accepting of each other's habits and won't make a fuss if you break whatever local customs are left.

This is different from cultures not existing; tolerance != homogeneity.
Similar to "responsible disclosure"
Extended Validation Certificates Are Really Dead
Ask HN: Can learning mathematics improve cognition and develop creative skills?
Mathematics has always been a mystery to me from an early age and I haven't thought of seriously pursuing it until recently.

I currently doing well as a software engineer and don't plan to completely change my domain and this is just me exploring different avenues.

I am thinking along the lines of learning mathematics to improve my general cognitive and creative skills. I wanted to know -

1. If learning serious mathematics lead to an improvement in cognitive and creative skills?

2. Or do creative skills require specific training rather than just general cognitive improvement?

3. Or have I completely misunderstood the role of mathematics?
Manage Your Personal Energy to Improve the Quality of Life