skysight-inc/HackerNews huggingface dataset:
Has anybody here used Deno recently? I tried it out at 1.0 and it was... a little bit rough. Basic APIs like fs weren't stable yet, the documentation on how to import them was out of date, there were multiple VSCode extensions and it took a couple hours to get one of them working properly.

Of course these are all relatively easy things to smooth out over time so I'm curious what the experience is like now.
Probably more of a geopolitical survival strategy. The Republic of China and the People's Republic of China don't get along too well:

> The political and legal statuses of Taiwan are contentious issues. The People's Republic of China (PRC) claims that the Republic of China government is illegitimate, referring to it as the "Taiwan Authority".

- https://en.wikipedia.org/wiki/Taiwan#Political_and_legal_sta...
Founder here. I'd really appreciate input if you've had a look!
I disagree. Based on the author's other articles, it seems to be tongue-in-cheek.

Ex: https://www.thehindu.com/society/sorry-i-missed-your-call/ar...
Japanese billionaire seeks eight people to fly to moon
This is probably a dumb question, but I'm interested in Deno's TypeScript default configuration. I wonder if I can just steal that configuration and just use it for all of my (TS compiled to JS) NodeJS projects.
The point I made was that no nation should seek economic independence as it is equivalent to applying a sanction against yourself. This is true for everyone, not just China, not just the US. Now obviously you are upset about something, because you've launched into an attack that has NOTHING to do with this point.

> Well, people like you cause wars.

Doubtful. I tend to see the world as something more than a zero-sum game. I also don't run a country and have very little chance of ever doing so, let alone leading one to war.

Also, in a world awash with cash, where bonds can be issued with a negative yield, and still find buyers, and where central banks can issue arbitrarily large sums of currency, this following comment is just plain confusing;

> More than that, US needs even more debt and there aren't many places at the moment where you can get a loan of the size that US needs.
It sounds very very Apple.
The photos are stunning!

Scratching head why one would like to live on Mars ?
Agriculture accounts for 10% of global greenhouse gas emissions, of which livestock is only a portion (soil and crops are lumped in with agriculture). Focussing on the smallest denominator in reducing emissions is nonsensical (https://www.epa.gov/ghgemissions/sources-greenhouse-gas-emis...).

I understand there is a morality aspect at play but it's frustrating hearing the vegan vitriol dolled out without thought for consequence. Meat is by far the most nutrient dense food available to humans. The vegan diet (as in strict vegan, not vegetarian) is incredibly unhealthy. Have you considered the land use required to grow the crops necessary to deliver the same amount of nutrients to a global populace?

There's a burgeoning industry growing which conflates health and veganism and snidely appeals to the morality aspect of the vegan diet while dangerously touting non-existent health benefits. The list of ingredients ina a beyond burger is longer than my arm.

My advice? Stay away from fast food (vegan or otherwise), eat whole, unprocessed foods much as possible, eat 'mindfully', make your own decisions regarding your health and diet and don't buy into anyone's snake oil/capitalistic agenda.
Like many companies, we really enjoy paying SemRush a few hundred dollars a month and almost never opening it. It’s politically difficult to cancel, because it feels like a no confidence vote in “doing SEO.” But every year, we opt to spend most of our SEO budgets just writing stuff based on Google autocompletes and simple Google Ads data.
“Low code”: reminds me of the horror of translating a VB app of a trader to Java in the late 90s for me.
Simpler option for k8s are available:

- Charmed Kubernetes (Juju)

https://jaas.ai/canonical-kubernetes

- Mikrok8s

https://microk8s.io/
DJI FPV
Most people are unable to realize distances in space. Humans are simply not designed to travel in space. For a space ship that can be self-sustaining in every way and capable of multi-year travel, it has to be almost like a city. Even when you get to planets, they are even less hospitable than Mars. I think future life forms which will colonize other planets will be machines, not humans.
No, the first example illustrates the fundamental problem that all iterations of the loop share the same scope rather than a new one each.

In your example, the variable `x` is also shared with all iterations of the loop. Rather, it is more so as so in C, like syntax what is the common approach:

while(1) {
int x = next(iterator)
if(STOPITER) { break }
/* code that uses x */
}

Every iteration of the loop receives a brand new `x` rather than re-assigning the old `x`, this problem is illustrated by creating a closure that closes over the `x`, for which the expected behavior is not that the `x` is then assigned to another value on the next iteration of the loop.

The only way to achieve this in Python is to create an ad-hoc function which is passed `x` as a formal parameter, for every new function call in Python does create a new scope rather than simply re-assigning to the last one.
So let's aim to reduce the source that emits the least and get to transport and industry later?
Food Prices Are Soaring Faster Than Inflation and Incomes
> Some people just need a little acute upregulation of neuroplasticity to break out of their funk.

That's the best sentence I've read all year on HN.
Half of this stuff could trivially be done on the Apple watch if you develop an iphone app for it.

It would be nice if Apple opened it up to allow custom watchfaces but its already pretty open as it is.
How often are you little in this situation that you need a fake phone call...?
My story of working with Governor Cuomo
Some states (California and Oregon come to mind) place limits about the terms of rent control that may be imposed by cities.
How many have been hit by SQL injections introduced by their CTO, who also has previously written [1] about the need to use parameterized queries instead of string interpolation?

[1] https://stackoverflow.com/questions/11554015/syntax-sql-wher...
You get what you pay for. If the tenant here wanted to live with slum like pricing, tenant should get slum like conditions.
I recommend reading this page on that: https://deno.land/manual@v1.8.0/typescript/configuration#how...
Back in the 60's, people thought everything would be nuclear-powered; atomic cars, planes, trains, houses, etc. But like with building-sized computers, we've chosen a different path through the tech tree.

There were terrestrial exceptions though, like "the Beta-M is a radioisotope thermoelectric generator (RTG) that was used in Soviet-era lighthouses and beacons." https://en.wikipedia.org/wiki/Beta-M

But people happened across them and got radiation poisoning, so imagine that happening a lot more often if they were powering all manner of home appliance. Also a lot more dirty bombs.
Milvus is really easy to use, and it's oss.

https://github.com/milvus-io/milvus
you mean like warren buffet?
I thought it was pretty funny, but I suppose humor is subjective like that.
Weirdly fascinating
> I really think a semantic facelift would

I think you mean a syntactic facelift, without changing semantics. You mean making the syntax look more like TypeScript, Kotlin, or something, right?
You'd expect the ID parameter to be typed (at a minimum from the database). It's not clear from the code in the article whether the pagination parameters are type checked (or whether they'd raise a type error at any point if set to strings).

It's definitely bad code, but if you're going to write an article which so heavily implies "this idiot's bad commit is why a breach occurred", then whether the code is actually exploitable seems worth investigating first imo.
Except the risks to an oversized military can also include all-out war. A heavy footprint is a burden to allies and potential enemies alike. Even if balanced with 'carrots' the whole thing still weighs on the Earth's limited resources, which everyone must share.

It also tempts one to abuse that power, even unintentionally so. Such abuse doesn't help maintain peace.
But block scope is all about modularization and ensuring that parts of the program that need not interact do not interact.

Python code seems to either be written from a mentality of not at all caring about variable lifetime and making it far longer than it should be, or programmers that do care, and uses classes and functions as makeshift tools to attempt to limit the lifetime of variables to make up for the lack of block scope of the language.
That seems like a bit of a non sequitur. I thought we were discussing whether plants have feelings.

Killing animals painlessly is certainly better than killing them painfully. There are a lot more problems than just the killing though. From the Wikipedia article on slaughterhouses:

> Eiznitz interviewed slaughterhouse workers representing over two million hours of experience, who, without exception, told her that they have beaten, strangled, boiled and dismembered animals alive or have failed to report those who do. The workers described the effects the violence has had on their personal lives, with several admitting to being physically abusive or taking to alcohol and other drugs.

> The HFA alleges that workers are required to kill up to 1,100 hogs an hour and end up taking their frustration out on the animals. Eisnitz interviewed one worker, who had worked in ten slaughterhouses, about pig production. He told her:

> "Hogs get stressed out pretty easy. If you prod them too much, they have heart attacks. If you get a hog in the chute that's had the shit prodded out of him and has a heart attack or refuses to move, you take a meat hook and hook it into his bunghole. You try to do this by clipping the hipbone. Then you drag him backwards. You're dragging these hogs alive, and a lot of times the meat hook rips out of the bunghole. I've seen hams – thighs – completely ripped open. I've also seen intestines come out. If the hog collapses near the front of the chute, you shove the meat hook into his cheek and drag him forward."
Hopefully people wouldn't give up at that and instead search something like "bash syntax" and find the manual :

https://www.gnu.org/software/bash/manual/bash.html#Bash-Cond...
Eink.link – websites that work well on e-reader browsers
Thought I'd post what was said that made her lose her job for everyone to make up their own minds:

> Jews were beaten in the streets, not by Nazi soldiers but by their neighbors…even by children.

> "Because history is edited, most people today don't realize that to get to the point where Nazi soldiers could easily round up thousands of Jews, the government first made their own neighbors hate them simply for being Jews.

> "How is that any different from hating someone for their political views."
I can't wait to see the vector DBs we're going to have 5 years from now when everyone needs to serve their embeddings. It's clearly early but frothy right now.

Also check out this similar co I ran into: https://www.pinecone.io/ (the CEO, EL, has some classic sketches and feature hashing papers).
"And we made it to Mars! I stepped out of the lander and took a look around. It turns out the place is just a bunch of rusty looking rocks. No hot green chicks, no angry little green men. I guess I was kind of hoping there would have been someone here to shoot it out with, or at least make out with."

- From the unpublished short fiction of itbeho

Seriously though, this is fantastic. Imagine being a kid today, seeing these images and being inspired to help get us there in person, hopefully in the near future.
And another 5 years of students will have a new layer of Microsoft obfuscation to muddle through until they sort out that the *nix world is the better alternative.
Dude, it's a scientific experiment, not a fucking Instagram shoot
This mistake looks like he just started coding.
Not if handled in the current social media "standard" way: Twitter, Reddit (and ex-Tumblr) keep nsfw content from sight of non-nsfw interested users by special handling - semi-hiding the category, won't show up on searches etc but can be linked to if you have nfsw opt-in.
For someone who knows that these tools exists, yes this is a way.

For an ordinary user, the only 'easy' way a user can verify the claimed behaviour is to literally go offline.

Browsers do not currently have badge to verify that the app is not sending any data. I'm thinking how we were brought to trust the padlock icon browsers display for TLS supporting sites.
The argument is that it is also inhumane to kill these animals.
Interesting, I had never heard of that. I've always only seen specific city's rent control policies.

Edit: Wow, OR and CA recently capped rental price increases statewide:

https://www.oregonlive.com/business/2019/03/how-does-oregons...

https://www.nolo.com/legal-encyclopedia/statewide-rent-contr...

Meanwhile WA prohibits rent controls by any local government:

https://apps.leg.wa.gov/rcw/default.aspx?cite=35.21.830
For what it's worth, I agree with you that Grin's emission scheme is the 'correct' one.

The effect of adding one coin to a pool of coins, on a steady schedule, results in inflation along a logarithmic curve. Inflation is about how much money is created relative to how much exists, so the second minute of Grin is 100% inflation, the third minute is 66%, and so on.

Also, people lose their cybercoins. It might average out that Grin hits a steady state, or even deflates a bit, depending on how frequently people or corporations lose their keys, die without heirs, send to a nonexistent address, and so on.

But even without this, the mining reward remains consistent even as overall inflation becomes negligible. Inflation never stops, but it does hit a point where it may as well have.

Bitcoin, by contrast, is guaranteed to be deflationary, and in fact the property that everyone holding BTC gets a permanent bump in asset value every time a bit of the ledger is lost strikes me as... moderately hazardous to the health of those who hold large allocations of the ledger.

I don't think this has much bearing on the article though, just wanted to tip the hat to another Grin respecter.
Converting blog posts to podcasts automatically
The problem I have seen is the ultra cheap watches that have these features are so inaccurate that you may as well not have them. I'm not even convinced pulse ox is accurate on the Apple Watch.

This product linked is more of a toy to play with and not what you would use daily.
This is really cool. Thanks for the link.
His twitter profile has "spiceshop = https://etsy.com/shop/RavenholmSpices" and "food pornographer"

I wonder if it triggered a block for drugs or porn.
And another from over a year ago https://news.ycombinator.com/item?id=21643683 comments after comments of folks walking away from the landing pages con-mused.
I'm not even front end and I spotted that SQL injection vulnerability in like 4 seconds. That is like 101 stuff.
It's pretty good.

Deno provides LSP now which is what Vscode extension use. Other text editors also work with deno since they can use LSP.

I haven't had any problems with fs APIs. They provide almost everything and any nice utilities can be imported from std.

Testing has gotten a lot better. Bundling and compiling works too.

Support for third party platforms such as vercel, heroku, and other platforms is decent.

Many rails-like frameworks are also popping up.

Overall, I am satisfied.
The difference between affordable and luxury housing is just the rent. It's the rent
Don't update without auditing the new versions? I don't understand.
> a time crystal

This is what's wrong with model based "science".
All ya'll complaining that you can take better pictures with your iPhones than Percy can on Mars, please read this: https://mars.nasa.gov/mars2020/spacecraft/rover/cameras/

These are ENGINEERING cameras for taking incredibly precise measurements. Not for populating an Instagram page.
Quite the opposite. When I've raised poultry and other animals, gave them a great life, enjoyment, health, and a painless passing, and in return they gave me sustenance. In addition, you are in fact designed to consume a wide variety of foods including meat; you're the one that is delusional, not me. Go lecture a Hawk or Lion.
I Will Teach You to Be Rich.

Bad title, but this helped me to automate saving and put my energy into more important things.
The issue is that the vast majority of these ingredients are artificial substitutes for the actual content of a pizza-like-thing that an average consumer might expect. That they are artificial is not in itself inherently an issue (at least to me, although many many artificial additives have been proven to cause problems while manufacturers continue to use them), but the fact that so many substitutions are made all at once in a given product renders any "common" understanding of its health effects effectively irrelevant.

It basically means that you can't compare a pizza made from the basic ingredients that you and I might normally expect to the contents of a hot pocket. Even comparing apples-to-apples, the ingredient list of a DiGiorno's frozen pizza would be wildly different from the basics of a pizza you could make yourself.

Fearmongering over these subjects never helps, but it is fair to raise concern over the unknown effects of the things you consume.
While technically accurate the incentives and momentum are heavily stacked on the side of peace. No one wants fighting to resume, and both sides now have nuclear weapons. Combat and drafting have long ended. That war is 'over'.
"Power Fx" is going to be a big advance on Python /s
This is the link I came to the thread looking for.

Many thanks.
> You think?

I don't have any ill-feelings towards China other than some of their political and social proclivities. In the realm of business, they deserve full recognition and respect for what they have achieved. While the developed nations of the world got busy with nonsense and political infighting the Chinese quietly put one foot in front of the other, worked hard and lifted an agrarian economy to become the second economy of the world. Truly amazing.

The next couple of centuries will likely belong to China.

I can't think of a single thing anyone can do to affect change that took fifty years and an immense amount of hard work.

For one thing, people in Europe and the US would have to undergo a massive cultural shift. Entire nations would have to be more entrepreneurial and hard working than China. Politicians would have to actually do what's best for the people of their nations. Universities and schools would have to stop teaching bullshit ideologies and start producing capable and useful adults with financial and entrepreneurial chops (the average US high school graduate is basically only useful for stacking boxes at a warehouse and, maybe, making coffee).

These things are not going to happen. Or, put a different way: If, by some miracle, these things did happen, it would take at least 25 years to equalize the world. It would be a monumental effort most western societies are simply not capable of or not interested in embarking on...because, among other things, it will not be comfortable. And, BTW, that assumes China just sits there allowing the world to turn back the clock.

Sorry for the pessimism, but someone has yet to explain how we magically wake up one day and magically reverse a fifty year monumental effort by the Chinese people by teaching kids about Karl Marx and fighting about politics day and night. I can only imagine how stupid funny this must look from the Chinese perspective.
HN really is going downhill
There's a button at the bottom right of the page that restores the "boring site" aka the serious one
or breathe particles. grind it up into a fine powder and you have a nasty dirty bomb
> I think future life forms which will colonize other planets will be machines, not humans.

Tardigrades seem like likely candidates, too.
Automated systems blocking people for unknown reasons isn’t a world we want to live in if we could help it
For anyone struggling to make sense of this: I have a physics PhD, I have spent most of my career in fundamental research, I have read the Wikipedia article and other references multiple times, and attended several talks, and I still don't understand what qualifies as a time crystal. All I know that it seems to have something to do with subharmonic response.
Oh, well. I was just about to buy a Poco m3 2 days ago. I guess I wont. A Moto G Power I guess.
You Smell That? Electronic Nose
Sweet, when I discovered the Mozilla PDF.js I thought client side manipulation of PDFs would be a breeze.

I built a tool that required to count the number of pages of a PDF (ca. 2014-2015). At the time server side counting was the 'sure' way in my brief research.
To be clear: IDE support existed and worked fine once I got it going. It just wasn't a smooth experience out of the box; I had to do some digging on Google, fiddle with the configuration, hunt for answers in GitHub tickets, etc. For a runtime whose main appeal (for me) was no-hassle TypeScript, all the hassle put a pretty big damper on things.

Glad to hear things seem better now
The site isn't great, no. But the reason there's so many repeated images is because NASA doesn't want to be accused of hiding anything.

If they're taking photos for calibration, we get those, just like if they're taking stunning panoramas.
No, he didn't. These allegations were just made up and not even part of the court case later. But sure enough, for every story about Ross somebody brings this up as if it's a matter of fact.
Yeah it's a local problem. You need border control to keep people from other towns and states from moving in
As an aside, Owner Move-In isn't always available. Around here I sometimes see listings for condos that are priced far below market. The reason is that the unit is occupied by a rent-controlled tenant who can't be evicted, even if the owner wants to move in. Sometimes the tenant will accept a large payment to move out, sometimes not.
From the article: "The first photo Arthur Lundahl and I saw from this project was of New York City. The aircraft was seventy-two miles away, and yet we could see people in Central Park."

This was a camera with lenses designed in 1947. Is the current tech state of the art available? My understanding is that the close up aerial imagery on Google Maps is patched together from much lower flying aerial photos. But these CIA cameras from the 40s sound superior to what we have on Google Maps today (seeing people in central park from 72 miles away, for example).
>just buy assets
What?
You think like that everyone can JUST buy assets that is preposterous
Moreover and in regards to your arguments no the wages of lots of people do not go up with inflation like have you ever talked to anyone that isn’t in the software industry? Lots of jobs don’t do that and that set of people want to be saved against inflation if inflation is not a problem for you that is one thing but it sure is for a lot of people
While I largely agree, I would argue there might be a tipping point where people eat so little animal-based meat that the majority of people become vegetarian, and then the norms shift such that traditional meat is treated like we currently treat fois gras.
I think it’s mostly about the user, in this case the 1 billion users that know Excel, and would like those same functions available for integrating the modern web.
That pizza would be illegal in the Uk. BHA and BHP are banned over here
Today, you can run an init command on Vscode to initialise a deno project. It should work smoothly from there.

It provides auto completion for registries and code lens for external code which was missing before, I think when you used it.