I need to change default local path on sftp wbond Sublime Text 2. The default path is something like this,
c:\users\dery\appdata\local\temp\sublime-sftp-browse-1437897788\web
I need to change to this path
D:\xampp\htdocs\web
Any idea? I've stucked
The path you mentioned is the location for temporary files downloaded from a remote server for editing. If you want to map a local path to a remote one (for example, D:\xampp\htdocs\web to /home/example.com/public_html), add the local folder to your current Sublime project, right-click on it in the sidebar, and select SFTP/FTP -> Map to Remote....
Please refer to the SFTP website for complete documentation of the plugin.
Related
I want to try netbeans for web development. I created a new local project. I have my remote server files (javascript, php etc) accessible locally on my computer using sftp in linux, now I just want to add these files to the project but there is no 'add files' possibility. Have Oracle forgotten something so obvious as add existing files? I can't believe it.
To add an external file to your NetBeans project:
Select the file in the file system that you want to add to your NetBeans project using a file manager (such as File Explorer on Windows).
Right-click and select Copy from the popup menu.
Within NetBeans go to your project and position the mouse over the target directory to which you want to copy the file. You can do this in the Projects panel or the Files panel as appropriate.
Right-click and select Paste.
That's all there is to it. This works on Linux and Windows. You can also do drag and drop, though on Linux the file is copied whereas on Windows the file is moved.
There is no menu option in NetBeans such as File -> Import existing file to do this. Just use an external file manager.
Update/clarification:
The instructions above only specify how to copy an existing file into an existing project.
There is no way to include an individual file that is external to the structure of a NetBeans project.
However, it is possible to create a symbolic link (junction) from a NetBeans project directory to an external directory. To do that open a Command Prompt window as an administrator and enter a command similar to this:
mklink /J D:\NetBeansProjects\HTML5DemoCss\nbProject\MyLink2 C:\sftp
That will create a new directory in your NetBeans project named MyLink2 which maps to an external directory named c:\sftp. You can then process files in that external directory C:\sftp as though they were within your project directory MyLink.
I opened the ~/Applications/Sublime Text.app/contents/MacOS/Packages/Color Scheme - Default.sublime-package with vim and changed some settings in the color theme that I was using. When I then saved the changes and restarted sublime text 3, the changed wasn't in effect (I tried multiple times and double checked everything).
Should you be able to just edit the package without extracting/unzipping anything? I read at different places that you should unzip and then edit, why is that?
Does ST3 read the color theme from somewhere else? Does this apply to all sublime-package files? A short explanation would be nice.
You shouldn't be modifying anything in that folder. The changes you make there will get overwritten by whatever you have in your Packages folder anyways (not the Packages folder you went to). The correct Packages folder you want to go to can be found by doing Preferences -> Browse Packages.
The best way to make modifications to files in a package is to use a plugin called PackageResourceViewer which you can install with Package Control. Once you have it installed, just do the following:
Open up the command palette with ⌘+Shift+P
Type in PackageResourceViewer: Open Resource and press Enter
Use the arrow keys to find the package and file you want to make modifications to and then press Enter
If you'd like to see the entire contents of a package (all the folders and files inside it), just do the following and a folder with the package name will be created in your Packages folder
Open up the command palette with ⌘+Shift+P
Type in PackageResourceViewer: Extract Package and press Enter
Use the arrow keys to find the package you want to extract and then press Enter
Go to your Packages folder by doing Preferences -> Browse Packages and you will see the entire folder for your package.
I want to display images which is stored outside the root folder in asp.net
like :
Image1.ImagUrl="C:\temp\Images\img1.jpg"
but it is not helpful for me. So Please help me.
The path you are supplying is not a URL. You need to supply the virtual path to the file, not the absolute (file system) path.
Image1.ImagUrl="~/Images/img1.jpg"
The browser is incapable of reading files on your local file system.
You can map a virtual directory to any directory on your file system so it has a virtual path. Let's say you want to make the physical directory C:\temp\Images\ into a virtual directory called /Images/ and you are using IIS 7.
Open Internet Information Services (IIS) Manager.
Under sites, navigate to the site you wish to place the virtual directory in.
Right click on the site node, and click "Add Virtual Directory...".
For the alias, type Images.
For the Physical Path, type C:\temp\Images\.
Click OK.
Now you can access your image through the virtual directory /Images/img1.jpg.
Image1.ImagUrl="~/Images/img1.jpg"
Image1.ImagUrl=#"C:\temp\Images\img1.jpg"
put a # before the path string
I would like to setup PhpUnit in PhpStorm. I press 1. Edit Configurations... and would like to enter this parameter in field 2.
I am using phpunit.xml as configuration file and all want to use a relative path like:
phpunit.xml
or use project root variable like
$PROJECT_ROOT/phpunit.xml
But both options are not working for me.
Based on your screenshot (the place where you want to use it): use full path -- in project settings such path is stored relative to the project root anyway (unless you specify some file which is outside of the project, of course) and the full path then reconstructed when needed (e.g. when shown to you or when used as a parameter during tests execution).
I don't think you'll be able to achieve what you want via the project's Run/Debug configurations. What might help you is the Default configuration file setting in your default project settings, which can be used to define the PHPUnit configuration file to use by default, so you don't need to specify it via the Use alternative configuration file option in your Run/Debug configuration.
To set this, open your Default Settings window, then navigate to Languages & Frameworks -> PHP -> PHPUnit. In the Test Runner section tick the Default configuration file checkbox and specify the location where you keep your configuration file. If this file will always be in the same path relative to your project root, you can use the $PROJECT_DIR$ variable to define the project root. So if your PHPUnit configuration file is always in the root of your project, you might set this to something like $PROJECT_DIR$/phpunit.xml. When you create a new project, its Default configuration file variable will be set to the file offset from your project root, and you won't need to use the Use alternative configuration file option in your Run/Debug configuration.
If you're opening the same project in different locations on the same machine this should work for new projects without any problem, if you want to share this configuration across machines, you might need to try PHPStorm's Exporting and Importing Settings functionality.
I'm not sure if this directly solves your problem, and it's a few months late anyway, but maybe this will be useful for someone else who stumbles across this question... The above instructions were correct for my 8.0.3 installation on Linux.
I have one in house Perl web application (Windows OS), and I need to find the best way to open shared folder from my application with user default file explorer. I prefer some Perl module or some cross browser method (I don't know what browser would be used by user).
I tried with file:/// but I am searching for something better.
If what you are trying to achieve is something like accessing a file on a samba share, I would suggest simply using UNC paths (\yourserver\shared_folder\filename). If you point to an actual file it will be opened by the default program associated with that extension in Windows. If you point to a folder, the windows explorer would open up in that folder, as if you typed the UNC path in a start -> run dialog box.
So in perl this would be like below, if your shared folder is on server named "phobos" with a share "movies".
system('\\phobos\movies'); # mind the quoting!!
If you were trying to open up a file in the default program in windows you would use something like:
system('\\phobos\movies\my_cool_movie.avi'); # mind the quoting!!
Is that what you mean with your question?