skysight-inc/HackerNews huggingface dataset:
No, it doesn't. Custom manager attributes go between the two:

```

The order of model inner classes and standard methods should be as follows (noting that these are not all required):

All database fields
Custom manager attributes
class Meta
def __str__()
def save()
def get_absolute_url()
Any custom methods

```

And that guideline is not really a general guideline of how to make Django projects, but contributing to Django itself. It might make sense to keep that convention for projects build in Django, but that doesn't make this a style guide for those projects.
> Also, why are we using the contexts directly in the controllers and keep the top-level module empty?

Because the context is the “public API” for the rest of your application to use. You can have as many layers below the context as you want, often purely functional, composable, and testable.
The software is tied to a dependency chain of real people (passengers, crew, etc), real equipment, and lots of constraints. So problems have a downstream effect that's more pronounced and visible than many other spaces.
In the 90s he would answer Windows programming questions on usenet.
Hello there, long time no see! Hope you are doing well! Yes, you are spot on it is an unsolved problem, especially for a business that starts off small and then grows. No matter what stage you observe them at some things will be undersized because they were built in the past, some oversized anticipating growth that may never materialize and hardly any of it will hit the sweet spot. Growth is the killer for any architecture.
My brother has had life-long, serious mental health issues, and it's only been because of both medication AND life-long therapy that he has been able to reach a baseline of normalcy and being able to function. I think if you have a serious underlying mental health issue, that it often takes both the meds and therapy. I also don't think most psychiatrists feel they are "playing God." I think most genuinely want to help patients get better, to the extent they can.
3 different banners/popups showed up at the same time and blocked me from reading the content:

* Cookie policy consent banner

* "Subscribe now" banner (before I even got to read any of the content)

* "This is your first complimentary story" banner
All of this presumes that the person making these costs $0 per hour. Turning hobby into a business is rarely a successful scenario.

This screeches to a halt, the moment that you put into perspective. My typing this is equivalent to a few dollars, because most people here have at least $50 per hour engineers. Designing PCBs for existing modules(ex. ESP32) takes a very long time(and a lot of knowledge) and it's not just "put this chip here and have software figure it out".
While this is definitely true in general, Unison can unlock many context-specific guarantees even for data: the types are strict and expressive and it seems to have referential transparency.
I would guess that tests in this sentence refers to tests of the iOS app on the simulator.

Which would be slow expectedly
>The survivors of that genocide are asking we stop doing that.

No they aren't.

Three people are asking. Three people, who most likely didn't survive anything, and just realized that extortion is easy money.

_______

Vote on it!

Let's ask the actual members of the Apache tribes today how they feel about the name. We both know this is gonna be like "latinx" -- only white people (with lots of "education" and rich parents) care about this stuff.
Weird flex to claim not to have learned anything new since the nineties though.
IMO it's not a bad thing at all unless you have that exact div snippet copy-pasted to a thousand other files.
A long time ago I wrote a blog post about Celery use cases at https://nickjanetakis.com/blog/4-use-cases-for-when-to-use-c....

It applies to Django, Flask or any Python system using it. All of it still applies today.

It covers a few use cases on the before vs after of using Celery and touches base on why I'd consider using Celery over other solutions such as async / await. The TL;DR is Celery brings a lot to the table around tracking and retrying jobs. It's also nice to separate your web and worker workloads into different processes since they have much different requirements usually.
Cloudflare microservices (aka Worker) don’t inccur an extra network cost when they call one another. Good enough?
Here is a GPU implementation.

https://ieeexplore.ieee.org/document/9635657

It is somewhere from 8x to 25x faster than doing dense machine learning. The speedup was higher on the original CPU implementation and the GPU paper mentions that if there isn't enough shared memory on the GPU it will have to switch to an algorithm that has more overhead.

By neurons I actually meant "nodes"

My comment is effectively a summary of this article: https://www.kdnuggets.com/2020/03/deep-learning-breakthrough...

Edit: There is a paper for sparse spiking gradient descent promising a 150x improvement. I am not sure how practical this is because spiking neural network hardware heavily limits your model size but here it is:

https://arxiv.org/abs/2105.08810
Expected a 404 not found
Prohibition = Black Market without elimination. Trudeau got rid of cannabis prohibition because the black market simply ran through the Canada Post.

Gun control has an end goal of "If we banned guns worldwide, the supply would eventually dry up." But this is entirely unrealistic.

Regardless of gun control this will never change anything like the number of homicides. All the recent shootings in Toronto were from guns which were never legal in Canada.

Even in the USA with right to bear arms. It's really 50,000 suicides out of 300,000,000 population consisting of the vast majority of gun crime. Trying to help prevent suicides by gun control is ridiculously bad policy to ignore suicides.
Off topic but this is a real gripe of mine - analogue speedos that go all the way up to 240 kmph (~150 mph). I am only ever going to do half that speed, so why not just make the dial go to only 120/(80) and give the needle (and me!) twice as much precision!
Not OP but one I cannot look past anymore is when the movie has dialogue that is only there to spell out the plot to the audience.

Usually it's very small things - some background character gleefully shouting out the obvious in the only line they have in the production.

"Maverick's re-engaging, Sir!" From the radar operator in Top Gun.

"It's gonna blow!" In every bomb scene ever.

Etc.
First, practice

Second, read other's examples (eg MSDN, developerWorks, Docs.Splunk)

Third, practice

Fourth, get feedback (and incorporate all the constructive bits)

Fifth, practice

Sixth, focus on why more than how; leave out used to be in favor of this is now; be concise; crosslink other docs

Seventh, make it maintainable - you do not want to "own" this forever and always...eventually you won't be there: make it something someone else can pick up and run with (and not have to recreate from scratch)

----------

Some resources I've written (and a Wikipedia page):

- https://writing.stackexchange.com/a/33505/1317

- https://writing.stackexchange.com/a/33578/1317

- https://pm.stackexchange.com/q/799/167

- https://en.wikipedia.org/wiki/DIKW_pyramid

- https://antipaucity.com/2013/10/11/theres-never-enough-docum...

- https://antipaucity.com/2013/02/10/organizational-knowledge-...
Maybe this will be interesting to you. An open source graph visualization library called Orb.[1] There is a series of blog post that talk about the development and reasoning behind this library. [2]

[1] https://github.com/memgraph/orb

[2] https://memgraph.com/blog?topics=Orb#list
If projects have a "good first issue" tag, they can sometimes be a good place to start. The problem is they are mostly "add tests" or "expand docs", which are important but not very exciting.

Imo the best thing is to have a mentor who hopefully can find a reasonable thing to improve/add/fix and can help calm your nerves (submitting a pull request can be kinda scary haha). With NetworkX, in the past there were a lot of minor inefficiencies (things like materializing a list comprehension when you don't need to, etc) that are 1) easy to understand 2) don't require in depth knowledge of graph theory 3) are generally applicable to all python code and 4) easy to measure the results. They aren't the flashiest contributions, but the people I've done it with (6 or 7 at this point) have all seemed to enjoy it.

To be clear, I'm _not_ affiliated with NetworkX, but if you are interested in trying it out, my contact info is in my profile. Feel free to reach out.
I don't know... perhaps a bit harsh but article seems reasonable to me. I'm also yet to see "wow, what an engineering!" application that heavily depends on microservices. mostly it does feel like an unnecessary complex pile of mud.
I fail to see the use of randomly generated verbiage unless the exercise is reviewing the quality of randomly generated verbiage. Won’t add anything to the discussion otherwise. If unlabeled and sufficiently common it will drive the s/n ratio of HN below usefulness.
Knolling for Fun and Profit
Lastpass and 1 pass launched before any of those existed except bcrypt. And I am guessing PBKDF2 was selected over bcrypt because its PBKDF2 just had more academic review.
It’s not invalid. That particular counter argument you reused has been overused. We live in a relative world. Sometimes you do have to realize your perspective is off when you over internalize and take a narrow view of just your own predicament.

When you over emphasize your own situation without considering what the average situation is like, you exit reality based thinking and enter fantasy world. In fantasy world you operate with fantasy expectations, and since it is a fantastical expectation, when you don’t achieve it in the real world you enter misery.

One must stay grounded, and finding just where the ground is from the air requires you to look beyond your own cockpit. Check the measurements, find the horizon line, look for buildings and yes, other people on the ground.
> The old adage, less is more, is something that should be taken into account with programming language design.

This is a case of less is more, in a way.

Instead of having to learn an entirely different, half-baked language to do metaprogramming (C defines/macros), you just have Zig.

The only problem is that even though this approach leads to less additional added syntax for similar tasks, Zig unlocks potential for metaprogramming that goes far beyond C macros. And like with C macros, this could be abused. It's up to the user not to take it too far.

But yes, there's issues with debugability. I hope Zig improves that
It's trivial to find every possible call site of a function in a Unison codebase.

I agree that patching other people's code is not always possible, or easy. On the other hand, you can patch your own library using indirections to the new version.
Haiku beta 4: a thing of beauty
Sure, but you don't have to switch between types of files, syntax, etc. "Barely makes a difference" seem subjective, so YMMV.
I went to Wikinews (now) and there isn't a single mention about all US flights being grounded. https://archive.is/rtugM
Raymond Chen is the OG of Windows development.
shrug. find a business partner.
Terraform was made for exactly the reason you stated ("single language for all kinds of cloud infrastructures")

It was also made for non-developers to be able to deploy what someone else built "anywhere"
I think most tech/tech-adjacent communities are welcoming of reps once they behave well. I can think of quite a few, including at least one who made a lasting impression on me (Tony from Amazon on the CAG forums).
They're resuming operations despite "still searching for a cause." Comforting.
I would argue the inverse. If you reject both extremes, and are somewhere in the middle, you probably are much closer to something reasonable. (both in engineering and when driving)
Official Django docs do NOT say the `class Meta` comes __immediately__ after the fields.

The docs give the example (as linked by you) looking like that, but few chapters down you can find this:

The order of model inner classes and standard methods should be as follows (noting that these are not all required):

All database fields

Custom manager attributes

class Meta

...
it depends how we meet. if i meet someone through a dating site or some other matchmaking process, i would want to known soon whether we have similar goals in life. and if the goals line up we can go deeper and explore our relationship. if not, we can keep looking for someone else.

but i actually feel that dating itself is not a good approach to find a partner.
it is an artificial situation disconnected from your normal life.

it would be better to be able to pick your partner from among your friends, and then spending time with that friend and others as you get to know each other more. many qualities, interests and goals will naturally reveal themselves and common interests and goals will cause you to spend more time together.

dating makes this difficult because you are switching from relaxed activities with friends to a very formal meeting with high expectations where not getting invited for a second date counts as a failure without much hope for another chance.
>That is a good and useful thing

As long as you manage to pick it up, which I'm struggling with - you have to approach the problem from an entirely different angle with an entirely different paradigm. I'm struggling with adopting Nix on my personal machine for the same reason - I get `dnf install foo bar` but I don't get `I want foo and bar installed on my machine.` I want my machine to do the stuff only when I explicitly ask it to do stuff and only when I explicitly tell it when to do it.

UPD:

>If you ever watch terraform deploy a complex (10+ dissimilar resources) infrastructure it comes close to magic how it discovers what already has been done and what still needs to be done and in which order.

But why would you have half-ready environments you aren't even aware of state of? Isn't our job about having as little magic, mysteries and unknown variables as possible?

I'm a big opponent of magic and, probably, one of bigger fans of KISS - simple implementation, not simple usage.
If we want chatGPT to make this decision, here is its answer:

"Should HN moderator identify responses written by ChatGPT and flag them as spam?"

Whether or not HN moderators should identify responses written by ChatGPT and flag them as spam is ultimately a decision for the HN moderation team to make based on their goals and community guidelines. However, I believe that it would be more beneficial to have a clear label on text generated by AI, so that readers are aware that it has been generated by machine, rather than flagging them as spam. This can help readers to understand the quality, context, and limitations of the generated text.

Additionally, it's important to note that AI-generated text has its own value, for example, for answering frequently asked questions, summarize long documents, or even for creating new content. Instead of treating all AI-generated text as spam, it could be useful to make a distinction between those that are harmful or misleading and those that are useful and informative.

As a rule of thumb, transparency and clear label for AI-generated text should always be promoted to foster trust and clear understanding of the capabilities and limitations of the technology.
> infect fresh install Windows machines a few minutes after they were connected to the internet

yes - because back then, NAT'ing / putting a machine behind a router wasn't commonplace yet.
https://developer.hashicorp.com/terraform/intro
What if you need to render your button component as an anchor element? Or as a div with role="button"? You will want to abstract your button styles somehow so that they can be shared between these three (or more) use cases. Sure you could experiment with using a polymorphic `as` prop to render your button component as any element, but if you're using TypeScript that can get complicated quickly, especially if you're then trying to use that component in conjunction with something like next/link or react-router/link. It's simpler to strip default styles from all your components, and then have a button class to add to any element you want to appear as a button.

BUT, then what if you want to add some kind of special behavior to your button that involves subcomponents, e.g. a loading state that conditionally renders a spinner inside the button? Or you want to provide convenience props like rendering an icon before or after the button text? Then a class is not enough.

If you're building a design system/component library, none of these options are simple and there are always tradeoffs.
Wrong, milliservices are the way to go! Maybe centiservices, but no further!
In some sense it is. It has an interface that your program communicate through. It might be loaded separately in memory (or even shared between several programs). That’s kinda of a local microservice.
> Remember that movies are HIGHLY produced works, each item in a scene, the color and angle of the lighting, the angle and perspective of the camera, the editing (types of cuts, speed of cuts), any sound you hear, etc, those were ALL specifically chosen, if not outright preplanned by the director and his team.

This is true of good films, certainly, but films like the ones Roger Corman made, or Ed Wood, well, neither of those directors were friendly to the concept of second takes or wasting time in general. (Corman because he was immensely proud of how none of his films ever lost money, Wood because he simply wasn't that good of a filmmaker.) Similarly, cinéma verité projects are more friendly to things that just happen, and Dogme 95 leans into this as well: Naturalistic film, film without artifice, film without props brought in from elsewhere or lighting effects... it all reduces the number of choices the director can make and, therefore, the number of things which can be said to be the director's choice.

But, yes, the average mainstream (Bollywood/Tollywood/Hollywood) production is very highly managed and someone (possibly the director, possibly not) actually is in complete control over what ends up on screen, even if the film goes through multiple writers and directors and the editor is the only one who leaves a consistent mark.
Thanks, I didn't know Brotli! Indeed it seems to include a dictionary in its compression which seems to help significantly with small pages. I hope compression continues to improve in this way.

> To my understanding, that static table in HTTP2 is directly in context of recommending and discussing Brotli compression

It seems separate, that would be a header compression for HTTP2 header itself, while Brotli encodes content (usually html, css or js).
The Ukrainians Trying to Run Startups in a War
Curious - what use case(s) do you envision this being desirable for?
It can be learned. I didn’t “get it” much until I was older. Most recently for me, Station Eleven (HBOMax) is so full of “deeper meaning” in every scene, I’ve rewatched it 5 times and still get moved by something I didn’t catch previously. I suggest watching it and the cast/crew talks after each episode.

I still have a hard time getting it from books, but I think I’m getting better.
It turns out you can't make complexity go away by moving it around.
"Guys it's really easy to win an argument when I just make up what the other side is saying." !remindme all of human history

This is a specific point about people being deceived by the very questions they ask, not a generalized comment about the AI.
DriveDroid- an Android application that allows mounting disc images and causes the phone to appear as an external optical drive or USB flash drive.

I essentially keep an Arch and Windows 10 boot disc on me at all times.

You can also create blank images and it'll act as a flash drive.
Written by Donald E. Knuth. Pretty interesting!
Yeah. Or a simple cron wrapper like django-cron to get the best of both worlds.

For background tasks - you can just spawn a background process and keep a simple status table in the db so the main app can check if it's completed (assuming you even need that)

And for task queues that can handle the traffic most sites will need there's things like django-huey.
>to be fair, when "to" and "too" is not a typo, its quite insane.

Huh?

It's not only almost always a typo (as opposed to the kind of mispelling where the person writing doesn't know the difference between the two spellings), it's also a typo that's trivial to make.

Doubly so if you have ADHD, and ten times so if you have dyslexia. But even for the average person, it's just an extra easy to slip o, and as a spelling looks totally legit at a quick context-free glance (which makes sense, since both to and too are actual words).

Literally the opposite of a mispelling "quite insane".
This is why I have a hard time getting on the Tailwind bandwagon. It feels like a pipeline equivalent to "margin: 1px 0 0 4px;" and other element-specific stylings _everywhere_.

CSS brought some opportunity for structure. At least it started out as "define a common style for a thing", and then if you really wanted to make a small deviation you could inherit and override something from the class.

Could be that since I'm not a frontender I just don't get it, but to me it feels like "global variables everywhere".
23andme is little more than a grift to steal your genetic data, providing some vaguely interesting, possibly untrue information in return.
> On implies that despite being an accident it was somehow intentional.

Sorry, that doesn’t seem inherent to the preposition “on”.

> By implies some process not within your control.

“We’ll do it, by hook or by crook.”

Also, it’s odd that you want to be this pedantic but not out the referenced prepositions in quotes so they’re not taken as being applied to the following word.
So you embed S3 into your app? Do you embed your ERP system? How about your marketing e-mail system? Your CRM? Do you use an in-process database?

Everyone already has a service based architecture whether they want to admit it or not. The question is the efficiency and granularity of it.

If you interface with any external systems that have data records (ERP, CRM, etc), your database is already spread out. You need to deal with it and be sure you understand the data efficiency and reliability of it.

I don't know what a monolith is that people talk about. Please show me one that doesn't talk to anything else.
But using Terraform with $CLOUD implies that you are familiar with $CLOUD - then if you know $CLOUD and bash why would you need to use Terraform to work with that cloud?

Also, as stated in a sibling comment, all the commands, expressions and capabilities of Terraform differ based on your $CLOUD, so in the end it's not that universal.

In fact, it's not different from bash - bash is always the same, you just type `az` instead of `aws-cli`.
It's more difficult to design and build pins for longevity in a cable? I think the logic with Lightning is that Apple can build a very structurally sound connector with pins inside the phone. After all, we have seen few issues with pins in phones failing.
That API is usually a web API right. Essentially Library + REST/GraphQL/etc is a microservice.
Yes, this is one feature we are working on currently and us almost ready. We will keep you posted if you sign up.
I meant SideBarItem's implementation is the tailwind div, but is referenced as SideBarItem like any other React component, not that the tailwind div is pasted all over. :)
>Your X is a shit and it crashes every second?

Companies that repeatedly fail to detect and solve this type of problem using automated testing and QA are exactly the companies that lack the sophistication to do distributed microservice architecture.

Learn to do proper CI/CD, end-to-end testing, and logging/metrics on your monolith before you decide to transition to microservices.
Haiti left with no elected government officials as it spirals towards anarchy