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 Ask HN: How to Get Good at Emacs?
The standard emacs manual really is good. Sadly, it isn't always installed by default because of the GFDL¹.

For instance to take your specific question on modes, the manual has the following to say about major modes:

Major modes provide specialized facilities for working on a particular file type, such as a C source file (see Programs), or a particular type of non-file buffer, such as a shell buffer (see Shell). Major modes are mutually exclusive; each buffer has one and only one major mode at any time.

Emacs also comes with very complete documentation for elisp in the info docs, which covers fixing problems and writing new code. There is whole section on working the built-in debuggers tucked away in the elisp manual.

¹ For example, on Debian you need emacs-common-non-dfsg from non-free to receive all the standard documentation.

JNRowe··on Ask HN: What is your “I don't care if this succeeds” project?
I think you're reading part of the description in a slightly stronger way than intended. Not strictly "don't care what happens", but more that chasing a unicorn exit isn't the only criteria for happiness from the result. Perhaps, "passion project" or similar could have been a better description.

Then again the whole thing is nebulous, and we can clearly see that people are reading and treating the question in their own way. I actually think that is what I liked about the description in the original post, it meant we saw the full range of really odd things and -- if we're honest -- a little cheeky grifting too ;)

JNRowe··on Csv.vim: A Filetype plugin for CSV files
If it meant we got more amazing stories like the Lotus 1-2-3 one¹, then I'm all for dosemu.

¹ https://lock.cmpxchg8b.com/lotus123.html

JNRowe··on Csv.vim: A Filetype plugin for CSV files
csv.vim's author is very prolific. Beyond the awesome plugins in his personal GitHub¹, he seems to end up on the other end of the merge button for a bunch of other vim things too. And then when you go poking around in $VIMRUNTIME he keeps popping up again and again.</fandom>

¹ NrrwRgn and unicode.vim deserve a special mention IMO, but others are great as well!

JNRowe··on Ask HN: What is your “I don't care if this succeeds” project?
Thanks for your original thread, obviously it stuck in my mind.

It has been great to read all the responses again. I've probably spent a few years worth of upvote budget, assuming I haven't tripped some upvote spam detector ;)

JNRowe··on Ask HN: What is your “I don't care if this succeeds” project?
I really shouldn't ask and then pick favourites, but between you and me I love this.

Now that you've made me think about this, I can only place one bus stop with a half covered "perch" within a few kilometres of my house. All of the others are just a sign in the grass verge, or a wind exposed perspex cover in a couple of cases. Sadly, it hadn't even occurred to me how unhelpful that it is for many of the people that rely on busses.

JNRowe··on Did HAL Commit Murder?
My favourite character naming is in the epilogue of 3001:

So every word is mine: well, almost every word. I must confess that I found Professor Thirugnanasampanthamoorthy (Chapter 35) in the Colombo telephone directory; I hope the present owner of that name will not object to the loan.

I actually think the epilogues are my favourite parts of the series, as Clarke wraps up thoughts and ties in real world developments in the thirty-odd years between the titles.

JNRowe··on KDE: A Nice Tiling Environment and a Surprisingly Awesome DE
The sizes are configurable, for example by setting mwfact in awesomewm via the config or dynamically with keys.
JNRowe··on KDE: A Nice Tiling Environment and a Surprisingly Awesome DE
I believe one of the best explanations for the power of tiling WMs is "Tags are not workspaces"¹. It describes that beyond your way of working there is a parallel way which exists with no extra work.

I think this is also true for different layouts. You can happily work with simple equal size window layouts, but you can also have per-project or per-app layouts should you wish.

The software grows naturally with you, or if you prefer the other functionality just stays out of your way.

¹ https://github.com/w0ng/wongdev.com/blob/master/content/dwm-...

JNRowe··on Using 'Git rebase' to Perfect Commits
Thanks to tpope, vim comes with some out of the box editing support for rebase¹. So, you don't even need to use change word. :F[ixup] to change to fixup, which supports ranges too(super useful with <count>V or V<movement>).

The standard vim {in,de}crement commands are bound to :Cycle in rebase buffers as well, so you can use <C-{a/x}> from anywhere in the line to twiddle the command for the current commit.

¹ :e $VIMRUNTIME/ftplugin/gitrebase.vim

JNRowe··on KDE: A Nice Tiling Environment and a Surprisingly Awesome DE
Many tiling WMs support this type of layout; magnifier in awesomewm, centeredmaster in dwm, etc. The difference compared to manually performing the task being that you can cycle the arrangement through various states without extra effort or losing the previous configuration.

Of course, you can also just choose to float individual windows across background tiles in practically all tiling window managers too. I guess it depends a lot on whether the neovim use is an exception, or a layout style you use for other projects too.

JNRowe··on Help scraping: track changes to CLI tools by recording their –help using Git
Craziness of AWS cli tool complexity aside, I really like the general idea of this.

As someone who tends to set aside an afternoon for Debian upgrades every couple of years¹, I'd love a database I could query with release/package_name to see what has changed in an interface.

As Simon notes in his post simply relying on ChangeLog/NEWS files which have hugely varying levels of granularity(when they exist at all) isn't a good indicator of what has changed.

If all packages had the structure and thoroughness of git's release notes this probably wouldn't be needed. However, we have to live in the world we have, not the one we want.

Edit to add: If you decide to make this yourself don't blindly run `for bin (${^path}/*(N*:A)) { $bin --help ... }`, as some tools have exciting side-effects beyond just attempting to pop open a window. This message paid for with JNRowe's foolishness.

¹ Which often means I'm about six months late for the release party given scheduling priorities. And, a month after my Bullseye upgrade I've still got around twenty pending todo items for setup changes I'd like to see.

JNRowe··on Autodocumenting Makefiles
Which is also included in your excellent GNU Make Book¹, which you should've pimped directly ;) It is both a fantastic general guide and an amazing source of usable little recipes, thanks!

¹ https://nostarch.com/gnumake

JNRowe··on The case of the mysterious --help directory (2020)
You don't need to choose, fex bash has complete-filename which is bound to M-/ by default¹. You can rely on smart completion for most uses, but should you suddenly desire to complete a filename in an odd place you simply use the direct binding. There are a variety of other completion mechanisms(user, var, etc) with default bindings available too for other out-of-context uses.

¹ zsh users can imitate the same effect with a custom zle function using `completer _files`

JNRowe··on Writing Literate API Documentation in Emacs Org Mode
Not OP, but…

They're not in the same league, although this isn't a knock on fugitive as they have different goals.

If you don't want to try magit¹ itself, then vimagit² is a reasonable approximation within vim. It gives you the same kind of workflow as magit, but doesn't quite feel as polished IME.

¹ You don't need to be an emacs user to use magit, you can treat magit as a standalone application.

² https://github.com/jreybert/vimagit

JNRowe··on Vim Creator Bram Moolenaar Interview
If you're already a vim user the most interesting part is probably the vim9 stuff, and there is documentation available if it is new to you¹. And also some recent discussion on the topic here².

¹ https://vimhelp.org/vim9.txt.html

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

JNRowe··on Ask HN: How to get started in amateur astronomy?
Obviously dependendent on your location, but…

There are loads of in-person astronomy clubs, for example there are three large-ish ones near me(Cambridge, UK). Many of them offer open nights to introduce newcomers, and they tend to be quite welcoming¹. The open nights are a great way to get a taste for equipment too, as you can play with all the toys the regulars take along.

I don't attend my local club, but the mailing list they run is an absolute treasure. Being local they'll often be on top of news for local starwatch nights, offer advice about dark sky locations, have used equipment for sale, etc.

Other than that I agree with pamoroso, just dive in and have fun.

¹ With the caveat that some of the people can be kind of quirky, and some can simply be snobby equipment collectors.

JNRowe··on How to Use Emojis with Vim
Christian Brabandt's excellent unicode.vim¹ can be a useful addition to the features mentioned in that article. Among its functionality is a better alternative to `ga` that also presents the name the character. For example, compare `ga` with unicode.vim's version:

    <> 128572, Hex 0001f63c, Octal 373074
    '' U+1F63C Dec:128572 CAT FACE WITH WRY SMILE &#x1F63C; /\%U1f63c "\U1f63c"
Edit: Imagine there is an unfiltered colorful cat peeking out between the <> and '' in the above text.

¹ https://github.com/chrisbra/unicode.vim

JNRowe··on Practical Shell Patterns I Use
Unlike the GNU sed manpage, the info docs are really quite thorough and contain many examples. They cover the vast majority of the features, and they call out GNU specific extensions so they're useful for learning non-GNU sed too.

They're available in HTML too¹, if you don't like the info user experience.

¹ https://www.gnu.org/software/sed/manual/html_node/index.html

JNRowe··on Practical Shell Patterns I Use
In case you're not aware watch(1) performs basically that task: watch -n 5 "ps -eaf | grep blablabla". It can also highlight changes in the text, break itself out of the loop under conditions, and a few other things.

The major difference between your function and watch being that watch will use the alternate screen for output if possible.

JNRowe··on Proposal to add build graph output to GNU Make (2020)
[Noting that you said GUI, and what I'm about to say isn't]

There's a lot more to Graphviz than just dot, as it comes with some really good filtering tools that people often seem to miss. You can achieve an awful lot with just bcomps/ccomps. And, when you're running queries gc is useful to see that you're heading down the right path.

JNRowe··on SQLite Strict Tables
Some interesting comments from an earlier posting of the draft document¹, and in the discussion of the release that first carried the change².

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

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

JNRowe··on SQLite Strict Tables
The authors have a document explaining their reasons for not making this change before¹, which has also been discussed here².

¹ https://www.sqlite.org/flextypegood.html

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

JNRowe··on Why “process substitution” is a late feature in Unix shells
With the caveat that the here string causes a tempfile to be written¹, so they're not quite equivalent. How much that matters for your use cases though is a different question, but it is worth thinking about if you're doing lots of repeated calls.

¹ With Bash v5 it may use a pipe if the data is small enough, but you can't guarantee people will have that because of GPLv3 phobia. I believe it is always a tempfile with zsh.

JNRowe··on Unicode Character “;” (U+037E)
What I find most disturbing is that even after I've copied the character to vim to prove to myself that it shows its actual name, I then find myself looking elsewhere for a picture because I simply don't trust my fonts.

This might be case where I'd actually prefer a box, so that I am a little less confuzzled.

JNRowe··on Bookland
I implemented ISBN-13 support in þe Olden Days, and Bookland always struck me as a neat solution to an annoying problem. The whole evolution is quite elegant from SBNs right through to ISBN-13. SBNs are upgradable to ISBN-10(even maintaining their check digit), and those SBNs were then upgradeable to ISBN-13 via Bookland(this time with a check digit change).

However, I also remember being annoyed at the transition. Prior to ISBN-13 checksums were a little more robust at simple transposition erorrs, which from my experience is by far the most common error on manual input. Presumably the rationale is that people wouldn't manually input EANs, and re-thinking it now I agree. In 2007 I had to rely on a hand to hold the book and hand to whack at the numpad, whereas now I use my phone and zbar¹ to scan a barcode.

I suspect I even spent some time muttering about the cost of barcode readers, or trying to figure out which bin might contain a :CueCat². How times have changed. [JNRowe proceeds to the village pond to feed the ducks]

¹ https://github.com/mchehab/zbar

² https://en.m.wikipedia.org/wiki/CueCat

JNRowe··on Show HN: Get 70 Years of Historical Weather Data via API
The post from last week is presumably about https://open-meteo.com ¹, for others(like me) who want to check that one out too.

Colour me genuinely shocked that this much weather data is available to the public, fantastic project!

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

JNRowe··on A function decorator that rewrites the bytecode to enable goto in Python
There was an equally intriguing Python goto implementation posted last year¹, with some interesting comments²(including some in the gist itself).

This version does seem better, but I'm not really sure that is a good thing.

¹ https://gist.github.com/georgexsh/ede5163a294ced53c3e2369cca...

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

JNRowe··on Can You See the Republic of Ireland from England?
To reach for a lowbrow Twister quote "Look, all I'm saying is don't fold the maps." Are the paper maps you use available flat or tubed?

I've learnt from this thread that Ordnance Survey produce a surprising number of formats beyond the common pre-folded maps, even including custom runs¹ that also fix my trapped-on-a-map-boundary complaint. Peering through the window of my local outdoor supplies shop this afternoon showed only a rack of the folded ones sadly.

¹ https://shop.ordnancesurvey.co.uk/custom-made/

JNRowe··on Can You See the Republic of Ireland from England?
In all honesty, I'd mostly prefer a paper OS map to all alternatives all other things being equal(weather/space/etc). My comment was largely from a place of love, it is the only reason I've used enough to be annoyed about the splitting or needing to carry an armful for an afternoon cycle ride.

This thread did teach me that there are a few more usable print options for sale on the OS website too, which is great.

> it seems they still do teach map reading.

That pleases me. I'm strongly of the opinion we should be teaching to the available tools(phone maps/calculators/etc), but with enough preliminary knowledge to understand implications and judge validity.

← PreviousPage 9 of 21Next →