What path should I give as destination src at c9.io - c9.io

I dont have any problem manipulating the files that I have in my workspace, but on the other side, I have a code for uploading an image to a folder and I don't know what path to give.
In my original code when I was running it with xamp server the path was :
$destination = "C:\\xampp\\htdocs\\images\\";
What should I change it into so that I can save my images there?

Actually it was quite silly of me asking that.
For anyone that his brain stopped after hours of coding this is the answer :
$destination = "images/";

Related

Stardog: Location of stardog.properties file

This must be a stupid question, because no one else has posted it and the explanation in stardog is very simple. It says 'Stardog Server’s behavior can also be configured via a stardog.properties—which is a Java Properties file—file in STARDOG_HOME.'
I am looking for the stardog.properties file. It is not in the folder I specified STARDOG_HOME to be. In fact, it is not anywhere. I have done a search of the entire computer.
What is going on?
*This question was answered below.
There is no default stardog.properties file which is why you cannot find it. You can create the file yourself in the STARDOG_HOME folder. You can find an example configuration file in the stardog-examples repo.

How to access file saved in project folder (iOS)

I have huge json request from server which took a lot of time , therefore I decided to save it in a text file in the same folder of project . But I do not know how can I read it. Can someone help me in this matter?
Thank you

How is gulp-bower used and what is it for?

I am trying to solve this problem; Apparently when I use my gulp file I can't link to my bower_components folder.
While trying to come up with a solution, I heard of gulp-bower But the docs seem a little vague. So what is gulp-bower used for? Could this help me?
Anyone run into my problem? Is my gulp file too verbose...
Just as a FYI I set up a components folder which houses index, scss, images and js and I use gulp to stream to a DEV or PROD depending on the situation. But alas I think that maybe the problem...
PATH STRUCTURE
This was supposed to be an answer to your original question, but it's suitable here as well.
You can't refer to scripts that are out on top of serving directory of your web server.
You could however link to it, if you're on linux, that would be a ln -s.
But, there's a better way. Add .bowerrc to where you install your bower components from, and add this to it:
{
"directory": "folder/in/a/serving/directory"
}

var/tmp folder taking up half my storage space?

I know this isn't really code related, but I don't know where else to ask?
While working yesterday I got a message saying that my startup disk was almost full. Which I wasn't too surprised by because it's only a 128gb Air.
But when I fired up Daisydisk to see what the issue was it appears that my computer has stored 2 files in the private/var/tmp directory, each over 30gb. Obviously Daisydisk won't let me erase them because of the directory they are in.
They are called magick-23598T_US4im5XKvQ.pam and magick-23587vell8J7UTKgS.pam
I have no idea where they came from, but I was testing a file upload system for a rails project when this happened. I was however uploading images over no more than 800kb or so. This seems a little extreme for that.
If anyone has any idea what might have happened, or how I can safely free up this space again, I would be massively grateful.
Looks like ImageMagick temp files -- are you processing the images with ImageMagick? There's a similar problem discussed here although the exact cause may be different.
It is likely a large swap file from ImageMagick that hasn't been cleaned up. You can limit the file sizes by editing your policy.xml config for ImageMagic (/etc/ImageMagick/policy.xml on Ubuntu).
More info here: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=29225&p=130707#p130707

Please input a file for upload error in joomla

I have recently moved my joomla site from my test server to live server.
In backend, when i try to upload image in media manager, there is an error saying Please input a file for upload. The max file size to upload is 10MB and m trying uploading small images. But still i got this error.
Can anyone help me with this. Any help is highly appreciated.
thanks
Check your browser, check the directory permissions (help menu), check your java version.
Don't just check the stories folder permissions. Joomla uploads files to the temp directory then moves them to the final location. Make sure all your permissions are set properly - 755 for folders, 644 for files. Also make sure that your temp directories are set correctly. If you just moved the site, you likely will need to update those for the file structure of the server.
Check the media setting in Global Configuration.
And check the path to temp folder.
Too many times put "Check permission"
That's it's wrong information. Not all server run with obsolete mod_php. Too many run on mode CGI, Fast-CGI, with SuXEC.
In this case, permission ok are 600, 700 to 644 - 755
Check that you don't have a discrepancy between the URL of your site and the one set in your configuration.php. They should match.
var $live_site = 'http://www.yourwebsiste.com.br';
Thanks to http://forum.joomla.org/viewtopic.php?p=2096980 for pointing me to the solution.
check that file_uploads setiing is enabled on the server in php.ini, I had the sam problem and this was the solution

Resources