skysight-inc/HackerNews huggingface dataset:
Look at the existing code base and try to make your code not look too out of place.

That's what I do with any codebase I get staffed on, at least. I don't need a coding guidelines document to determine what's expected. And if I commit any oversights or transgressions, a few code reviews should sort that out.

I understand not everyone can do this well, especially junior devs, but hopefully with it being pointed out in enough code reviews better habits with the codebase start forming.

I've worked on a couple of teams that had coding guides, and I looked at it once but never again after that, and most people didn't seem to follow it too closely anyway, everyone just seemed to coalesce around an expected code style eventually.

Maybe other people have had better experience with coding guides than I've had, I don't know.
The open web is not dead. Unfortunately it will be soon, where "soon" is roughly a decade or so. If you haven't seen the signs of it dying a slow death, you've been hiding under a rock. I totally agree with you about walled gardens and enshittification; but I see no way to stop them.
Well, it is The Guardian.
Rubber: a self-guilded polymer expedition
The history and chemistry of rubber explained in a series of fun, interesting articles
See: https://en.wikipedia.org/wiki/Kolmogorov%E2%80%93Arnold_repr...
It is still cool to own an iPhone, even though everybody and their mother has one, and they all look the same.
Wait upon quick glance Vite doesn't come with SSR support ... ?

Yea guess I'll stick with NextJS
1. France accepts large amounts of immigrants - Fact.
2. There is no separation in these stats by country of origin, race, etc - Fact.
3. It is proven in numerous stats around the world that immigrant reproductive rates are much higher than native peoples in the West - Fact.

Given these facts as I've laid out, it is really quite inflammatory to call a proposition "BS" - especially without any contradictory evidence provided.

Free speech is vital to a functional democratic society.
Japan's eldercare system has been held up recently as something Western nations should aspire to, but the reality is complicated:

https://www.historyandpolicy.org/policy-papers/papers/the-ca...

Basically - having supportive family take care of you is great, when you have supportive family. Not everyone does. Even in Japan, with a long Confucian culture, they had problems with elder care being too much for younger family members; with elderly being neglected and left to fend for themselves; and even with elder abuse and homicide. Now try applying that to America, where the social fabric is frayed, the norm since WW2 has been for children to move away from their parents in adulthood, and many people don't even have functioning intergenerational relationships at all.
"Andy giveth, but Bill taketh away" (1998 and earlier): https://youtu.be/BUud1gcbS9k?t=3114
> Please don't pick the most provocative thing in an article or post to complain about in the thread. Find something interesting to respond to instead.
That is not, in any shape of the phrase "100% free" and incredibly dishonest advertising.
Well, to a point that's true: there is a not-clearly-defined line about what's copyrightable when it comes to the amount of text that's reproduced without explicit permission (as a matter of fact, that might be the same thing OpenAI is using as a loophole to consider their model immune to copyright claims).

Basically, I can't copyright an "article" which only says "This is an article." — there is high probability of someone coming up with the exact same wording, so you can't get protections for it. How much is too much is definitely left up to the interpretation.

Finally, unless one of those contributors takes him to court (external party like EFF or FSF can't protect your rights, you have to do it yourself), it's unlikely he should care. If one or two people do, there's also a relatively cheap option of rewriting just those parts too: court won't try to challenge other possible license issues.
Vendors have consistently ignored multi tenant issues when coding because gaming doesn’t need it and cloud traditionally hasn’t used GPUs all that much.

You’d be surprised by how many security issues exist in GPU drivers
NIST recommends creating separate "Authenticator Assurance Levels" to balance security with UX:

https://pages.nist.gov/800-63-3-Implementation-Resources/63B...
Retailer Game Is Officially Ending Physical Trade-Ins in the UK
There’s so much numerology in the world, even among smart people, that I think this is worth being pedantic about:

There’s no such thing as a “four-digit number”, only a four-digit base-10 numeral. And facts about base-10 numerals aren’t facts about numbers.
My problem is that people use this as an excuse not to consider optimization at all initially, because they think that once they have a working version, they can "just" profile and optimize the slowest few functions to get ideal performance. From the point of view of that singular task, yes, they achieved an optimization objective. From the point of view of overall performance vs what was possible given certain hardware, they could still be several orders of magnitude away from optimal.

A profiler can't tell you that an entire operation would become completely unnecessary if you maintain a certain invariant elsewhere, and this can go as far out as you let it, e.g. entirely changing your in-memory data model to prepare it for the operations you know you'll be performing in the critical path.

I know because I've been fortunate to work in environments full of seasoned experts writing world-scale software in C++ and Rust, that I was still able to optimize 100x-1Mx by zooming out and solving the same problem from a new perspective, something a profiler cannot help with.

And I'm _nothing_ compared to the people that come around and make it another 10x faster with SIMD or some cutting edge computer science research I'm not across. (Remember when NFA regex was a breakthrough and now looks like a joke compared to DFA?). Even a profiler hinting that a hot function might benefit from SIMD can't tell you how you should arrange your overall data structures to fully benefit from SIMD, or cache locality for that matter.

This isn't an attack on what you said, and what I'm saying is bordering on incoherent because there's so much more to the performance optimization iceberg than the "profiling" tip that most engineers are permanently stuck on. But no, every time aggressive holistic optimization conversations come up, more than half of the audience will dismiss it as "premature" or insist on just profiling and decline to learn anything. Then people like me have to inherit and rewrite their projects because they've ground our global scale to a halt.
This is an interesting topic. Nowadays, the American concept of "war on drugs" is really ubiquitous, but for a large part of humanity's existence, drug business was considered legitimate. Pure cocaine was freely sold in pharmacies until 1914 or so.

I am not that sure if our current moral position is the final one. At the very least, marijuana prohibition has swung from almost universal to a shrinking set of the most conservative US states.

Similarly, opium prohibition may not be a thing in 2050 or 2100 again.
Doesn't look like he's 40.
Yeah, US model is that we prefer independent living for seniors as long as possible, then living with family, and only then assisted living (not that it always goes that way, but that tends to be the ideal) at which point not enough seniors in assisted living are capable of helping others for the Japanese model to work.

It’s a bit of a chicken-egg problem in the US—we try to keep seniors out of assisted living because it’s incredibly expensive and has a reputation for poor quality; those things are the case because they require lots of paid labor, but also don’t pay great, resulting in high costs but also often-not-great quality; so seniors who have other options tend not to enter assisted living, so capable seniors aren’t around to do any of the work that might reduce reliance of the system on paid labor…
That's different though because there are social and legal reasons not to do it.

Also, the pool of people that can imitate a skilled artist is much smaller than those who can prompt "in the style of Picasso...".
Yes, then they blame the economy while paying their 50k euro car lease and commenting on Facebook on their 1k phone about their 4k trip to Japan.

I see so many people in Europe my age as I described blaming it on money yet spending like there's no tomorrow.
It takes less than 5 minutes to write out the Standard Model Lagrangian too :)
Check out https://en.wikipedia.org/wiki/Kaprekar%27s_routine

At a glance, there seem to be some patterns, like how for those bases with a 2-digit Kaprekar number the sum of the digits is base-1. There must be some number theory explanation for it.
Control theory doesn't come up much in what I do but as a practitioner are Root Locus ever utilized? I've been unpleasantly surprised to see that exact positive feedback instance existing in places you wouldn't want (things wobbling above earth after a control input). Poles and Zeros felt like a lot of magic until a foray into complex analysis ripped that band aid off ;)
I’m such a hipster, I’ve shed hipsterism and become mainstream.
> Why would we assume anything? [...] What is the pinnacle of human achievement?

I dunno, you introduced this line of questioning. You're the one who talked about assumptions. Isn't it up to you to answer it?

> Clearly not art if we measure it by how easy it is to automate

No, "clearly" nothing. I'm disagreeing with you here.

> Because some one said that art was important because of feelings?

Is anything that humans do important to you? If so, why? If not, why not?

I'm going to show all my cards here: I think the nihilistic view that nothing ultimately matters so why worry about anything at all, and let's concede all battles, is antithetical to human existence. You're not outright espousing this nihilistic worldview, but you're coming quite close in my opinion.

If you don't care about art, then pick something you do care about. If you don't care about anything enough, then all debate will be fruitless.
All this stuff was cool once. SOMA in the 1980s. That was forty years ago.
Your link isn't very clear, but I think your are talking about the "clean room design" strategy. https://en.m.wikipedia.org/wiki/Clean_room_design

The way this works is they way many of us are arguing that AI and copyright should work.

Vieiwing (or training on) copyrighted work isn't copyright infringement.

What can be copyright infringement is using an employee who has viewed (or a model that was trained on) copyrighted work to create a duplication of that work.

In most of the examples of infringing output that I've seen, the prompt is pretty explicit in its request to duplicate copyrighted material.

Models that produce copyrighted content when not explicitly asked for will have trouble getting traction among users who are concerned about the risk of infringement (such the examples you listed.)

I also see this approach opening an opportunity for models that acquire specific licenses for the content they train on that would grant licenses to the users of the model to duplicate some or all of the copyrighted works.

The responsibility for how a model is used should rest primarily on the user, not the model trainers.
Mostly frameworks that follow guidelines like Material-UI, the insane aspect ratios and resolutions, and then features like Dark/Light mode.
SSR support is only needed for public-facing websites that will undergo some kind of search engine indexation. For most apps this is not necessary since most apps are not accessible publicly.
I held out on my SE1 and SE2 until the 12 came out specifically to avoid a larger phone. While it seems there is a market for the size, it isn't big enough to care about (by Apple's own statistics).
The problem is how we (devs) slowly but surely conditioned users (and even other, new coming devs) so that people don't even know how fast computers actually are and how crazy it is that those things are as slow as they are.
So when it comes to performance, people don't even know that things could (should?) be exponentially faster.
the amount of codebases I've worked on that spend most of their CPU time measuring the time is not inconsequential
I'm so sorry your partner went through that.
A lot of numbers have representations in base-10. A fact about the base-10 digits is a fact about the base-10 representation of the number, which is also a fact about the number.

You might be able to satisfy yourself by replacing "the digits of" with "the decimal digits in the base-10 representation of".
Wow, I didn't expect to read once in my life that François Holland was a leftist, except maybe in Valeurs Actuelles (MAGA-like in France)

Are you sure the higher middle class is not having children because of the lack of state support ? Doesn't being higher middle class suggests that you own your house and have at least 3000 euros a month salary ? Isn't it enough for one child ?

Why do you think people not wanting children because they are worried about the state of the planet for their children is because "propaganda" ? Are you saying climate change is propaganda ? Isn't every expert on the subject saying that we are not doing enough and that things are going to be worst even in the best scenarii ?
> they are always maniacally monitoring how fast or slowly consumers buy up

Of course, but consumer behaviour on most items is relatively fixed, and largely reactive to shocks. That is very visible in the current situation: we had little or no inflation for 20 years and then BANG the cost of natural gas and wheat skyrockets because of herr Putin, and suddenly we're in an inflation-heavy world. That's not consumer-driven, that's supply-driven.

> trying to politically ostracise 'the other side'.

I'm not ostracising anyone. The fact is that prices are set by business owners to maximize their profits - that's just how it is. Consumers can only react to that. Your quixotic comments try to blame consumers for "impulsively" paying higher prices for food or basic supplies, and that's just preposterous.

> consumers in my OP just because they are a largest group of people, because it also includes business owners

No, it does not. Gas-industry CEOs don't bid on gas supplies for their own garage or "impulsively" because they like it; they speculate on a scarce resource, rationally taking opportunities to maximize their gain - and that is what drives inflation, the selling side engaged in rational maximization of profits. Same for petrol, wheat, etc. Everything else, including final consumers, can only react in cascade effects, and trying to blame them is just cruel.
That's just too black and white. The other replies to the comment I replied too have much better explanations than I could give as to why
Sure, sure, ignore the recession behind the curtain, it's irrelevant, honest.
My Love Letter to CS Is Short and I Also Forgot to Mail It (2019) [video]
I think that's exactly the sort of flawed analysis these copyright trolls do. They see something they never would have had a hand in and count it as "theirs", and then greed kicks in. It's like the old MPAA/RIAA calculations of lost revenue that assume someone would have bought a CD if they didn't download a song. Only worse because at least in the downloading case, they are a 1:1 substitute.

In almost all cases I'd guess that artists whose style is being copied by many genAI users are getting way more exposure than in some alternate universe where midjourney didn't exist. But nobody looks at it that way, they just see somebody else making profit and think they deserve some.
Debloating My Android Phone with ADB
Maybe you're right, I don't know. I still think it will remain a niche novelty for quite some time, though, as it won't be considered authentic enough.

NFL has plenty of authentic camera work mixed in with a bit of flair like that (I didn't know they did that now, that's interesting), but I imagine for a wedding they care even more about making sure it's fully accurate and not generated. Maybe I'm wrong, guess we'll see what happens in the next ten years.

I do know in my case that we could have gone cheaper on photographers and we didn't, though (we saved money by not getting video or paying for a physical album afterwards, not the people), and I wouldn't be interested in A.I. generating the pictures (even assuming it would be better quality than today) in any way instead of snapping what actually happened.

And I'm not someone who's against people using generative A.I. for the most part, so that doesn't have anything to do with my preference.
That may be from Charles Stross's "Laundry" novels, which occasionally mention "Hotelspace". There's an implication that all hotel interiors are somehow connected.
100%, and same for Standard Template Construct. There are basically no reliable IPFS gateways with book or paper content. They all get struck from the more reliable gateways immediately.
The ad blockers also typically block these things. There are big lists that back them, typically open sources on GitHub.

You could check against the lists by wrapping in a simple API. You'll also be able to choose which lists and make exceptions or edits, as well as keeping them up to date
Honestly, it is -- I've a handful of devices and at least 2 needed debug level recovery of the firmware because of board revisions and pinouts for the same product being vastly different.

They should do better, but they're in a fun corner of the industry pushing out a half decent solution, so I accept.
> Governments and markets operate by different mechanisms.

They do, indeed. While not all mechanisms are the same, the particular mechanism we are talking about is ultimately the same.
20 years ago people said “It’s all over for artists. You don’t even need to practice at it, you just press a few buttons in Photoshop and get a better result.” And 100 years ago they said “It’s all over for art, all you need to do is press a button on a camera and you get a perfect recreation.”
That would make "one-time pad" a British term, which is consistent with the non-existence of this term in the early American documents.

Even if "one-time pad" had been used by the British during WWII, that would still make its use in Cryptonomicon inappropriate, because there it was used by an American.

Thanks for pointing to Leo Marks' book. I have just browsed it and it is weird how unfamiliar he was with the previous cryptographic literature, despite being a trained cryptographer.

According to his memoirs, Leo Marks had great difficulties in rediscovering the "letter one-time pads", in order to replace the "digit one-time pads", which were inconvenient for Morse transmission.

Not only the solution to his problem was clearly explained in Vernam's article from 1926, which had been published in both the Transactions of the A.I.E.E and in the Journal of the A.I.E.E, which were journals important enough to be available in various British libraries, but the solution searched by him was also explained in various popular publications, even in one of the novels written by Jules Verne almost a century earlier.

Anyone familiar with the history of cryptography and with the various kinds of ciphers used in the past would have thought instantaneously to the correct solution for implementing the desired "letter one-time pad" (i.e. by addition modulo 26 of the numerical positions of the letters in the alphabet). Also, had they been well aware that good one-time pads are unbreakable, they should have easily realized that the double encryption with a codebook followed by a one-time pad is useless.

From his memoirs, it appears that his knowledge of cryptography, at least in the initial part of WWII, was much inferior to the content of the manuals written by Friedman, which were used for training the American cryptographers, although it appears that in time, after gaining experience, he has become good enough.
> The economy is weird now.

Or the economy was weird before and is recovering now.
Nutshell: Make Expandable, Embeddable Explanations
Or even just a house or bridge. Completely trivial-seeming things are just very complex.
My dad's mother was like this. She started exercising around is her late 60s and started competing in Senior Olympics type stuff all over the world. Towards the end of her life she'd win a lot of gold medals, although I think she was often the only competitor in her age bracket :)
> For either the far left or right, it's important to reject evidence that doesn't conform to ideology,

Isn't that what everyone does, regardless of distance or direction?

> They don't want to be subject to authority, they want to be be the unquestioned authority.

So where do the people who question authority fit into this neat dichotomy?
Given this JSON: <JSON examples>
And this Table schema: <Table Schema in SQL>

Create JavaScript to insert the the JSON into the SQL using knex('table_name')

Below is part of its output:

// Insert into course_module table

await knex('course_module').insert({

id: moduleId,

name: courseData.name,

description: courseData.description,

// include other required fields with appropriate

values
});

It's missing several columns it could populate with the data it knows from the prompt, primarily created_at, updated_at, account_id, user_id, lesson number... and instead I get a comment telling me to do it.

Theres a lot of people complaining about this, primarily on Reddit, but usually the ChatGPT fan boys jump in to defend OAI.
> But when the people doing that fighting can put an honest and democratic face to it, they will cause mid-level folks to behave better and oppositely, when the fighting gets out-of-hand, those on lower levels with aspirations start thinking they can use "bad" behaviors to attain them.

Yeah! Like when pre-Trump the norm was that all powerful and well-known people were magnanimous, self-sacrificing, and good people that the “mid-level” and below looked up to. But after Trump (grunts) that just changed on a dime.

Except the opposite of that.
If having those restrictions makes the world worse overall, then it would be ethical to remove them. But I assume the restrictions are designed by intelligent people with the intention of making the world better, so I don’t see any reason to think that’s the case.

I agree that the current crop of artists are worse off with AI art tools being generally available. But consumers of art, and people who like making art with AI art tools, are better off with those tools being available. To me it’s clear that the benefit of the consumers outweighs the cost to the artists, and I would say the same if it was coders being put out of jobs instead. You can prove this to yourself by applying it to anything else that’s been automated. Recording music playback put thousands of musicians out of work, but do you really regret recorded music playback having been invented?

P.S. Adobe firefly is pretty competent and is only trained on material that adobe has the license to. If copyright were the real reason people didn’t like AI art tools, you would see artists telling everyone to get Adobe subscriptions instead of Midjourney.
Also check out the so-called M5 Cardputer, which is part of the M5Stack line of products. Has the colour display and super tiny keyboard, but also SD card, mic and speaker and battery. Plus... you can attach it to legos or fridges!
Show HN: Attachments Extractor for Gmail
I built this little tool that allows downloading & removing attachments from Gmail emails without loosing the content of the actual email.

The tool runs entirely in the browser, meaning that your emails or attachments are processed directly in your browser; they never hit the server.

It's a great way to save some Google Storage space without loosing the ability to run searches on your emails (if you're like me and like to keep your emails organized).