skysight-inc/HackerNews huggingface dataset:
Ask HN: Selling Software Abroad and Taxes
I don't have a CPA and have worked as a sole proprietor for years. I've done my own taxes. Recently, I received a few inquiries from abroad about licensing software I've written. My main hesitation are the tax hurdles: both sales and income tax. For example, in the EU I believe you need to register your business and collect VAT. There's also inquiries from Taiwan, Canada, and Australia.

I've used Stripe for payments and they have an option to collect sales tax, for example, but it's still on you to register and remit those taxes to the jurisdictions where you sell.

What I'm looking for is a payment service that collects payments from abroad and takes care of all the tax compliance and just does a payment to you as a US to US company so you only have to report one source on income on your taxes. Similar to affiliate marketing where you advertise to an audience all over the world and when they click through your links the business you market for takes care of all the payments and taxes and just sends you a direct lump commission .

Does a service like this exist?
The aqueduct?
Encrypted comms has a problem.

Crypto does not, for a lot of reasons, but biggest I can think of is that hashing is still one-way, public keys are hidden (until used, which is why it is important to expose your public key only when using funds).

When there is a viable ECC attack vector, it will not be much effort to migrate to a more mature PQC. Better to wait as long as possible, maybe even have a crypto built on PQC to field test it with money on the line -- a few billion in market cap goes a long way to incentivizing breaking the crypto involved.
Yes, and some of those reasons are even listed in the article.
Parallelism is often incredibly hard to write automated tests for, and this will most likely create parallelism issues that were not dreamed of by the authors of the test suite.
OK, I understand. I made new updates. Will it work, we'll see. :)
The sum of two sine waves of differing phase is a sine wave with some phase between the two.
> I play both sides, so I always come out on top!

How anyone thinks this guy has the time to be chief engineer at SpaceX when all he does is shitpost on twitter all day is the real grift.

I'm a big proponent of Musk corps, solely because of the team within them and entirely despite of Elon (though he did serve a purpose); but the former channer in me also likes seeing how sage level trolling has not only made him immensely wealthy but also functions as a sort of psyop to gauge to how effective social media really is/remains in the collective psyche.

It's like the more advanced version of, 'stick your smartphone in the microwave for full charge' kind of thing: perverse and diabolical in a way but also necessary to put a finger on the pulse of the collective IQ of the modern internet sort of thing.
I think this is a situation where a message-passing Actor-based model would do well. Maybe pass variable updates to a single writer process/thread through channels or a queue.

Years ago I wrote an algorithmic trader in Python (and Cython for the hotspots) using Multiprocessing and I was able to get away with a lot using that approach. I had one process receiving websocket updates from the exchange, another process writing them to an order book that used a custom data structure, and multiple other processes reading from that data structure. Ran well enough that trade decisions could be made in a few thousand nanoseconds on an average EC2 instance. Not sure what their latency requirements are, though I imagine they may need to be faster.

Obviously mutexes are the bottleneck for them at this point, and while my idea might be a bit slower than a low-load situation, perhaps it would be faster when you start getting to higher load.
I'm referencing that same National Academies Press book again, this time the chapter about titanium ores:

https://nap.nationalacademies.org/read/1712/chapter/5

Titanium ore reserves are abundant and widely distributed throughout the world (Figures 7 and 8). U.S. self-sufficiency has declined from 75 percent in the mid-1960s to 45 percent in 1980 because of the ready availability of low-cost concentrates from other countries rather than from a lack of U.S. reserves. In terms of contained titanium, the manufacture of titanium dioxide (TiO2) in the United States is about 15 times greater than the production of titanium metal. An emergency need for additional raw material for metal manufacturing could be met readily by diversion of ore, or of titanium tetrachloride, from the TiO2 industry. Ore cost, about $0.35 per pound of contained titanium, is a minor part of the price of titanium metal.

Titanium ore is not rare, expensive, or difficult to find domestically. Producers of titanium minerals listed later in the report include the United States, Canada, Finland, Norway, South Africa, India, the Soviet Union, Malaysia, and Sri Lanka. As of 1983 Canadian and Norwegian production were higher than US production. Soviet production was lower than Norway, Canada, or the US.

This report was published 20 years after the SR-71 started flying, but titanium minerals were never rare and they have long been produced in the United States and in closely allied countries. That's why I wonder if there is something to explain "The US worked through Third World countries and fake companies and finally was able to ship the ore to the US" or if it's just a story.

To me it reads a bit like a story about how the US tricked the USSR into shipping lead ores to the American small arms industry during the Cold War by saying that deer season was coming up [1]. It sounds clever and funny. But it doesn't make a lot of inherent sense that the US sector would need to clandestinely obtain a common mineral resource from its rival. The very fact that it is good as a story makes me want to understand more before accepting it, because good stories have a way of propagating themselves regardless of their relationship with the truth.

[1] Note: I have never heard this story about lead ores. I just made it up on the spot as an example of a story that sounds so good that I would be inherently disinclined to believe it without further evidence.
In most cases where you do have more than one source (say datacenter for redundancy) you don't just tie them together directly, in simplest config you'd just switchovered from one to another if one failed.
Church of England clergy demand pay rise for first time in history
"The Elo rating system is a method for calculating the relative skill levels of players in zero-sum games such as chess." [1]

Each outcome adjusts the winner's and loser's Elo ratings according based on the current difference.

For example:

- A 1500 elo beats a 1300 elo. The winner gains 5 and the loser loses 5.

- A 1300 elo beats a 1500 elo. The winner gains 15 and the lower loses 15.

The math is such that a 100 point difference is 2:1 advantage. A 400 difference is 9:1 advantage.

[1] https://en.wikipedia.org/wiki/Elo_rating_system
My Dad did the same thing. He was going to an Ivy league too, wanted to take a break to finish his thesis, and never did. It really is just one of those things you have to power through (especially senior research projects/thesis, they teach you how to write a paper but jesus christ its way harder than you think.)
Without too much condemnation, can you explain to me why I should care living approx 10,000 Km from Taiwan.

Without a slippery slope argument, the US invaded Afghanistan and slipped into invading Iraq but didn't continue so it seems slopes are too slippery in this matter.
This goes a long way for me (in broadstrokes):

vi code.go README ./notes ~/notes/topic reqs design TODO script.sh ~/journal/YYYYMMDD interesting.log scratch # etc

then git, rsynch, grep (etc) to heart's content

main hole is on phone where vi doesnt fit well, but on there either the builtin Notes app or a thirdparty GUI text editor/viewer is fine ("sneaker shared/synched" as needed). though bias to work on laptop where total time efficiency matters
People are doing a postmortem, for the purpose of learning 7 years later. Comments don't strike me as that negative really and people are relishing an in depth look at failure cause the in depth looks at success are overrepresented statistically.
>”For the record, I think this will be a disaster. There is far too much code that will get broken, largely silently, and much of it is not under our control.

regards, tom lane”

Given that Tom Lane objects to this, I’ve yet to see such a hugely compelling case to go against his advice.

https://www.postgresql.org/message-id/flat/31cc6df9-53fe-3cd...
Imagine you've got two cables coming into your factory. One is 500 meters longer than the other. That would mean that the sine waves are 0.01% out of sync.

I'm pretty sure for home electronics the phase difference doesn't even matter that much. Everything sensitive seems to be converted to DC anyway.

Maybe it matters in large industrial applications, I have no idea. But I also imagine in their situation it's probably pretty straightforward to clean up the power supply.
Here's MySQL's all-session-globals-in-one-place-class: https://github.com/mysql/mysql-server/blob/8.0/sql/sql_class...

I believe I can safely say that nobody acknowledges and understands the complexity of all state within that class, and that whatever incentives there may be to simplify it are not enough for that to actually happen.

(It ends on line 4692)
Because at some point it will be better.

Typescript is strongly typed too so I assume it won't let you use using on things that don't support it.
The whole point of the comment you replied to is that, if the "goal" is something innovative rather than just sustaining, then no, you don't end up in the same spot in those two scenarios.

But this is why some executives are better for some kinds of businesses and others are better for other kinds. Some executives don't understand your parent comment's point (or just don't find it comfortable), and will be very allergic to the "waste" necessary to experiment and iterate on poorly understood projects. Other executives will be uncomfortable just constantly figuring out how to optimize costs without damaging revenues.

A very tricky part of the lifecycle of many companies that get gigantic is to figure out when to flip this and start switching out the executive team to focus on a different model.
Based on my reading of the spec, you can't actually return a resource, since the disposal semantics need to map exactly to calling [Symbol.dispose] in a finally block at the end of the current block. Also, unlike C#, you can have multiple using statements in the same block, which will be disposed of in LIFO order.
The author has 42 licenses to promote, by my count.
I have always used class-validator for this. The custom validation stuff always comes up in backend dev eventually so starting with it has always been the right call for me. This includes small toy projects and entire SaaS backends.
Would not do this, current job market is not favorable, you're most likely better off working towards degree (assuming it's undergrad)
I mentally snarked to myself that "obviously they should rewrite it in Rust first".

Then, after more thought, I'm not entirely sure that would be a bad approach. I say this not to advocate for actually rewriting it in Rust, but as a way of describing how difficult this is. I'm not actually sure rewriting the relevant bits of the system in Rust wouldn't be easier in the end, and obviously, that's really, really hard.

This is really hard transition.

I don't think multithread code quality should be measured in absolutes. There are things that are so difficult as to be effectively impossible, which is the lock-based approach that was dominant in the 90s, and convinced developers that it's just impossible difficult, but it's not multithreaded code that's impossibly difficult, it's lock-based multithreading. Other approaches range from doable to even not that hard once you learn the relevant techniques (Haskell's full immutability & Rust's borrow checker are both very solid), but of course even "not that hard" becomes a lot of bugs when scaled up to something like Postgres. But it's not like the current model is immune to that either.
Are there other JS interfaces that use the global symbol pattern? ie [Symbol.dispose] or is this some new approach?

I get it but haven't really seen that sort of thing before.
First their design patent I am referring to is about a very specific cellphone design including button placement for volume, camera location, etc.

That is logo and they don’t want it to cover handbags, bicycles, paint, pens, toasters, hats, harmonicas, refrigerators, milk, earrings, green tea, fast food, wine, hair cuts, bananas … aka 99.9% of all products and services.

Apple however owns Apple+ which makes original content and they do want that business model covered, thus the long list of things that cover a tiny area. https://www.apple.com/tv-pr/originals/

PS: The need to list each medium seems silly with 3 types of CD listed here: “pre-recorded compact discs, audio tapes, gramophone records, video tapes, video discs, DVDs, CD-ROMs and interactive compact discs”
That must have been one Bad A*S wind tunnel...
I think the Blocked By text is wrong. It says the same thing as the BlockIng section. I'm guessing they actually mean the reach of Lemmy users on that platform is limited.
Weird, I thought Plasma was going to be the good "consume-a-lot-of-cpu" desktop, with Gnome being the annoying one.

Either way, I'll stand on -- the vast majority of Linux desktop GUI work is an enormous waste of time. Not theoretically based on the product, but in principle because it's mostly a solved problem. Openbox with a few doodads could be fine for the vast majority of users (I do mean even non-Linux users) because the desktop isn't the thing you use, it's the thing you use for a little bit before you get to the thing you ACTUALLY use.
If you're already using the frixion pens, you might like rocket book notebooks as well. They work with the frixion ink so that the pages wipe clean with a damp cloth, and there's also an app that will scan your notes to your cloud storage or email.

(Not an employee, just a big fan)
Calling gender affirming care "gay conversion therapy" is a disingenuous tactic deployed by anti-trans activists. One of the most common things that parents who disown their trans kids say is "why can't you just be gay" so pitching it as conversion therapy is very... odd.

You even illustrate this point yourself when you say:

> Very few conservatives in 2023 are riled up by homosexuality.

but also...

> the current trend of medicalizing gender as a form of gay conversion therapy

Kenneth Zucker's whole practice was geared, in fact, toward converting trans kids into gay kids. He says himself in his writing that being homosexual is preferable to being transsexual, since the latter requires medical intervention. The thing is, trans people and gay people have different needs and desires. They aren't the same group. So it's wrong to try to force gay kids to be trans or trans kids to be gay. But these days what you'll find is trans kids being pushed to be gay. A perfect inversion of the image you've painted.

The reason I "conflate" transsexuality (the word has two s's, also nobody uses it anymore, you should just say 'being transgender') with being gay is because the very same arguments and tactics used against gay people in the 80's - it's a mental illness, a social contagion, they're grooming kids, etc... - is being used again against trans people today. There was even a bathroom and women's sports panic in the 80's around lesbians in women's sports "preying" on straight girls.

Trans people had been considered merely a part of the gay community, along with other gender non-conforming people who may today identify as non-binary, until relatively recently. The fight for gay rights benefitted trans people, but we're at a point now where they have their own struggles, like the struggle for medical treatment.

It's a struggle that's been fought since the 70's when Janice Raymond wrote "The Transsexual Empire" and worked with the Reagan administration to make it more difficult for trans people to get medical treatment. Nothing about it is new, except for the alliance between conservative Christians and secular anti-trans activists - an unholy union if I've ever seen one.
A time filter is needed
> this money is exactly what civil asset forfeiture was designed to capture: the proceeds and instrumentalities of a crime.

No, you've confused criminal asset forfeiture (which exists for that purpose, and hinges on an actual conviction of an actual crime) with civil asset forfeiture (a product of admiralty law meant, in theory to make ship owners exert tighter control of their crews without extending criminal liability to them for the crews crimes, by making ships themselves forfeit for those crimes even though crews weren’t owners, that mostly hung around as a disused appendage in American law until it got seized on as an end run around criminal process in Prohibition, and later exploded in the War on Drugs.)
As a software "consultant" (meaning i do what everyone else does but get paid more) the consultancy business is fucking bullshit. Just padding resumes and counting billable hours, nobody gives a fuck about quality or maintainability or anything. Just money.
He did less damage than a Harvard grad who went on to run a hedge fund, or went on to work in private equity, or work for McKinsey, or become a lobbyist.

Where's the detailed list of victims of globalization and finance?
> Can I compile rust-written linux modules with a rust-written rust compiler?

The offficial Rust compiler is written in Rust.

> And where can I download bootstrap static ELF64 binaries of this compiler?

You can get a Rust compiler on https://rustup.rs

Probalby you can get one which is statically compiled for the musl target.

If you want to follow the boostrap procedure see https://rustc-dev-guide.rust-lang.org/building/bootstrapping...
Sure. The important thing is that they are sincerely motivated to produce good work. Exactly what motivates them isn't as important as that something does.
One problem that I experienced is that, after all this talk of "federation" and a "fediverse" with all Lemmy instances and all other ActivityPub apps...

every Lemmy instance has a /c/technology, a /c/anime, a /c/funny, and a /c/linux, and all those community are entirely distinct.
Other interesting fact is how grid uses frequency to communicate the load demand.

Load drops, the big spinny generators stop having so much resistance and accelerate.

Load increases and the big spinny generators have more load, synchronously slowing down.

So in simplest system just feeding your generator more when frequency is below nominal and less when it is above is enough
The regulation is approval by a governmental agency through clinical trials
You're totally right. If you're a package maintainer and you find out some package is misbehaving even though all if its included tests pass, it might kinda make you feel like kicking the thing and calling it junk.

But we should recognize that some of what drives that is just defensiveness, and some is personal frustration. At the end of the day, Nix and Nixpkgs are for letting people run useful software more or less as it exists. It's not just for users or developers of perfectly tested, bug-free software. (Nix itself is certainly neither of those things, and neither is Nixpkgs!)
In reality, the phase difference is always small, and it ends up not mattering.

But... If you had a worldwide electricity grid running at 60Hz, it would start to matter, and you would make sure to use local capacitors/inductors to make phase shifts to make sure that you didn't have big circulating currents in loops (they just are wasting energy)
For those mentioning about detailed location tracking / communication: Non-low-bandwidth communication underwater is really difficult due to the physics of EM waves traveling through a medium such as water: https://en.m.wikipedia.org/wiki/Underwater_acoustic_communic...
I patched a bug in a router firmware and jailbroke another router using Ghidra (mostly but also binwalk).

I have no business being able to do either, still both became weekend tasks using Ghidra.

I've since played around with hopper, binary ninja and radare2. Fun!
Discharging >40% of the freshwater usage in a country to the open ocean is not a 'small' anecdote.
An other component of the Gil story is that removing the Gil require adding fine grained locks, which (aside from making VM development more complicated) significantly increases lock traffic and thus runtime costs, which noticeably impacts single-threaded performance, which is of major import.

Postgres starts from a share-nothing architecture, it’s quite a bit easier to evaluate the addition of sharing.
Hydrophones will pick up a crush event. When the Scorpion went missing, they eventually found spikes in the recordings and were able to triangulate.
Great Concept, would like to see this applied to many sub-categories.
Nonsense, multithreaded code can be written as bug free as regular code. No need to fear.
The manifesto itself isn't dangerous, but the way that Kaczynski drove attention towards it certainly was
Sure.

For starters, we'd lose TSMC. Immediately, overnight, there is no supply of Nintendo Switch Game Cards, Apple Silicon Processors, NVIDIA Graphics Cards, MediaTek Tablet Chips, AMD Processors, AMD Graphics Cards, Qualcomm Processors, or Marvell Ethernet Controllers. This is because over 60% of chipmaking, and over 90% of advanced chipmaking (CPUs, FPGAs, etc.), is Taiwan-based.

We would still have Intel in America. And that's about it. There's also South Korea as a manufacturer of chips, but their capacity at Samsung is limited, yields haven't been great, and China will be exerting maximum pressure on them. But even Intel would have availability problems, possibly for years, as Taiwanese-made supplementary chips on motherboards for audio, Ethernet, and so forth would not be available.

That's just the beginning. It goes without saying that every device that uses computer chips would, almost certainly, be affected. That's if we don't decide to do sanctions on China for the invasion (or them vice-versa), in which case, anything coming from China could be affected as well.
Another one that has lost the path,

https://en.m.wikipedia.org/wiki/Unix_philosophy
Maybe we should launch these types of microbes to other planets since we know is possible for it to lead to humans and McDonald's.
Science Daily reported on it too: https://www.sciencedaily.com/releases/2020/01/200117080827.h...

And of course the Endocrine society did: https://endocrinenews.endocrine.org/eureka-2020-part-i-top-e...

A possible reason for "reputable" news outlets to not report on this is that the link between soybean oil and diabetes/obesity was already known. This paper demonstrates some specific gene regulation effects, but other than the oxytocin-insulin link any other effects are more speculatory.
Show HN: Python package for interfacing with ChatGPT with minimized complexity
Elo isn't an acronym/initialism.
Luckily you are mistaken that it is "medical consensus" and your opinion isn't the only valid one.

There are studies that show that hormone blockers don't actually decrease psychological distress (which is why England just said they're going to limit puberty suppressing drugs).

I think it's more interesting that people think children who can't possibly comprehend lifelong implications of most things are being given life altering drugs that don't have proper long term research is a good idea.
https://en.wikipedia.org/wiki/Ward_Cunningham#%22Cunningham'...