HN user

virgoerns

39 karma

meet.hn/city/pl-Wrocław

Posts0
Comments27
View on HN
No posts found.

1. Buy a domain and bind it to your email so this situation never happens again in the future. 2. Automatically forward all new emails to the new provider (gmail has an option for that somewhere). 3. Gradually change your email in all services and inform peopke about address change. 4. Use your old gmail as spam box.

The problem with long startups is that they break the flow. I live in CLI. I open and close terminal windows all day long, sometimes just for quick 2-3 commands to check something. 100 new interactive shells a day is my guess. I already know commands to run, my fingers are ready to type, they already pressed the keys ti spawn a new shell and now they have to stop for 500 ms. Repeat these 100 interruptions every day and you get the death by 1000 spoons.

I don't use oh my zsh, but on one laptop zsh took 600ms to start. I narrowed it down to a strange "bug": adding even a single empty file to the custom fpath caused the slowdown. It bugged me so bad that I decided to try fish again, but this time for real. And this time it stuck with me. I like its architecture (defining functions to change its look-and-feel - great idea!) and of course its 32 ms startup time.

We're buying mice and we want 2 or 3 females. So yesterday I was searching "how to check mouse gender". Imagine my confusion when search engine recommended me a bunch of "how to sex mice" youtube videos!

FYI, ctrl-d isn't a shortcut to exit terminal. It sends EOF (end of file) character which, when reaches shell, closes stdinput file of shell. It generally closes any active interactive input, like all repls, interactive input to sed etc. When interactive shell loses possibility to get more input, it closes as soon as possible and then its parent, the terminal window, also closes. More-less :)

Podman 4.7 supports both the ordinary compose (Go implementation) and older Python podman-compose. But personally I moved to quadlets and didn't look back.

I love that you include hledger! It's amazing piece of software, even if a little obscure for people unfamiliar with plaintext accounting!

Zoxide isn't a replacement for cd, but it is a wrapper for cd. It's the alternative for OG "z" (written in Bash I believe) and autojump (python) that were here for 20 years or so.

Basically, when tou type "cd some/subdir", these tools remember the frequency/recency of durectories you cd into, so at some point you can type "z sub" and they teleport you to "some/subdir" no matter what's your current working dir.

I love it and use it daily. Zoxide just has some nicer features than the alternatives (and maybe it's faster).

Your comment reminds me about Polish movie "Life as a Fatal Sexually Transmitted Disease", which is a story of a doctor dying from cancer. Some variations of this title were semi-popular in Poland in early 2000s.

4B If Statements 3 years ago

Does Go default-initialize booleans by any chance? In C, which author had used, this program would be undefined behavior due to reading non-static, uninitialized bool.

A guitar.

My first classical guitar, which I bought 20 years ago, cost 50 PLN (~$12) and it kickstarted my love for playing a music. Not only that. I spent thousands of hours practising and now music accompanies me all the time. There's always a song stuck in my head these days, or I'm whistling or humming or singing or tapping my fingers or stamping my feet. It's exhausting sometimes.

We broke our monolith ~2015. 8 years later we still have the original monolith plus the original mircoservices are now monoliths too which need splitting. Upgrades were a nightmare for first 5 years, but we solved it with nitpicking code reviews where non-trival changes are blocked forever until everyone's ready.

At least we solved the problem of decreasing performance the old fashioned way: by throwing more RAM and CPU power at the problem.

Ripgrep 13.0 5 years ago

I like cheat.sh as the alternative for tldr which doesn't need to be installed as all, because it can be used with curl:

  $ curl cheat.sh/tar

Services have operating costs

So does ordinary, non-service software (like mentioned, Linux, gcc or vim). Hosting of their websites, mailing lists, CI, time of developers... they all cost very real money. And yet, somehow these programs don't track you and sell your data.

I don't mind paid services, but I don't think they should get a free pass for being unethical just because they run on someone else computer, under a different label.

It doesn’t help that I’m relatively new to guitar.

I've played for 16 years and I still have these moments. But thankfully it's so satisfying when the music finally kicks in.

Attribution and recognition is more than enough.

To be fair, they're just fulfilling they're legal requirements. Second paragraph of MIT License requires including License and copyright notice:

"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software."

which is exactly what they did.

Kitty should just identify as xterm like every other terminal written in the last 20 years.

This is not my experience at all. I'd say most of terminals, including modern ones, have unique terminfos and work miserably when it's not installed. Examples include ST, kitty, alacritty. On top of that we have terminal multiplexers like tmux and screen which provide their unique terminfos as well.

Ledger CLI is wonderful. I've been using it for over a year for budgeting (via envelope-style virtual accounts) and keeping track of my family expenses.

The biggest advantage is that it's just a plain text. I can read it, I can store it in git, I can backup it. If I make an error, it's easy to fix with text editor I'm familiar with. In the beginning I changed my accounts naming scheme several times and it was super quick and easy with simple sed. Previously I used GNU Cash, which is another double-entry accounting program, and doing any bulk edits was a serious pain.

It works in a single folder only. It's actually a set of the following commands:

  - D tells mutt to delete messages by pattern
  - ~= is pattern which selects all the dupes in current folder
  - $ finalizes the command
I think this [1] is where I learned about it and there's also a handy folder hook for mutt which automatically removes duplicates when you open the folder.

[1] http://promberger.info/linux/2008/03/31/mutt-delete-duplicat...

I use mutt for that which modifies local maildir so it's super fast. Commands are: "D~=$". Then it's just a matter of syncing local changes back e.g. with mbsync.

It's all about software licenses.

1) free as in "gratis" (freeware software) - you can download it for free, install it and use it. And that's all. Usually it's already compiled so you don't have an access to the source code. Sometimes you are forbidden to copy it and give it to a friend (because you both should e.g. download it from author's web page).

2) free as in "freedom" (free software) - you can do literally anything with this kind of software because it's licensed in a way that doesn't restrict the user in any manner (i.e. license preserves user freedom). Run it, fork it, modify it, sell it, give it away to your friends (or to anyone), you can do anything. There are several free licenses which handle these cases in a different way (e.g. GPL, LGPL, Apache License, MIT License, Boost License, Vim License and so on). They're sometimes called copyleft licenses (as opposite to copyright term). If you're interested, here's the wiki page comparing most of free licenses: http://en.wikipedia.org/wiki/Comparison_of_free_and_open-sou...

Please note that it doesn't mean that the software is being given away "for free (gratis)" (but usually it is) - it only means that once you obtain it, you can do anything you want with it.

Oh, and a mandatory link when we're talking about Free Software: https://www.youtube.com/watch?v=9sJUDx7iEJw