Live data from Hacker News

Viewing profile — gvalkov

gvalkov

HN member
Joined
Tue, May 08, 2012, 10:23 AM UTC
HN karma
226
Public activity
74 items

About gvalkov

No profile information was provided.

Recent public activity

  1. comment
  2. comment
    Comment #48384617

    The squeeze is real even at the SME level. We recently wanted to add another TB of memory to several servers (we do EDA chip design, which eats a lot of memory). Quotes came back t…

  3. comment
    Comment #47529680

    In zsh you can bind "push-line-or-edit". In bash and all readline programs, you can approximate it with C-u followed by C-y (i.e. cut and paste). My history is still full of '#' an…

  4. comment
    Comment #45062196

    I'm using that case with with a 200mm fan front-panel mod[1]. Despite its size, it gets pretty cramped. It's just hard to keep it organized without a dedicated SATA backplane. [1]:…

  5. comment
    Comment #44583878

    In Python 3.8 - https://peps.python.org/pep-0572/

  6. comment
    Comment #44583402

    This is nitpicking, but this is a good usecase for the := operator: if not (API_KEY := os.getenv("API_KEY")): ... For internal tools I just let os.environ["API_KEY"] raise a KeyErr…

  7. comment
    Comment #44479388

    We're still serving a cgi-bin directory at work for the occasional quick and dirty internal web app. The ergonomics are great as long as you keep it simple. The fact that it's cgi …

  8. comment
    Comment #43818639

    I recently built something[1] similar, though with far less effort and sophistication than the author. The goal was to have a plug-and-play audiobook player for an elderly family m…

  9. comment
    Comment #34415393

    Python 3.11 also claims [1] to be 10-60% faster than 3.10, which is the version that the benchmarks game is using at this time. The difference in used RSS is also quite interesting…

  10. comment
    Comment #33621707

    A hidden gem of pyenv is its 'python-build' plugin, which just lets you build and install any Python version in the least number of steps: git clone https://github.com/pyenv/pyenv.…

  11. comment
    Comment #33327863

    One nice use of dd is to append an ssh key to .authorized_keys on a host that doesn't allow shell or sftp access (which is what ssh-copy-id needs): cat id_rsa.pub | ssh $host 'dd o…

  12. comment
    Comment #26109677

    It's great to see how far Podman (and its sister projects) have come. I think it's a reliable tool and I'm a happy user both personally and professionally. We make heavy use of Pod…

  13. comment
    Comment #26109097

    Quite a lot is possible with CNI [1]. For example, we use this setup to give real IPs to containers: # /etc/cni/net.d/testnet.conflist { "cniVersion": "0.4.0", "name": "testnet", "…

  14. comment
    Comment #20272271

    A device that waits for the SSID of my Olympus WiFi-enabled camera to show up and then sync all new photos: https://github.com/gvalkov/olympus-photosync-server https://github.com/g…

  15. comment
    Comment #20140059

    It's not possible in the way it's possible in SCons. You can basically use custom_target, but its usefulness is limited since there are no user-defined functions in Meson's subset …

  16. comment
    Comment #20140002

    Personally I see Meson as an attempt to do CMake right. A big differences between Meson and SCons is that SCons handles the execution of the build graph, while Meson delegates exec…

  17. comment
    Comment #20139914

    I'm a build engineer and SCons is one of the gems in my tool belt. Where it truly shines is as a framework for building build systems. At its core, it's just a library for building…

  18. comment
    Comment #18616658

    > Use it. Talk about it. Write about it. I have a project that converts basic setup.py files to setup.cfg files [1]. Still happily using plain setuptools for library development an…

  19. comment
    Comment #18173938

    A problem with color is that people end up optimizing the aesthetics for their own terminal setup. There is a wild number of different color schemes out there and it's really hard …

  20. comment
    Comment #17756673

    Several people have tried to tackle this in Python. My attempt was python-oneliner[1]. There's also a list of similar projects in the readme. [1] https://github.com/gvalkov/python-…

  21. comment
    Comment #17743780

    I think you're making this more complicated than it needs to be. For simple things, it's ok to just: from subprocess import run run('foo | bar', shell=True, check=True)

  22. comment
    Comment #17612251

    There is no need to activate a virtualenv to use it. Just call $VIRTUALENV/bin/python directly. Activating is just a convenience for doing interactive work.

  23. comment
    Comment #17548432

    For a recent project (with modest needs), I just used a short makefile[1] and plain ES5. I found the experience refreshing as there is definitely peace of mind in depending on one …

  24. comment
    Comment #16199683

    Fiy, heredocs also have a variant that strips all leading tab characters. Quoting from `man 1 bash`: If the redirection operator is

  25. comment
    Comment #15826185

    Systemd is not orthogonal to lean and small-footprint systems. This is a good presentation on its use in embedded environments[0]. [0]: https://www.youtube.com/watch?v=ERS1OSOTGpg