HNHacker News
TopNewBestAskShowJobs

themadsens

55 karma · joined July 22, 2019

submissionscomments
themadsens··on Show HN: Tmtail – Multi-log tail with coloring, search, and history via tmux
Tmtail is a quick tmux hack, working (surprisingly well) as an ad-hoc replacement for multitail, implemented with tmux and grcat. Github: https://github.com/themadsens/tmtail

The following features thus come more or less for free:

- Mouse aware for select, resize etc.

- The full tmux copy-mode for scrollback browsing, searching etc

- Copy scrollback text to the clipboard (y & Y) without any fuzz, via tmux clipboard integration

- Easily extendible by adding bindings for tmux actions. The sky is the limit ..

Color highlighting is done with an node clone of grcat, grcat.js, which is about a factor 10 faster than the python original

Currently a default grcat configuration is baked into tmtail that should be well suited for tailing wildfly logs

themadsens··on Stinkpot: SQLite-backed shell history
Just enable perpetual bash history and install fzf. That will get you CTRL-R (and a lot of other niceties) out of the box.
themadsens··on Neovim 0.12.0
The dot command, as you probably well know, is a macro that captures the last change: was it '3cw' or 'cE' or '7s' or <visual>s or 'ct)', all changed to the last insert. All intuitively without you even having to think about it.

Much more powerful than "change all my selections to the next input" IMO.

themadsens··on Neovim 0.12.0
Whats with all the fuss over multicursor. How is this different from just using '.'
themadsens··on Nanobrew: The fastest macOS package manager compatible with brew
I naively assumed it would work on the already installed homebrew packages. No such luck.

After installing, 'nb list' and thus eg. 'nb outdated' will yield the empty list! I have absolutely no use for a competing homebrew installation that is mostly compatible ..

themadsens··on Hammerspoon
Maybe not: https://www.reddit.com/r/hammerspoon/comments/1puln7j/110_re... https://github.com/cmsj/Hammerspoon2
themadsens··on I set all 376 Vim options and I'm still a fool
I was lucky enough that my first employer ran the very first 4.2BSD in Denmark outside academia (on a DEC-VAX/750), so i grew up with Bill Joy's newfangled "vi" and spent countless hours recap'ing the cheat sheet.

To this day stuff like "3dw" and "d}{{[P" are just second nature. Very much enjoying moders stuff like neovim and CoC/LSP too.

And yes, nvim is perferctly suitable for Java and maven with ctags/ripgrep/fzf etc. plugins

themadsens··on I set all 376 Vim options and I'm still a fool
More often than not you want 'de' or 'ye' rather than 'dw' or 'yw'
themadsens··on A tiny (1000 lines), fastish, embeddable scripting language can be AOT compiled
Sweet, very impressed.

To be really usable, for embedded and otherwise, a well documented and ergonomic C API for bindings is needed though.

The closest I could find was "If you need to add more predefined functions, add them in intrinsics.h." I will take a look though, this seems really promising

EDIT: Looks to be pretty easy to tack an external registration mechanism onto intrinsics.h. Good to go then ..

.. Only two SO comments at this point .. come on folks :-)

themadsens··on I ported pigz from Unix to Windows
I wish premake could gain more traction. It is the comprehensible alternative to Cmake etc.
themadsens··on The length of file names in early Unix
Oh yes. For one thing "hexdump -C ." would work out nicely in those days.
themadsens··on Yocto, RockPi and SBOMs: Building modern embedded Linux images
I always found buildroot a lot easier to fathom and harness. And certainly flexible enough with the ability patch every included recipe and package.
themadsens··on That's not an abstraction, that's a layer of indirection
Well said! I have met a few of these codesmells where the actual functioning is hidden behind a bewildering maze of facades, shims, proxies and whatnot.

I guess some has had an irresistible itch to use as many patterns from the GoF book as possible.

themadsens··on Ghostty 1.0
Very impressed with ghostty so far, but: Main reasons for sticking with ITerm2 (for the moment at least):

- "Seamless" cut & paste with paste on "2 X right click" + "Trim trailing LF"

- Quadruple click "Smart selection"

- Brillant search with highlighting in text and scrollbar

- Support for OSC-1 "icon titles" in tabs, as opposed to OSC-0 "header title"

themadsens··on Ghostty 1.0 Is Coming
I connect to serial ports a lot in what I do, and never really understood why this should be handled by the terminal emulator. Much better done with eg. picocom, python serial.tools.miniterm or the like.
themadsens··on LuaRT: Lua programming environment for console, desktop applications for Windows
LuaRT is based on ZeroBrane, actually :-)
themadsens··on Keyboard tricks from a macOS app dev
Alfred (https://alfredapp.com) has a snippet manager (and a _whole_ lot more kbd goodies)
themadsens··on So you've installed `fzf` – now what?
You can: Help for bash 'history -s args': The args are added to the end of the history list as a single entry
themadsens··on Using a Raspberry Pi to add a second HDMI port to a laptop
Incidentally, this is how you add a second external monitor to an M1/M2 macbook
themadsens··on Show HN: Procal: A simple Qt-based programming calculator
Hmm doesn't seem to do 64bit very well: 0xdeadbeefcafebabe -> 0xdeadbeefcafeb800

Is the result by any means passing through a double? like in freakin' JS!

themadsens··on Modern Mono
I swear by "Monaco Nerd Mono"

It was a revelation to discover "Monaco" when I first got started on the mac. So casual yet stylish and refined.

themadsens··on Ask HN: ORM or Native SQL?
My absolute most horrid work experiences have all involved Hibernate / JPA. It slows everything to a grinding crawl, works somewhat 99.9 % of the time and creates inexplicable un-debuggable errors for the remaining 0.1%

On top of that you have to ditch referential integrity to make it at least limp along

Give me plain SQL or something lowlevel like sql2o any day

themadsens··on Things I've learned building a modern TUI framework
> right up there with ddO

I believe S or even cc is more succinct

themadsens··on Go 1.18
A schoolbook lesson in steadily pushing "because we (think we) know better" boneheadedness. Well done indeed!
themadsens··on PEP 594 – Removing dead batteries from the standard library
Arguing that opponents to removal "can just step up as maintainers" are completely bogus. As mentioned elsewhere, this is more about eroding trust in stdlib as a stable baseline. This is just the kind of thing that will teach people to not trust Python as a stable foundation.

Also. If maintenance of aging modules becomes tiresome, maybe it is a strong hint to keep backwards compatibility in Python proper.

themadsens··on Frawk: A fast, JITted, statically-typed AWK written in Rust
FWIW, Pyp is now broken due to the python2 -> python3 silliness
themadsens··on Show HN: Jless, a command-line JSON viewer
This looks really good! Thanks a lot.

What i am always missing (fx & friends) is a preview and gradual expand. If you should feel inclined, you may want to look at jsonui[1] which has this (with C => e e e). Even if it is rather crude, I always come back to if for these two features

[1] https://github.com/gulyasm/jsonui

themadsens··on A Website for Learning Vim
See jasode's answer above[1] and make sure to follow the stackoverflow link too[2] [1] https://news.ycombinator.com/item?id=29432611 [2] https://stackoverflow.com/questions/1218390/what-is-your-mos...
themadsens··on Posix hardlink heartache
Every (posix) directory has "." and ".." which are both hardlinks to a directory ..
themadsens··on Neovim 0.5 is overpowering
Vertical wildmenu (as opposed to horizontal in the statusline) is the most recent nvim goodie. Also clipboard integration via providers is nice for remote work (:helpgrep lemonade).

Made the switch originally because of swifter highlighting, less display issues and the builtin terminal.

My setup also still basically works with vim too

Page 1 of 2Next →