I am using vcxsrv to run graphical applications on a linux-cluster. However when I started using it and was asked to select a display setting, I selected one large window and saved this configuration. Now I found that one large window is quite impractical in many cases and would like to change it to multiple windows but don't know how. I am not shown the dialogue-box for choosing the display settings anymore when launching the application and I was looking for some config.xlaunch file that I read about in another post but couldn't find any. I am also not sure where this file would be saved. maybe I was just searching in the wrong place.
Does anybody know how to reset the display settings or where the config file is usually saved?
Simply execute "vcxsrv.exe" from your VcXsrv install directory.
Related
I apologise in advance for I know that this question has been asked several times already, but being a complete beginner at wordpress coding and database handling, I am still not sure about what those answers really meant.
So having just coded a website and converted it into WordPress, I now find myself having to change all of the localhost strings to the accurate ones, but with hundreds to go through, I just wanted to know if any of you were able to recommend a program or technique within PHPMyAdmin (that I may not be aware of) to avoid having to change them one at a time.
Thank you all in advance for your time and attention.
First, let me start by saying this is very dangerous, especially for an absolute beginner such as yourself. Please use this with extreme caution as you can potentially bring the entire site down by replacing values in your database with the wrong data.
With that said, there is a script specifically designed for doing search and replace on the WordPress MySQL database. http://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Here's the direct download link: https://github.com/interconnectit/Search-Replace-DB/archive/master.zip
You will extract the folder from the donwloaded zip, then upload the folder to the root of your WordPress install. Once its uploaded just reference the folder in the browser. I always rename the folder to sr (shorthand for search and replace) so its easier to write out the full URL. So as an example, once its in the root of the WordPress install you'd access it like www.example.com/sr/.
After you access the script in the browser, you'll have a GUI with two boxes at the top. The first you'll enter the string you're searching for, and the replace string goes in the second box. Your MySQL details/login should already be populated. After entering your S&R terms scroll down and click "Update Details", then do the "Dry Run" option first. It'll run through the database and show you the values that will be changed. If you are satisfied with the changes, click "Live Run".
Depending on the database size it'll take just a short time to complete. This is the easiest way to S&R the WordPress database.
Important: for security reasons you'll want to delete this folder from your server after you have finished using it. You don't want a database S&R utility just lingering around for no reason.
Another possible option if you're familiar with WP-CLI is to use the wp search-replace command: https://developer.wordpress.org/cli/commands/search-replace/ This would be done through Terminal or another command line utility.
In phpMyAdmin open your table, choose Search > Find and replace. Then specify in which column you want to find and replace, and the original and replacement texts.
Without any doubt I would use http://interconnectit.com/products/search-and-replace-for-wordpress-databases/
This tool is especially designed for the situation you describe.
You upload the code to your server and then enter the "find" and "replace"
You can then do a dry run and the system will show you all the replaces that will be made across every single table in your Wordpress database.
Once you're happy then you can do a live run and the changes are made.
I have used this on probably one hundred Wordpress sites and it works a charm.
I am trying to build a web extension that reads from a dynamically generated value for a system upon startup. The value is stored in a text file that can be read by anyone on the system. However based on my research, it looks like it is not recommended to create an extension that has access to the user's filesystem due to security concerns.
With that said, I was hoping to create a script that takes the dynamic value and stores it as part of some user/system configuration file for that extension in Chrome at system startup. However it looks like doing that may cause Chrome to disable the extension due to integrity issues. Is there any way to declare some sort of system global variable using some sort of configuration file for a Chrome extension to read from?
Native messaging appears to be a way to do this but looks like it might be a bit much for trying to read a single "global" variable for my extension.
What are some other ways to do this?
Thank you for your time!
My fellow admins have made some changes manually in phpmyadmin. I want to get the record of the changes they have made. Is it possible to get that??
From what I can remember from phpMyadmin, when you install it you have a 'config.sample.inc.php' file which you copy to set up the actual 'config.inc.php' which contains all the configurations. You could use a file difference tool to compare both files and you could see the differences between the original and how it currently is. This is not an exact way but will offer insight into changes made. The only other way that I know off hand is if the config files are under version control, in which case you can compare previous versions.
Hope this helps :)
Usually I am working alone, but now I have a new colleague, so we need to work together.
Unfortunately we suffer the lack of git, so because of certain circumstance we need to work directly on FTP.
I am using Netbeans, but I recommended to her the PhpDesigner, because I know, it is working with files directly on the remote server, not like Netbeans what is make a local copy of the file.
When I edit a file, I tell it to her, so she close the file, and open it again, and my changes are appears.
I there any way to not close the file, just "refresh" it (download from server)?
No, you can't in phpDesigner, I've tried many ways but is not possible. You can do it in Npp.
I'm not sure exactly what's happening or if it's a default setting, but PHPStorm seems to be auto-saving files to some sort of buffer if I have not actually saved the file yet. I can close the editor and open it back up to still see unsaved changes, or perhaps it actually saves the changes on exit, I'm not sure which.
I often close the editor and re-load a file when I'm not sure what changes may have transpired since I last opened the file to make sure I don't save unintentional changes, but I can't do that with PHPStorm autosaving or whatever it's doing.
You cannot disable such behaviour -- auto save is one of the core functionalities that this IDE relies on and can be triggered at any moment in time.
You can use Local History to restore file to a previously saved state.
https://youtrack.jetbrains.com/issue/IDEABKL-6460
P.S.
If you will give it a bit of time (few weeks, month -- depends on person and habits), you will get used to it just like many other people who using this IDE.
From this particular comment:
Auto-saving is built in very deeply and many IDE features just won't work without it (e.g. compilation, running, etc). For reverting unwanted changes there's VCS, Local History and Undo.
Currently we don't plan to add a possibility to disable auto-save.
Maybe this is what you're looking for?
To enable preserving temporary files while saving changes
In the IDE Settings section of the Settings dialog box, click General.
Select the Use "safe write" check box.
Note that if this check box is selected, modified file will be first saved as a temporary file. If the save operation is completed successfully, the temporary file will renamed, and the original file will be deleted.