HNHacker News
TopNewBestAskShowJobs

enricozb

779 karma · joined September 15, 2018

reach me at enricozb [at] gmail
submissionscomments
enricozb··on Kakoune Code Editor
shameless plug for my tab manager plugin: https://github.com/enricozb/tabs.kak disclaimer: I'm in the process of a decently sized refactor so the configuration instructions will soon be changed/outdated.
enricozb··on ‘Trading is gambling, no doubt about it’ cryptocurrency dealing fuels addiction
Surely crypto has always been zero-sum? People put their money into the pot, and then take it out at different times, in proportion equal to when they originally put their money in.
enricozb··on Poll: Why are people leaving their jobs?
Assuming a salary of $100k, and 0.5% daily fluctuation, that's a portfolio of $20 million, which is a sizable amount.
enricozb··on Framework Laptop with Ubuntu Review
are you using NetworkManager? I'm using i3 so I use nmtui and I absolutely hate it. I much prefer iwctl, but that's not one of the supported options unfortunately...

The main issues are just difficulty connecting to networks. When connected it usually works fine, sometimes DNS will randomly fail though.

enricozb··on The weight of the clipboard
I might be misunderstanding you. I have a setup such that:

When I yank to the "kakoune clipboard buffer" in kakoune (a terminal text editor), the X clipboard is updated (again through OSC 52). When I copy something to the X clipboard (either on chrome or some other program), the "kakoune clipboard buffer" is updated [0].

[0]: technically, the kakoune clipboard buffer updates itself from the X clipboard when it is read from.

enricozb··on Framework Laptop with Ubuntu Review
I have also had wireless issues, but since I've only installed NixOS I can't tell if it's because of the OS or some hardware issues.

I also thing (again very minor) that the hinge is too loose. If I have it on my lap and type on it the hinge slowly opens up. I wish there was a stiffer hinge.

enricozb··on The weight of the clipboard
Does anyone have a solution to sync clipboards across: 1. The system (XServer) 2. A terminal text editor (Kakoune) 3. The same text editor on another system over ssh

I currently have 1 & 2 sync'd ok, but 3 is only one-way. I use the OSC 52 escape sequence (supported by my terminal) to sync a copy on 3 to 1. But I have not figured out how to sync from 1 to 3.

enricozb··on Framework Laptop with Ubuntu Review
Yep it works well. As is usual with linux, it took a frustrating day or two to set up but I now play Steam windows games with Proton on NixOS using an NVidia eGPU. I'm using X, not wayland though, but it works both on external displays and on the Framework's "internal" display.
enricozb··on How to Learn Nix
Does anyone else not use any of the ad hoc package management with Nix? I exclusively use a declarative `config.nix`, with `sudo nixos-rebuild switch` every time I want to install a package.
enricozb··on Ask HN: What you up to? (Who doesn't want to be hired?)
My email is my HN username on the gmail domain, I've also added it to my profile.
enricozb··on Ask HN: What you up to? (Who doesn't want to be hired?)
Can I ask you what the name of the org is? I really like to teach, I've done it before, and being Brazilian really makes me want to give back to an institution closer to home.
enricozb··on No YAML
Has anyone had a look at this: https://kdl.dev/? It's been on my to-check-out list for a while now.
enricozb··on How to interview engineers (2020)
Board state can also be stored as as sets of X positions and O positions.
enricozb··on ‘It’s like a puzzle’: experts on piecing together Roman fresco find
I can imagine how this is done with the standard jigsaw puzzles with four corners on each piece, kind of like hashing the edges such that female and male versions of the edge have hashes that can be related. But pieces that can be any shape at all... I'm not sure.
enricozb··on YOLOv5 on CPUs: Sparsifying to Achieve GPU-Level Performance
Tangentially related: There is some controversy around YOLOv5's name: https://github.com/ultralytics/yolov5/issues/2
enricozb··on Facebook, Ray-Ban debut picture-taking smart glasses
Disclaimer: I know the owner of this company.

Taqtile's Manifest [0] product does something like this. There are some videos of it here [1] [2]. It's not exactly what you describe w.r.t diagnostics, but instead it's used to speed up training of mechanics/mechanic-like tasks. It uses Microsoft's hololens, so a bit bulkier than these glasses, but it's a cool look into what kinds of tools some of these jobs might have 10-20 years from now.

[0]: https://taqtile.com/manifest/ [1]: https://www.youtube.com/watch?v=G1xNd_n1QyE [2]: https://www.youtube.com/watch?v=CxoczR8-mwU

enricozb··on Spring tears down math t-shirt listing because it dared to mention 'zeta'
> "The Clay Math Institute has a $100m prize for solving the Riemann Hypothesis."

I think this is a typo, the prize is $1 million. Is this some suffix I am unaware of?

enricozb··on I sent over 10k personal thank you videos to my customers
This is why we're desensitized to such signatures. Do we really want to be desensitized to videos that look like a recording of a human saying your name?
enricozb··on Going mouseless
If you're on linux, consider trying a tiling wm like i3 [0] or sway (wayland) [1]. New windows automatically place themselves in a nice place and don't overlap. It's extremely (if not entirely) keyboard driven and pretty configurable.

[0]: https://i3wm.org/

[1]: https://swaywm.org/

enricozb··on Are dynamic languages going to replace static languages? (2003)

  class A(random.choice([B, C]):
    ...
enricozb··on Map[string]interface{} in Go: a user's manual
`map[string]interface{}` is just a map with string keys and `any` as a value, and is commonly used as the type for a JSON object. Unless you have a completely specified type for your JSON object (at that point might as well use a `struct` with all of the fields defined), the best you _could_ do would be something like a recursive type `type JSON = bool | string | []JSON | map[string]JSON` in some hypothetical version of Golang with recursive types and unions.

Also, if you're making a set, use `map[string]struct{}` instead of `map[string]interface{}` as `struct{}` takes 0 bytes whereas `interface{}` takes 8.

enricozb··on Learn by reading code: Python standard library design decisions explained
tangentially related: I'm learning iOS tweak development (on a jailbroken iPhone) using theos [0], and due to the fact that Apple's docs are pretty lacking, I've had to basically exclusively rely on GitHub's search for code examples using the methods/classes I'm interested in. Never done this kind of "learning by example" with respect to programming before, and it definitely has me yearning for better docs...

[0]: https://github.com/theos/theo

enricozb··on Playing the piano taught me math (2016)
I wish learning math would teach me how to play the piano...
enricozb··on Photographer captures 'odd but exciting' crow behaviour known as anting
Another example of animals (lemurs) rubbing insects (millipedes) on themselves: https://www.youtube.com/watch?v=yYXoCHLqr4o
enricozb··on History of Programming Languages
I think those slides [0] were written on a reMarkable tablet. I wonder if this was done live with some sort of screenshare.

[0]: https://felleisen.org/matthias/7480-s21/1.pdf

enricozb··on Get better at Googling
I was on a 6+ hr plane ride over open water and therefore had no internet. I had my laptop and some work I wanted to complete, and it was an enlightening experience trying to program without internet connectivity.

Reading local docs, perusing man pages, or just trying to deduce stuff alone gives a lot of deep understanding of some of the tools available to you.

Hot take: taking code form online tutorials is faster to get something working but can lead to low understanding & bad code. Trying to learn things alone is a very rewarding way to _supplement_ learning and I recommend people try it sometime.

enricozb··on Gitlet.js – Git implemented in 1k lines of JavaScript (2015)
There is also Shit, a git implementation in an almost POSIX shell [0]. Not my software.

[0]: https://git.sr.ht/~sircmpwn/shit

enricozb··on Old Book Illustrations
Tangentially related: fiziko [0], a MetaPost library that can draw old-style physics illustrations. This is not my software.

[0]: https://github.com/jemmybutton/fiziko

enricozb··on I hope work from home continues
I'm not exactly in that position, but I am in the more junior side of things

In my opinion, what helped me the most is: when an issue arises, like something during an on-call, have the person resolving the issue share their screen and talk through the workflow/debugging process, to whomever is being mentored. The tools/logic/reasoning they use during a live debugging session is invaluable knowledge for incoming engineers.

enricozb··on Living Like It's 99, No Social Media, No Smartphone
I'd like to assume he meant that he would walk them through installing Signal, and not just install it without them asking. I can't imagine what that interaction is like...
← PreviousPage 4 of 6Next →