For so long, I have been creating aliases for my shell. "dir" would be "ls -la" and things like that. TCSH even had ways to retrieve some attributes to the aliases. building 20 student programs and testing them would have merely required me to type N (for next), B (for build) and T (to launch … Continue reading shell functions
Category: linux
__lock_jiffies
Perdu dans un petit coin d'un driver Linux, une fonction sympa qui augmente un des verrous avec un chronomètre ... histoire de voir combien de temps on est resté en section critique.Je devrais peut-être bien ajouter quelque-chose de ce genre avec parseLine() dans GameScript, tiens.
3 days
File copies in progress. I could get the unit tests and the editors of dsgametools succesfully built by the latest devkitpro installed on my BMx, after all. But without the copyrighted content of SchoolRush, the unit tests won't run ^^".I'm a bit disappointed by 'terminology', the new terminal+file explorer from the Enlightenment project, esp. because … Continue reading 3 days
En direct de Xenial
Voici la relève. Un laptop BMX quad-core avec un Ubuntu Xenial Xerus fraîchement installé (LTS 16.04). Première bonne nouvelle: il aura suffi d'un apt-get install desmume pour avoir un émulateur capable de faire tourner la dernière version de Bilou. Le support du DLDI a apparemment été bien amélioré puisque je n'ai plus besoin de donner … Continue reading En direct de Xenial
Kung-f00: surviving in the kernel
There are two level of programming in an environment like the Linux Kernel, imho: survival and release. Survival programming is what you will do when you need to prototype or a proof-of-concept. Release programming (or refactoring) takes place when you want your code to be accepted in the kernel as a patch or another driver. … Continue reading Kung-f00: surviving in the kernel
Blog vs Epub, round 1
My fairy suggested a very nice Christmas gift for my (not so lil' anymore) nephews: she owns a thermal books binder and went "oh, but you could print some story of yours and bind it in a book with my machine... My audio processors catalyzed that into "how about stripping some meaningful text out of … Continue reading Blog vs Epub, round 1
tcsh pour les experts…
Bin moi, mon script de prédilection sous Linux, c'est TCSH. C'est ainsi depuis qu'on me l'a "imposé" pour un TP (base de données ou NS2 ... va savoir). Sous SuSE8.2, ça se passait pas trop mal: bonne auto-complétion, coloration, aliases sympa ... Sous ubuntu, en revanche, c'est quasiment le minimex, au point que j'ai longtemps … Continue reading tcsh pour les experts…
per-socket statistics
Think twice before you pick the source of information about network behaviour…Especially, /proc/$PID/net and friends are _not_ process-dependent as you might think. At least, not until your process got a dedicated _namespace_ to work with. So yes, every `struct sock` has a sk_net field that eventually leads to some statistics (`sock->sk_net->mib.net_statistics`), but if you look … Continue reading per-socket statistics
0.7.3 > 0.9.4 > 0.9.5
photo by the Flying KiwiFin janvier, j'étais bloqué dans le développement de mon level editor. par un bug crapuleux de desmume 0.9.4 (version par défaut dans Karmic Koala) qui m'empèchait d'utiliser le touchscreen dans mes dernières productions. J'avais heureusement toujours les sources de la version 0.7.3 (qui, elle, fonctionne sans soucis de ce côté) sous … Continue reading 0.7.3 > 0.9.4 > 0.9.5
Script powaa!
Bon. Ouvrez un p'tit terminal (tcsh), on va s'amuser ...display fairy.jpgsetenv FAIRY `eesh -ewait window_list | grep Magick | cut -f 1 -d :`randomize `find /pingu/photos/ | grep -v thumb` |\fe - "display -window $FAIRY '%' & sleep 8"C'est ma manière à moi de me faire un petit diaporama de mes photos sur mon laptop, … Continue reading Script powaa!