Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gvalkov
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
gvalkov
4mo ago
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 to about €200k for 48 x 96GB DDR5-5600 RDIMMs. Mind you, this
2.
▲
by
gvalkov
6mo ago
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 '#' and ':' (csh trauma) prefixed co
3.
▲
by
gvalkov
1y ago
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]: https://www.printables.com/model&
4.
▲
by
gvalkov
1y ago
In Python 3.8 - https://peps.python.org/pep-0572/
5.
▲
by
gvalkov
1y ago
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 KeyError. It's descriptive e
6.
▲
by
gvalkov
1y ago
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 doesn't mean you have to print http/1.0
7.
▲
by
gvalkov
1y ago
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 member with impaired vision. In retrospect, it would have bee
8.
▲
by
gvalkov
4y ago
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 in this comparison. [1]: https://docs.python.
9.
▲
by
gvalkov
4y ago
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.git cd pyenv/plugin
10.
▲
by
gvalkov
4y ago
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 of=.ssh/authorized_keys oflag=append conv=
11.
▲
by
gvalkov
6y ago
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 Podman in our infrastructure and it's mostl
12.
▲
by
gvalkov
6y ago
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": "te
13.
▲
by
gvalkov
7y ago
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/gvalkov/olympus-ph
14.
▲
by
gvalkov
7y ago
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 of Python. CMake is a little better in this r
15.
▲
by
gvalkov
7y ago
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 execution to Ninja. The nice thing about the former is that whil
16.
▲
by
gvalkov
7y ago
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 and executing a DAG. What most SCons users work w
17.
▲
by
gvalkov
8y ago
> 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 and pip-tools for application development. [1]: ht
18.
▲
by
gvalkov
8y ago
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 to make something that looks good on all of them. In my
19.
▲
by
gvalkov
8y ago
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-oneliner
20.
▲
by
gvalkov
8y ago
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)
21.
▲
by
gvalkov
8y ago
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.
22.
▲
by
gvalkov
8y ago
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 less black box. There is indeed something uncomfortable abou
23.
▲
by
gvalkov
9y ago
Fiy, heredocs also have a variant that strips all leading tab characters. Quoting from `man 1 bash`: If the redirection operator is <<-, then all leading tab characters are stripped from input lines and the line conta
24.
▲
by
gvalkov
9y ago
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
25.
▲
by
gvalkov
9y ago
I've written many init scripts for SysV, upstart, OpenRC and FreeBSD's rc, but I've found that systemd's service units to be by far the cleanest and quickest way to muster up an init script (with FreeBSD's rc in sec
26.
▲
by
gvalkov
9y ago
I think it's great on the Raspberry Pi [0]. It boots quickly, has a low footprint and runs in diskless mode by default [1]. I most recently used Alpine and a RPi to make an appliance of sorts, that would wait for the SSID of my Olympus
27.
▲
by
gvalkov
9y ago
The guile integration in gmake is a bit shallow, but still quite useful (here's the whole implementation [1][2]). It could also use more real-life usage examples - there's really nothing out there besides a few short snippets. As
28.
▲
by
gvalkov
9y ago
This is pretty neat. I wrote something similar at one point: see wtee [1] and tailon [2]. They're both small, self-hosted tornado + sockjs + vanilla typescript webapps. [1]: https://wtee.readthedocs.io/en/latest
29.
▲
by
gvalkov
9y ago
It's a nice API around pexpect [1] and therefor fills the same niche - spawning and interacting with console applications in a programmable way. [1]: https://pexpect.readthedocs.io/en/stable/
30.
▲
by
gvalkov
10y ago
The next generation of the package index has been in development for some time now. Have a look at: https://pypi.io/ https://github.com/pypa/warehouse https://warehouse.readthedocs.io/
More ›