← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 198
  1. These notes cover how to add Dear ImGui into an existing C project using the SDL3_Renderer backend.

  2. As someone who has been using Firefox Profiles for years, I was initially excited by the announcement of the new profile management feature.

  3. TL;DR: To ensure SDL2 rendering is pixel perfect, you must use “nearest pixel sampling” for the render quality, and mark the process as “DPI aware” on Windows.

  4. PlantUML is very useful for creating architecture diagrams using text.

  5. Overview Subcarriers In order to understand frames (and their component parts), it is helpful to first have a refresher on subcarriers: A carrier is formed of multiple smaller subcarriers: The subcarrier: the building blocks of a carrier; a smaller freque…

  6. TL;DR: It’s possible to generate a C stack trace in Windows with GCC, but it’s easier with MSVC or LLVM/Clang.

  7. TL;DR: To add a British English dictionary for spellchecking in Firefox, first install the British English Language Pack, then install a British English Dictionary such as this one.

  8. TL;DR: Beware that Android phones may silently ignore your configured MCC/MNC/slice!

  9. TL;DR: To change the IP and port used by Open5GS’s WebUI, modify the service file to set HOSTNAME=x.x.x.x and PORT=yyyy for the Environment field.

  10. TL;DR: The Samba share permissions are determined by the TrueNAS user.

  11. TL;DR: If you want to configure Poetry to use a local virtualenv (e.g. .venv/) instead of storing the virtualenv in the cache, first you must set virtualenvs.in-project = true, second you must then re-create the virtualenv with poetry env remove <...> and…

  12. TL;DR: Old versions of Valgrind detect false positive memory issues in SDL2 applications.

  13. TL;DR: Instead of using sys.path.append(<path>) in init-hook to configure Pylint, use source-roots = "<path>".

  14. Tl;DR: Run poetry init convert a Python script into a Poetry package, then edit the resulting pyproject.toml to define the package, entry points (scripts), dependencies and more.

  15. TL;DR: To generate coverage data in CMake: enable CTest, enable debug, build and link all relevant targets with --coverage, then run ctest --test-dir build -T Coverage.

  16. Unity is a test framework written in C, which is commonly used for unit testing embedded software.

  17. TL;DR: If you installed Docker Desktop with a local admin account, you must manually add your (non-admin) user account to the docker-users group.

  18. I have been working through the excellent Crafting Interpreters by Robert Nystrom.

  19. The memory used by a C program is laid out in various segments:

  20. TL;DR: Some rough notes on how I switched hosting this website from Netlify to Uberspace, and analytics from Plausible to Goatcounter.

  21. TL;DR: Follow these steps to implement a post series in Hugo, just like the one at the top of this page!

  22. Following is an interactive overview of OFDMA, which is used many wireless standards, including 5G NR, to enable efficient use of bandwidth for multiple users.

  23. TL;DR: Dropbox on my Debian machine had stopped syncing.

  24. Time for some routine maintenance.

  25. To allow TCP port 12345: $ sudo ufw allow 12345/tcp

  26. TL;DR: On Windows, I recommend installing Zig via Scoop, then setting up the ZLS (Zig Language Server) with VS Code.

  27. TL;DR: Tried to run backup, it failed because the rsync.net username and hostname have changed.

  28. To show the current Git branch in Bash, e.g.: user@host:/path/to/directory (branch_name)$

  29. TL;DR: Create a map (m) in a Jupyter Notebook by calling m = explore(...) on a geopandas.GeoDataFrame.

  30. I was excited today to see that Box2D v3.0 has been released.

  31. TL;DR: Do not run pipx install rye.

  32. It’s common to see docker run -it or docker run -itd, but what do those arguments actually mean?

  33. To recursively update Git submodules: git submodule update --init --recursive

  34. Prior to Python 3.12, recursive type require from __future__ import annotations: Example of a recursive type from __future__ import annotations class Something: def __init__(self, parent: Something | None) -> None: self.parent: Something | None = parent

  35. In Python, there is no need to write arguments --like_this.

  36. The terms Open RAN and OpenRAN are often used interchangeably, but can have different meanings depending upon the context1: Open RAN (with a space): Refers to the general concept of an open Radio Access Network (RAN) architecture, which can be disaggregat…

  37. Just as Black and isort can be used to format Python code, clang-format can be used to format C/C++/C# code (and more1).

  38. In these notes, we use the pytest parametrize decorator to apply marks to some values for that parameter, rather than marking the whole test.

  39. Xming is a server1 that can be used to display X11 applications on a Windows machine.

  40. direnv is a very simple but useful tool.

  41. TL;DR: If a VM gets stuck during boot, simply pausing and resuming can get it unstuck.

  42. In February 2018, I used a bit of a hack to create a global resources object by using Hugo v0.32 page resources, i.e. .Resources.Get.

  43. These notes cover how to add support for code highlighting that automatically respects the user’s light☀️/dark🌑 mode configuration using pure CSS.

  44. Some Poetry issues1 are fixed by upgrading pkginfo.

  45. For some applications of geodesy, the Earth is modelled as an ellipsoid, since the planet bulges at the equator.

  46. Since Python 3.3, the standard library has included unitest.mock, which provides utilities for mocking out parts of the system for testing.

  47. It is easy to support dark mode with pure CSS.

  48. These notes cover how this website switched from Pygments to Chroma for code syntax highlighting.

  49. TL;DR: Backup status was showing as “Idle” even though logs indicate backups had been succeeding.

  50. TL;DR: I attempt installing Coolify on Raspberry Pi OS, but it fails because my OS turns out to be 32-bit, and Coolify requires 64-bit.