CSound for Android, will not find wav files - csound

I'm trying to figure out how to get wav recognized. A tutorial that uses a wav, which was included, won't find it. It is in the same folder as the .csd file. I have tried copying it to the Root folder, no luck. I have tried modifying the csd to included the full path to the wav, no luck. I have tried modifying the Settings "Sample folder" option. Still no luck.

Related

Relative path issue test cafe during file upload test using set files to upload()

I am trying to validate a file upload using test cafe.the things are fine when I give absolute path of the file with in the t.setFilesToUpload() but when I give relative path its not finding the files and says could not find the required file. Can anyone help with this?
I tried using relative path of the file to be uploaded.
It's not clear how you validate file upload. Please refer to the related help topic in the TestCafe documentation. If you still have issues after reviewing it, please share an example that reproduces the issue.

Unable to copy file "xxx" to "bin/debug/xxx.deploy". Could not find a part of the path

I developed a vb.net project and built it successfully. but while publishing, I got an error Unable to copy file "Resources\xxxxxxx.xlsx" to "bin\Release\app.publish\Application Files\aaaaaaaaaaaaaaaa_1_0_0_90\Resources\xxxxxxxx.xlsx.deploy". Could not find a part of the path 'bin\Release\app.publish\Application Files\aaaaaaaaaaaaaaaa_1_0_0_90\Resources\xxxxxxxx.xlsx.deploy'.
I couldnt find the reason for the issue. Tried reopening the project rebuilding and republishing several times.
I found the solution myself. The problem was the file name. The filename was too long. I saved the project inside Document folder within many sub folder. Thats why the filename became too long. I copied the project and placed insinde Documents folder directly and tried publishing. It was successfull.
Thank you

I cannot install PhpWord Yii

I have tried to install PhpWord to yii. I have downloaded zip file and extracted it into extentions folder:
extenstions
--PHPWord
--PHPWord.php
However, I cannot make it to run. I got following error:
include(PHPWord.php): failed to open stream: No such file or directory
How can i solve it?
After extracting the file in extension folder, you have to import that file in controller.
Yii::import('ext.phpword.PHPWord');
First of all, you didn't say if it's Yii 1 or 2. They have different autoloading methods.
Second, you have extracted it into extension folder, and I assume your file where you want to include it is in a completely different folder.
You should do it like this
include('/full/path/to/PHPWord.php');
You need either absolute or a relative path to the file (I suggest using abosulte path (the one I used as an example).
Relative path means the path to the file you want to include compared to where your file, in which you are including it, is.

Playframework - Uploadfile to 2 different folders

just starting at play, and I needed to see it it can be used to do my project.
But after reading some docs, I still can't find a way to put uploaded files in more then one place.
I know that there is the attachments folder, and that I can change it directory in the confs, but what I want is another attachments folder, some thing like:
If the user upload a photo it would go to /photos folder;
if the user upload a txt it would go to /docs fodler;
Thanks
--UPDATE--
I'm using Play 2.0.1
So after some more research I found this other question:
How can I change uploaded files directory in play 2.0.1?
Basically there is no more attachments path configure in this playframework version, so I need to put this manually in the control, just like the answer in that question.

Intellij Idea problem with text file impossible to read

I have a problem using Intellij Idea.
I am absolutely unable to load text file as InputStream - it doesnt matter where do I put the file (main/java, main/resources...) it just can't find the file - in Eclipse everything works just fine.
I tried setings->compiler->resource patterns and added ?*.txt but that doesn't seem to work either.
Any help is appreciated.
If you load it as a File, make sure that Working Directory is properly set in IDEA Run/Debug Configuration, since it's the default directory where Java will look for a file when you try to access it like new File("file.txt"). Working directory should be set to the directory of your project containing .txt files.
If you load files as a classpath resource, then they should reside somewhere under Source root and will be copied to the classpath according to Settings | Compiler | Resource Patterns.
If you can't get it working, upload your project somewhere including IDEA project files so that we can point to your mistake.
Look at the image, notice that the txt files are in the project root, and not the source folders (in blue).
If you open the Project Structure dialog, and click on Modules and select your module - are the correct folders marked as Source Folders on the sources tab?
Link for how to get to Project Structure dialog
Also, if you print out the absolute path of that file you are trying to read, is that anywhere near where you expect it to be?
An easy way to figure out the same would be to try creating a file in the same fashion and see where it gets created in your project. You can put your input file at the same location and it should work just fine (if it doesn't, you should check your resource pattern which might be causing the file to be not copied over in the build output).
This method actually gives you the working directory of your intellij settings which is pointed out in the accepted answer. Just sharing as I had similar trouble and I figured out this way. :)