Categories
Linux Mastering Development

Bluetooth keeps changing from A2dp to headset and loses connection on Debian Buster with JBL 4 Speaker

since over a year I am having trouble with the bluetooth connection to my JBL 4 speaker. It looses connection again and again. I created a script according to what I found on the internet to reconnect via keyboard short cut. Sometimes it is connected with it within a view seconds sometimes I had to […]

Categories
Linux Mastering Development

Bluetooth keeps changing from A2dp to headset and loses connection on Debian Buster with JBL 4 Speaker

since over a year I am having trouble with the bluetooth connection to my JBL 4 speaker. It looses connection again and again. I created a script according to what I found on the internet to reconnect via keyboard short cut. Sometimes it is connected with it within a view seconds sometimes I had to […]

Categories
Mastering Development

Changing & Saving Taglib PictureType

I have a MP3 library and each mp3 has cover arts embedded. I would like to edit the PictureType to make sure the right one is allocated to the right cover art. So the idea is to show the covert arts in a form with a combobox beneath it to display the current Type and […]

Categories
CMS Development Wordpress

How to add category pagination under single post?

I don’t want to split the post, my purpose to add the category pagination under each post is simply click on 1,2,3,4,5…. pagination and go to the exact page of the same category. Let me explain again, For example, I am reading a post called “ABC” that is posted under the category called “PANDA”, so […]

Categories
CMS Development Wordpress

Failed to Import Media (From Divi site to Elementor site)

I’m working on a project where the Client is looking to redevelop their WordPress site from Divi to Elementor. I have exported posts, media, products etc. from the Divi site using WordPress Tools > Export, and then import to the new site using Tools > Import. All posts, products, variations, orders etc have imported fine, […]

Categories
Development System & Network

Full backup on CentOS 8 on a production server where files constantly changes?

So I have 2 options /sbin/dump -0uan -f – / | gzip -2 | ssh -c blowfish user@backupserver.example.com dd of=/backup/server-full-backup-date ‘+%d-%B-%Y’.dump.gz or rsync -aAXv / –exclude={“/dev/“,”/proc/“,”/sys/“,”/tmp/“,”/run/“,”/backup/“,”/media/*”,”/lost+found”} /backup But now there is a catch my server files are constantly changing meaning new posts and comments are posted every second. Say for example, when rsync will reach […]

Categories
Development Linux Ubuntu

Can’t browse to some folders with ‘open file’ dialog of certain applications

Running Ubuntu 18.04, and I installed some applications (chromium, claws mail most recently) from the software center. When I try to open a file from them (using the native file browser), it can’t access many folders, such as /usr, /media, or any of my external drives (even though they’re mounted). I found that there’s a […]

Categories
Development Linux Ubuntu

Can’t browse to some folders with ‘open file’ dialog of certain applications

Running Ubuntu 18.04, and I installed some applications (chromium, claws mail most recently) from the software center. When I try to open a file from them (using the native file browser), it can’t access many folders, such as /usr, /media, or any of my external drives (even though they’re mounted). I found that there’s a […]

Categories
Development System & Network

How to restore whole system backup created with rsync?

Scenario Debian system installed on a LVM partition. Created a snapshot, mounted it. Mounted a “backup” storage on other mountpoint. run rsync -aAXvHs –exclude={“/dev/*”,”/proc/*”,”/sys/*”,”/tmp/*”,”/run/*”,”/mnt/*”,”/media/*”,”/lost+found”} / /path/to/backup/folder (as stated in ArchLinux wiki about it) as root to copy the whole snapshot mountpoint directory to the backup mountpoint directory, preserving all the original file permissions, owners and […]

Categories
CMS Development Plugins Wordpress

My WordPress activation hook isn’t working

I just can’t see why my activation hook isn’t working. /* ****Debug function ****/ function console_log( $data ){ echo ‘<script>’; echo ‘console.log(‘. json_encode( $data ) .’)’; echo ‘</script>’; } console_log (“Hello from main”); /* ***Set up activation and deactivation functions** *** Activate sets up the WP tables “picm”** *** Deactivate removes the WP tables “picm” […]