HNHacker News
TopNewBestAskShowJobs

JNRowe

7,427 karma · joined February 3, 2014

username at gmail.com ; Feel free to get in touch.

[ my public key: https://keybase.io/jnrowe; my proof: https://keybase.io/jnrowe/sigs/orH3nyNqAK4vkIpcxn2HRihHPV2HX80SyDwM9cR5xnw ]

submissionscomments
JNRowe··on Can You See the Republic of Ireland from England?
Rose-tinted nostalgia surely?

OS map styling is beautiful, but folding maps is the work of devils. You must remember trying to pin sections down so you could see across the paper splits caused by the pure evilness that is folding. It is possible my rage might also be caused by growing up on the point of a four-way boundary in Explorer and Landranger format.

More seriously though, do they no longer teach at least basic navigation skills in school? It still feels, to me, like it is an essential life skill. If only for being able to assess the validity of your phone's answers in the most general case.

JNRowe··on Ghost in the Shell – ZSH Setup
I think this article simultaneously describes everything I love and hate about zsh. The config for comfort is huge, but boy will it be comfortable when you've finished shaving that yak¹.

A few hopefully useful comments on the actual meat from a fellow traveller…

Much of the per-terminal key customising can be neatly handled with `zkbd`[zshcontrib(1)], which will also guide you with a wizard when you fire up zsh on a terminal type you haven't used before.

zsh also comes with builtin float support, so a whole heap of `bc` things can be replaced with arithmetic expressions such as `$(( x * 2.54 ))`. You can even up your game when you want more with the `zsh/mathfunc` module[zshmodules(1)], which basically just exposes math.h to the shell user.

One of my favourite options which isn't mentioned in TFA is warn_create_global, which very visibly warns you when you've forgot to scope a variable correctly. It would flag $CUT and $VULNS in `ports-check` for example.

¹ At least that is what a guy with a pink-haired pet tiger wandering a forest once promised me in a fever dream.

JNRowe··on A Farewell to Simon Peyton Jones
Related discussion from yesterday¹, but without the meat of Syme's description from this link.

¹ https://news.ycombinator.com/item?id=28473733

JNRowe··on New horizons for SPJ
Anecdote time: I attended a Haskell event at MSR some fifteen years ago, and one of my overwhelming memories is how approachable and friendly SPJ is. I had some pretty stupid questions around the topic he was presenting(STM), and he answered them with great vigour and clarity afterwards.

This does feel like a significant loss to MSR, and a massive gain for wherever he ends up. Fingers crossed it is a teaching role, as I'd like to think we'd all benefit from turning a few more SPJs loose on the world.

There is a recent MSR podcast episode with SPJ and Andy Gordon that is definitely worth a listen¹. It dips in to their histories, and also their work on Excel.

¹ https://www.microsoft.com/en-us/research/podcast/advancing-e...

Edit: My other memory was the sheer level of professionalism in the support staff at MSR Cambridge, I simply can't recall anywhere I've been where the support staff have been as helpful and courteous as they were there.

JNRowe··on Vim: Maximize the Current Split
From the manual(:h tab-page-intro): "Tabs are also a nice way to edit a buffer temporarily without changing the current window layout. Open a new tab page, do whatever you want to do and close the tab page."

Therefore a built-in alternative is `:tabe %` to open the current file in a new tab, and `:tabc` to return to your elaborate multi-window view.

Edit: Not that I'm plugin averse, quite the opposite. Just offering an option from built-in functionality.

JNRowe··on The Advantages of Flexible Typing
One of the HN threads I'm assuming they're referring to is the recent discussion of strict tables¹, which reads like the other side of this document. It may be interesting to read the comments on the other side directly.

Although, frankly every SQLite thread basically devolves in to the same thing as the TFA notes.

¹ https://news.ycombinator.com/item?id=28259104

JNRowe··on termdbms: A TUI for viewing and editing database files
Discussed yesterday under its old name¹.

¹ https://news.ycombinator.com/item?id=28408682

JNRowe··on MDcat – Simple Markdown to GitHub styled HTML converter
Ick, my bad. My toplevel comment could - and should - have been far more constructive. The updated tagline in the repo is a big improvement, good work!
JNRowe··on Remind – a sophisticated calendar and alarm program
Frankly, if you're happy with Google Calendar just use that. They really are very different, I'd compare remind more to working with the Google Calendar API.

You get to control remind with other tools if that suits you, but you also get to do the legwork to make all those integrations work. For my use case that includes birthday reminders generated from my abook¹ data, social reminders fetched and merged from a few different online sources, exercise reminders generated from goldencheetah² data, astronomy reminders generated with scripts over heavens-above.com, and more.

I find remind fits in to that category of tools where you make your own workflow that suits you, more than a simple tool you use. I've been using it since 2008, and my initial import was a code-assisted import from org-mode. I expect a similar transition could happen at some point in the future if I find another tool that fits my needs better.

FWIW, I have syncing across my devices but I'd sound like that infamous dropbox review if I suggested my way of working was for everyone. For example I'm happy with ical imports for visualising my calendar on my phone, and using termux for editing it when I don't have access to a real computer.

¹ http://abook.sourceforge.net/

² https://www.goldencheetah.org/

JNRowe··on MDcat – Simple Markdown to GitHub styled HTML converter
A little warning in the README that it is going to send your file to GitHub might be prudent. I'm sure I'm not the only one who would be expecting it to be rendering the markdown locally.
JNRowe··on Detecting At-Risk Projects in Debian [video]
Perhaps I'm missing something or the site is doing some weird UA sniffing, but I don't see the video. I did however find them tucked away elsewhere¹.

[Same message as for the other submission². Are others seeing the videos? Not even all that sure what to start poking at if its just me.]

¹ https://meetings-archive.debian.net/pub/debian-meetings/2021...

² https://news.ycombinator.com/item?id=28364364

JNRowe··on Do founder decisions impact development activity after crisis events? [video]
Perhaps I'm missing something or the site is doing some weird UA sniffing, but I don't see the video. I did however find them tucked away elsewhere¹.

¹ https://meetings-archive.debian.net/pub/debian-meetings/2021...

JNRowe··on Remind – a sophisticated calendar and alarm program
I'm a huge fan of remind, and have a `rem -q` display in every new terminal window I open.

remind can appear incredibly daunting given how long the documentation is, but it can slowly grow with you. If you're new to it I'd recommend starting with simple static reminders or importing external calendars to get a feel for it, and then work your way up as your needs/comfort increase.

Beyond the supporting tools mentioned in that page, there is also wyrd¹. It is an excellent curses interface for remind, that is incredibly useful as an interactive remind viewer and editor.

¹ https://packages.debian.org/stable/wyrd - Debian page with source links in sidebar, because upstream appears dead.

JNRowe··on Vim It Up
A bunch of the better defaults mentioned are already handled by vim since v8(:h defaults.vim), but beyond that using Tim Pope's vim-sensible¹ feels like it may be a better starting point. The repo's issues also contain some real gold on the reasoning behind why some settings are useful as defaults and why others are probably less so.

In the spirit of that reddit thread, my only tip is to have a few full runs at vimtutor and then simply buy both of Drew Neil's excellent books²³. Structured learning from domain experts, not piecemeal randomness from our fellow internet commenters. Drew's free vimcasts⁴ are great too, and give a taste of the quality you'll find in his books.

JNRowe leans back to chew on some piecemeal randomness

¹ https://github.com/tpope/vim-sensible

² https://pragprog.com/book/dnvim2/practical-vim-second-editio...

³ https://pragprog.com/book/modvim/modern-vim

⁴ http://vimcasts.org/episodes

JNRowe··on Strict Tables – Column type constraints in SQLite - Draft
I suspect if I had to answer as many questions/rants about type strictness as the authors do I'd probably choose much stronger language. It definitely wasn't intended, but I guess my earlier comment could be read as the ten-thousandth entitled complaint of the day too.
JNRowe··on An Opinionated Guide to Xargs
One way which isn't great, but an option nonetheless… The zsh parser is happy with that form:

    $ zsh -c '< <(echo hi) while read a; do echo "got $a"; done'
    got hi
My position isn't that it is a good reason to switch shells, but if you're using it anyway then it is an option.
JNRowe··on An Opinionated Guide to Xargs
If you're a zsh user it offers a version of something like xargs in zargs¹. As the documentation shows it can be really quite powerful in part because of zsh's excellent globbing facilities, and I think without that support it wouldn't be all that useful as a built-in.

I'd also perhaps argue that the reason we don't want xargs to be a built-in is precisely because of zargs and the point in your second paragraph. If it was built-in it would no doubt be obscenely different in each shell, and five decades later a standard that no one follows would eventually specify its behaviour ;)

¹ https://zsh.sourceforge.io/Doc/Release/User-Contributions.ht... - search for "zargs", it has no anchor. Sorry.

JNRowe··on Strict Tables – Column type constraints in SQLite - Draft
I wouldn't go as far as to say I'm aghast at the lax typing¹, but I look forward to this change hitting a release. Adding some sugary support for a strict DATETIME type in a future release would tick every box I want from sqlite.

In a couple of projects I work on the main reason for plopping an ORM between sqlite and the application is to implement type strictness, and removing that need would be excellent.

It would also neatly shut down a discussion that comes up far too often when someone wants to use sqlite as data store, which is surely a good thing as it is often just a stop motion argument in my experience.

¹ I am closer to that camp iff I have to choose an option from the article.

JNRowe··on South Atlantic Anomaly
“The DoD clarified that it was either a bomb blast or a combination of natural phenomena, such as lightning, a meteor, or a glint from the Sun.” I guess that is a kind of clarification, right?

I find the idea of simply not knowing¹ forty years later really quite disturbing.

¹ Trusting that explanation is accurate

JNRowe··on Paper Sizes Explained
Markus Kuhn’s International Standard Paper Sizes¹ is a great document on ISO-216 paper sizes, if you want a little more depth than HelloNurse’s succinct description. It also covers US-style sizes toward the bottom.

Kuhn also has an excellent ISO-8601 document², which makes you wish he would dive through more of the common standards that ISO stand guard over.

¹ https://www.cl.cam.ac.uk/~mgk25/iso-paper.html

² https://www.cl.cam.ac.uk/~mgk25/iso-time.html - Sadly only covers timestamps, not durations/intervals/etc

JNRowe··on Space Station incident demands independent investigation
FWIW, it actually is part of an old sci-fi novel, featuring in Arthur C. Clarke's 2010¹. China suddenly joins a race to Jupiter by firing up its "space station".

¹ https://en.m.wikipedia.org/wiki/2010:_Odyssey_Two

JNRowe··on A Long, Painful History of Time (1999)
Rob Eastaway's excellent How Long is a Piece of String¹ covers the history of month and day names in its first chapter. Thirteen pages from 30000 BCE to now, via abundant and perfect numbers. Day names eventually being explained with the following table:

    Planet day  English     French
    ----------  ----------  ----------
    Saturn      *Saturday*  *Samedi*
    Sun         *Sunday*    Dimanche
    Moon        *Monday*    *Lundi*
    Mars        Tuesday     *Mardi*
    Mercury     Wednesday   *Mercredi*
    Jupiter     Thursday    *Jeudi*
    Venus       Friday      *Vendredi*
I'll admit I'd somehow never spotted that Lundi comes via diēs Lūnae, even though Dimanche from diēs Dominicus jumped out even to my English tongue.

It also contains a lovely example of how day names would be different if other objects were visible in the night sky with the naked eye.

[I'm pimping the book here because I imagine its mix of math and quirky backstories would be appealing to the HN crowd.]

¹ https://www.goodreads.com/book/show/632979.How_Long_Is_a_Pie...

JNRowe··on A look at the Lotus x Hope HB.T: Team GB's radical track bike for Tokyo
The 90's Lotus 108¹ mentioned in the article is such a radically different approach to the one in TFA. I wonder if any of the new ideas were considered back in the 90s, but dropped because of materials, less CFD access, $something_totally_different.

The new one looks like incredibly good value for money too, given they were knocking the old bike out for £15,000 in the early nineties.

JNRowe wanders off to shake penny jar

¹ https://en.m.wikipedia.org/wiki/Lotus_108

JNRowe··on How to split a string into an array in Bash? (2012)
I wouldn't - you know - use this, but with zsh…

     $ print -l ${(s:, :):-Paris, France, Europe}
     Paris
     France
     Europe
I won't try to answer the "is zsh any better?" question with this response either ;)
JNRowe··on Bash function names can be almost anything
Perhaps you already know, but…

The `=` prefix in zsh works, but is a different beast entirely. The backslash trick will simply stop the command parser from expanding the alias, while the equals prefix will expand to the full path of the given command at parsing time. For example:

     $ print -l =cat =bat
     /usr/bin/cat
     /usr/bin/bat
While it is a trivial difference in your use case, it can be useful in itself; You could use `ldd =zsh` instead of needing to provide the full path, or `dpkg -S =make` to search for /usr/bin/make(or whatever) instead of returning results of files with the string make anywhere in the name.

It is a default setting for the expansion system(only when in zsh mode), but can be disabled with `unsetopt equals` if you dislike it. Gory details in zshexpn(1) and zshoptions(1).

JNRowe··on Onivim 2 is a retro-futuristic modal editor
Yeah, I've tried a few. I can't quite put my finger on what is wrong, but the ones I've tried just don't feel right.

gnvim¹ was the most usable for me. However, it isn't without problems for my use case. To use my earlier example, switching would mean patching fonts or using overrides in fonts.conf to fake the use of icons in signs.

I did take another look just now², and there a few more for me to try out ;)

¹ https://github.com/vhakulinen/gnvim ² https://github.com/neovim/neovim/wiki/Related-projects

JNRowe··on Onivim 2 is a retro-futuristic modal editor
Much like you, I think I'm probably the target audience for this.

One of the things that stops me from using neovim - regardless of any changes I'd like - is the removal of gvim. I like my gvim candy; SVG icons in sign columns, better modifier support in maps, drag and drop when in command line, $things_ive_forgot_i_use.

Likewise, I also believe the idea of onivim is worth a licence fee, even it turns out I can't get behind it. It just feels like one of those projects I want to see succeed, even if it isn't for me.

JNRowe··on Coreutils Gotchas (2015)
Have you flipped the final one? Both my Buster and Bullseye installation only have mawk.

Trying to dig in deeper makes my head explode though. mawk is marked required yet with update-alternatives priority of 5, and gawk is marked optional but with a priority 10. I guess the intention is that mawk is good enough for base installs, but you probably want gawk.

JNRowe··on Aya – a new eBPF library for Rust
Link is to the release announcement, but the repo contains all the documentation and a simple example¹ about using it.

¹ https://github.com/alessandrod/aya#example

JNRowe··on Myths in cycling: wider tires are slower
All of them, and many more than I managed to think of, are also sponsors of the team¹.

¹ https://en.wikipedia.org/wiki/Ineos_Grenadiers#Sponsorship_a...

← PreviousPage 10 of 21Next →