Questions tagged [local]

A tag for questions about accessing resources local to a given runtime environment or network.

Accessing data on a local network, or accessing files local to the computer can pose unexpected complications, especially when using languages that are not typically used for local resource access.

Additional exceptions, or hardware/firmware considerations, can come into play in these scenarios that are often abstracted away when accessing remote resources.

3710 questions
14
votes
1 answer

Load local if CDNJS not available

I have a couple of JavaScript files that I use on every single project and currently use CDNJS to load them. However, I was trying to see if there was a good way to check if the CDN is available, or if the files are available from the CDN. Then of…
Keenan Payne
  • 796
  • 2
  • 15
  • 32
13
votes
3 answers

Is it possible to write a local web application that does not need a server?

I want to create a local application that has a browser-based UI rather than a stand-alone GUI based on MFC / Qt / etc. If I don't want to run a webserver on the local machine, how can I implement the dynamic parts of my app? Can the browser be…
paperjam
  • 8,321
  • 12
  • 53
  • 79
13
votes
4 answers

WSL2 use "localhost" to access Windows service

I'm using WSL2 on Windows 10. My dev stack is using a local webserver (localwp or wamp) on the host OS. I use WSL2 as the main terminal (SSH, Git, SASS, automation tools, ...). What I need is a way to connect to my host services (MySql) from the…
Tim
  • 1,238
  • 1
  • 14
  • 24
13
votes
2 answers

Access all local variables

Every global variable in javascript is a property of 'window' Apparently all local variable (aswell as arguments) are stored as properties of the 'Call object' (See chapter 4.6.2 of each function. Persumably only existing for the lifetime of said…
Raynos
  • 166,823
  • 56
  • 351
  • 396
13
votes
1 answer

Loading package html + resources into webview

I would like to know how I can display a HTML page in webview with references to relative/local images. The goal is to have the html page and all linked images contained in the android application package itself. Where would I need to place the…
user302750
  • 207
  • 2
  • 4
13
votes
4 answers

Can I change the default directory on my local drive for all Git activity?

So I just started using Git and GitHub. It's still a steep climb, but I'm starting to enjoy it. One thing I've noticed from when I clone a repository is that it always downloads to my home folder /users/username. Is there a way to change this? I…
jonobr1
  • 1,013
  • 2
  • 11
  • 22
12
votes
3 answers

how to copy between folders and parent folder without complete path

This is a basic question but I am struggling to find a decent solution. This is hindering my script from automation. I have the following path. /home/hassan/Dyna/ProjectSimulation in project simulation I have 3 folders friction time…
hamad khan
  • 369
  • 1
  • 5
  • 14
12
votes
5 answers

why to use Thread Local Storage (TlsAlloc, TlsGetValue, ets) instead of local variables

my question is why use TLS mechanism instead of just local variables in a thread function? Can you please provide some fine example, or what's the advantage of TLS over local vars? Thank you, Mateusz
mateusz m
  • 123
  • 1
  • 4
12
votes
4 answers

SQLite database in Javascript locally

I'm using a PhoneGap project on XCode. I am trying to connect to a SQLite databse by using Javascript. I have made a file "myDatabase.sqlite" in an SQLite tool. Now my question is how do I open that database in my code? Right now I'm using the…
Tjekkles
  • 5,352
  • 8
  • 36
  • 53
12
votes
8 answers

Chrome on android - not loading local website javascript and css

I have strange problem on Chrome for Android with local website. It works perfect on Firefox for Andorid, but not for Chrome. On my site here: https://passcombo.com there is download link with a zip file. What I do is: download file to local file…
kkonrad
  • 303
  • 1
  • 3
  • 11
12
votes
2 answers

Difference between "local" and "let" in SML

I couldn't find a beginner friendly answer to what the difference between the "local" and "let" keywords in SML is. Could someone provide a simple example please and explain when one is used over the other?
Johan
  • 863
  • 3
  • 13
  • 28
12
votes
1 answer

Magento - local controller is not working

I have a question regarding Magento's local directory. I am trying to override a core controller - Mage/Contacts/controllers/IndexController.php. So I copied IndexController.php to /app/local/Mage/Contacts/controllers/ but Magento is still using…
Moon
  • 22,195
  • 68
  • 188
  • 269
12
votes
7 answers

How can I run C# app which contains local SQL Server database on another computer?

I have created a C# program with a SQL Server database. It works fine on my computer but on my friend's PC it doesn't (my friend doesn't have SQL Sever 2008). Is it possible to make it without any installation? And if it can, how can it be…
Petar Bechev
  • 587
  • 2
  • 5
  • 11
12
votes
1 answer

Convert local image to base64 string in Javascript

I'm trying to convert a local image to Base64 string. I am not using any HTML and simply need javascript which references the image's path within the code. For instance, converting: …
Mathomatic
  • 899
  • 1
  • 13
  • 38
12
votes
14 answers

WAMP: Missing http://localhost/ in urls , wrong wamp projects links

I have a problem with Wamp which never happened to me before, cannot find what's wrong. I have a few projects located in my www folder ( running windows 7 ). My hostfile has the line 127.0.0.1 localhost uncommented When I go to http://localhost/…
mlclm
  • 725
  • 6
  • 16
  • 38