HNHacker News
TopNewBestAskShowJobs

puika

170 karma · joined September 7, 2021

submissionscomments
puika··on Zed DeltaDB
I'm pretty sure I also ran into this very recently in linux wayland while working with symlinked files. It would show an empty file or show the old content if you recreate the symlink or modify the file externally
puika··on AI slop is killing online communities
I'd say LinkedIn is on a whole other level. Steer clear of it for your own health
puika··on The state of Linux music players in 2026
How is Quod Libet not here? Cross platform and its plugin system should be enough reason on its own

https://github.com/quodlibet/quodlibet

puika··on Where are you supposed to go if you don't care about growth?
government jobs or at state-owned companies might be your only choice.

Or maybe landing on a lucky spot of a run of the mill consultancy company where you're left at god's will until you retire. Their attrition is so high layoffs are rare, at least where I live (YMMV)

puika··on People keep flocking to Linux, not just to escape Windows
funny, windows 11's explorer has been the most infuriating experience for me over the years in all my personal and workplace machines (hangs, wont preview whatever files it decides doesnt want to, slow context menu startup, and many more) and frankly one of the reasons I've been daily driving kde+dolphin. I'd say I miss the out of the box cloud integration (you can install kio plugins but theyre not in a good state now. Dropbox have their own dolphin plugin as well), but I really couldn't care less when weighing in everything else. multimonitor support in kde wayland is just as good. Actually, its better, since you can control monitor brightness without a external program like Monitorian. wsl2 has some quirks if you're using a company VPN but overall pretty solid. Accessibility really is a pain point for linux in general
puika··on A One-Minute ADHD Test
unless I misunderstood what little I know of ADHD, shouldn't these symptoms have been there all your life, not just 6 months prior? I score 4/6 on the scale without question, but I wasn't functioning like this before (maybe 2/6), only these last few years, with no change in environment or routine
puika··on YouTube Removes Windows 11 Bypass Tutorials, Claims 'Risk of Physical Harm'
Wouldn't all boot issues caused by pacman shenanigans be solved by setting up snapper or equivalent? Luckily haven't experienced one so far
puika··on A friendly tour of process memory on Linux
The article does feel like Gemini when you ask it to explain you something in layman terms, but co-authored by chatgpt with nonsense like "without the fog".
puika··on KDE is now my favorite desktop
I love the KDE ecosystem except for one very specific bug in kdeconnect in Linux where media of any kind in chrome, firefox, etc. are stopped after being paused for a while, so i have to refresh pages constantly, and pray the previous timestamp was preserved.

Apart from that, the DE and configuration options are miles away from windows 11 to be honest, and will probably go the KVM+passthrough route when I upgrade my desktop to keep Windows for CAD work, etc. Even Windows' Explorer is egregiously clunky nowadays and will break features like previews on its own and hang all the time.

puika··on 30 minutes with a stranger
Maybe I'm using my phone wrong, but the mobile experience was barbaric and stopped reading
puika··on Fun with uv and PEP 723
Like the author, I find myself going more for cross-platform Python one-offs and personal scripts for both work and home and ditching Go. I just wish Python typechecking weren't the shitshow it is. Looking forward to ty, pyrefly, etc. to improve the situation a bit
puika··on Gemini 2.5 Pro Preview
I have the same issue plus unnecessary refactorings (that break functionality). it doesn't matter if I write a whole paragraph in the chat or the prompt explaining I don't want it to change anything else apart from what is required to fulfill my very specific request. It will just go rogue and massacre the entirety of the file.
puika··on Shell-ish scripting in Go with ease
If anyone wants to experiment with this lib + yaegi interpreter I put up a trivial example at [1]. Composing scripts with LSP support and such might be doable with a proper abstraction, in the example a main package with a main function is required. Interpreting might break some functionality for `script` so perhaps rerunning their test suite with yaegi is a good idea if you get serious about this.

1. https://github.com/danicc097/yaegi-script

puika··on Go 1.24's go tool is one of the best additions to the ecosystem in years
My current approach has been setting GOBIN to a local project bin via direnv and go installing bins there. install commands themselves are cached by me with a naive checksum check for the install script itself when I run my commands. Therefore all `go install`s run in parallel if I edit the install script, and go decides what to reinstall or not. At this point I don't feel it's worth migrating to `go tool` having this setup, we'll see when it's stable
puika··on Nvidia announces financial results for first quarter fiscal 2025
if "pallets of H100s shipping that were worth 100s of millions each pallet." and "12+ months of back orders with Nvidia alone" are not public information, then in my mind that is insider trading, especially those backorders.
puika··on Tips on how to structure your home directory (2023)
This hasn't been the case since go modules exist, if I understand your issue correctly: https://go.dev/blog/using-go-modules. You can additionally vendor each project's dependencies
puika··on DBeaver – open-source database client
I love dbeaver, but there's a thing that bugs me every single time. I constantly recreate databases during development, so I have to disconnect databases, then connect, then go dig inside the database tree to where I was before recreating. Am I missing some feature I don't know about?
puika··on Go 1.22
On the other hand, I advise you NOT to use this kind of library and write simple, fast go code most of the time, with the occasional generics helper. Why the hell would I clutter my code with, for example: https://github.com/samber/lo?tab=readme-ov-file#fromentries-...
puika··on Is Google Getting Worse? A Longitudinal Investigation of SEO Spam in Search [pdf]
Funny how I get the opposite result with google, which ignores my quoted text and tries to feed me whatever it believes I want to look up, instead of the exact matches. Especially annoying for code searches.
puika··on It's All Bullshit
Looks like someone working more than one job. However, it's weird that they're doing nothing from the get-go. Don't you have probation in your company?
puika··on SumatraPDF Reader
yes, CTRL+TAB and ALT+<N>, I use them all the time.
puika··on SumatraPDF Reader
this is my "dark mode" via advanced options, e.g. warmer page and dark background:

  MainWindowBackground = #191919
  FixedPageUI [
   TextColor = #282828
   BackgroundColor = #ebdbb2
   SelectionColor = #2d938f
   ...
  ]
what I have been doing so far is switch between other modes with autohotkey by overwriting `SumatraPDF-settings.txt`. I'd share the little script but it suddenly broke a while back
puika··on Vector Search with OpenAI Embeddings: Lucene Is All You Need
There's also pgvector (trivial) examples for different languages, see e.g. github.com/pgvector/pgvector-python
puika··on An Introduction to APIs
This is indeed the standard, AFAIK. Not sure what resources mention otherwise but it seems like a lot, judging by the comments around
puika··on The Adapter Pattern in Go
I also don't see the point in mocking out your database unless you have slow tests due to hardware constraints, a huge project or your db tests not being parallelized. Regarding the latter I've had much success with a similar approach to [1], and with a few helpers in each layer (service-repo) my tests have never been cleaner.

[1]: https://kevin.burke.dev/kevin/fast-parallel-database-tests

puika··on Show HN: HN comments sidebar bookmarklet
Very handy. Ironic that it cannot work with this very post due to github's CSP
puika··on Daniel Ellsberg has died
I knew Ellsberg rang a bell. I got to know about him from Peter Norvigs awesome [jupyter] notebooks: https://github.com/norvig/pytudes/blob/main/ipynb/Probabilit.... The probability ones are quite fun to go through and it's very expressive Python.
puika··on How to start a Go project in 2023
additionally, if it's an integration test, you may want to always run with `-count=1` at least. e.g. if you use a DB, you certainly want to not skip any cached tests when the schema changes, etc.
puika··on How to start a Go project in 2023
I absolutely love the integration in VSCode with the official Go extension. I can debug a running web server with delve with minimal config. Same for tests. Just experiment with the options, there are quite a lot, and unfortunately some not very well documented like gopls ones, at least last time i checked.
puika··on How to start a Go project in 2023
Just to add to the list there is also https://github.com/cosmtrek/air
Page 1 of 2Next →