Chrome Dev Tools - Unable to map network file to local file - google-chrome

In Chrome Dev tools, I am no longer able to map a localhost network file to the local source file for saving changes to disk. The problem occurs when I click on Map to file system resource.... It does not populate the next screen with local file choices as it used to. Any help or hints are much appreciated.

You should delete the "?ver=4.7.2" - these are query parameters which confuse the search for local files.

Related

Is there a way to overwrite local files in Google Chrome with service worker running?

Just found that if you have a service worker in your app and you use local overwrite in Chrome dev tools, the view shows a new file but it executes the old file, so you can't use the debugger properly. But anyway it doesn't work at all the file is not updated.
My service worker is only to allow using files in memory (from indexedDB) and the rest of the files just use fetch in Worker (no cache).
I was also trying to use extension resource overwrite but it also doesn't work.
Does anyone know how to change the file locally without modifying an app where the service worker is running?
I'm not sure If I should report this to the Chrome Dev tools team, since this is like a bug or missing an important feature.Just found that if you have a service worker in your app and you use local overwrite in Chrome dev tools, the view shows a new file but it executes the old file, so you can't use the debugger properly. But anyway it doesn't work at all the file is not updated.
My service worker is only to allow using files in memory (from indexedDB) and the rest of the files just use fetch in Worker (no cache).
I was also trying to use extension resource overwrite but it also doesn't work.
Does anyone know how to change the file locally without modifying an app where the service worker is running?
I'm not sure If I should report this to the Chrome Dev tools team, since this is like a bug or missing an important feature.

How to set csv file to open in the browser instead of download on Site Ground account

I have a simple code that save logs in a 'csv' file on the server.
When I navigate to from the browser to the folder where the file is saved, clicking the file download it instead of opening the file for view in the browser.
I have another site using the same code exactly on the same server, and clicking file from it, open the file for view in the browser.
I use the same browser for both sites, so it is not related to browser settings.
I've tried to change the file privileges, but it didn't help.
This site was originally with a different host, and I thought that moving it to the same host will solve it, but it didn't.
I've tried to talk with the support of the hosting provider, but they say that a developer should handle it.
Replacing the file ending to 'cvs' solved the problem, and opened the file in the browser without any other settings change.

No map network files to local anymore

Before chrome 64 I can map network css files to my local files.
And see the changes when I update the local files.
The feature was just gone.
Any one can help me find out the missing feature?

Oracle PL Sql Developer cannot find my tnsnames.ora file

I have an Oracle tnsnames.ora file from my previous workplace. I want to pick it up with my newly installed PL SQL Developer on another computer. I have copied the file into ..ORACLE/product/11.2.0/client_32/NETWORK/ADMIN but PL SQL Developer cannot find it.
When it starts it is not showing me any choice of database.
In About->i->TNSNames I dont see any lines
I have found a number of advices to look for it in Tools->Preferences->Database->..., but I dont have a Database tab in my preferences.
How can I fix it?
If you are certain your tnsnames.ora file is correct (e.g. by testing the connection with the Oracle Net Config Assistant, or logging in successfully with SQLplus), and you are able to open the PLSQL Developer application, but you still can't connect to the database in PLSQL Developer, then follow these steps:
In PLSQL Developer (version 11.0) go to Help/Support Info
Click the TNS Names tab. If the path in PLSQL Developer is wrong it will be blank (no tns file found) or incorrect (wrong tns file in use)
On the Info tab scroll down to the TNS File entry and to see the path for the tns file PLSQL Developer is using. Very likely this is wrong.
To correct the path:
open a command prompt
navigate to the PLSQL Developer directory in Program Files
enter this command:
plsqldev.exe TNS_ADMIN=c:\your\tns\directory\path\here
*path is to the directory containing your tnsnames.ora file -
for me this is: c:\Oracle\product\11.2.0\client_1\network\admin
A new PLSQL Developer UI will open and you should be able to connect.
Make sure you have a Windows environment variable TNS_ADMIN set to the same path
On Windows 7 you go to Start, Control Panel, System, Advanced System Settings, Environment Variables to view/add/update environment variables
Which Oracle client are you using?
Oracle 64bit 11g client isn't support in PLSQL Developer. Try to install 32bits client.
I had the same problema, but as described in the manual.pdf, you have to:
You are using an Oracle Instant Client but have not set all required
environment variables:
PATH: Needs to include the Instant Client directory where oci.dll is located
TNS_ADMIN: Needs to point to the directory where tnsnames.ora is located.
NLS_LANG: Defines the language, territory, and character set for the client.
Regards
Check if tnsnames.ora not saved as text file with an additional hidden .txt extension. Windows File Explorer will not show it by deafult settings.
I recently had the problem of deleting the tnsnames.ora from the path where I had it, my solution was to create an environment variable called TNS_NAME with the value the path where the tnsnames.ora file is located and ready
Yes, many years later. But still useful.
PLSQLDEV: 14.0.6
InstantClient: 12c
Create an environment variable "ORA_HOME" pointing to your InstantClient installation.
Inside it create "Network" and "Admin" and put the TNSNames there.
It worked for me after trying all other solutions.
You most certainly have a databases tab in sql developer (all versions I've used in the past have this). Maybe check again? Perhaps, you're looking in the wrong location.
On a mac, the preferences is under "Oracle SQL Developer" (top left) -> Preferences -> Database -> Advanced -> section called Tnsnames Directory is where you specify the file.
On windows (going from memory so might have to search if this isn't correct)
Tools -> Preferences -> Database -> Advanced -> section called Tnsnames Directory is where you specify the file.
See this image

How to force the download a file from a network share rather than editing the file there

I have a web page that is hosted in our local network. On my page I have a link to a document. The document is linked to a network share. If the user opens the file, edits it and then goes to save the file it overwrites what is on the share. When opening the file I want the user to download the file, so when they come to save it they do not have the option to save it back. How could I go about doing this?
Server side I have access to asp.
You need to create a link which when clicked, streams the contents of the file to the browser, rather than having a link to the files actual location. If you do this the user will be prompted to save the file somewhere locally.
I am not at my PC currently so cannot get you an example piece of code, but you need to send the response with the content type set appropriately. Look in to mime types for a pointer in the right direction.
The term "download" is misunderstood here. When we open windows explorer and copy a file from a network share to our local machine don't think it terms of "downloading" it, we are just copying it. To "download" usually refers to access some resource outside of our local network and pulling that resource into that network.
Hence to achieve your aim you need to convince the client that is not accessing a file that is a local network resource. You can do this by adding a Virtual Folder to the IIS site that points the appropriate folder in the network share. Change the URL to use a "http:" protocal pointing at the virtual folder in your site.
Now the users will get the file from your website rather than accessing it as a normal file on the network.
You can stream the file through a webpage to download the file instead of opening a network share.
See this for an example:
http://support.microsoft.com/kb/276488
You can also share a directory through your web server by enabling directory browsing.
IIS 6: http://blog.crowe.co.nz/archive/2006/03/18/603.aspx
IIS 7: http://technet.microsoft.com/en-us/library/cc731109(WS.10).aspx