Do you see this message on every login to your Ubuntu system? “Could not load list of meta packages: [Errno 12] Cannot allocate memory”. The error indicates there was not enough RAM available to complete the task. Here I explain where the message comes from and how to get rid of it.
Code
Code snippets, tech howto’s and scripts
Fix for not working accent menu macOS
Steps to resolve the non-functioning Accent Menu on macOS. On my Mac this feature disabled itself after one of the recent updates. No reboots required.
How to write screen output to a log file
How to have the screen command log its output in realtime to a file. Purely command line, no .screenrc file involved.
Speed up Synology DiskStation
Steps to make a Synology DiskStation run faster by disabling the memory compression.
Fix for Bad interpreter: Operation not permitted
Run this command to fix the Operation not permitted error on macOS.
Blocking vs non-blocking timers in Arduino and Particle
When coding for Arduino you may wish to run certain code once every N milliseconds. For a very simple program like blinking a LED with a 2 seconds interval using the delay() function will be sufficient. But what about multiple bits of code where each require a different interval? Using delay() they will slow each other down, significantly disrupting your program. The solution is the meassure the last time the code parts were executed.
Fix errorless dead Postfix daemon
After upgrading the server to Ubuntu 17.10 Postfix had died without reporting any error. It just wont start, without giving any hint about what is going wrong.
Note: Spark Core flashing green
(Note to self) Flashing green = no wifi connection
Restore Time Machine backup from Terminal
Sometimes you need to quickly restore a file from your macOS Time Machine backups without using the pretty graphical interface.
Neat little trick to fix annoying MySQL error
One small and easy command to fix InnoDB ‘column last_update in table “mysql”.”innodb_table_stats”‘ type mismatch error.
Setup local DNS resolver on macOS
Simple instructions on how to install a local PowerDNS Recursor on macOS 10.12 Sierra to avoid using the DNS servers provided in your network or by your internet provider.
SVG scaling
Quick reference to scaling SVG images using the tag attributes