HNHacker News
TopNewBestAskShowJobs

greenshackle2

1,836 karma · joined October 4, 2016

submissionscomments
greenshackle2··on Show HN: Comma Separated Values (CSV) to Unicode Separated Values (USV)
I'm good I'm just here to chat, not to promote anything ;)
greenshackle2··on Show HN: Comma Separated Values (CSV) to Unicode Separated Values (USV)
Wrong. Consider the standard backslash escape: represent literal comma as "\,", and literal backslash as "\\". Backslashes are otherwise forbidden.

It will be difficult to find pathological cases for this grammar, because they don't exist.

greenshackle2··on Show HN: Comma Separated Values (CSV) to Unicode Separated Values (USV)
Can you parse this 2-row CSV:

SomeCommas,MoreCommas,OnlyOneComma,ALotOfCommas

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

greenshackle2··on Show HN: Comma Separated Values (CSV) to Unicode Separated Values (USV)
I'm sorry but.. why? The library is a single function consisting of 10 lines of Rust code. And would be about 10 LOCs to re-implement in any language that has native csv libs. It seems a little bit unnecessary to load a WASM runtime for that.
greenshackle2··on Cloning a Laptop over NVMe TCP
If both ends got APIPA addresses would they be able to talk to each other?

I was under the impression you have to set up the devices as each other's default gateway, but maybe I'm the one not up to modern standards this time.

greenshackle2··on Show HN: Comma Separated Values (CSV) to Unicode Separated Values (USV)
Yeah they should add it. The tool is like 20 lines of Rust code. It's a thin wrapper around the csv Rust crate, which does support specifying alternative delimiters.
greenshackle2··on Show HN: Comma Separated Values (CSV) to Unicode Separated Values (USV)
This is (nominally) a discussion about the csv-to-usv tool. They are asking if the csv-to-usv tool also accepts semi-colon delimited files as input.

Have you maybe lost track of what post you're commenting under?

(I believe the answer is no BTW, the tool only supports , as delimiter in its input.)

greenshackle2··on Cloning a Laptop over NVMe TCP
Right, that plan is somewhat foiled by most laptops not having ethernet ports anymore.

You don't need crossover cables anymore. You can just connect a regular patch cable directly between 2 devices. Modern devices can swap RX/TX as needed.

As for auto-configuration, that's up to the OS, but yeah you probably have to set up static IPs.

greenshackle2··on Cloning a Laptop over NVMe TCP
Next time, I'll be sure to do it the easy way by going back in time and getting a free copy of Acronis TrueImage in 1998.
greenshackle2··on Cloning a Laptop over NVMe TCP
You just need a single Ethernet cable really, if the devices are reasonably modern. With Auto MDI-X the days of needing a crossover cable or a switch are over.
greenshackle2··on Technitium DNS Server: Self host a DNS server for privacy and security
DNS over HTTPS is using port 443 because it's... HTTPS. Are you blocking that too?
greenshackle2··on What every software developer must know about Unicode in 2023
Which French layout would that be? I've never seen a French keyboard where this is true. French is my native language. On layouts I'm familiar with, some accented letters have separate keys like é, but not all, the others are made by composing an accent key with a letter.
greenshackle2··on Credit card debt collection
I'm in Canada so laws are different but what I found here is when I ask for proof they don't send it, they just sell the "debt" to a different agency and then I start getting harassed again 2 months later, rinse and repeat.

(I put debt in quotes because the alleged debt is with a company I've never done business with, so I assume it's completely fake, mistaken identity, or identity theft.)

greenshackle2··on macOS command-line tools you might not know about
I was hoping this would let me set 125% scaling on my 3440x1440 display but no, I guess it's a hard OS limitation. It's my biggest gripe with MacOS.

(There's BetterDisplay - formerly BetterDummy - but it introduces noticeable input lag for me.)

greenshackle2··on Overhead of Python asyncio tasks
> automated assessment tests, I was consistently placed in the "best" decile

Of course you were. I'd expect that for a large fraction of gainfully employed devs.

People who can't code their way out of a paper bag are way over-represented in tech screens. Because a highly competent dev will apply at 3 companies they choose and get a job. A terrible dev will do 100 applications and see what sticks.

We opened a ML intern position recently and got over 200 applications and 95% of them were terrible. Should I conclude most ML grads are incompetent? I don't think so... probably 190 of them are the bottom 5% of the local market, and these same 190 CVs are on the desk - well, in the rubbish bin - of everyone with an open position right now.

greenshackle2··on Overhead of Python asyncio tasks
> But, what do you think happens when you write (input) data to memory and then read (output) it from memory? I'll help you: it starts with "I" and ends with "O"!

That's.. that's not what people mean when they talk about I/O in this context. But I think you know that, you're just grasping at straws to win an argument.

greenshackle2··on Canada's tax revenue agency tries to ToS itself out of hacking liability
You can still mail in paper forms.
greenshackle2··on Overhead of Python asyncio tasks
Asyncio is for cooperative multitasking. I/O is the most common use case but it's not the only one. They're using the event loop to schedule their GUI tasks.

Textual is a framework for building desktop apps.

I assume the message queues are in-memory structures used to pass messages between tasks, hence no I/O.

This is really fairly standard stuff.

I understand you may not be familiar with GUI software and/or the Python ecosystem but jumping straight to condescension when you don't understand something is not really a good attitude.

greenshackle2··on Walmart, CVS face trial for homeopathic products next to real meds
Clicking five semi-random links on the first page of pubmed is not a comprehensive review of the literature.

If you search homeopathy on Cochrane, who are somewhat the gold standard for reviews of medical evidence, 6 out of 6 that I checked concluded there's not enough evidence to say it works (there are more but I got bored and didn't check them all).

> People can dismiss the science, but that doesn't seem very rational to me.

On the contrary, homeopathy is like a low-level skill check for rationality. If you can be convinced homeopathy is real by a questionable grab-bag of studies, you can be convinced of anything.

There are also studies and meta-analyses showing parapsychic phenomena are real.

It's not that difficult to produce positive studies if you're motivated enough.

It's not just a case of "mechanism of action is unknown", it's that given the nature of homeopathic remedies, any possible (non-placebo) mechanism of action for it goes against our current understanding of physics and chemistry.

And any suggested mechanism for how water with not a single molecule of active ingredient is effective would additionally have to explain why it only works if it's packaged and sold at your local drugstore. Tap water should be high-strength homeopathic medicine for everything. After all I'm sure people have dumped homeopathic ingredients down the sink at some point. Water is cycled so most water should have most homeopathic properties already by now.

greenshackle2··on Open Source Bait and Switch
If they owned 100% of the copyright, then it still wouldn't matter. The GPL gives additional permissions, along with some restrictions / obligations, to Licensees. As copyright holder you are not a Licensee.

You do not need to grant yourself a license to distribute your own works. You always had that right.

Besides, who would sue you? The only person who has standing is the copyright holder. You're gonna sue yourself because you failed to honor the terms of a license, which was granted from yourself to yourself?

If they didn't own 100%, then see 1).

greenshackle2··on Open Source Bait and Switch
You can read the terms yourself, the network part is section 13, it's not long.

https://www.gnu.org/licenses/agpl-3.0.en.html

It just says interact remotely through a network. Interpreting what this means precisely is left as an exercise for the reader / the reader's lawyer.

  forgot to block the right port
I'm not against AGPL myself so don't take that as like, the strongest argument against it. It was meant a bit tongue-in-cheek.
greenshackle2··on Open Source Bait and Switch
The justification usually given for AGPL is to prevent other companies from running paid SaaS without sharing their modifications. The actual terms is that any user who interacts with the software over the network must be able to download the sources. It doesn't say anything about whether the service is paid or free.

I think the argument of FOSS people who don't like it would be something like, as a user, just running the software on my machine can potentially create a legal obligation to set up source distribution, if, like, I forgot to block a port.

greenshackle2··on Open Source Bait and Switch
It's unclear from the article whether:

1) RoboVM had to use the GPL license because they used other people's GPL code - which they presumably pulled out / rewrote themselves in their new closed-source version

or

2) the author mistakenly believes that RoboVM is bound to the terms of the GPL license, or forced to offer new GPL licenses, on code they own 100%, just because they have offered GPL licenses to other people in the past

greenshackle2··on ISO name change for Türkiye
> 1 day (not 24 hours)

Just to spell it out, some days have 25 hours or 23 hours due to daylight savings, or 24 hours and 1 second because of leap seconds, etc.

greenshackle2··on ISO name change for Türkiye
> the user has selected for the machine

I don't think most Java and C# software is desktop apps? Surely in most cases it's the locale selected for the server or VM, which should be consistent?

(I'm not saying it's good coding practice, mind you, but it probably ends up accidentally working in a lot of cases.)

greenshackle2··on Bundling binary tools in Python wheels
Still no way to publish a wheel for musl-based Linux though, is there?
greenshackle2··on Tim Hortons app violated laws in collection of ‘vast amounts’ of location data
Downtown Montreal has 7 Tim Hortons in 1 square kilometer.
greenshackle2··on You can no longer purchase Kindle books through the Amazon app on Android
Not only that, but they only rolled out the Comixology web store in the US and UK:

https://www.amazon.com/kindle-dbs/comics-store/home

There is no such page on Amazon.ca, Amazon.com.au, etc. Actually, the route exists, but it's broken:

https://www.amazon.ca/kindle-dbs/comics-store/home

In Canada, the only place I can buy Comixology titles now is the generic Kindle store, and it's pretty bad for browsing comics.

greenshackle2··on So I took a corporation to arbitration
What would you call it then? Water heater is ambiguous. Could be a pool heater, a central heat heater, etc. It's perfectly clear what they mean.
greenshackle2··on U.S. takes unprecedented steps to replenish Colorado River's Lake Powell
That's roughly enough water to grow 50-100 acres of alfalfa. There's a million acres of alfalfa grown in California. And more of other water intensive crops. Yeah it's shitty but it's not a root cause, it's a rounding error compared to agriculture.
Page 1 of 21Next →