RSSAmplifier

Blog

blog-dump

Coding and hacking stuff

dciabrin.netRSS feed ↗10 posts

Latest posts

Make the most of compiled C loops on the 68000

The other day I was working on my pet project ngdevkit , an open source C development kit for the Neo Geo hardware. I needed to write a simple clear_screen function, and I chose to do it in C for simplicity, in the hope that this would get efficiently compiled into 68000 assembly. That apparently innocuous task led me to some interesting findings regarding gcc, binutils, and how you can hint the…

Connecting to MariaDB with auth_ed25519 and PyMySQL

When a MySQL client wants to connect to a MySQL or MariaDB server, the MySQL wire protocol specifies how both parties should exchange data, advertise their capabilities, and which authentication method they should use for the client to get connected. By default, this authentication is a challenge-response scheme that relies on SHA-1 . But starting MariaDB 10.1.22, a new cryptographic-based…

Troubleshooting open_files_limit in MariaDB

It may happen in the MariaDB logs that you see failures to set open_files_limit : 160318 21:48:04 [Warning] option 'open_files_limit': unsigned value 18446744073709551615 adjusted to 4294967295 160318 21:48:04 [Warning] option 'open_files_limit': unsigned value 18446744073709551615 adjusted to 4294967295 160318 21:48:04 [Warning] Could not increase number of max_open_files to more than 1024…

Galera boot process in Open Stack HA and manual override

Deployments of OpenStack that rely on MariaDB+Galera benefit from a HA database thanks to Galera's synchronous replication. In such deployments, the Galera cluster is typically managed via Pacemaker, by means of a galera resource agent. While Galera itself has its own notion of cluster management (membership, health check, write-set replication...), a resource agent is still necessary for…

Support for Aluminium Keyboards packaged, code-named apple-kbd

After many episodes, the support for Apple Aluminium Keyboards is finally becoming user-friendly. All major distribs now ship a recent version of xkeyboard-config , so there is no need to mess with XKB patches anymore... To complete the user experience, I'm happy to introduce you apple-kbd , the collection of helpful goodies you need for your Aluminium Keyboard under Linux. Read more… (2 min…

Apple Aluminium Keyboards with udev, Xorg server 1.9

It's been a year now since I published my support for Aluminium Keyboards. Since then, my XKB patches have been accepted in XKeyboardConfig 1.9, with a few modifications: The multimedia keys can always be accessed by combining Fxx with the 3rd level chooser (this was option alul3media in my original XKB patches) There is now a single XKB option alupckeys to emulate the behaviour of a PC keyboard,…

Aluminium Keyboard support under X11: all models, all OSes

I finally found the time to update my previous support for Aluminium Keyboard under Xorg, and take it to the Next Level (tm). The overall support is now much more polished. For you this means several things: I've implemented the XKB geometries of all variants of the long Aluminium Keyboard , be it ANSI (American), ISO (Internationnal) or JIS (Japanese)! And believe me, it's darned complicated to…

Make your Apple Aluminium Keyboard really work under Linux, X.org

Like many others, I've bought an Aluminium Keyboard for its cool style the smooth typing experience it provides. Mine is a wired version, ISO variant (international, 110-keys). It's not working 100% out-of-the-box under Linux, so this post explains what I did to make it happen: Supporting the additional keys (F13..F19) and geometry (physical layout) under X.org Making the keyboard auto-configured…

Toolchain.sh is amazing!

A few weeks ago, I finally upgraded my iPhone to firwmare 2.2.1. It was actually an utterly painless operation, thanks to the amazing toolchain.sh by the guys from iphonedevlinux . Read more… (1 min remaining to read)

Hello MikMod!

As promised earlier, I've packaged an obligatory example of how to use the iPhone port of libmikmod which I've talked about recently. Go grab this tarball which implements a very simple "Hello World!": It shows how to play a module within a UIKit application. This is an adaptation of the skeleton program found in MikMod Documentation . It shows how to use the higher level sound API Celestial to…