-
Error with NVIDIA drivers + Linux 6.5 on elementary OS 7 / Ubuntu 22.04
Recently, Ubuntu Hardware Enablement Stack updated the kernel to 6.5, which broke a bunch of DKMS drivers, one of them being the NVIDIA ones. In my case, the error was caused by a mismatch between the gcc installed by default (GCC 11), and the one required for building on this kernel (GCC 12). I solved…
-
RedLine13 OpenAPI (2023)
After having to interface with RedLine13 and suffer with their weird, outdated swagger docs, I’ve generated a compliant OpenAPI 3.0.1 spec for their api, which I used for generating a client via openapi-codegen. Keep in mind that I only needed their GET endpoints, so those are the only ones I tested.
-
Working Canon PIXMA G3010/G3110 @ macOS
The only way to make this work is by using it vĂa network, forget about USB. Also, it only works as a printer, not as a scanner, blame Canon for not even implementing proper Bonjour support as a multifunctional printer. To make it work: Download the drivers for the Canon PIXMA G3000 (it says 3200…
-
More about Unions in Vala
In a previous post I speculated about adding tagged unions to Vala. Let’s do that again. In order to support the C usecase, Vala would need to include 2 types of tagged unions, a legacy one, and an idiomatic one. The legacy should look like the C version of a tagged union: This is needed…
-
Converting Array fields from PostgreSQL in jOOQ
There’s currently a “bug” (not really a bug, but it works for me in MySQL) that prevents jOOQ from reusing a forcedType when it appears as an array instead of a single value. I have a workaround for this: a forcedType for the array field, and binding it by field name. To facilitate the creation…
-
Unions in Vala
I’ve started to use Kotlin professionally, and keeping an eye on Rust. Both offer a lot of niceties that I wish we could adapt for Vala, but there’s one that keeps popping up my mind everytime: pattern matching. The simplest pattern matching we have is C unions, and a lot of c-libs use them. Unfortunately,…
-
Tip: Emitting the notify signal in Vala
I needed a way to emit the notify signal of one of my objects from another place, and Vala didn’t show me a straightforward way to do it. If you need it for some reason, here’s a code snippet showing you how:
-
Replay Edits
Being in the zone is amazing: your productivity skyrockets and the code just flows. Then somebody micromanages talks to you, the boss starts to scream discuss things on the phone, or it’s lunch time and this company won’t give back any minute you waste before starting to eat. Since this hapenned to me at least…
-
Abandoned Vala Projects
There was a time when Vala was really popular, and a plethora of Vala apps spawned. A lot of them are dead right now, so since i don’t have time to revive any of them, i’ll publish this list of interesting projects in case someone is interested in bringing back one of them: Ease (Presentation…
-
On Vala and Composite Templates
If you want to use the GTK+ composite templates in Vala, please remember : you have to use a GResource. The syntax is not exactly hard, here’s an example: Which is pretty simple. Let’s say you called that file project.gresource.xml, so to include it, you do (at compile time) Of course, it can’t be that…
