HNHacker News
TopNewBestAskShowJobs

papercrane

1,797 karma · joined February 19, 2009

submissionscomments
papercrane··on US Gov acknowledges that 100K fee does not apply to existing H-1B visas holders [pdf]
It's 100k a year. H1B are normally valid for 3 years, so that's where the 300k comes from. The $1M figure is for the "Trump Gold Card" visa, which is unrelated to the H1B program.
papercrane··on The EU Just Killed ARR
The Data Act allows for termination penalties in cases like that. You just have to make sure they're clearly disclosed in the contract.
papercrane··on Leaked Ice document shows worker detained in Hyundai raid had valid visa
That doesn't make it sound better. Generally "arrest them all and sort it out later" sounds like a 4th amendment violation.
papercrane··on Anthropic judge rejects $1.5B AI copyright settlement
Do you have a source for that because MAI Systems Corp. v. Peak Computer, Inc established that even creating a copy in RAM is considered a "copy" under the Copyright Act and can be infringement.
papercrane··on Using Podman, Compose and BuildKit
Quadlets also support a .kube file. I have a similar use case where I have 6 containers I want to all run on the same network. So have a k8s YAML file that has a pod with the containers, their configuration and path mapping and then a have a `service.kube` file with a '[Kube]' section and a 'Yaml=/path/to/config.yaml' directive. That creates a single service to stop/start with systemd and has all the containers running on the same network in a single pod.
papercrane··on Left to Right Programming
Gotcha! In python there is a `split_at` function for this in the more-itertools package, but I don't think there is a concise way to do it in the stdlib.
papercrane··on Left to Right Programming
> Though neither python nor rust have such a nice `.split(None)` built in.

Sorry, I'm not sure I understand what `.split(None)` would do? My initial instinct is that would would return each character. i.e. `.chars()` in Rust or `list(s)` in Python.

papercrane··on What'll happen if we spend nearly $3T on data centres no one needs?
> If they arrange financing but don't hold the loans themselves, they get paid without assuming any risk, yes?

Yes, that's correct. It's typically how investment banks operate, their main business is facilitating transactions. They'll turn around and sell the loans to hedge funds and private investors.

This obviously mean they have incentive to encourage buildouts and to downplay the risks of the loans.

papercrane··on Beetroot juice lowers blood pressure by changing oral microbiome: study
The lead pipes theory is mostly just pop-science. Romans were likely getting more lead exposure from using lead cooking vessels and utensils.
papercrane··on Beyond Meat fights for survival
It sounds like your describing aloo tikki. It's really delicious and sometimes used as a vegetarian burger patty.
papercrane··on KX Community Edition
> The website is named 'defcon', like the famous defense conference.

Both the defense conference and this are references to the military term DEFCON, that stands for "defense readiness condition". Q here is referring to the Q programming language that is built on top of KDB's K language.

The website is a blog and learning resource for the Q language.

papercrane··on Underwater turbine spinning for 6 years off Scotland's coast is a breakthrough
Yes, the Annapolis station was conceptually very much like a hydroelectric dam generator. When the tide was coming in sluice gates were opened to allow a reservoir to fill, then when the tide was going out the water was sent through a high-speed turbine.

It's unlikely that Nova Scotia will see tidal power again in the near future. There's been some attempts at in-stream generation, but the projects have been opposed by the local fisheries, and the federal regulators don't seem interested in helping define the requirements.

papercrane··on ICEBlock, an app for anonymously reporting ICE sightings, goes viral
> I am reading “potential citizen” as “a detainee who claims to be an American citizen whose citizenship status was not ascertained.”

That's not what it means in this context. The GAO report is based on ICE's own database records, they found 70 deportees that records indicated they were potentially citizens.

> Law enforcement can get things wrong, but I haven’t read of any documented instances of this happening.

Wikipedia has an article that lists documented instances of citizens being removed.

https://en.wikipedia.org/wiki/Deportation_of_Americans_from_...

papercrane··on ICEBlock, an app for anonymously reporting ICE sightings, goes viral
ICE deporting US citizens is not a new problem. In 2021 the GAO estimated that between 2015-2020 70 potential U.S. citizens were removed.

There are also cases where children who are citizens have been removed with a parent. In those cases the US government claims that they parents voluntary took the children, while the families claim that little no chance was given for the families to arrange for the children to stay.

GAO Report: https://www.gao.gov/products/gao-21-487

Wikipedia has a good round of sources for the recent removals of US children: https://en.wikipedia.org/wiki/Detention_and_deportation_of_A...

papercrane··on Show HN: RomM – An open-source, self-hosted ROM manager and player
Looks like it does support 1G1R with the --single option and can infer parent/clone information if it's not provided, like with redump DATs. You could also use retool to create a DAT with that information based on your preferences, but as you said that's probably not viable longterm since retool is no longer maintained.

https://igir.io/dats/processing/#parentclone-inference

papercrane··on Show HN: RomM – An open-source, self-hosted ROM manager and player
Your comment piqued my interest, as that would be a required feature for me to use something like this.

It looks like they do support integrating with a tool called Igir to handle validating and naming ROMs using DAT files.

https://docs.romm.app/latest/Tools/Igir-Collection-Manager/

papercrane··on Show HN: Samchika – A Java Library for Fast, Multithreaded File Processing
If you're using a newer JVM you can also map a "MemorySegment", which doesn't have the 2GiB limit that byte buffers have.
papercrane··on US Administration announces 34% tariffs on China, 20% on EU
A plan like that could backfire, as one of the primary things that the Fed looks at when setting interest rates is inflation. Increasing the costs of imports across the board will likely increase inflation, which would make a rate cut less likely.

But in general, I think this is too complicated. The simpler explanation for all this is the Executive branch is currently held by isolationist.

papercrane··on MLB says Yankees' new "torpedo bats" are legal and likely coming
It could get even more wild. I could imagine batters having custom profiles for different pitchers. E.g. one bat for when hitting against someone who throws 100MPH four seam fastballs, and another when facing someone who throws 90 MPH cutters.
papercrane··on MLB says Yankees’ new “torpedo bats” are legal and likely coming
Different bat profiles have been around forever, and many players have their own custom profiles that they like.

I think the key innovation that enabled this new profile is the accuracy and quality of data being collected.

Edit: Here's an article talking about some of the bat tracking technology that MLB has deployed in recent years: https://technology.mlblogs.com/introducing-statcast-2023-hig...

papercrane··on Meta claims torrenting pirated books isn't illegal without proof of seeding
Copyright infringement is a strict liability offence, so not having intent isn't a defense.

However, in this scenario you'd very likely have a good "innocent infringement" defense, which would allow the judge to lower the statutory damages to as low as $200. Since the damages available are so low it wouldn't be worth suing over.

papercrane··on Meta claims torrenting pirated books isn't illegal without proof of seeding
The plaintiffs will, eventually, need to prove that their claim is likely true ("preponderance of the evidence" standard.) Right now they're fighting about expanding discovery to try and uncover more evidence.
papercrane··on Meta claims torrenting pirated books isn't illegal without proof of seeding
The US Constitution grants congress the power to give authors and inventors time-limited exclusive rights to their works/discoveries (Art1.S8.C8). This moots the 1st amendment argument.

https://constitution.congress.gov/browse/article-1/section-8...

papercrane··on Meta torrented & seeded 81.7 TB dataset containing copyrighted data
Meta admitted to the torrenting more than a month ago. The reason this is in the news is because some of the emails discussing it have been unsealed.
papercrane··on JavaScript Temporal is coming
1997 would be JDK 1.1, which introduced the java.util.Calendar/GregorianCalendar classes. The Calendar API was an improvement in some use cases over Date, but it's biggest flaw was mutability. The current API is based on JodaTime and is very similar to Temporal.
papercrane··on Zuckerberg appeared to know Llama trained on Libgen
Assuming the works have registered with the copyright office they're eligible for statutory damages.

The range for that is huge though, it can be in the hundreds of dollars per work, or if the infringement is shown to be wilful then a judge can award up to $150,000 per work.

papercrane··on Lenovo has removed the TrackPoint nub from new ThinkPad laptops
I've always preferred it to low-quality trackpads that a lot of laptops tend to have. Typically I would use my thumb and wouldn't have to move my hand very much at all.
papercrane··on Justin Trudeau promises to resign as PM
Yes, but that was a very unusual time and can be attributed to the US financial crisis. In addition to money fleeing the US, the Canadian and US interest rates diverged to strengthen the Canadian dollar.
papercrane··on Justin Trudeau promises to resign as PM
> The Canadian dollar has collapsed VS the USD.

The CAD is sitting at about $0.70 USD right now, which isn't really outside of it's typical range, and not really unexpected given the difference in interest rate now between Canadian & US interest rates. If you look at historical prices it looks more like business-as-usual, the CAD usually bounces between 0.70-0.80 USD.

papercrane··on Java in the Small
Records being allowed in methods has been great for me when doing things like path finding. Makes it easy to write something like:

    record Node(int cost, int row, int col){}
    var pq = new PriorityQueue<Node>(Comparator.comparingInt(Node::cost));
← PreviousPage 2 of 16Next →