Couldn't find foreign struct converter for 'cairo.Context'
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
This error was caused by one of the application installed in the OS. It's easy to fix it - try to install packages it needs:
sudo apt-get install python3-gi-cairo
or
sudo apt-get install python-gobject-cairo
https://github.com/rbgirshick/py-faster-rcnn/issues/221
Install i3lock screenlock in Lubuntu 19
In the last (at that moment) version of Lubuntu 19.04 desktop environment was moved to LXQT. In looks fine, but the role of screensaver still occupied by xscreensaver application with it's awful window to enter the credentials. I've already have a post about theming this window https://16rom.com/ru/blog/temizaciya-xsreensaver .
You should delete it immediately after OS installation:
File sharing in linux (and other OS)
Seems like it's a trivial task but NO. You can't use Samba because of OS compatibility, FTP is too hard to understand and install and other things.
But there is a simple way to do this - use nodejs http-server!
If you're using your PC for development you've already should hav nodejs and npm.
Install the http-server package globally:
npm install -g http-server
Goto the folder which you want to share and type in Terminal:
Bluetooth blueman DBusFailedError
There was error connecting bluetooth headphones in Ubuntu (xfce) 16.04 : "Connection Failed: blueman.bluez.errors.DBusFailedError: Protocol not available".
One of the solutions is installing bluetooth module for pulseaudio
Transliterate filenames in batch in shell
Sometimes you need to transliterate filenames from cyrilllic to latin in Linux. Doing this manually could take a lot of work if number of files over 10. Installing new software for this tiny thing is not my choice and I just dont want to do it.
unpack RAR archieve in linux
Today was the first time I could not unpack rar file since I've started to use Linux in everyday use that! The issue was in unrar-free version - it can't unpack RAR files after 3.x version.
Apache fails with seg fault
[timestamp] [core:notice] [pid 20056] AH00060: seg fault or similar nasty error detected in the parent process
blueman d-bus error
File transfer was not working from laptop to smartphone and vice versa. Devices connected to each other without problems.
There is a plugin TransferService in Plugins section. When I've tried to wnable it the message with error was shown:
Run native Half-Life 2 in Linux
There was error running Half-Life on Source engine in Ubuntu 14.04 error was thrown.
Unable to load interface VGUI_Surface030 from vguimatsurface.so
Cleaning huge Drupal 7 DB dump
Sometimes there could be an issue with huge DB which was created not with backup_migrate module but raw mysqldump command. The size of the DB could be over 2GB. Most of the data of this dump are cache tables and logs. Editing this file is not a good choice.
Current solution will remove INSERTS from the file. sed command come in handy here: