Wikipedia:Reference desk/Archives/Computing/2021 July 30
Computing desk | ||
---|---|---|
< July 29 | << Jun | July | Aug >> | July 31 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
July 30
[edit]Gulp unable to load local JSON file
[edit]This is a weird problem because it happens only to my coworker, not to me, even though we both work on the exact same project.
Anyway, we are working on a .NET C# project using Visual Studio 2015 on Windows 10. The project has a gulp.js file called gulpfile.js
which references a local JSON file (included in the project in the same directory as gulpfile.js
itself):
var project = require("./version.json");
This version.json
is a simple JSON file looking like this:
{ "version": "1.0" }
My co-worker gets this error message when trying to access Gulp:
Failed to run "C:\Workspace\My-Project\Gulpfile.js"... cmd.exe /c gulp --tasks-simple { [Error: Cannot find module './version.json'] code: 'MODULE_NOT_FOUND' }
The exact same Gulp file for the exact same project in Visual Studio on Windows 10 (which we both use) is working fine for me.
What could be the reason? JIP | Talk 02:27, 30 July 2021 (UTC)
Browser text.
[edit]When you type in something in a web page input forms, and hit submit, it takes you to the next page. If you click back, the text you typed is retrieved. Then, where is that text stored? If your computer shuts down, and you reopen the browser, and go to view all the last pages, can that text still be retrieved? (Does it depend on the browser?) 67.165.185.178 (talk) 19:45, 30 July 2021 (UTC).
As an update, if I go back to the page, the browser had the titles saved, but not the body. So in the title, if I type in the 1st letter, it will retrieve my entire title for me. But if I go to the body, and type in the 1st letter, it has nothing saved. Where in My Computer can I locate the title to see what document it is stored in? 67.165.185.178 (talk) 19:50, 30 July 2021 (UTC).
- You need to specify what operating system you are using (Ubuntu, Mint, Windows10 or Debian for example) and which browser (Firefox, Chromium, Edge) and which version before anyone can help you. Martin of Sheffield (talk) 21:03, 30 July 2021 (UTC)
- It pretty much depends on the browser and operating system, but as a general answer, it is stored locally on your computer, it is not actually fetched from the Internet. It might be kept only in the browser process's memory, or stored in a temporary file on your computer's disk. JIP | Talk 23:36, 30 July 2021 (UTC)
- Well, remember I said the title is saved? I typed in a keyphrase of the title in My Computer, and searched, and nothing showed up. If it is stored, it's stored as a hash? I'm on Windows 10 and Google Chrome, and Googling Google Chrome Windows 10 did not immediately show where the folder for data is stored at. Do some browsers store it and some don't? And for the ones that do, do some only do, depending on the OS? 67.165.185.178 (talk) 13:43, 31 July 2021 (UTC).
- It's in the browser cache probably. Text boxes can be autocompleted, this information is stored separately, "permanently" (the cache is cleared regularly, autocomplete is mostly cleared only manually). Stuff in text areas is not autocompleted, probably because text areas tend to have many times more text, this would take up a big chunk of the database. The database in question cannot be found via a full text search on Windows since its data is usually not stored in clear text. For example Firefox and its forks use SQLite.
- The form data you're talking about is cached with the rest of the page in the back-button sequence. If you close the tab or the browser, the cache will likely be cleared and the form data will be gone with it. For security reasons, some form data like passwords are deliberately not cached in this way even if you go back and find the rest of the data cached. 93.136.108.147 (talk) 03:21, 2 August 2021 (UTC)