Utility file not found. Please correct the Binary Path in the Preferences dialog - pgadmin-4

When I try to restore or backup/database from PGadmin it shows "Utility file not found. Please correct the Binary Path in the Preferences dialog" I have set up the binary path though.
My Binary Path Setup
Here is a screenshot of my binary path setup which is validated.

You have correctly setup the Binary Path. The only issue is that you just have to give path till bin folder.
Just remove the '' after bin in your path and save it. Then it will work.

Related

cannot load settings file with .groovy extension into gremlin console

In order to get my console set up and running to work with graphs in gremlin, I need to load a settings configuration file into the gremlin console.
However, no matter what I try(e.g.change the directory of the tinker pop folder/change location of the config file), it outputs "File not found" error, even when I specify the absolute file path:
command:
:load filepath_on_my_pc\load-air-routes.groovy
output:
File not found: "filepath_on_my_pc\load-air-routes.groovy"
Thanks in advance, I think I am overlooking something really simple haha.
On a Windows machine all you should need to do is
gremlin> :load c:\path\file.groovy
If you do not want to specify a path the file needs to be in the same location as the root directory for the gremlin console (not in the \bin folder). In that case you can just do:
gremlin> :load file.groovy
`

Netbeans: folder is not downloading (sync) - symbolic link

I have an issue with NetBeans. I created a folder on my webserver with some files (pictures). Now I want to sync it with my project in NetBeans. While other folders had no problem, this folder is not been downloaded with the below mententioned summary.
For me it looks like the folder xxx (name changed) is seen as a symbolic link and thus it is not downloading. i checked the attributes (chmod) of the directory and it has the same settings as other folders.
1) How to check if this is realy a symbolic link? If I run ls -la I don't see differences to other folders.
2) How to change a symbolic link to a real folder?
3) How to sync the folder (if I cannot solve point 2)? <-- I know that this is done generally by a right click ;-)
Thanks
Tim.
This is the result presented by NetBeans 8.2:
Summary
====================
Ignored:
dir xxx File xxx is a symbolic link.
file xxx/TNBild0.JPG Some parent of file xxx/TNBild0.JPG is a symbolic link.
file xxx/TNBild1.jpg Some parent of file xxx/TNBild1.jpg is a symbolic link.
file xxx/TNBild2.jpg Some parent of file xxx/TNBild2.jpg is a symbolic link.
file xxx/TNBild3.jpg Some parent of file xxx/TNBild3.jpg is a symbolic link.
Runtime: 1 ms, processed: 0 file(s), 0 KB
As I was not able to solve the above discribed issue, I deleted all local files and the project and created a brand new project which then finally downloaded all the files.
No good solution, but a workaround.

Unable to upload file from $_FILES array in drupal7

I am trying to upload file from $_FILES array. but getting following error in drupal7.
The specified file temporary://fileOYnPHK could not be copied, because the destination directory is not properly configured.
This may be caused by a problem with file or directory permissions. More information is available in the system log.
The sites/default/files has permissions 777
Here is my code
if($_FILES['files']['name']['field_tenant_review_ref_und_form_field_tenancy_document_und_0']){
$file_path = file_save_data(file_get_contents($_FILES['files']['tmp_name']['field_tenant_review_ref_und_form_field_tenancy_document_und_0']),
'public://sites/default/files/'.$_FILES['files']['name']['field_tenant_review_ref_und_form_field_tenancy_document_und_0']);
}
//$tenant_review->field_tenancy_document->file->set($file_path);
Is there any mistake in code? Please suggest.
'public://sites/default/files/'
should probably be changed to
'public://'
because it probaby already contains the sites/default/files path, if that path is set in Drupal settings as the public files path.
Edit:
The permissions for the files folder shoud be set as most permissive to 775 for security reasons.

Code to be executed before every page on server

I have an apache2 server, it has a vast and growing folder structure.
There is a set of instructions I would like to be executed at the beginning of every page in that website.
How do I implement that without pasting those very lines at the beginning of every file in the website?
I don't want to have the code at the beginning of every file.
I have tried changing the auto_prepend_file in php.ini to:
auto_prepend_file = ~/website_preview/say_hello.php
'say_hello' is a hello-world php script, but the script does still not get executed at all.
Wrong php.ini file, correct location is /etc/php5/apache2/php.ini
If all of your pages are in PHP, then I think you were on the right path with setting up auto_prepend_file in php.ini.
Try this:
Check your include_path in php.ini and if needed append a new path to it for your instructions file.
Copy your instructions.php file to the location from the include path.
Edit your auto_prepend_file in php.ini to be just the filename from step 2.
I tested this out and was able to get it working that way but had trouble specifying the path directly in the auto_prepend_file setting.
Also, when I had the auto_prepend_file setting configured improperly I received the following php error:
PHP Fatal error: Unknown: Failed opening required ...
Hope that helps.

How do I edit a file with a batch program without having the complete path?

I am trying to write a batch program to rewrite the realmlist.wtf for World of Warcraft and put in the correct realms. I ran into the problem after finishing it that some people had different directories than me(Ex:I had C:\Program Files (x86)\World of Warcraft\Data\enUS while others had F:\WoW\3.5.5a\data\enUS) I want to find a way to replace this no matter the path before data\enUS. Help?
You should find the install path by looking in the Windows Registry. As for how to do that from a batch file, see here: http://www.robvanderwoude.com/ntregistry.php . Everybody who has WoW installed should have a registry value in a well-known location that points to the installation's base directory.

Resources