I'm debugging on my local host but want to change the default API url from https://dev.domainname.com/api/ to https://devtwo.domainname.com/api/. I know there is a way to force it by entering something into the console, but I can't remember what it is. I'd like to have the command for both Firefox and Chrome.
Please forgive my ignorance in using the proper language or explanation...I'm learning!
At the Web console with the page opened (can be the local development server created, or a website Webapp like dev.domainname.com), use next to setup a different REST Service URL:
localStorage["NameApp/config"] = '{"siteUrl":"http://devtwo.domainname.com"}';
To restore it, and left the App/Webapp use the default URL just:
delete localStorage["NameApp/config"]
Related
I have some computers and all have RDP enabled. So Id like to link to create a script to call a command from my local computer, like "C:\Windows\system32\mstsc.exe {HOST.CONN}"
but i dont know how to call a .exe from my own computer.
Is this possible?
how i imagine add rdp option
It's an useful idea, but Zabbix is not quite there yet. You would need to use a URL field, but there is no URL field in the Host, only in the Problem. You also need a Custom protocol handler in chrome (or your favourite browser, almost same procedure).
To add an URL field in the menĂ¹ you highlighted, you may use TamperMonkey (client side) or fiddle with the zabbix-web source code (server side). I'd use TamperMonkey because editing the source code will not survive a package upgrade.
Can I manually disconnect a chrome window from refreshing automatically when I change my code.
Basically I want to disconnect the websocket connection using devtool or some other way. I tried offline checkbox, but its not helping.
This will come handy for a HTML developer for him to compare the HTML changes done from a developer tool and to the original one.
Right-click the WS connection in the Network panel then select Block Request URL. Based on the websocket.org echo demo, it seems to provide the effect you're looking for.
Have you tried setting the hot module reload to false? There is mention of it in the docs.
Basically, I'm creating a webpage filled with images of movie posters that link to video files, as a means of making a more visually-appealing form of my local video library.
I'm using
<a href="C:\blah\movie.mkv"><img src="poster.jpg">
It works exactly how I want, HOWEVER, it opens the file in the browser rather than opening it in its default program, as I would like. I would like each link to open the file in the program titled "VLC Media Player", as specified in Windows for each of their filetypes.
Let me know how I can do this (in the simplest form--I'm not too smart :P)
Thanks!
If you are creating web pages on your local system for you own use then you may want to consider looking in to a WAMP server setup. This uses php and should allow you to call VLC using the exec command. Would take some learning however.
There is very little you can do to control how a client will handle a resource.
You can use the Content-Disposition HTTP response header to state that the resource is an attachment (and thus recommend that it be downloaded instead of opened).
Content-Disposition: attachment;filename="movie.mkv"
You can't, however, stop browser native support or a plug-in from handling something instead of having it open in a separate application (let alone cause it to be opened in a specific application).
If the browser is configured to open video files internally, then nothing the author of a website can do will make it switch to using a application instead.
I'm trying to use a webpage as an entry point for a kiosk. The HTML will be run in local, I need two things:
<a href="c:\Users\Admin\Documents">...
Which works like a charm
And..
<a href="c:\Program Files\Windows Live\Mail\wlmail.exe">...
(program just an example, all programs are the same)
Which works but.. it prompts to download the file then you are prompted to start it.. Is there any way to do this directly, like click and bam you opened notepad.exe? Maybe using a Java applet?
EDIT:
I know it can't be done remotely, I'm talking about local files.
The file will be accessed as c:\myhtml.html
And will open ONLY already installed files, nothing from the web.
If i get your question right , the closest thing to get what you want would be using *.hta which is a HTML Application that runs outside the browser window just like a normal app.
<script type="text/javascript" language="javascript">
function RunFile() {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run("c:/windows/system32/notepad.exe", 1, false);
}
</script>
Bit more info here:
http://www.kunal-chowdhury.com/2010/09/how-to-execute-local-file-using-html.html
The right way to implement this is by creating custom protocol in Windows. Details in the MSDN article "Registering an Application to a URI Scheme"
No, this is security issue, browsers don't allow it because it could be security risk to run apps without prompt, just by clicking on the link.
There are several technologies like java WebStart and ASP ClickOnce - they will install the app more or less automatically, signing the application helps too - the messages the user gets look less scary.
Correct me if I didn't understand you. If you're running the web page locally (http:\127.0.0.1) and want to execute a program in the same machine, it will depend on the technology that you're using, for example in php you could use exec() to execute a program on user input but it will run on the server side.
I want some particular urls like "springer.com" to automatically convert to "springer.com.proxy1.mycollege.edu". The second url takes me to springer site through my college library gateway; I am able to access some parts that would otherwise be restricted.
Is there some way to convert the url as above automatically in firefox 3?
Could use your hosts file to trick firefox into looking for springer.com in the right place.
http://en.wikipedia.org/wiki/Hosts_file
You can use Greasemonkey for such task.
One way to solve your problem is to run a web proxy like Squid, configure authentication against your campus LDAP directory, and use a Proxy auto-config file to make the browser go through your proxy.