skysight-inc/HackerNews huggingface dataset:
>Are you aware of a large models.py for reference and learning purposes? Is it expected to define the schema of all my models in a single place but none of the logic?

Django models are normal python classes. Depends on exactly the logic you're dealing with, but generally you can make logic be a method on that class. Try to avoid logic that spans multiple tables in general, and if you have logic that does span multiple tables you probably want it to be a function and not a model method.

There are also signals that get sent on different things like model delete/create/etc, but they're to be used even more sparingly.

Logic for querying data should probably go wherever you're going to use it and you should just pass the model objects directly to your views. To start don't worry about optimizing queries or the n+1 problem, but as you get more experience you can use `prefetch_related` in order to avoid the n+1 problem.

>Also, don’t you run into scenarios in Django where the automatic migration is not enough and you need to provide custom commands? In such cases, how do you provide them?

You shouldn't generally need to. That said django's migration system is very powerful and you can hand-write a migration if you need to.

>And can you have scenarios where you have two models pointing to the same table, but perhaps to a subset of fields (this is specially useful in read-only cases)? How is that handled?

I mean you can using proxy models but that's not really a thing with django. Models are for developers and generally developers have all the permissions any way, so the solution to making a model read only is to just not write to it. If you want to present a read-only model to an end user you can reference it in a view of make a read-only serializer with django-rest-framework. It's python, not java, there's no such thing as private/protected members just convention to put an "_" in front of things other developers probably shouldn't be messing around with.
Yeah...I see more and more China in the U.K.

The U.K. has a wide-reaching internet censorship scheme too:
https://en.wikipedia.org/wiki/Web_blocking_in_the_United_Kin...
I’m curious how the appeared on your statement. Did a transaction of money coming into your account disappear?
This is true for apple pay but not in the banking apps, if FaceID fails in the banking app it asks to reauthenticate yourself with your mobile bank app credentials.
Yeah, shopping for non-Apple laptops is basically a big game of “choose your caveats”. That’s fine if you only need one particular quality of the laptop in question to be good, but I think most people are best served by well-roundedness.

Your chances at getting something somewhat well rounded improve if you get up into MacBook price ranges, but even in that range there are a lot of machines with weirdly lackluster aspects.
You can also backup your Bitlocker key to an USB-Stick or external HDD. When installing Win11 they even ask you if you want to back it up on your MS-Account or an external device.
I assure you I didn't (to the OP).

And some people speculate my daughter may have logged into an account on my computer—there is no possible way, and at home she only uses one of two other devices (and at her school they don't have students log in off premises anyways), and my two computers are locked at all times when I'm not around.

In addition, assuming she were able to get access to one of my computers, the password manager is behind face/Touch ID and locks automatically after each use.

I spent a couple hours digging through all the emails we got from her school too, for the month preceding her entry into the school, and I saw nothing about any online logins, not even a link to any kind of portals or anything like that... just consent forms, welcome messages, and the like.

I've been racking my brain for a logical explanation as to why my personal email (and the password associated with my personal Microsoft account—which has been used to login to Azure in 2020, years before this mess) has been associated with the school's tenant. I can't find any.
Insert obligatory Severance joke here
> If ever there was an indicator of a privileged existence, fucking about with coffee is it.

I don't disagree but this is a little harsh for what can be a relatively cheap hobby and a great way to support local businesses. If someone is a coffee drinker anyway, has a spare 5 minutes, and can stomach like $100 entry cost and higher cost beans then do we need to knock them down for it? Sure people can go overboard and that's pretty gross, especially when the production side of things is not getting the same level of attention.
This is the old scaling laws paper. The scaling laws in it turned out to be wrong and superseded by the Chinchilla DeepMind paper: https://arxiv.org/abs/2203.15556
Even better: don't press. Let the grounds sink to the bottom and don't drink them.
It is for this reason that I do not have any financial website, email, or Keepass database passwords in iOS/macOS keychain.

It is trivial to access all of someone’s passwords in keychain if you know their iOS passcode.
> What microsoft seems to lack is caring about user experience as they slather feature layer after feature layer on top of their products.

That's the problem of selling something to the supervisor and not the actual user. MS has had that corporate world as a cash cow for three decades now. They don't care about the end user they just care that their product looks better in the slide that compares it to the best alternative.
Much, much better. I can count on no fingers the number of school massacres in the UK this millennium.
Are you going to have a conversation with yourself? I suppose XMPP is federated, but would this ban a group of friends using the same XMPP server that's administered by one person? What about services that aren't federated? It would essentially criminalize running an instance of anything and sharing it with friends/family/others.
On https://en.m.wikipedia.org/wiki/Democracy_Index the UK is one the most democratic countries (18th), significantly higher than the US (30th)

Edit: To be fair that’s done by a UK-based company but I don’t think they would have much reason to be biased
No, but I do keep getting daily notifications in Russian on my google calendar at like 11:30 at night, that I've tried to remove multiple times (including unchecking something in gmail that lets it automagically create google calendar entries based on events it detects in your email) and it still keeps coming back.

I've pretty much just given up on it now, I kind of use it as a reminder to go to bed at this point.
That isn't exactly fair. While shoulder surfing has been around forever, Apple has made it possible to reset everything -- including changing account recovery codes, thus locking you out of your account forever -- by learning a short PIN.

Also, some comments on the article indicate that this only happens if you enable 2FA. If you don't enable 2FA, iOS demands your account password before making changes. That's a big deal, and something people should know.
Is there a new best place to go?
A wonderfully British comment. Grumpiness, malarkey, Costa Coffee, Lidl, fannying around. It's got it all.
Yes- Sweden has had rising gun and gang violence over the past decade.
Companies wouldn't ship prematurely and broken if consumers/customers cared enough to stop using them. Scale, network effects, etc, have all come together to ensure that this essentially never occurs. Worse, really, people will passionately and irrationally defend garbage.

The "first mover advantage" and such is a reality created by consumer/customer behavior, not by "tech" companies using the world as a pool of beta testers.
I'm currently living in Nashville and it has an especially terrible built environment. It is one of the most car brained cities in the entire country. The fact that you have any sidewalks at all is exceptional in this place.

My daughter's school is under two miles away, but I can't let her ride her bike alone because it is terrifying. I will sometimes ride with her though.

To get there one has to cross a huge stroad and motorists frequently ignore all traffic regulations. They look at cyclists and pedestrians as obstacles and their hatred is visible in how (and what) they drive. My daughter's bus driver told us that people don't stop at the red stop lights on buses here and I have seen first hand motorists pass and honk at buses that are actively picking up children.

Cities don't need to be built this way, Nashville is just an especially bad place to raise a family. A sibling called it a nightmare society and that is close to correct.
Samsung and notch are maybe copies
Apple's ridiculous design (and some functional software) patents that they reasonably believed would never hold up in court.
So you were being an intellectual when supporting undermining of a sovreign nation's abilitu to self-determine their fate? Look at the mirror.
PayPal isn't a bank. Banks are held to higher standards regarding customer funds.
Apple, fortunately, doesn't require any account signins to use anything that comes out of the box on a Mac, iPad, or iPhone.

I know this because I have one of each running in my home with no associated cloud accounts whatsoever.

They do nag you a bit (not aggressively like Microsoft, who is like "are you sure you want a terrible experience using this computer?"), but it is entirely possible to be productive outside of the iOS ecosystem, which does require an account to load apps.
Both paths are fine. Where you're staying is irrelevant. Build the business.

But I'd guess you can build it faster from your parents' house, and they might be some wonderful allies along your path. They're almost certain to have more to offer, and to be more loyal than your friends and roommates.

Good luck.
I understand the dread people have for these scans, more noise than signal

With that said, if your application doesn't need these things, why are they in there?

Time and effort, usually. So there's a choice; continue chasing the vulns or you can improve your builds.

You get out what you put in, the process can be valuable. It's not because cargo-culting.
How many of these containers were pulled down from the web vs. being built in-house and slimmed down or built slim to begin with, meaning they only have the binary files absolutely required by the application?
They did that to me when I was fresh out of high school . Did some js/html fixes for a few days for some guy and got $200. A few weeks later, original hirer charges back Upwork (I contacted him and he told me it was a different work that wasn't delivered by the other person). Upwork goes into damage control and sweeps my entire balance and tells me it is part of their policy. They claimed they would return it if they won the charge back claim.

Never went back.
I find I use the stepping debugger more and more as I get more experienced. Watching the live control flow and state changes allows me to notice latent defects and fix them before they ever cause actual problems. Developers ought to step through every line of course that they write.
With Phoenix 1.7 being released, will there be a new edition of "Programming Phoenix"? The latest one covers Phoenix 1.4, which is already slightly outdated.
I think having an up-to-date book would be of great value for Phoenix beginners :)
I am not talking about people wanting to be rich. I am talking about people who want a stable paycheck and a middle class life.

A lot of performative outrage seems to be propping up a very large white collar industry of sensitivity training and related roles, and a lot of it might go away if there were more alternative, stable white collar industries that were related to skills taught in college and did not require constant learning and new skill acquisition.

I also think people who have a hard time learning new skills at the ever increasing pace technology demands lean on performative outrage as a way to scare employers and increase job security. If people felt more stable in their jobs, another chunk of performative outrage would probably disappear.

And I also think a lack of social belonging and attention from things like family and neighbors you’d get from a middle class household experience leads people to use performative outrage to get a fix of attention they’re missing.

I combined a lot of those ideas/what I’m saying may not have been clear, but those are all side effects of a shrinking middle class and pathways to the stable mass achievable paychecks that enable it.
I enjoyed this comment.

A judge in Colombia said he used chatGPT: https://forogpp.com/2023/02/03/a-judge-in-cartagena-colombia...

own ranks? treacherous use? check?

When automation came for factory workers, the exploiters cheered. When it came for the service jobs, the exploiters cheered. When it comes for the knowledge workers.. well, the exploiters will still cheer, just that the bullshit job class (https://www.atlasofplaces.com/essays/on-the-phenomenon-of-bu...) will suddenly realize that they were never a part of the exploiter class to being with. They were just servants convinced that they were, like Heinrich Popitz' deck chair guardians on the cruise ship...
What a load of alarmist nonsense. Who is the royal "we" in this article's title? Clueless Wall Street Journal reading "victims"? Or just curious people that signed up for this. I believe it's the latter.

If you don't want it, don't sign up for it, or opt in. Refrain from using it. Very simple.
The only weapon you're allowed to carry in the UK is a disapproving look.
People who are fanboys of these massive companies are so weird to me.
How to Moor a British Rigid Airship: The Cardington Mast [video]
The screen time feature is actually listed in the linked article, at the bottom of this one:

https://www.wsj.com/articles/stolen-iphone-passcode-security...

> • Enable additional protection. Some apps, such as Venmo, PayPal and Cash App, let you add a passcode. Just don’t use the same one as your iPhone.

> You can also set up a Screen Time passcode for yourself, then enable account restrictions to prevent an Apple ID password change, the way parents do with their kids’ devices. In Settings, go to Screen Time > Content & Privacy Restrictions, then toggle Content & Privacy Restrictions on. If you haven’t already set up Screen Time, you’ll need to choose a passcode. (Again, make it different from your iPhone’s.)

> Scroll down to the Allow Changes section, and where it says Account Changes, select Don’t Allow. Whenever you need to access your iCloud account settings, you’ll have to go to Screen Time and re-enable this.
The law, in its majesty, forbids rich and poor alike from mugging.
If you need to change it, you would add it to the migration, schema, and then in the necessary templates. Some fields are private, read-only, etc. so you would change your templates accordingly. Some fields you want to change via a button press, others via a form, and so on. The whole point is that you can evolve the generated structure based on your needs.

> (i.e you can use views if you want and think you need them)

I was mostly speaking about existing applications. New applications have a clear path forward.

I don’t think this strengthens your argument the way you think. I _bet_ Django also has features that were used in the past and are no longer favored now, but still supported for backwards compatibility. This is in no way a phenomenon exclusive to Phoenix.
which is why it's not a good analogy: you make a powerful tool like "programming language" easier to use, you get more people with the power to write programs. You make an unreliable and brittle tool like ChatGPT easier to use, you get more crap content on the Internet.

Not saying that there won't be good use-cases for Large Language Models, just saying that the analogy doesn't work: these things will be useful if used by competent people in very specific use-cases. The way ChatGPT is used now is just to generate a lot of hype and middlebrow content: with that in mind, I think its low barrier of entry is actually a negative (it causes things like this: https://www.npr.org/2023/02/24/1159286436/ai-chatbot-chatgpt...)
AML rules are sadly very Kafkaesque. Having worked in finance for over a decade I've done enough compliance training to know that, yes, if money laundering is suspected you literally are not allowed to help the customer. You're not even allowed to tell them WHY you're unable to help. Failing to do so can make you, personally (the worker), criminally liable.

Telling the client "I'm sorry, your account is frozen pending an investigation" might land you in jail. You literally MUST lie to them and feed them a bunch of bullshit.

It's a shitty system, but interestingly, one that was developed by the EU, not specifically the UK.

Your options are; wait until some nameless government agency realises they've made a mistake, and releases your funds, or start a lawsuit and spend lots of time and money fighting to get your money back.
Iran doesn't have much reach outside of Iran. The UK does.
The Nokia G22 is HMD's first phone built with repairability in mind
Tesla applies for patent for ‘ultra-hard steel’ for Cybertruck
I've never heard a single person who had positive experiences with Microsoft's cloud services (OneDrive or One*) and yet, every organizations seems to be slowly taken over by it.
Defining a problem by reference to the amount of the legislation proposed to tackle it seems somewhat backwards. By that logic, Europe has a much greater gun problem than the US does, and its people are terribly confused by the geographic origin of food and drink.

> As for decline....look in the mirror.

I’m in Europe, so I can just look out my window. It’s very pretty! And completely sclerotic and dysfunctional.
Until you plug in an external monitor and the MacBook Pro overheats and fans up so you have to close the lid which muffles the mic.
Genomic Analysis with Metabase
New things come and

Increase economic inequality.

And so what if someone looses job to ChatGPT? Not a shortage of jobs out there.

It gets increasingly harder to qualify for these new jobs, and those working the "easier" jobs will once again become poorer. This process is unsustainable.
I found this part fascinating:

> In 1282, the administration passed to two bridge wardens, chosen from the citizens of London, who headed an organisation called Bridge House. Its rent books, accounts, and leases are the main sources for our understanding of the history of the bridge. Bridge House still exists, and its investments are today used for the support not only of London Bridge, but also Southwark Bridge, Blackfriars Bridge, Tower Bridge, and the Millennium Bridge.

https://en.m.wikipedia.org/wiki/Bridge_House_Estates

Apparently the organisation today has an endowment of £1.5bn! And is still responsible - 741 years later - for maintaining the Thames bridges.
A bit of a difference in motivation between a hobbyist and a VC.
Who cares about stupid internet points dude? Fuck reddit and fuck every website. I want the 90s back god damnit. I want no begging. I want no dollar signs. I want awesome internet.
Hi, I wrote the Linux kernel drivers for speaker output on the new ARM64 Macs, so I can shed some light on this.

> I wonder how they model the energy output of the speakers.

Simple. The speaker codecs (special made for Apple, but e.g. compatible to https://www.ti.com/product/TAS2764) give you current/voltage measurements you can calculate the power from. It's what they call I/V sense.

> In principle you could have a function that calculates the energy of the spectrum and integrate that over time.

Right. You don't want to do the calculation in frequency domain since that would be wasteful. You can integrate the power of the samples straight away (here by multiplying the instantaneous voltage and current, if we didn't have that, we could at least estimate it by assuming a constant resistance of the speaker coils).

> If you put out too much energy, what do you do? Reduce the overall volume, apply a frequency cutoff, or a low-pass-filter?

You model the coil's temperature. If it comes near a dangerous level, you reduce the volume on the particular speaker. You don't need to worry too much about this since usually you don't hit the limits, you are merely guarding against especially nasty sound input.

> I feel there are so many variables here, and it is going to be hard to replicate what Apple does.

We don't need to replicate what Apple does. Though we are stealing the parameters for the coil temperature model Apple is using (at least for some machines).
But if that happens then why would the AGI stop at one planet? There’s a whole universe to optimize!
I've given this 3 reads and I still don't understand what he wants to say and I'm producing music since 2001, not a professional level, but still :) Is it a software or a hardware trick by Apple? I'm totally confused :)

I've assumed that Macbook Pros sound great because Apple put decent speakers into it and the alu-body picks up resonances much better than plastic ones.
But why would you need to in this case, since the article is about the UK? Just to start an internet fight I guess.
You can run some empirical tests to find a safe limit.
Wine Wayland Driver Takes Another Step Closer to Mainline
From the main developer:

"This is the first of (many) parts in the upstreaming of the Wayland driver for Wine. Since the amount of code and commits is large, my approach is to upstream the driver in multiple parts in a serial fashion, with each part being a cohesive (to the degree possible) set of not too many commits. When each part is reviewed and merged, I will move on to proposing the next part. My main goal with this approach is to make reviewing easier and more focused. If you have other ideas about how to improve this process for the reviewers, please let me know.
A lot of pieces need to fall into place before the driver becomes even remotely functional, so, some MRs (especially the initial ones) will be a bit more preparatory in nature. To aid in the understanding of and justification for some of the code introduced in such MRs, all the remaining driver commits are always going to be available at https://gitlab.winehq.org/afrantzis/wine/-/tree/wayland."
I love forth and stack based languages in general, writing a forth implementation has become my standard way to learn languages. Lately I have been playing with MinForth[0], it transpiles to C so you can effortless mix C in with the forth and get easy access to C libraries, good fun.

0: https://minforth.sourceforge.io
I am in a similar situation as well. The company at which I am working as a trainee engineer has a small team dedicated to Elixir and Phoenix. I have a choice between Ruby with Rails and Elixir with Phoenix after I am done with my training. Elixir intrigues me because it is so different from the programming I learned at college, but I am also anxious about shoehorning my initial work experience into a niche technology that might be difficult to find a job in, a few years down the line.
Prices and Policies in Opioid Markets [pdf]
This is another excellent point. The standard (traced back to Thomas Jefferson and in The Constitution) is that patents are intended to be granted on "inventions" that are "novel and non-obvious"[0]. Obviously, as shown in cases like this, that's highly subjective and as I've been educated, this all comes down to a jury (with the games of jury selection and all) - a bunch of random people off the street with no background or understanding of any of this - and that's just how the attorneys want it.

In modern times "To promote the Progress of Science and useful Arts"[1] usually ends up having the opposite effect. Literally in The Constitution (a document from 1787) - Article I, Section 8, Clause 8.

[0] - https://ipwatchdog.com/2021/03/05/balancing-innovation-compe...

[1] - https://constitution.congress.gov/browse/essay/artI-S8-C8-1/...
This route is the same I took. The automatic machine pays off on your time for sure and just by having whole beans ground you will see an enormous flavor improvement.