Language:
switch to room list switch to menu My folders
Go to page: First ... 33 34 35 36 [37]
[#] Wed Sep 26 2018 09:35:46 EDT from Decomposed @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

 

Wed Sep 26 2018 05:50:38 AM EDT from fleeb @ Uncensored

Well, your HTML there refers to a couple of files that clearly live on your C:\ on your Windows machine, so they probably won't be very useful.

That's true.  I assume, though, that anyone using this menu will tailor it to meet their needs - to include the sites that they enjoy.  (Uncensored Citadel comes to mind.)

SOME will want to open Word documents, so I've left those two files in the menu as an example of how to do it.  If you notice, the protocol isn't the same for those two as it is for all the others.

I think it's worth noting that some of the html tutorial sites claim that it isn't possible for a browser to open local documents with their default applications (Word, Excel, etc.)  They're wrong, though, since I've been able to get my menu to open both Word documents and Excel spreadsheets.  Interestingly... I haven't been able to get it to open TEXT files with Notepad.  I'm not sure why that is.  The browser always opens them as browser pages even though Notepad is their default application.  If any of you know a way to do it, please advise.



[#] Wed Sep 26 2018 09:41:29 EDT from Decomposed @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

 

Wed Sep 26 2018 05:50:38 AM EDT from fleeb @ Uncensored

Well, your HTML there refers to a couple of files that clearly live on your C:\ on your Windows machine, so they probably won't be very useful.

True.  However, I included them as examples since I assume anyone using the menu will want to tailor it to meet their own needs.  Opening local documents is NOT the same as opening websites.  If notice, the "file" protocol is needed to open them.

Interestingly, some html tutorials claim that it isn't possible for a browser to open local files with their default application.  That's clearly wrong.  I've had my menu open both Word documents and Excel spreadsheets.  I have NOT been able to get text documents to open with Notepad, though.  The browser always opens text as a browser tab even though Notepad is text's default application on my computer.  If any of you know a way to invoke Notepad, please advise.



[#] Thu Sep 27 2018 19:14:38 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I seem to recall reading recently that one or more of the major browsers was going to end support for file:/ URLs. Or something like that./

[#] Wed Oct 03 2018 11:34:37 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


Hrm... I expect the file:// protocol would bring up the file in question within the browser if the browser knows how to process it, rather than bringing it up within the operating system's sense of how to handle that protocol.

So if you pulled up your HTML in a browser that isn't your default, and referred to a file that's HTML, it will likely render the HTML within the non-default browser than your default one.

Hence why it shows the text in the browser.

I doubt you can compel it to use whatever serves as your default text editor.
Unless there's some kind of setting in your browser to do just that.

[#] Wed Oct 03 2018 20:28:52 EDT from Decomposed @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Yep.  That's what I'm experiencing.  The explanation makes sense.

 



[#] Sat Oct 06 2018 00:01:27 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Today I learned that Python has a built-in web server class that makes it so easy to build HTTP service directly into a web application, you'd be crazy to run a separate web server unless you had extremely complex or high-demand needs.

I started building a middleware API to automate some provisioning tasks.
The web server is an "import" statement and two lines of code. If I wanted to make it encrypted it would be three lines of code. When I hand this program off to production, instead of telling them "install this web server and configure it this way and set up these variables to bind it etc etc etc" it will just be "here, run this."

Go to page: First ... 33 34 35 36 [37]