I try a few things which I saw on internet, I make many examples.
But always I get this error :
Error:Can not write config file fullback.ini
the screenshot is below
How can I fix this?
You need to change to a directory you have write access to. It looks like you are in /home/root. Try changing directory to /home/dbadmin first.
Related
I'm fairly new at automated testing and setting up Nightwatch but I can already tell my Custom Commands folder is going to get unwieldy sooner or later. I've seen some example nightwatch.json files that use an array for the Custom Commands Path but I can seem to figure it out. Is it possible? Are the examples I've seen out of date?
Here's what I'm attempting to define in nightwatch.json:
"custom_commands_path" : [
"./custom-commands/",
"./custom-commands/login-signup/"
],
If I place my "loginFromHomepage" custom command file in the /custom-commands folder it'll run just fine. If I move the file to /custom-commands/login-signup I get an error stating that the "loginFromHomepage" commands doesn't exist.
What am I missing or not understanding here?
Thanks!
I normally separate my pages by folders. Try something like this
"custom_commands_path": [
"./customCommands/folder1",
"./customCommands/folder2",
"./customCommands/folder"
],
I just realized this was a problem with our setup. For some reason our runner.js file was looking at nightwatch.json AND nightwatch-dev.json for the nightwatchConfig.
I'm not clear on why we're using both but it appears my issue was because I was only adding the additional folders for the custom commands to nightwatch.json and not nightwatch-dev.json.
My project depends on drools 5.6.0.Final version. As part of that I'm trying to find a uri that I can rely for the drools-spring.xsd file. I'm trying to locate a reliable URI for that file I can reference, so that eclipses doesn't show issues, and so that spring can also intercept the requests and replace with the files in the jar as it sees fit.
I can drill into drools-spring-5.6.0.Final.jar in eclipse and see the xsd files in org.drools.container.spring. I also can see the xsd file here: http://grepcode.com/file_/repository.jboss.org/nexus/content/repositories/releases/org.drools/drools-spring/5.6.0.Final/org/drools/container/spring/drools-spring.xsd/?v=source
Going to drools.org and following their link to github and follow the rename of their group shown in the README file to https://github.com/kiegroup. I've searched this group for the xsd file(s) but have had no luck. e.g. https://github.com/kiegroup/droolsjbpm-integration/find/5.6.0.Final and https://github.com/kiegroup/drools/find/5.6.0.Final
This makes me think that the xsd files
are generated? Can someone confirm this and if so, is there a reliable URI that I can reference for this?
For some reason, the Drools' team doesn't maintain a hosted version of this schema.
Here you have an old post from Mark Proctor explaining it.
As far as I understand, they policy is still the same: do not host any .xsd file.
Hope it helps,
The drools-spring.xsd file location on drools website will give you a 404 error. You can have below two approaches which i could find while searching on the net.
One : Host the file on your local machine
Two : Place the .xsd file in the same directory as the location of the xml file referencing it.
Please refer to the below information . This will give a better understanding of the two methods mentioned above.
I have always thought the api controllers where not found by physical paths. The reason I ask is I have a website example.com I created a folder example.com/testing and uploaded my project to there. When I ran it I got errors saying that none of the apiControllers could be found. So I changed /api/apiCustomers to /testing/api/apiCustomers. It then worked, well not the actual posting of any new records. It did locate and retrieve all the records from the database though. But it doesn't seem like that is what I would actually need to do? I have a domain with WinHost and the default publish folder is example.com/myApp
AM I looking at this the wrong way?
To handle request where you do not know the root path, you can use (as in ASP.NET) the ~-character like this:
~/api/apiCustomers
~ will then be replaced by the root (i.e. /api/apiCustomers for prod and /testing/api/apiCustomers for your test environment)
First of all, I searched in Google to my level best to find the answer and not able to even get some clue on this.
I want to find out the actual path in the server for a given URL. I have root access.
For example, I want to write a script, It takes URL as a input and prints the actual path in the server.
Example Input: some.com/wp-includes/js/tinymce/plugins/media/js/file.php
abcd.com/wp-includes/js/tinymce/plugins/wpgallery/img/xml.php
The output should be
/home/some/public_html/wp-includes/js/tinymce/plugins/media/js/file.php
/home/abcd/public_html/wp-includes/js/tinymce/plugins/wpgallery/img/xml.php
The domain name can be add-on, or sub-domain , But it is hosted on the same server.
I want to write a shell script to achieve this. Please guide me.
I want this to be done using Linux shell script only and not using PHP.
There is a perl based cPanel API for getting this information. Without that, It is very tough to implement it or i have not seen any code on Internet. So I dropped this.
From any PHP code running in browser you can use:
# prints DocumentRoot path
echo $_SERVER["DOCUMENT_ROOT"];
# prints full filesystem path of the script
echo $_SERVER["SCRIPT_FILENAME"];
I'm working on my first ORM project and am using Mechanize. Here's the situation:
I'm downloading a zip file from my website into a Mechanize::File object. Inside the zip is a file buried three folders deep (folder_1/folder_2/file.txt). I'd like to pull file.txt out of the zip file and return that instead of the zip file itself.
My first thought was to use zip/zipfilesystem. I can do this fine if I save the file to the disk first and use Zip::ZipFile.open(src) but can anyone tell me how/if it is possible to send it over straight from the Mechanize::File.body.
My gut says this has to be possible and I'm just missing something basic. I tried...
zipfile = Mechanize::File.body
Zip::ZipFile.open(zipfile)
...but from what I can tell Zip::ZipFile is only set up to locate a source from a filesystem.
Any direction would be very appreciated and let me know if there are any questions
Thanks in advance
Rob
It seems what you want to do is not possible with rubyzip. From rubyzip library's TODO file:
SUggestion: ZipInputStream/ZipOutputStream should accept an IO object in addition to a filename.