coding theory – Using C++ programming language and the required compiler and word editor

coding theory – Using C++ programming language and the required compiler and word editor – Computer Science Stack Exchange

linux – ‘ls’ is not showing any files but on opening one of the files with vi editor , ls starts working again

On doing an ls inside my docker container on '/usr/lib64/python3.6/xml/parsers/' I am getting empty result, however the files are readable, I am able to display their contents

Files that are supposed to be present:-

[root@fe9f281dc26y /]# ls -l /usr/lib64/python3.6/xml/parsers/
total 12
-rw-r--r--. 1 root root  167 Dec 23  2018
drwxr-xr-x. 2 root root 4096 Mar  4 00:03 __pycache__
-rw-r--r--. 1 root root  248 Dec 23  2018

Actual result:-

[root@37c1e7faa10e ~]# ls -l /usr/lib64/python3.6/xml/parsers/
total 0

[root@37c1e7faa10e ~]# cat /usr/lib64/python3.6/xml/parsers/
"""Interface to the Expat non-validating XML parser."""
import sys

from pyexpat import *

# provide pyexpat submodules as xml.parsers.expat submodules

Moreover, once I open one of the files using vi editor and then close the editor without making any changes, ls starts working

# vi
"""Interface to the Expat non-validating XML parser."""
import sys

from pyexpat import *

# provide pyexpat submodules as xml.parsers.expat submodules
sys.modules['xml.parsers.expat.model'] = model
sys.modules['xml.parsers.expat.errors'] = errors

# ls -l /usr/lib64/python3.6/xml/parsers/
total 12
-rw-r--r--. 1 root root  167 Dec 23  2018
drwxr-xr-x. 2 root root 4096 Mar  4 00:03 __pycache__
-rw-r--r--. 1 root root  248 Dec 23  2018

Any suggestions as to what is causing this?

Delete all users with Editor role and their content mysql

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

mysql – Is there a faster way to load (not import, load) a preexisting table into the form editor of Workbench?

I am slowly adding data to one of the tables in a MySQL database via Workbench. In order to enter data into the table I click on the icon at the end of the table name in the list of tables in the Schema. The data loads eventually, but it’s taking longer and longer as the size of the table increases. At present it takes 3 minutes to load and I have entered less than 10% of the data that will eventually comprise the table.

Is there a faster way to load that data into the editor or am I stuck with waiting each time I want to add some data? All of the help I have found on the web relates to “importing” data into a database. I simply wonder if there isn’t a faster way to load a table.

Thanks for any help.

John G

Can a publicly shared file stored in my Google Drive be deleted by someone having “Anyone with the link” editor rights?

Short answer. No.
None of the editors having “Anyone with the link” editor rights can delete the file.
The only person who can delete this file is the owner of the file.

You can see that when changing the sharing permissions of a file to Anyone with the link can Edit, the option of changing the settings is greyed out with the message Settings are disabled for public links

enter image description here

Furthermore, when within the file Edit menu , the option of moving the file is greyed out as well.

enter image description here

One can only use the Add a shortcut to Drive.
Even if one later decides to delete this created shortcut from the drive, the original file remains intact.

You can safely, publicly share, any file stored in your Google Drive using “Anyone with the link” editor rights.
Your publicly shared file will never be deleted by anyone else but you.

Important Note
Please do NOT confuse the above with editors added under Share with people and groups.
They CAN delete the file and even deprive you of your rights as the owner.

Thunar doesn’t launch in text editor from share

I recently updated to Ubuntu minimal 20.04.

In Thunar, if I right click a text file and select Open With Geany, it opens the file in Geany.
If I do the same thing with a text file on a shared drive, it doesn’t. I just get an empty Geany.

This worked before the update.

Is there a trick to make this work again?

posts – WordPress Classic Editor is removing image captions

we noticed that on our WordPress (5.7) image captions are removed after we open post in the editor and change something (or only switching to HTML tab and back).

This part is removed: (caption id=”attachment_35″ align=”aligncenter” width=”774″) the image itself stays

We are using classic editor (version 1.6).

Thank you!

Video Editor Clean up

I am making a video editor with tkinter, and seriously need to clean it up and make it nicer to read / more efficient. Can anybody help me clean up my code (I was sent here from stackoverflow)

Here it is:

The parts I kinda need to figure out are:

  • Buttons and popup windows. I need 2 functions to run 1 video editor function. For example, if I want to add text, I have to call a function to make a popup window for the details of the text, then call another function when the button is pressed to actually edit the video clip.

Here is what I tried to do (in simple terms):

def addText(self, x=0):
    if x == 0:
        button = Button(root, command=functools.partial(self.addText, 1))
        # run other stuff for function

Here you can see I am re-executing the function using an argument. Although this is effective, it is messy and I was wondering whether there’s a better way to do this?

php – divide the editor text which have html attributes on every 500 th character length for creating text slider

I have to create the text slider , but that text have html attributes also,so supposed i have 1000 char length of text including html attribute and if i am dividing the text on every 500 character the html div tag will also get divide and my text will look like an simple text ,is there any solution ,hope you guyz get understand what im trying to do

                $msg  = $message;
                $xyz =  strip_tags($msg);
                $lentgh = strlen($xyz);
                $noOfDiv = round($lentgh/500);

                for($i = 1 ; $i <= $noOfDiv ;$i++){
                    $startPoint = $prevPoint;
                    $endPoint = $startPoint + 500;
                    $prevPoint = $endPoint;

                    $abc = substr($msg,  $startPoint, $endPoint);

                    echo "<div class='mySlides '>
                        <div class='numbertext'>".$i." / ".$noOfDiv."</div>
                        <div class='message__text__container'>
                            <div class='text'> ".$abc."</div>


block editor – How to change the admin/password when using the E2E Test Utils for Gutenberg

I’m trying to set up a test suite for our Gutenberg blocks plugin using the e2e-test-utils. Our environment is a multi-site WP install and I pass the WP_BASE_URL, WP_USERNAME and WP_PASSWORD as environment variables, so they are not stored anywhere in the repo.

I’m trying to make sure that the plugin I am testing on is activated using the asynchronous activatePlugin('name-of--our-plugin') function from the @wordpress/e2e-test-utils package. The problem is that this function assumes there is an existing administrator account with username: admin and password: password. This is not the case and because of our CI, I’d prefer not to have that kind of administrator account.

Is there a way to pass to the script administrator’s credentials as environment variables just like I do it with the user? The admin user appears to be hardcoded in the config.js file.

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive New Proxy Lists Every Day Proxies123