Better HN
topnewbestaskshowjobs
Log inSign up

lazka

102 karma · joined Jan 7, 2019 (7y ago) · 32 submissions

Submissions

comment 3d ago · link · parent

Arch Linux uses gpgme to verify downloaded packages (and optionally, package databases) for example.

comment 2w ago · link · parent

That's already the case where I live, but some companies use the trick that they advertise a job with high salary, and once you apply they says "sadly this job is no longer available, but we have this similar one we haven't advertised yet", which of course comes with lower salary.

comment 6mo ago · link · parent

That array keys are auto-coerced to integers has bit me multiple times.

comment 11mo ago · link · parent

Here is a podcast episode were the devs talk about the new profiler: https://creators.spotify.com/pod/profile/corepy/episodes/The...

comment 1y ago · link · parent

It's a native build. Only various tools it is shipped with are cygwin builds, like bash etc.

comment 1y ago · link · parent

In Austria you can use a web browser + FIDO key as an alternative. It works nicely. https://ida.gv.at/de/hilfe/hilfe-zu-ida/authentifizierungsfa...

comment 1y ago · link · parent

I'm also still using 3.11 for a FastAPI app since 3.12 and 3.13 are quite a bit slower.

comment 1y ago · link · parent

On Windows (so libwinpthread), 8C/16T machine:

  $ flac --version
  flac 1.5.0
  $ hyperfine -r5 "flac -f -8 a.wav a.flac" "flac -j16 -f -8 a.wav a.flac"
  Benchmark 1: flac -f -8 a.wav a.flac
    Time (mean ± σ):     13.148 s ±  0.194 s    [User: 12.758 s, System: 0.361 s]
    Range (min … max):   12.934 s … 13.318 s    5 runs

  Benchmark 2: flac -j16 -f -8 a.wav a.flac
    Time (mean ± σ):      2.404 s ±  0.012 s    [User: 14.126 s, System: 1.355 s]
    Range (min … max):    2.395 s …  2.425 s    5 runs

  Summary
    flac -j16 -f -8 a.wav a.flac ran
      5.47 ± 0.09 times faster than flac -f -8 a.wav a.flac

comment 1y ago · link · parent

See "Why not use graphs / frequency analysis to compare codecs?" https://wiki.hydrogenaud.io/index.php?title=FAQ#:~:text=Why%...

"I decided that analysis should focus on the higher, more conventional rates – 48k and 44k1" - opus is always 48khz, so that doesn't mean much.

comment 2y ago · link · parent

Discord has "Forum" channels now which are similar to Zulip, with forced "threads" which they call "posts".

comment 2y ago · link · parent

> > After you get through this hurdle you then have to install the right software, and MSYS2 makes the "genius" decision of letting me pick which binary I want to install for every single install. Do you need to install fmpeg? Better spend an hour sifting through clang-amd64-ucrt-mingw32-ffmpeg vs. gcc-x86_64-w32-gnu-ffmpeg and tons of packages.

> Huh. Yeah, that does seem odd - is it a result of MSYS2 being oriented at devs who need compatible libraries?

Yeah, we are oriented at devs that re-package our binaries and also want to be a development environment for upstreams, and also a testbed for toolchains. So we provide x86/x64/arm64, then ucrt/msvcrt, and llvm/gcc. I wouldn't blame anyone for finding this confusing. It's described here: https://www.msys2.org/docs/environments

For ffmpeg, since it was mentioned as an example, this looks like: https://packages.msys2.org/base/mingw-w64-ffmpeg

comment 2y ago · link · parent

What happens if you go over the 200GB or 2 Million monthly requests limits?

13.

OpenJDK Port to mingw-w64/GCC(bugs.openjdk.org ↗)

3 points · by lazka · 3y ago · 1 comment

comment 3y ago · link · parent

They don't use pinning in their examples: https://cython.readthedocs.io/en/latest/src/userguide/source... and https://cython.readthedocs.io/en/latest/src/userguide/source...

comment 3y ago · link · parent

Could UFW detect/warn that there are iptables rules interfering with its own rules?

comment 3y ago · link · parent

The next Debian/Ubuntu releases will no longer allow `pip install` outside of a venv: https://discuss.python.org/t/pep-668-marking-python-base-env...

You can still force it via `pip install --break-system-packages ...` if needed.

comment 3y ago · link · parent

For those of you who haven't looked at MSYS2 in a while: We now also have a Clang/LLVM based toolchain and ARM64 support.

comment 3y ago · link · parent

Sure. (1) it is a global setting so I can't decide if I want it on a per application basis, with Docker that is less of an issue though (2) it is disabled by default, so hardly anyone uses it from what I see (3) I'd like to have it always enabled, also in production, so my code doesn't end up in states that I didn't expect and I get notified.

But that might just be me and/or my particular use case.

comment 3y ago · link · parent

assert() is still broken if it's disabled in php.ini.

comment 4y ago · link · parent

Only C extensions that themselves have no global state and don't depend on the GIL for locking, which most of them do. So they will all require some porting, and it will take time since it requires newer CPython API only available in 3.9+ and some even 3.11+ (PEP 630).

comment 4y ago · link · parent

Imo that it's not phishable and that there is no secret on the target server is even more useful in practice. And both those properties don't require physical isolation.

comment 4y ago · link · parent

U2F generates a new keypair for each origin. Public keys are not re-used.

comment 4y ago · link · parent

Microsoft ASF/WMA also has a similar limitation, where it disallows writing an open source implementation if you use the official format specification.

Luckily it is too mostly irrelevant nowadays.

comment 4y ago · link · parent

Nextcloud doesn't support color profiles in images, so anything not sRGB looks off in their gallery app -> I wouldn't recommend it.

comment 5y ago · link · parent

According to the GDPR health data is a special category that needs extra care and heart rate falls in that category:

"Information derived from the testing or examination of a body part or bodily substance"

comment 5y ago · link · parent

GHA tokens can be scoped, see https://docs.github.com/en/actions/reference/authentication-...

comment 6y ago · link · parent

Here is how a gtk app looked in 2014 on macOS: https://i.imgur.com/1e669Tp.png

comment 7y ago · link · parent

Yeah, sorry. It shows at least that it's possible with the current PyPy C API layer to have GUI bindings working.

Here is the only PyPy related issue I found for PySide2: https://bugreports.qt.io/browse/PYSIDE-535

PyQt doesn't have a bug tracker ¯\_(ツ)_/¯

comment 7y ago · link · parent

For gtk, gstreamer etc. PyGObject should just work. It has PyPy as part of its CI pipeline. Also in combination with matplotlib (GTK3Cairo backend) and numpy.

Not sure about PySide2..

12