skysight-inc/HackerNews huggingface dataset:
I use bash frequently and I can't remember the syntax.

I think your comment convinced me to never use bash again. Now onto finding a replacement... If people say they use bash because it is preinstalled they can go screw themselves. Install whatever replacement I'm going to pick and shut up.
Cloudflare announces quantum cryptography beta to thwart decryption
QBitTorrent has a search feature built in.
Many people bond over political activism and political groups. I know many such couples. 100% secular, no gods involved, no "church" even in the name.
> Too many people don't understand that trade agreements are about common standards and accountability.

Unfortunately, trade agreements can also end up being abused to enable price dumping. Yes, consumers may enjoy lower prices for goods, but if the cost is domestic industry being completely devastated or human rights being violated at large scale (e.g. children being enslaved in questionably legal mining operations or factories), is it worth it?

Most trade agreements at the time have almost no "equal standards" clause for manufacturing. Stuff like toxic materials (e.g. RoHS) is regulated, but lower work standards - minimum wages, child labor prevention, slavery prevention, fire codes (e.g. the horrible fires that regularly happen in Bangladesh [1]), disposal of waste, CO2 emissions - are not.

The result of that non-regulation is that nations like China, India or Vietnam flood European and US markets with goods that are only cheap (compared to domestic products) because the environment and the workers get exploited. We outsource our dirty industry.

[1] https://en.wikipedia.org/wiki/2012_Dhaka_garment_factory_fir...
If Google built such a product, you'd probably find it on their graveyard. So it's best to be careful and not antagonize them; because always remember: You only have one digital life, so keep your head down and don't blow it.

I wish that was pure /s, but the amount of "Ask HN: Google banned me or my business for no obvious reason" is really staggering. (n.b.: Of course I'm talking about the old Google of 2022, not about the glorious overlords that Google since has become; all praises the holy trinity of Android, Google Search and Google Glurp for Glorps! Please don't ban me.)
Of course this is laundered through Yale, the center of the cyclone of struggle-session insanity.

Framing this around shame is of course misplaced, it is about threat: threat to one's comfortable use of the internet, one's social network, one's livelihood, and you'd love to believe these maniacs would stop there, wouldn't you. Did they ever before?

Shame is used as a weapon and a warning. It isn't that those lucky souls this doesn't work on are shameless: rather, they are protected from mob violence against their character wreaking havoc on their livelihood.

Young Adult authors have no such protection.
See here: https://www.pnas.org/doi/10.1073/pnas.1002780107

It has to do with true randomness in the measurement aspect, not with human free will.
Comparing a shared RF medium to a fairly guaranteed point to point connection is one of those things that in theory works great, but in practice, not so much...
> They have explicitly called out not regulating wireless charging for this reason.

Doesn't wireless charging present even more problems, given the meager efficiency compared to using wires?
so v-air-care makes sense because variable character. but i dont see the word 'varchar' as being connected to that shortening. so i say 'varcar' because i'm assuming my brain likes the rhyme.
I'd rather it hadn't come to this because I don't believe in regulation to this extent. But there honestly hasnt been any excuse for a long time for them not to do it. Especially when some other iOS products have it, same with the AirPods case. It's purely to make more money from cables and you can tell this from the lengths they go to that make sure non-legit cables are so unreliable and have DRM.
Htmx Authentication Error Handling
One fun tip for anyone who wants to understand more how their prompts work - lock down to a single seed, no variations, then change one word at a time in your prompt. Then you can see what effects each word has.

Or you can answer your question about the effects of commas. You can try moving a word or phrase forwards or backwards and see what effect it has.

By working with a single snapshot of randomness, you can see the word effects more clearly.
Big Oxide fan, will look into it!
Ignoring the fact that USB-C to Lightning cables exist, how in the world does a little power brick and cable make a "significant difference" to what you can take with you?
> Cables aren't the ones limiting current draw

Incorrect. All USB-PD cables, whether their connectors are USB-A, -B, and/or USB-C, are responsible for honestly declaring their charging power limit to the charger and to the device, and in the USB-PD specifications are specifically responsible for limiting current draw to the rated capacity of the cable. Per USB PD spec:

> Sources Shall detect the type of Attached cable and limit the Capabilities they offer based on the current carrying capability of the cable determined by the Cable capabilities determined using the Discover Identity Command (see Section 6.4.4.2) sent using SOP’ Communication (see Section 2.4) to the Cable Plug.

> The Cable VDO returned as part of the Discover Identity Command details the maximum current and voltage values that Shall be negotiated for a given cable as part of an Explicit Contract.

Cheap, lying, uncertified USB cables that declare their ability to support higher charging rates — for example, 100W which is 5A at 20V in USB — have been known to short out and destroy chargers and devices in the process of doing so.

This was discussed in a couple hundred comments across multiple posts when a Google engineer had to pressure Amazon through product reviews to enforce USB-IF certification on all USB-C cables several years ago:

2015: https://news.ycombinator.com/item?id=10508494

2016: https://news.ycombinator.com/item?id=11387212
How many musicians do you think put in extreme effort without becoming famous?

It’s not that it’s easy, it’s that more people make it to B and C list fame.
The closest analogy I can think of is this:

Property developer leases a beachfront land for 99 years and builds a resort. You book a vacation at the resort. You enjoy the facilities -- pool, spa, restaurants etc., during your stay. At the end of your stay, you lose the privileges of staying at the resort/using the facilities.

Even if you bought a timeshare in the resort, you still do not own it. Heck, the property developer also doesn't own it (remember, they just hold the 99 yr lease)!

Electronic-sell-through/Download-to-own is pretty much that esp. if the player is controlled by the platform. You may download the artefact (or the player software may do it for you), but playability is dependent on the platform still holding rights. This is implementation dependent and you have to look through the Terms of Service to really be sure.

All streamers who license third-party content do it for a limited period (from a few months to several months or a year). I wouldn't be surprised if many of the platforms have licensed the "Download to own/Electronic-sell-through" titles only for a finite period. Those titles will go away / become unplayable at some point in the future (unless you downloaded them from a DRM-free platform). When the eventual consumer backlash occurs, the platforms will point to their ToS.

And to add to this complexity, copyright rules are quite different across jurisdictions.
I'm not sure what you mean by "equivalent of MPAA", but there are plenty of well-funded anti-gun lobbying groups who fund lawsuits against the gun industry. Brady, Giffords Law Center, and Everytown for Gun Safety are some major ones. But OP was talking broadly about lawsuits, not lobbying groups specifically.

Example: California recently enacted a law to "create a powerful incentive for the firearm industry" by allowing citizens to sue them for "failured to implement 'reasonable' controls", by using a similar mechanism as Texas' bill that enables people to sue doctors who perform abortions.

Senator Portantino: "If Texas can outrageously use this type of law to attack a woman’s reproductive freedom, we can do the same thing in California to hold gun dealers accountable for their actions."

OP said:

> The tactic used to bring one to it's knees will be used to stifle other freedoms as well.

Which seems to be exactly what was done in California with its lawsuit legislation that was modeled after Texas'.

I can't help but agree with OP that this is a similar tactic of using lawsuits to bully people into compliance by draining their resources. It's an old tactic, but it's still unjust, regardless of the particular legal issue.
Plugging the phone into a laptop seems far easier than connecting both to a shared network and then trying to find the right IPs to connect to.

Worse case you even have to make an access point which isn't a gui operation on most laptops.
Hello there! I've been building a Reddit scrapper, to analyze the connections between subreddits (subreddits are the nodes, and the users who posted or commented in the same subreddits, are the links). My future plan is to build an API for it, so others can use the data for their research or side projects. It's not done yet, but almost - the data will be stored on Firestore. I have plans on how to scale it up - currently it's 5-10 seconds / user, and given the Reddit's large user base, it's an issue which needs to be handled. For the API, I'd add tiered pricing as well, because storing, writing and reading data is a cost.

So, what do you think about it?

Also, I've been a solo programmer my whole life, because basically all of my programmer friends are like "why code after 5pm?". They just do their 9-5 jobs and that's all, they're satisfied. Which is okay! Just for someone like me, who loves to code, build stuff and discover new technologies, it's sad, because I can't partner up with others to build more complex stuff and to exploit our full potential.

About me: currently I'm a mid-level frontend dev, and I'm trying to move from frontend to backend/devops/cloud, not sure exactly where, but definitely away from frontend.

So if you'd like to have a programmer buddy to discuss tech-related stuff, or to build fun things together, feel free to reach me out, I love programming and I want to level up and I think it's almost impossible alone.
I believe he's right. EV's get all the spotlight but 95% of all vehicles still use fossil-fuels. Replacing them in the next 3 decades is nigh impossible IMHO.

We might even endure another oil crisis because we're cutting down on our investment in fossil fuels while the transition to EV's is lagging.
I'd never heard of this guy before this morning (and I was happier then). Given his image, you'd think his Wikipedia page would be quick mention if he'd ever held a blue-collar job himself. Far as I can tell, however, he has only worked a a TV personality and opera singer.

Given that, and the fact that his spiel below is exactly what I'd want my employees to believe if I were a rich sociopath, my conclusion is that he's a shill, pure and simple.
> declining birth rate problem solved!

> I'm scared.

That is one dystopia I might be able to live with.

As long as the watches don't default to Harvey Fierstein.
I was talking about all the device markets that have switched over to USB-C. It's not just iPhones.

And for what it's worth, even the iPhone could benefit from not having to include an USB-A-to-Lightning cable any more.
@antoinec

steam does exactly this. you can sell on steam and pay steam their cut, or sell steam keys elsewhere for the same or more money without steam taking a cut.
It’s pretty unsurprising that a politically active fire brand anti-communist in post-war Hollywood had dealings with the FBI. They weren’t even particularly notable dealings as he comes off seeming relatively reasonable compared to many of his confreres.
But above, you cited BTC not dropping as evidence that it wasn't a bubble. So, it's not a bubble because, while it drops all the time, it doesn't drop exactly when you predicted it would?
This isn't an important reason. There's no technical reason that Lightning could not have been updated to support higher speeds, and there's also nothing in this legislation that forces USB-C to magically use a high data rate.
I'm not sure the mechanism, but it's certainly _intended_ to support future standards.

Quoting from the press release (https://www.europarl.europa.eu/news/en/press-room/20220930IP...):

> This future-proof law allows for the development of innovative charging solutions in the future

Also says they're already looking at how to support interoperability during a future migration to wireless charging too.
I changed my mind about writing new JavaScript frameworks
Ask HN: Do you use any kind of journal to improve the efficiency of learning?
After several years of playing around with different tools, it turns out it's easiest for me just to use Notion and its simplest features (basically creating pages).

What I have discovered recently is that it's really useful (or at least I am inclined to do that) to keep track of you daily findings or useful ideas as a developer.

An example is a pretty simple technical concept like dealing with polymorphic associaions in database modeling. There is nothing rocket sciency here, but having read a chapter in Bill Karwin's SQL Antipatterns book, I feel like I have learned a lot.

That said, it often happens that you might not encounter certain techniques or approaches for a long time and your knowledge fades.

This is why I briefly described the problem solved on my Notion journaling page, noted the book chapter and tried to summarize the approaches I considered and the one I ended up with (and why). At least, now I feel some kind of mental relief :)

What approaches do you use to make sure that your new pieces of knowledge do not evaporate too fast?
That's not very helpful.
I bought "Bullet Train" over the weekend on Amazon for an at-home date night with my wife (rental was not available yet). It costs $20 which we justified as being the cost of 2 movie tickets. Doubt I will watch it again so really I was just paying for access
I know there are advantages to monorepos but when I hear such stories I just scratch my head. How did they let things get so bad that this would be the case? Surely the advantages monorepos provide would eventually have been overshadowed by the abysmal performance. It seems like they must have already split the repo, switched to something other than git, or devised custom tooling to handle the pain.

Obviously MS devised such tooling and here we are... but have others just been quietly doing similar internally and never showing it the light of day?
One idea I keep thinking about (which I'm sure interferes with some sort of copyright law) is:
1. User buys a physical copy of a movie/music
2. Instead of sending the disc to their house, it's sent to a storage facility
3. In the storage facility a digital backup is made and uploaded to a cloud storage
4. User is given access to the backup which they can watch/listen to
5. User would be the owner of said physical copy and when they sell it, all digital backups would be erased.

What's the legality that stops this from working?
Also a great way to find all their past relationships
But if instead of having a relationship that lasts forever, you value having a meaningful romantic relationship that lasts 5 or 10 years, university is pretty good.
Wi-Fi 6 is faster than the internal SSDs read speed when there is direct line of sight and absolutely no cross channel interference*
“The Onion” Files a Supreme Court Brief
This isn't really transformation though. It's compositing pixel-accurate bits and pieces of multiple pieces of art to make a new piece (as proven by stock photo watermarks being replicated in some pieces).

That difference is enough to assert that there is a wholly reasonable ethical basis. Especially when they're obviously not just training it on images with relaxed copyrights.
I'm not convinced. (But also I'm not a physicist).

Don't get me wrong, they are all great experimentalists and their experimental work helped move the science forward in the understanding and control of the atomic scale.

But their "Bell's experiment" variations have been used to "disprove" and cast aside wide branches of theoretical research, and this will probably remain as one of the biggest failure of modern science.

If you model the experimental settings in your theory, it's indeed quite simple to reproduce the QM probabilities (and therefore violations of CHSH inegalities), with a local hidden variable theory.

In fact here is 60 lines of numpy code to set-up virtual experiments to convince yourself (try various settings for the polarisers angles alpha and beta) https://gist.github.com/unrealwill/2a48ea0926deac4011d268426... (Straight implementation of Marian Kupczynski "Closing the Door on Quantum Nonlocality" https://www.mdpi.com/1099-4300/20/11/877 (around eq.7-8) if you need more explanation).
I have no sympathy or love for Apple, but this seems wrong.

Technology comes and goes, standards evolve and fall away as new ones arrive.

I don't think the law has any place in deciding who uses what connector in this fashion. They can make an e-waste argument all they want, but it's nonsense. All it does is stifle future work on connectors and devices in general.
Hard Company Conversations
The way it seems to work from what I understand:

Movie Studio offers (what is effectively) a lease of Digital Media to Digital Retailer. Digital Retailer is then allowed to sublease copies of Digital Media to End Consumer. When Digital Retailer's lease ends, so does End Consumer's sublease.

How it seems like it OUGHT to work:

Movie Studio offers resale rights of Digital Media to Digital Retailer. Digital Retailer then sells copies of Digital Media to End Consumer. When Digital Retailer's right to resell ends, End Consumer is allowed to procure/store their copy of Digital Media.
How long do you think the average lightning cable lasts?
The plug will be universal with usb-c, but not the cable specs, I read someone of someone that have a usb-c-jack dongle that came with the phone and worked, then when it broke he bought a new one but it didn't work, the dongle itself was not using a standard, also I read a lot that fast charging is kinda property with each manufacturer, so a cable that can fast charge one device might not be able to fast charge another, and the blame is on USB itself, it's like HDMI, everything is optional, so you can't be sure if you bought the correct usb-c cable.

At least with lightning you know what you are buying, and maybe the overpriced cables that Apple sells will work better than the most cheap ones, which brand give you the warranties for the cable specs? does belkin and co sell also cables?
Working Across Time Zones
Why would they? I can guarantee my parents don't. I guess I got one last year when I got an Xbox controller to connect to the PC, but I don't want to use that one for my phone, it stays with the controller.

I guess if I'm going to replace my phone I should do it soon while I can still use my existing cables with the new one.
They have DRM attached and need to be played on a computer that has logged in to your iTunes account and been "blessed". But unless something has changed, as long as you keep that computer offline it will be able to play those videos in eternity.

You can un-bless all your other computers (as you can only have 5 computers blessed at once) but I guess if the other computers are offline they can keep playing old downloads.
The worst thing is resistors with weird background colors for the color bands. I can usually figure out beige resistors, but the blue ones? no chance of getting those right.
Blacksmithing, mead making.
You shouldn't use internet either, is dangerous
How much time has to pass before the one-time cost of deprecating lightning is overtaken by the ongoing savings of having a single standard? Also consider that lightning would surely have eventually been deprecated one day even without this initiative.
How to write more readable JavaScript conditionals
The one from https://thinkmods.store supports this via a mini SD card attached via USB, as the Expresscard also has USB pins. But I don't know if the creator actually has enough resources to make/ship those devices.
Protecting me from using my existing cables? Gee, thanks.
Sure. It's a fine and noble goal, but at this point it just looks... well, as the Wiki article you linked says, "as plausible, and appealing, as belief in ubiquitous alien mind-control".
> Supply and demand only work in the short term as an explanation why something costs the amount it does _right now_. Once enough time has passed for the markets to adjust then there is something fundamental that causes them to be stuck at a given level.

[citation needed]

> Software development is applied autism.

[citation needed]

> Or to put it another way: there are no other professions that can make 10 million for their employers in an afternoon by thinking really hard.

The entire finance industry called and wants to have a word. Not that I'm a fan of theirs, but perhaps you should think harder next time before you post.
With all due respect, you're wrong. See Tailor Swift's recent, successful, copyright judgement.

And frankly, unless you are a judge overseeing a specific copyright infringement case, you have no basis with which to make these assertions.
Out of spite? What about it feeling out of spite to make this change for the tens of millions of users who have one or two or four sets of AirPods, and several wireless Apple keyboards and mice and trackpads, and various other gear, all of which uses Lightning?

Some people need to remember that it's not all about them.

And your USB-C chargers and power banks were and are perfectly capable of charging Lightning devices.
Oh I never even noticed that. It's been working perfectly since then though. It seems MPC-BE is a similar project that is still under development.
I'm guessing you don't use Apple devices. AirDrop. Seamless adhoc direct connection. Easier than plugging in a cable.
> I really dislike the idea that EU regulators would know what's better for consumers than consumer electronics companies and the consumers themselves

This isn't something created by faceless bureaucrats behind closed doors.

The "regulators" are the EU Parliament, who are elected by residents in the various countries. The issue has been talked about for a few years, and was voted on 603 to 13, that's over 96% (including abstentions).
That’s actually pretty humorous
Until one of them inadvertently triggers a TOS violation, at which point it will orchestrate their breakup and then deactivate their Google accounts.
// ==UserScript==
// @name HN brudgers
// @match https://news.ycombinator.com/*
// ==/UserScript==
for (let link of document.querySelectorAll('.hnuser')) {
if (link.innerText == 'brudgers' ) {
link.style.color = 'blue';
}
}

Worth noting that this type of script is fragile.

Whenever HN changes it's HTML, CSS, Javascript, or code-generating code, it might stop working.
A running experiment for automatic AI images
> DVDs were regionally locked as well

To be fair, those of us who tend to complain about these things also raised hell about DVDs back then. Geo-locking is such an obviously bad idea for consumers. It was such a relief when the restrictions were hacked away (was it that an encryption key got leaked? I don't remember the details).
Is this a surprise to anyone? I’m not being cynical. I thought this was well known. Is it not?