HN user

cjm42

117 karma
Posts0
Comments38
View on HN
No posts found.

This is the classic example of why you should always set the foreground color when changing the background color. Otherwise you end up with <code> blocks that are black-on-black. It probably works fine if your browser is in dark mode.

A workaround is to open one of the code elements in the browser's debugger and add color: white to the :not(pre) > code style.

Does it allow truly persistent mosh connections? I can't remember which iOS client it was, but I've used one which forgot I was connected if I left the app for long enough. The mosh process was still running on the server, but my iPad had forgotten how to talk to it.

I believe the primary use-case for devices like this is debugging "Why isn't this server rebooting?" without driving to the datacenter. Good luck figuring that out with AnyDesk or SSH.

Not to me. It says "System Initiative is an Intuitive, Powerful, and Collaborative replacement for Infrastructure as Code" but I still don't understand what it does or why I would want to use it.

He meant approximately half a bit. Base64 uses 64 characters, which means 6 bits per character. 50 characters gives you about 5.64 bits per character. Unlike Base64's 3-bytes-equals-4-characters, that never comes out evenly.

Let's face it, the Perl 5/PCRE regex syntax is atrocious. The only reason it exists is that (? was a syntax error in earlier regex syntaxes, so it could be redefined to mean anything.

Raku is an attempt to design a sane regular expression language from first principles, now that we know what we want them to be able to express. The alternative is being stuck with (?:this|(?>or that)) for the next 30 years.

I made a silverware holder custom-fit to my silverware.

I found a half-inch thick HDPE cutting board at a restaurant supply store, cut it to fit my drawer, then drilled holes in it and inserted short wooden dowels to hold the stacks of silverware in place. To position the dowels, I wrapped a nail in tape to match the diameter of the dowels, then placed my silverware on the board, slid the nail up next to it, and gave it a tap to mark the board where the holes needed to be drilled.

It worked really well and was quite easy to do. I highly recommend it.

redhat-release is a symlink to /etc/centos-release:

  $ cat /etc/redhat-release 
  CentOS Linux release 7.5.1804 (Core)

I've been using Joplin for a while now, syncing via Nextcloud.

One tip: I set up a cronjob to export into a Git repository so I have a complete history. The core of the script is:

  joplin sync
  joplin export --format=raw "$tmpdir"
  # Rsync that directory to the repository
  # This deletes files that no longer exist in the current export.
  /usr/bin/rsync -a --quiet --delete --exclude=.git "$tmpdir/" "./"
  /usr/bin/git add -A

MATE is a GNOME 2 fork created to continue its development without the radical turn of GNOME 3.

Cinnamon is actually a GNOME 3 fork created to turn it back into a more traditional desktop environment.

XFCE is not a fork of any version of GNOME, although it does have a UI similar to GNOME 2 and is based on GTK.

Personally, I switched to XFCE back when GNOME 3 came out, and have been happy with it.

My browser can't even read that. It renders as "In Hamlet, Act [2163], Scene [2168]..." (where [2163] means a small box with those 4 digits). What font do I need to install to be able to read that as "In Hamlet, Act IV, Scene IX..."? (I'm using Firefox on Arch Linux.)

Just for fun, I tried again today with a new chat:

Q: Who was the first US president whose surname begins with "R"?

A: The first US president whose surname begins with the letter "R" was John Quincy Adams.

Q: Adams does not begin with "R"

A: I apologize for the mistake. The first US president whose surname begins with the letter "R" was Rutherford B. Hayes.

Q: Hayes does not begin with "R"

A: My apologies for the mistake, the first US president whose surname begins with the letter "R" was James A. Garfield.

Q: Garfield does not begin with "R"

A: I apologize for the error. The first US president whose surname begins with the letter "R" was Richard Nixon.

Q: Nixon does not begin with "R"

A: I apologize for the mistake. The first US president whose surname begins with the letter "R" was George Washington.

Q: Washington does not begin with "R"

A: I apologize for the mistake. The first US president whose surname begins with the letter "R" was Franklin D. Roosevelt.

Q: Wasn't Theodore Roosevelt president before FDR?

A: Yes, you are correct. Theodore Roosevelt was the 26th President of the United States, serving from 1901 to 1909. He was the first US president whose surname begins with the letter "R." Thank you for pointing out the error in my previous answer.

So at least it's capable of parroting the correct answer after you deliver it. :-)

The problem is that if you don't already know the answer, it's hard to tell the difference between ChatGPT giving you the correct information and ChatGPT authoritatively spouting the wrong information.

Here's a chat I had today with ChatGPT:

Q: Who was the first US president with a last name starting with R?

A: Rutherford B. Hayes was the first US president with a last name starting with "R."

Q: no, a surname starting with R

A: Rutherford B. Hayes was the first U.S. President with a surname starting with "R."

Q: no, Rutherford is his first name

A: The first US president with a surname starting with "R" was Richard Nixon.

Q: no, Richard is his first name

A: The first U.S. President with a surname starting with "R" was James A. Garfield.

Here it's obvious ChatGPT is spouting nonsense, but in other cases it may not be.

The big problem with this is that mobile Safari on iOS won't autofill passwords for sites using WWW-Authenticate. It used to, but that feature got dropped years ago, which really ticks me off, as I regularly use a couple of sites that use it.

That's the way I read it, although I don't understand why they're focusing on installation. That seems like choosing a car based on how long it takes to change the oil.

I'd be more interested in a benchmark of how much slower it is than having the right version of Ruby directly in your path, or versus rbenv shims.

iPad Pro M1 5 years ago

If I type "3 + 6 + 9" as fast as I can, then hit "=", I only get 18 about half the time. Sometimes I get 12, sometimes 15, occasionally something else. This is with a iPhone 11 Pro on iOS 14.4.2. It's ridiculous. I always hear the same number of clicks, though.

Yes, it would cause issues with hosting services that use CNAMES in the way they were intended. e.g www.example.com might be CNAMEd to example.bigwebhost.com so that bigwebhost can change the IP addresses used by example.com without having access to example.com's DNS. Your proposed change would make every site hosted by bigwebhost part of the same domain, potentially leaking cookies to each other.