HNHacker News
TopNewBestAskShowJobs

alexjm

128 karma · joined September 21, 2018

Hello!
submissionscomments
alexjm··on First underwater messaging app for smartphones
There's a video with sound in their GitHub repository's README. It sounds sort of like three short bursts of sound, with the second one warbling between a couple pitches.

https://github.com/uw-x/watercomms

Direct video link:

https://user-images.githubusercontent.com/174899/173208820-4...

alexjm··on How to stop junk mail
Small savings accounts at your local post office used to be a thing in the US, back in the days when banks mostly catered to wealthy urban customers, and seems to have done elsewhere too:

<https://en.wikipedia.org/wiki/United_States_Postal_Savings_S...> <https://en.wikipedia.org/wiki/Postal_savings_system>

Seeing the high fees that some banks charge, I'd love to see USPS savings accounts come back as some low-fee competition.

alexjm··on The great junk transfer is coming
If you have a decent photo of the side of the key, you can make a pretty good guess at the bitting code, which is essentially the instructions for making a copy. Here's an example of the process: https://www.youtube.com/watch?v=JoRyv4ANhM4
alexjm··on Japan's Paper Culture
I used the book "The Italic Way to Beautiful Handwriting" by Fred Eager. The italic method, in contrast to printing or cursive, seemed to have enough connected letters to write quickly, but without insisting on connecting everything like cursive, even when it made writing awkward. I also followed some of the movement drills from a manual for the Palmer method, a cursive pre-typewriter "business" handwriting style from the early 1900s that was meant to be written quickly and legibly all day, but which some folks think looks too old-fashioned today.
alexjm··on VPN over SSH? The Socks Proxy
I've found ProxyJump to be a bit simpler than ProxyCommand -- it might be a newer feature. For example, my SSH config has two entries to connect to my grandfather's laptop through a Raspberry Pi that acts as the jump host:

  Host papa
  HostName 192.160.0.1 <-- LAN IP address
  User alex
  ProxyJump papa_pi

  Host papa_pi
  HostName 1.2.3.4 <-- public IP address
  User pi
alexjm··on Apple M1 Assembly Language Hello World
The process for Apple hardware to find and start EFI is described in the "Booting from an Apple File System Partition" section on page 22 of this document. Basically, the EFI image is read from a special block on disk.

https://developer.apple.com/support/downloads/Apple-File-Sys...

The boot process for HFS+ is more involved, because you have to actually read the HFS+ file system to locate the EFI image, since it's stored in a regular file.

I'm not sure what happens after jumping into the EFI code.

(Disclaimer: I worked on the linked document.)

alexjm··on Antique Ticker Tape Machines
This sort of stock ticker uses a small metal wheel that continuously rotates from letter to letter, with an electric mechanism to print the letter that's currently in position. That makes it very slow compared to teletypewriters -- you have to wait for the needed letter to come around, rather than just lifting the correct typebar. Teletypewriters also have mechanisms to move a full-width sheet or roll of paper, which makes them larger than the roller that this ticker has to advance its paper tape.

I've had a hard time finding tickers in pictures or videos, but here's one; skip to nearly the end to see it printing.

https://www.youtube.com/watch?v=5N_A5hUDtZY

alexjm··on Original Dartmouth College BASIC manual (1964) [pdf]
I think I've seen some older content where the convention was reversed like this. Wikipedia's article on slashed zero claims that IBM and some other mainframes put their slash on the letter O instead of the number 0. However, in a bit of circularity, its citation (1) is this same BASIC manual. Checking an IBM manual (2) for punching cards, neither 0 nor O has a slash. The manual is undated, but documents the model 26 keypunch from 1949 and not the model 29 keypunch from 1964, so it's probably older than this BASIC manual.

1: https://en.wikipedia.org/wiki/Slashed_zero#cite_ref-9

2: https://archive.org/details/bitsavers_ibmpunchedAnIntroducti... (page 4, 15)

alexjm··on Show HN: Text-to-podcast: Repurpose any content into podcasts
Not to be confused with https://podcastle.org/, which is a podcast of fantasy short stories.
alexjm··on The Plow that broke the plains (1936) [video]
It also says it was uploaded to YouTube in 2013. Typical video resolutions were lower back then.
alexjm··on Learn Vim (the Smart Way): a book to learn the good parts of Vim
You can reduce the delay by setting ttimeoutlen, the time in milliseconds between an escape key being pressed (or jk etc. that are mapped to Esc) and exiting Insert mode. I have it set to 100.
alexjm··on Ask HN: Which tools have made you a much better programmer?
True and handy. However, Esc and ^C don't have exactly the same behavior -- from the documentation:

<Esc> or CTRL-[ End insert or Replace mode, go back to Normal mode. Finish abbreviation.

CTRL-C Quit insert mode, go back to Normal mode. Do not check for abbreviations. Does not trigger the InsertLeave autocommand event.

alexjm··on Ask HN: My wife might lose the ability to speak in 3 weeks – how to prepare?
Sign language in the US forms a sort of dialect continuum.

At one end is ASL, which its own language as you said, although with some influence from English).

On the opposite end are things like Signed Exact English that reproduce English verbatim on the hands, borrowing from ASL in some places and inventing signs in other places. For example, ASL has no sign for -ed (the past tense ending) because it marks aspect instead of tense, so SEE invented a sign for it.

And in the middle is Contact Sign or Pidgin Signed English, a sort of compromise between ASL and English grammar, which is most used when ASL speakers and non-fluent speakers communicate. You might get a mix of some ASL topic-comment word order with some English subject-verb-object word order. You'l get a lot less "simultaneous" ASL grammar like indicating the subject or object pronoun using eye gaze, or conjugating verbs by changing motion, because those are hard for non-fluent ASL speakers to understand. You'll also get a lot less of the SEE constructs like explicit -ed markings, because they're usually obvious from context.

alexjm··on This Website Will Self Destruct
That's Deseret, an alternate alphabet for English. According to a converter, it says:

> I like writing in this text, it looks cool. Works different than standard old Latin alphabet, but at the same time formed* from the Latin alphabet. Imagine this being used for practical purposes. Random dude intrigued by the Deseret Alphabet.

* The converter gave me "/f/aw/r/m/d/" here

alexjm··on The Cost of Free Doughnuts: 70 Years of Regret
NPR has a full text-only version of their site. Here's this article there:

https://text.npr.org/s.php?sId=156737801

The "sId" parameter on text.npr.com matches the penultimate part of the www.npr.com URL.

alexjm··on Ask HN: Resources to grok Emacs and use it well?
One thing I do on a laptop keyboard is remap Caps Lock to Control to make that easier to type. It's in System Preferences > Keyboard > Modifier Keys.

On an external keyboard, I don't remap because I have a Control key in both corners of the keyboard that I can press with the corner of my palm/the base of my pinky finger.

BTW, did you know many Emacs keys work in standard macOS text views? For an intro and a bunch of details, see <http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html> and <http://www.hcs.harvard.edu/~jrus/site/system-bindings.html>.

alexjm··on Why Top Posting Has Won (2018)
Yes, that's the In-Reply-To header. It contains the unique message identifier from the Message-ID field of the email you're replying to.

See also https://tools.ietf.org/html/rfc822 sections 4.6.1 and 4.6.2

alexjm··on Ask HN: Git Hooks, who uses them and for what purpose?
A couple years ago, I was designing an XML schema. The document was a mix of the formal schema and English prose explaining each element. I used a pre-commit hook that extracted the RelaxNG schema and confirmed that it was well-formed, which helped me avoid committing invalid versions of the document.

On the server side, I have a post-receive hook in the repo for a website. When I push to 'develop' it runs the static generation script and deploys to my local server as a preview. When I push to 'master' it builds and pushes to production.

alexjm··on A Paper Algorithm Notation (2014)
Older APL programs used a 2D layout to show control flow, which probably worked well in handwriting but not so well once APL started being used as a programming language, rather than as a notation for specifying a program to be written. This page has some examples:

http://www.zerobugsandprogramfaster.net/essays/5b.html

alexjm··on What if personal computers were a mistake, actually?
I wonder how well the pay-to-post mechanic helps mitigate spam, trolling, and other misbehavior. Does anyone know of modern systems that work in a similar way?
alexjm··on 16-inch MacBook Pro
Very rarely. The only place I notice a difference is if the last letter I type is a j, the cursor 'hesitates' for a moment because Vim is watching for a k.

The advantage I found of jk over jj is that, in normal mode, jk is a no-op, so if I hit jk as Escape when I was already in normal mode, it doesn't matter.

The only problem is that when I'm editing text out of Vim, I end up with the occasional jk at the end of my typing. That almost happened while writing this comment.

alexjm··on US Constitution – A Git repo with history of edits
It looks like this is a limitation because Git stores dates as seconds after the Unix epoch (1970-01-01). The underlying file format allows storing negative numbers, which would represent dates before the epoch, but most toolchains don't handle them correctly. Here's a pretty good summary:

https://stackoverflow.com/questions/21787872/is-it-possible-...

alexjm··on BLUF: A military standard to make writing more powerful
Trying to make it active requires moving the key information to the end of the sentence:

"The time you spent in training last year entitles you to jump pay [for that time]."

Although style guides like this one usually advise against using passive voice because it makes things harder to read, clarity should be the goal, not just active voice. This is a good example of a reason you might prefer passive voice: because the verb's subject isn't the focus. Passive voice can also be clearer than active voice when there's no relevant or meaningful actor to use as the subject.

alexjm··on Lawsuit: Autopilot didn't prevent Model 3 from driving under semi at 68 MPH
What about this archived version?

https://web.archive.org/web/20190803003025/https://www.sun-s...

alexjm··on Why did moving the mouse cursor cause Windows 95 to run more quickly?
The ^T command is actually still around in Unix/Linux, but only when the program is reading input using canonical/cooked/non-raw mode. That's pretty uncommon these days, since input tends to be wrapped in readline or similar to allow for editing.

You can test it by running `ed`:

    ed scratch.txt
    2096
    ^T
    load: 0.57  cmd: ed 74469 waiting 0.00u 0.00s
    q
Running `stty -a` lists all of the characters that have special meaning when the TTY driver handles input this way, before the program sees it.
alexjm··on Typesetting Markdown – Part 4: Theme Style
Yak shaving usually refers to work that you started doing because you needed it while working on your actual problem, but the work isn't directly related to that problem's solution.

Here's a more detailed discussion: http://projects.csail.mit.edu/gsb/old-archive/gsb-archive/gs...

alexjm··on SwiftUI
It's part of opaque types, which are new in Swift 5.1

https://docs.swift.org/swift-book/LanguageGuide/OpaqueTypes....

alexjm··on Fully colorized video of Paris in 1896
I was surprised by that too. The original/linked YouTube video's description says that the sound was added, not restored:

"A collection of high quality remastered prints from the dawn of film taken in Belle Époque-era Paris, France from 1896-1900. Slowed down footage to a natural rate, added in ambiance sound, and colorized. These films were taken by the Lumière company."

alexjm··on Language Server Protocol implementation for Swift and C-based languages
I learned this term from a 2012 blog post, which summarized a (now deleted) Stack Overflow question:

https://blog.codinghorror.com/new-programming-jargon/

My other favorite from that list is "baklava code" -- code that has too many layers.

← PreviousPage 2 of 2