skysight-inc/HackerNews huggingface dataset:
Hygienic macros are aware of what they are using. For example, if your macro uses leftpad, calling code does not need to import or be aware of leftpad. Also, consider the issues around writing a swap macro using eval, how do you introduce a temporary which is guaranteed to not conflict with the caller’s code? Hygiene solves this by saying the macro’s temp variable is not the same as the calling code’s temp variable.
Google Glass Improved Socialization in Children with Autism Spectrum Disorder
>I'll add that := fixes something I truly hate: the lack of `do until` in Python, which strikes me as deeply un-Pythonic. Am I supposed to break out of `while True`? Am I supposed to set the variable before and at the tail of the loop (a great way to add subtle typos that won't cause errors)?

This is relevant to what I've been doing in OpenCV with reading frames from videos! In tutorial examples on the web, you'll see exactly the sort of pattern that's outlined in the PEP 572 article.

>line = f.readline()

>while line:

> ... # process line

> line = f.readline()

Just, replace readline() with readframe() and the like. So many off-by-one errors figuring out when exactly to break.
I'm a fan of https://privacy.com/ and use it for most subscriptions and any site I don't intend to buy from more than once - basically unlimited virtual debit cards you can set a limit for and make recurring or single use (i.e. burner).

For subscriptions I don't intend to use past the free trial, I just enter a low limit (e.g. $1) and set as a burner card.
I agree for the most part. They definitely have their great content (Dark, Stranger Things, first few seasons of House of Cards, OITNB, I Am Mother, etc.) but it is incredibly inconsistent overall. I think they were more focused on beefing up their library so they had _something_ when the third-party content left the service, and hopefully get a few hits like Stranger Things in the process. With reports that they intend to slow down their investment in original content, I'm hoping they start focusing more on quality than quantity now.
Smoosh Shtepper – Shell evaluation and expansion step-by-step
Context? I follow a lot of Python news, but never saw anything about this.
Yes, but the bible is a work of fiction.

You might as well be quoting "But the magical fairie text says...".

Also, there are many different "Christian" traditions, it's not a single homogenous group. Also, are they not allowed to evolve and improve over time?
Not for the millions of Americans that commute to work everyday. That'll free up so much free time.
True. And coastal Oregon has a legitimate threat of tsunamis triggered by earthquakes as well.
Isnt this what the pre-authorization is to prevent?

Basically ensures it CAN charge the card but then doesnt
> What about virtual machines / machines booting off an image? We can't put a seed in the image, or it'll get distributed to all downstream consumers.

Mitigations within mitigations.

Having one random seed per VM image that gets installed is better than having nothing at all -- now, an attacker needs to have your install image. Then the hardware RNG and the virtio random drivers help mix into that seed.

Given that presumably you've already booted the image for testing, you've probably already generated the SSH keys that you need to be concerned about -- so you'd probably need to take care to regenerate them securely in any case, from a running system that has started to gather entropy from all the sources it can get its hands on, including the boot loader.

And, ideally part of the imaging process would write some random data to the image. But I agree, most people wouldn't even think of doing that.
Good question. tl;dr I don’t.

Maybe I’m looking at it through my own bent glasses. One example on my mind was a ‘thing’ right before my building. Imagine like a 2m tall painting in a thick wooden frame and a foundation to hold it, but there is no painting, as if someone cut it entirely. Like empty frame. People make self-shots sitting in it, and it has some plate with a description on it. But it was mounted only last winter. I’ll maybe check it next time, but my pragmatic side tells me that it’s yet another artistic catch for touristic attractiveness. I also know the guy in his 60s who spent his childhood there. The entire area was built and cultivated from scratch as a heritage corner by few powerful mosque rulers (locally famous people still lived there, no doubt, but that’s true for the entire old town).
Cool fan but it says "not heatsink compatible", so if you are like me and attached the heatsinks that came free with your Pi case, you will be out of luck.
Please don't post political flamebait to HN.

https://news.ycombinator.com/newsguidelines.html
It's not possible for most people to be worse than average.
^ Agreed!
The concept itself is incredible, but the write-up really makes the difference in explaining how we got to the final product.
That line is not present at all if volatile using variant of the function is used.
It appears I had forgotten about that back-story!
I like your answer, however, its better to patent it because sooner or later someone else is going to come up with the same thing.
In my experience, every technology focused on building a "simple" alternative to a long-established "complex" technology is doomed to discover exactly _why_ the other one became "complex." Also spawn at least five "simple" alternatives.

Doesn't mean nothing good comes out of them, and if it's simplicity that motivates people then eh, I'll take it, but gosh darn the cycle is a bit grating by now.
As someone that rides a motorcycle, I'm deathly scared of self-driving cars and the tech companies that will try to automate highway driving, especially with their agile 'move fast break things' 'ask forgiveness not permission' mentality
F-string are great and should have been in the language since the beginning. Many other languages had with their own version of them since version 0. What I don't understand is why Python needs a special string type when other languages can interpolate normal strings (Ruby, Elixir, JavaScript.)
Everyone, including companies do have ethical standard, its just they might not be aligned with your ethics.
For sure. Walrus operator is "unnecessary" but is a clear improvement in the code that will use it.
How come they are using a new := operator instead of using equals?
The same in Australia. Tax department offers free software
On a side note, there has been work on an async HTTP client in a separate project conducted by the Encode organization here: https://github.com/encode/http3
Free Logo Maker and Your Personal Designer – Wizlogo
There are fundamental privacy risks to using the HIBP Pwned Passwords service which should be considered when implementing it. See my writeup here — https://cablej.io/blog/k-anonymity/. In short, despite claims of protecting privacy, a malicious server can recover user passwords in some cases even if they haven’t previously been compromised.
Anyone else think the walrus operator is just plain ugly? There is a certain aesthetic quality that I've always appreciated about the Python language and the walrus operator looks like something straight out of Perl or Shell.
Maintaining the Maintainers: Join an Open Source Peer Support Group
> Without firsthand experience, it's difficult to explain to someone that once I configure an access layer switch with 48 1gbps ports on it, and 4 10gbps SPF+ uplinks, it only costs me the price of electricity and physical storage to move 1 packet over it, or an infinite number of packets over it.

This really isn't true, as you do have to pay someone to sit somewhere nearby the switch in case it goes down. And you have to maintain a space indoors for the switch so that it doesn't get wet. Such space has to be built on land that you own or lease, and you can't just buy a wiring closet-sized piece of land. You also will have to eventually replace the switch, as it will fail after a certain period of time.

There are recurring costs to all of these things, and it absolutely costs more to send an infinite number of packets over the switch. In fact, you can only send so many packets over the switch before it fails, because bandwidth and packet size are limited.

You'll also find that if you're selling bandwidth on this switch you'll need to pay people to administer and enforce contracts, and you'll need a building for those people, and you'll probably want to market your switching service so people know they can buy bandwidth on this switch from you.

It's pretty dismissive to call all that "maintenance" as if it's a paltry sum. In fact I would argue that paying the company to maintain the network is the bulk of what you're paying for here, and it's a lot more complicated than just plugging some wires in and calling it a day.
make sure to take your hiking boots. crossing mountains is tough business.
That's easy enough to get around - accept the pre-auth today, and deny the real charge in 30 days. It's all time bound, so there's no magic required.
18/20 share a single tell you can't miss if you know about it. MATTEL doesn't -- and, I thought, neither does TOYOTA. How'd you figure TOYOTA?

I got MATTEL and TOYOTA both right based on the heuristic "Helvetica apparently has fatter lines", which I learned from the quiz itself.
I can't help but notice that the hyper-enthusiastic media talk about self driving cars died down right around the time of Uber and Lyft IPOs.

Like, if you want to sell something, you want to create a sense of urgency, right? "If you don't invest into U/L you're missing out on the self-driving revolution, and it's going to be huge! Just look at all the media going crazy!".
See this post by John Allspaw: https://www.oreilly.com/ideas/the-infinite-hows

> The Five Whys, as it’s commonly presented, will lead us to believe that not only is just one condition sufficient, but that condition is a canonical one, to the exclusion of all others.

Five whys presents itself as a way to dig deep but promotes doing so linearly and getting to a singular thing you can fix, hiding a lot of potential learnings along the way. Thinking about contributing factors is a much more powerful framework.
There's a couple of examples at https://teara.govt.nz/en/photograph/31154/greendale-fault of what might euphemistically be called an "internal distortion" near the edge of a tectonic plate.
Isn’t part of the problem here copyright, so Congress would need to make it legal? I thought that’s what killed the Google Books effort anyways.

That said, I thought the Internet Archive is still engaged in an ambitious project to scan many books (https://en.m.wikipedia.org/wiki/Book_scanning).
Usually when you sign up for a subscription service you need to provide a credit card but won't be charged until the free trial period end, at which point you would be charged using the credit card you provided when you signed up initially. The point of this service is to actually cancel the service right before the trial ends so you won't ever actually be charged.
Satellite imagery is definitely very powerful, and we're including it in updates for the rainforest protection projects. We'll look into providing that when we have reforestation projects :)

Here's a tweet from a user with a satellite image update from the Tech-enabled rainforest protection project we're working with:
https://twitter.com/crabbyafrica/status/1144332819969105920
Eh, if you use the word "mindfulness," you are yoga guy. A monk isn't mindful, he is mortifying his flesh to practice the tenets of the religion he believes in so fiercely enough he is willing to self-imprison to follow it better. What you see as mindfulness is just the surface results of winning that struggle. It is very possible to lose it instead, and monks are often open about the dangers of monastic life.

I think people really don't get religion in this sense. The radical, wild, anarchic aspects of it. Mindfulness is more just a wish for stoicism in religious guise; the idea of being not stoic, and weeping over your prayers in a cell because you feel the weight of the world's sin and know that the time is short will not often occur to people.
Indeed. Palm rejection is perfect. No need to worry or complain about the size of the touchpad. I know I would never go back.
"That page says you'll receive an email reminder the day before your card is charged."

Is that every time they charge you? Or just after the end of the trial? I think it should be a law (or at least an ethical standard) to email all customers in advance of automated billing (or at least have a 24 hour cooling off period after such a charge).
Does TurboTax (online) allow for exports other than the PDF?
> There is no unsolved technology problems with busses.

They have similar physics problems as cars.

1. They can't go very fast nor carry a lot of weight before they become uneconomical or unsafe.

2. They especially can't go very fast for very long if they are electrical.

3. They need a driver which makes them expensive to run often or with few passengers.

If you get to choose, what you want is something like:

A. Medium speed trains. Cheaper than high speed ones, but still twice as fast as cars with more comfort and less attention. But they need to have good infrastructure, so they can go that speed well and consistently.

B. Local buses with fixed routes.

C. Better golf carts for local transport.

Eventually you would automate all of them. Which would be relatively easy because the fast trains go on tracks, the buses go known routes and the cars, that are the most complex to automate, go slow. Slow also wouldn't affect for example automated deliveries, or repositioning, over longer distances.

Also even before automation as the cars would be "underbuilt", relative to today, they are cheap. So the don't get the sunk cost of a car. And since they don't go outside the local area, each municipality can choose their own infrastructure more freely.

Of course I don't see it happening as things are today, but this is in my opinion more inline with what should be discussed. Since things relative to physics isn't likely to change quickly.
That’s .001%. Why is anyone even talking about it?
Determination of the Hubble Constant Based on the Tip of the Red Giant Branch
All you're doing then is moving the evolution of the language into the common libraries, community conventions, and tooling. Think of JavaScript before ES2015: it had stayed almost unchanged for more than a decade, and as a result, knowing JavaScript meant knowing JS and jQuery, prototype, underscore, various promise libraries, AMD/commonjs/require based module systems, followed by an explosion of "transpiled to vanilla JS" languages like coffeescript. The same happened with C decades earlier: while the core language in K&R C was small and understandable, you really weren't coding C unless you had a pile of libraries and approaches and compiler-specific macros and such.

Python, judged against JS, is almost sedate in its evolution.

It would be nice if a combination of language, libraries, and coding orthodoxy remained stable for more than a few years, but that's just not the technology landscape in which we work. Thanks, Internet.
> I’ve lived through many cases of the sprinklers being set off accidentally (frozen pipe burst, rc-helicopter blade impact, and idiots using it as a clothes hook) and “some water” isn’t the phrase I would use. I think it’s more like if someone threw a bathtub from the ceiling every minute until someone could shut it off?

That's why i specifically mentioned double-interlock preaction systems, where if someone hits the sprinkler and causes it to open, the only thing that comes out is compressed air (and a trouble/supervisory alarm sounds).
There's no faster (or more convenient) way of getting anywhere outside of a city than driving. It's point to point, and runs on my schedule.
In some systems it's also nice to have a "canary" acting as the user to call your API every minute or so. Then even during low / no traffic hours you can still catch errors/outages/etc.
Which equals?

= (existing) is statement assignment

== (existing) is expression equality

:= (new) is expression assignment
NIST recommendations for AI standards [pdf]
Your comments below indicate you're doing personal (hobby? Learning and experimentation?) programming on your MBP.

In this case I would suggest buying a modern Linux laptop with some kind of Nvidia GPU from Dell or ThinkPad which gives you the flexibility of a true Linux environment (Linux dominates servers) and an ML environment to learn on the same machine. You could get a lot beefier processor, a lot more RAM and a true GPU for a comparable price that gives you more experimentation options.
The kernel does not provide the cpu’s random number generator data directly to downstream users. It is mixed into the entropy pool, same as curl’ing news.google.com into /dev/random.

Don’t worry about it.
It seems like Aldi’s would be a no brainer to expand into poor areas but they seem to focus on higher income areas for some reason.
And Ocaml:

https://ocaml.org/learn/tutorials/structure_of_ocaml_program...
with a boner?
Depending on one's tech stack, it can be a lot of work to make a Windows machine work for development. With quite a lot of research and effort, I did it (and without WSL, because in the past WSL had abysmally slow disk IO).

Even so, at least a year or two ago, having Docker and VirtualBox work at the same time was not possible.

The Windows terminal options are nowhere near as good as iTerm or the standard Mac Terminal (which is lower latency than any Windows option).

But even if you get your dev environment working, other daily tasks are more difficult or annoying.

Lack of Preview on Windows is a huge drag. Being able to hit spacebar and near instantly popup a view of images, documents, PDFs, etc. is far far nicer than the options for viewing in Windows.

Finder may not be perfect, but it is more flexible and more capable than Explorer.

Printing a document to PDF is simple and fast in macOS, but it's slow and clunky on Windows.

The same suite of Adobe Creative Cloud tools generally run faster and with less random lag on macOS compared to Windows. And my comparison was between a maxed out Dell XPS 15 of year 2017 vs an early 2014 MBP.

Regarding price, you can't compare a Surface Pro to an MBP on price. The MBP has much higher performance and a more usable format than a tablet with a stand.

If you're happy, that's good for you. But I suspect your use case doesn't subject you to the full chasm of differences between the two devices.
Yay! I saw the URL posted on Macrumors and planned on posting it here in the hope of you coming here and unlocking it, but you beat me to it :-).
Flip side, I almost pulled the trigger on one from Amazon yesterday for $118. They had $500 options, but I didn't need it.
Neuralink goes out of stealth mode
f-strings are the first truly-pretty way to do string formatting in python, and the best thing is that they avoid all of the shortcomings of other interpolation syntaxes I've worked with. It's one of those magical features that just lets you do exactly what you want without putting any thought at all into it.

Digression on the old way's shortcomings: Probably the most annoying thing about the old "format" syntax was for writing error messages with parameters dynamically formatted in. I've written ugly string literals for verbose, helpful error messages with the old syntax, and it was truly awful. The long length of calls to "format" is what screws up your indentation, which then screws up the literals (or forces you to spread them over 3x as many lines as you would otherwise). It was so bad that the format operator was more readable. If `str.dedent` was a thing it would be less annoying thanks to multi-line strings, but even that is just a kludge. A big part of the issue is whitespace/string concatenation, which, I know, can be fixed with an autoformatter [0]. Autoformatters are great for munging literals (and diff reduction/style enforcement), sure, but if you have to mung literals tens of times in a reasonably-written module, there's something very wrong with the feature that's forcing that behavior. So, again: f-strings have saved me a ton of tedium.

[0] https://github.com/python/black
This is an incorrect statement. CPU utilization and memory matters because it limits how many other containers you can load on the same host, and means that it becomes more and more expensive to run that particular service.
> non-public domain fonts

Why would anyone use a non-public domain / CC / open source font in a publicly available project? If the project has an open source license and is in a public repository on Github, why would there even been non-public resources (fonts, icons, images, etc) in the repository at all?

If you have any private resources (code or otherwise) in the repository, it shouldn't be in a public repo to begin with.

Are there any examples of open source projects that are including commercially licensed fonts?
Typescript doesn't officially support macros yet, but if you want to live dangerously (which you would if you were choosing to use Sweet.js!) you can check out https://github.com/cevek/ttypescript#transformers :)
Looking for some buzzy headline maybe ?
https://ark-invest.com/research/tag/fintech
> it's safe to say that almost everyone disagrees with you.

That may or may not be true, but you can't tell from that Fortune link. It doesn't explain how that list was compiled, what counts as being "admired", and so forth. Without knowing that stuff, the list is meaningless.

I would speculate, though, that since this is Fortune magazine, the list is probably about who is the most admired by the business community (and skewed toward the community of larger businesses). If that's the case, then we're talking about the opinion of a relatively small segment of society and so it isn't representative of what "almost everyone" thinks.
I think you're confusing "revision" with "generation." Revisions are the difference between e.g. the original SNES, and the 1CHIP (SoC) SNES console, not between the original SNES and the SNES Classic.

Even though the 1CHIP SNES is a complete ground-up re-layout (has to be, turning a bunch of individual chips into one SoC), every (officially licensed) cartridge made for "the SNES" works on a 1CHIP SNES.

A hardware revision like this, requires retaining bug-for-bug UB compatibility with officially-sanctioned released game titles, because to do otherwise is to doom the console's support line to endless complaints from people whose games don't work. But hardware revisions are not concerned with keeping UB working the same where no officially-sanctioned released title took advantage of said UB. For everything not constrained by bug-for-bug compat with an existing title, all that's required of the new revision is that it keeps to the spec.

If you were a third-party in the middle of developing a new title, and were relying on some new UB you found, when suddenly your console mfgr released a new revision, it could turn out that your clever UB hack won't work the same on the new revision. (And this happened; it was why unlicensed titles—your Game Genies, your Aladdin Deck Enhancers, etc.—frequently wouldn't work with later console revisions.)
>Trees are being cut faster than they are planted

This part doesn't seem to be true anymore, thanks primarily to India and China (this popped up on Hacker News a couple of weeks ago, I think):

https://www.nasa.gov/feature/ames/human-activity-in-china-an...
I'd used f-string-like syntaxes in other languages before they came to Python. It was immediately obvious to me what the benefit would be.

I've used assignment expressions in other languages too! Python's version doesn't suffer from the JavaScript problem whereby equality and assignment are just a typo apart in, eg., the condition of your while loop. Nonetheless, I find that it ranges from marginally beneficial to marginally confusing in practice.