skysight-inc/HackerNews huggingface dataset:
One use is for e.g. binding of database models for an ORM.

class FooModel(metaclass=Base):
x = Field(type=int, primary_key=True)
y = Field(type=reference(BarModel))

The Base metaclass will set it up to implement methods like save() by inheriting from parent classes, but it would also be nice for the library to have a list of all model types without the library user having to call a method like FooORM.register_type(FooModel). So the metaclass is being used in these classes to build up a dictionary of models when the class definition is encountered.

The metaclass is basically a class that itself builds classes, which means it can be syntactically convoluted.

However, with __init_subclass__ you can write a thing that looks like a regular class with regular parent methods, but instead just gets a method called each time the interpreter encounters a new subclass, which lets you do things like build up that dictionary for your ORM.
Walkable communities desire strong, but young families want bigger home as well
Great, let's charge people for the environmental cost and negative externalities that their method of transportation causes. A driver will be paying 1000x that of a cyclist.
Italy was hit by a series of earthquakes in 2016, including a 6.6. Certainly there was a lot of damage, including in Rome, but most stone structures survived.
I also have an unproven theory that part of the productivity stagnation we've seen since 1973 is due to a spread of low/no-impact administrative jobs. In other words, productivity stagnated not because output stagnated, but because we're working too many hours.
I found Scott Alexander's review to be very informative:
https://astralcodexten.substack.com/p/ivermectin-much-more-t...
If you're interested in Biomarkers for Long Covid and ME/CFS, look up Chronic Inflammatory Response Syndrome (CIRS). MMP-9, MSH, ACTH, TGF-beta 1, Cortisol, Glutathione, and Vasoactive Intestinal Peptide are a few of them. Lots of research here that was started by illnesses triggered by mold mycotoxins and lyme disease - the initial trigger is different than Covid - but the end result in terms of biomarkers and dysregulation in the body is the same. Doctors have been using these protocols to successfully treat patients for a few years now, but it just hasn't trickled down to the mainstream medical community or the medical schools yet.

Further reading:

- https://www.survivingmold.com/Publications/2493-Treatable_me...

- https://www.survivingmold.com/docs/Shoemakers_Protocol_for_p...

- https://www.survivingmold.com/Publications/CIRS_diagnostic_p...
Survivorship bias says to look at all the buildings that failed and why they failed rather than looking at the building that survived. You might imitate build but you will not imitate the environment that allowed this one to survive.
Maybe I’m reading between words in this thread too much but sounds like there’s a bit of hating. I welcome our Rust (hybrid) apps, sounds like a net positive for software.
> The land was set aside for federal use, living in it and then complaining you don't live in a state seems insane.

Kind of like complaining about not getting a vote on taxes imposed on you when you choose to live in North American colonies rather than Britain proper. Whiners.

Also note that US citizens who live overseas can vote in state elections for federal office under federal law (and in most states can also do so for local/state offices under state law.) Inside the US but not within the boundaries of a state is the only place US citizens are systematically disenfranchised by geography.
Unfortunately it was an internal only presentation. Really I had no idea you can basically rent the ISS and the crew in it. They all had to be trained on how to use the special camera system. If I remember correctly it was a custom made RED that has to be sent up in a payload. It was incredible.
The packaging system is what originally brought me to debian and ubuntu; RPM caught up a while back, but apt was better for decades. Stability and easy access to good tooling is what I like about Ubuntu; how is Fedora better?
I agree that Python is a great glue language (so are Perl and Python).

However, Python really doesn't shine when compared with other memory safe languages like Go, Rust, and Java.

Ultimately, Python is single-threaded by design. There are some hacks to get around this design contraint (multi-processing), but then you are adding an entire additional Python runtime to your system's memory for every "thread" you want to run. Even with asyncio, Python performs the worst when it comes to I/O.

I love Python, but it's important to understand that due to specific design considerations it is not and will likely never be a performant language.

reference: https://medium.com/star-gazers/benchmarking-low-level-i-o-c-...
What is `f`reduce`?
No, just a few weeks ago I was able to walk into an Apple store and buy one that day to take home. Perhaps you're only looking online or don't have an Apple store near you, that might make it much harder.
> One-bagging is also a poor choice for business travel, since you likely want a smaller computer bag so you don't have to use your much larger "one bag" as your office bag.

For small work trips, I generally just pack all of my clothes and toiletries in my laptop backpack. When I get to the hotel, I take all that stuff out and leave it in the room and then bring the same bag into the office. Works fine for me.
I agree with the sentiment, but they cannot provide assistance on HN either, it's not a good fit.

At this point, when a client of mine that is technically litterate has such a bad experience, I pay them a visit.

They would probably learn a ton by having the setup at hand.
I still run djbdns as well, as both an authoritative server and a caching resolver.

The biggest downside to djbdns, to me, is its lack of DNSSEC support. There are patches available for that, but my distro doesn't package them and I haven't gotten around to making my own package to include them.

The next biggest is related: djbdns lacks direct support for some newer Resource Records (like type 257 CAA) in its data file. However, the data file does allow you to encode arbitrary records directly, it's just a hassle to do it and to verify correctness.
"It blew my mind how many business critical processes were managed with excel spreadsheets being shared via email chains." - this also blows my mind, given how many problems there are with Excel (e.g. formatting).
Ah right, especially in space, 5 'pulses' one way and 5 the other will cancel eachother out even if there's some time in between.
Ah. That's not how I interpreted 'extraterrestrial bureaucracy', which at an extreme suggests a mid-level functionary on the ISS, or at least workflows that involve forms sent in triplicate out to a Mars orbiter and back. ;-)
Thinkpads typically have magnesium cases, not plastic, and the older models have rollcages so they can take a beating like no other. I have an m1 air and while it feels sturdy, I have no doubt that X220 can withstand much more abuse than my macbook. Also, I have no doubt the X220 is more pleasant to type on, because older thinkpads have keyboards that have no equal in the laptop space. I would say my macbook has a satisfactory keyboard, but it is clearly a step down from the T series thinkpad it replaced. Still though, the macbook is for me overall the better package than any thinkpad that was in my budget range.
Construction seriously depends on location. However, the simplest solution if you want high insulation factors is to have a second air tight structure with an air gap to your brickwork. Just make sure to properly ventilate that air gap. The same approach can then be used on a slate roof.

Essentially you end up with a home inside a shell. There are several advantages to such structures such a potentially great sound insulation and aesthetics, but it’s not cheap. Having an essentially air tight structure requires a hvac system to match. A combination of heat exchanger, filter, humidity control, and temperature control let you have a very comfortable environment while still benefiting from significant insulation.
Cool story, although I can't help but notice that the product is a tool to automate twitter, and twitter turned out to be a critical piece in marketing the product, and later, marketing (and even selling) the business. That is, it all seems very self-referential, revolving around twitter, and this is why the turn-around was so fast. Also, it was all very low stakes.

This comment probably sounds a little like sour grapes. But let me clear: this was a remarkable and laudable accomplishment. The time and place were right for OP, and it's bad sportsmanship to take anything away from a pilot that tacks with the wind to win the race.
As OP indicates, it can still bind to ACE-2 and that changes the way these cells behave. Peristalsis in your veins is changed when the endothelial cells which have ACE2 are hit with spike (vaccine origin or covid origin) for instance.

I think there's enough evidence out there that spike from vaccines circulate widely. I can dig it up if you want?
If you, or the newborn, leave Spain and renounce your citizenship they're not going to assign you a percentage of the national debt. Feel free to move to Somalia and pay no taxes and not be responsible for the national debt.
This article really doesn't provide any insights into map generation or explain any interesting implementation details.
Darling – Run Mac apps on Linux
VARCHAR(N) can store N characters. So with utf8mb3, that's a max of 3N bytes worst-case. But if these columns were silently/automatically converted to utf8mb4 upon upgrading MySQL, they would now need to store max 4N bytes, which (with a high N) can exceed internal limits such as maximum length of an index key.

IIRC, there were additional problems in older versions of MySQL, situations where sort buffers were sized to a fixed length equal to the value's worst-case size or something like that. So sorting a large number of utf8mb4 values would use a lot more memory than utf8mb3 values (again, iirc, I might be wrong on this).

So the safer and more backwards-compatible approach was to introduce utf8mb4 as a new separate charset, and allow users to choose. MySQL 8 is now transitioning towards deprecating utf8mb3, and will finally make the utf8 alias point to utf8mb4 sometime in the near future.

That said, there are still a bunch of unpleasant uses of utf8mb3 internally in things like information_schema. I develop schema management tooling and recently lost a week to writing work-arounds for some of the more obscure ones, see https://github.com/skeema/skeema/commit/bf38edb :)
I've watched quite a few of his videos and observed it myself. Endless people claiming they never do it while moving, but it's an outright lie. Besides, phone use while stationary creates congestion since it slows reaction to the traffic signal by several seconds for every driver doing it.
I wonder if it was important that an actual abstract syntax tree was used? I'm realising the title might be a bit misleading - it should probably be "AST-inspired" commands, as the tree-sitter trees are technically concrete as opposed to abstract and the commands aren't tightly coupled to a particular representation.
Are you using Vue or React?
Interesting to see all the "It doesn't work for business travellers" comments. I'm now retired, but was a business traveller (read: million mile flyer) for over forty years, and it has always worked well for me.

Also, there are MANY reasons (not just "less weight") to avoid wheeled bags ( https://www.onebag.com/wheeled-bags.html ).
Looks like they will have USB4 though, maybe just no Thunderbolt 4 certification yet? As far as I understand, frame.work is capable of TB3, but just not certified (yet?)
It really should have MySQL in the title as it’s not a generic database abnormality. It’s specific. To MySQL (and by extension MariaDB).
> also focused on one-bag ergonomics?

Considering that they offer bags up to 40L, I guess go.

My GR1 23L bag has served me well thus far. Although I gotta say they are rather pricey.
Sorry, off topic...but I have to ask: "Sweaty?"
Yep, I could, but I'm not trying to be as minimal as possible, only to fit everything in carry on luggage, which I'm already able to do.
Maybe I need to explain what I said, I realize I came across a bit rude. I called it a failure because the emphasis in the article was completely on the sales/“exit” process and not on the product. I wouldn’t have called it a failure if the article was about how they built a cool product, how they marketed it and how much they learned while doing all that.
Kubernetes: A curated list of Kubernetes projects
You wouldn’t. But the CA that issued the certificate could still revoke it, correct? E.g. https://letsencrypt.org/docs/revoking/#using-a-different-aut...
I suspect HN isn't a very good place for a back-and-forth on debugging issues like this. If nothing else, HN has a reply depth limit that will be hit pretty quick.
What a great idea. I don’t understand the hate for either at all. They’re tools for a job.
Just buy iPhone, it's comfy
Sciter SDK (https://github.com/c-smile/sciter-js-sdk) is OpenSource/BSD

But Sciter Engine itself (https://sciter.com) is not OS - its sources are available to customers only. I tried to make it Open Source ( https://www.kickstarter.com/projects/c-smile/open-source-sci... ) but not too much interest for that.
What makes it faster. #2 I get.
The entire article just works off a glassdoor reviews and seems to assume these individuals also know how to run ops at said place. Not much different than any place really. I even tell my guys, sure I may have opinions, but one has to understand those opionions are formed from a specific point of view and information set. And those making the decisions we are levying criticism on are likely working of entirely different points of view and information sets.

Its a confirmation bias thing common with low level guys. It happens in the military too. For example it was a major takeway for me when watching Generation Kill. Like this interview the reporter has with the point he has to make at 1:50 int he video

https://www.youtube.com/watch?v=gguxM8eABP8

Fab plants like this usually run 3 shifts, thats 24/7 production right there. So you can still do 5x8's and run a plant 24/7. My father in law literally ran ops for a few places doing printed circuit board fab before it was all sent offshore. Most of what made him valuable was logistics and managing shifts/workers/on call and ops process to ensure it ran smoothly. Not everyone can do it and many that THINK they can would flounder when put in the hotseat. Similar when people ascend to Director or Executive roles.
Why? Typical disclaimer and probably good advice in general.
This just means they are subbing out simulation details for injected randomness, no? I thought this was a technique that was known to work in general.

I.e. since the combination of many random events is a bell curve if you just put a bell curve somewhere you don't understand something you can get good results.
Did we read the same article?

The omnivore equivalent would be an article that describes eating meat as an unfortunate side of life, like commuting and calling into call centers to cancel your cable. My modified reply would be "hey, it's normal to eat meat, it's part of our programming". That doesn't vilify the vegetarian, it calls out a puffy well-being article that says "eat vegetables so you can overcome the stress of eating meat".

... anyway, I was the cool uncle (and my sister lived with me on and off, so I really had a close experience with my first niece) for a long while, and near-militantly "child-free" until I was 40. One day, something rang in my head, and I was changed. Keep rocking the vegetarianism, but try not to be too proud to listen to that ringing. If it comes to you.
aka why I switched to Postgres
Frankly, I always find these stories miraculous. Even though I'm a full-time web developer, I find it daunting merely to design a landing page with user sign-up, let alone a feature worth paying for and an account subscription flow. There's just so much to do. It seems like years of work.

I know there's things like SaaS pegasus, but that forces Django. SaaS Pegasus and Bullet Train are also very expensive with no real options for trial. I wish tools like that - automating the basics of an ecommerce business - were more developed and available, preferably open source in the long run. I feel like it's the future we're slowly moving towards but we aren't there yet. We have widely-used open source frameworks for technical foundations - rails, django, etc - but no higher-abstraction equivalent that handles "features" like subscriptions and accounts.

It is infinitely easier to build and deploy things in 2020 than it was in 2010, and I'm hoping the time between now and 2030 represents a similar jump.

edit: found this list though https://github.com/smirnov-am/awesome-saas-boilerplates
"The 1979 revolution led to the restoration of elections."

Elections where candidates are extensively vetoed by the clergy before being allowed (or not) to run. Even if the population wanted to reduce the role of religion in politics, it isn't allowed to elect people whom the clergy deems too secular.
Synthetics are the worst on airplane and they smell quickly. Yea they dry fast but you have to wash them daily.
Cheers, though I would say that I don't like that ECC isn't the standard, there's nothing but segmentation stopping ECC from being mainstreamed other than that it would make a lot of server gear redundant for a lot of applications, but as I said, it really doesn't matter for my application. Something that should be online for extended periods of time though, go ECC
1. He is not a vigilante because he is merely reporting evidence to the proper authorities. A vigilante takes interpretation, defence and sentencing into their own hands.

2. UK police have actually asked road users to do this since they do not have the resources to be everywhere.
You want to ignore the difference between DDR4 and DDR5, but the market doesn't ignore it and DDR5 is more expensive (I'm talking about non-Apple memory sticks).

Also, you want to ignore 400 Gb/s provided by Apple's 64Gb memory, but... you know.
Another point I would add is DNSSEC. With your own authoritative server you actually own the keys and don't have to trust another company.

What's also not mentioned is the possibility to run your own hidden master and use a DNS provider (or multiple!) as slaves. This way you have full control over your zone but you don't have to run your own network of nameservers.
Great last sentence, I’m going to steal it!
Reconstruction Attacks in Practice
You don't get to "plan" the work places and residential places. They are what they are. Your transit plan needs to serve the commercial and residential areas that already exist, not a hypothetical ideal. It isn't easy in Ireland, Germany, or Spain to reorganize an entire metro area by fiat, either.
Not to me it isn’t.
Sometimes the pagination is optional to allow the client to only get as many results as they can handle.

But far more often, the pagination is forced - get 100 results, hit this link for the next 100 - in order to limit the load on the server.

Most trivial scenario, client runs a search that's too generic, you don't want to waste server resources actually preparing 999999 results.
Which park?
I just reported it to Github, there's a shady 6.6.6 version indeed
Actually this is supported also on Telegram for example. I guess also other platforms?
Business moves at the speed of now.
>> If I had an unlimited budget and was aiming for >1000 years I would pour the piles to bedrock with stainless rebar...

Yeah they reject reinforced concrete, but the reason it doesn't last is the type of rebar used. To then site stainless later seems odd. IMHO our roads need to be built with stainless rebar.
There are bugs in this code and I'm glad that I'm not the only one that has done it!

graph = {
key: {
p
for p in inspect.signature(method).parameters.keys()
if p != "self" and not p.startswith("_")
}
for key, method in cls._registry.items()
}

The first parameter to a bound method does not have to be called `self`. It's conventional, but not required. Is there a better way in the inspect module to filter these parameters? This comes up more often with classmethods where the naming convention `cls` is most common but I see `klass` somewhat frequently as well.
My question is will this product be successful in the hands of the new owner? The signal of success is so low -- a few hundred dollars in revenue -- that it could well be random noise. I'd like to see any data showing the success rate or these projects post "micro acquire".
You are correct, it is a disk-format issue, and MySQL officially supports in-place upgrade between versions.

It's actually quite hard to fix bugs in charset/collations, because any changes to the sort order implicitly could affect the on-disk format (indexes are sorted).
Please consider increasing the contrast on your text. As is (light-gray-on-lighter-gray) I cannot read it as it literally hurts my eyes trying to focus on it.

EDIT: It seems this is not intentional, some of the stylesheets are returning 404 for me but not other people... weird.

EDIT: Amazingly, it turns out this site is hosted on the platform of which I'm the lead engineer (Cloudflare Workers / Pages) and the problem is in fact our own fault, not Ben's. Wow. We'll... get on that. Sorry.

FINAL EDIT (hopefully): Not necessarily a bug so much as classic cache skew... explanation here: https://news.ycombinator.com/item?id=29814868
> Hard to imagine a strictly typed future for Python

On the contrary, the dynamic nature of python can make it seem like inaccessible black-magic where you don't even know where to look in the code to see what's even possible. Stronger types will empower users to understand their ecosystems.

I've spent countless hours in rails/django land trying to figure out what's even possible with an object that the ORM or whatever gives me. The human-flavored docs kinda outline it, but if you're in IDE-land, context-switching to prose isn't productive.

Types help humans develop and debug, but they make library authors jump through acrobatics to express what their magic does. This is a limitation of the type-checker implementation(s) not having a strong syntax or notion to capture the runtime-dynamic polymorphism, but it doesn't mean that the concept of types is a flawed idea or not worth using when appropriate.

Don't throw the baby out with the bath-water.
Thanks! Are you on a mac? Someone else noticed it on mac, just on the actual editor, so I thought it might be to do with rendering text on canvas (sometimes you have to use half-pixel coordinates to get things to align properly)
Or Women quit to take on more childcaring duties.
> We'd do native app downloads over the web and invest a ton of energy into security and privacy controls.

This has been demonstrated to be false. This scenario is exactly what we used to have in the windows PC era and no one invested "a ton of energy into security and privacy controls".

That unfulfilled need is exactly what propelled Apple to the #1 spot when it came to the mobile era.
> almost-empty container clearly marked 150ml (or something) confiscated

That's correct according to the TSA rules.

https://www.tsa.gov/sites/default/files/liquidsrule_example-...

(We can wrap ourselves around many axles debating the utility of these rules, but that's at least a correct interpretation of the rule.)
And that's why this result is exciting - not only is it promising for long covid, but also for post-viral fatigue syndrome and chronic fatigue syndrome.
Generally yes, but it has been a long time since 1990 and no corner of the Sunni world was entirely spared from Wahhabi influence, which brings radicalism.

You do not need 51 per cent of jihadis to have serious problems. 10 per cent is probably destabilizing enough.