Couldn't find foreign struct converter for 'cairo.Context'

Submitted by Admin on

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

Submitted by Admin on

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)

Submitted by Admin on

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:

blueman d-bus error

Submitted by Admin on

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:

Cleaning huge Drupal 7 DB dump

Submitted by Admin on

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: