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
34
votes
2 answers

Is it possible to run .php files on my local computer?

Possible Duplicate: PHP server on local machine? Is it possible to run .php files on my local computer? I know if i open up a web browser and enter the file location into the URL for HTML files, the html file will run and display. Is there a way…
Steven Rogers
  • 1,874
  • 5
  • 25
  • 48
34
votes
2 answers

How to bind local property on control in WPF

I have two controls on WPF
34
votes
5 answers

Fetch local JSON file from public folder ReactJS

I have a problem since two days; I want read a local JSON from my public folder on my React application created with react-app. This is my project structure: public data mato.json (my .JSON file) src components App.js Why I put my file…
Kevin
  • 482
  • 1
  • 4
  • 10
34
votes
6 answers

Android Development: Using Image From Assets In A WebView's HTML

In my app I'm making a basic HTML help document. I wanted my app's logo in the HTML img tag itself, but I don't know how I'd reference to the logo which will be stored in assets. Is this possible, if so how? Thanks for the help!
AlexPriceAP
  • 1,987
  • 6
  • 26
  • 41
32
votes
4 answers

MySQL local variables

I am trying to define and initialize a MySQL variable for a query. I have the following: declare @countTotal int; SET @countTotal = select COUNT(*) from nGrams; I am using MySQL in Netbeans and it tells me I have an error. What/where is my…
CodeKingPlusPlus
  • 15,383
  • 51
  • 135
  • 216
31
votes
2 answers

setting seed locally (not globally) in R

I'd like to set seeds in R only locally (inside functions), but it seems that R sets seeds not only locally, but also globally. Here's a simple example of what I'm trying (not) to do. myfunction <- function () { set.seed(2) } # now, whenever I…
Manoel Galdino
  • 2,376
  • 6
  • 27
  • 40
30
votes
8 answers

Should I use "this" keyword when I want to refer to instance variables within a method?

My teacher says that when I try to access an instance variable within a method I should always use the this keyword, otherwise I would perform a double search. A local scope search and then an instance scope search. Example: public class Test(){ …
Juan Herrera
  • 810
  • 1
  • 10
  • 16
29
votes
6 answers

Eclipse's local history...where are files saved?

Can someone explain how Eclipse's local history works? I accidentally overwrote a file in a project but need to revert to an earlier version. Is there a chance that Eclipse has the older file cached somewhere?
jim
29
votes
7 answers

Is there a way to map a UNC path to a local folder on Windows 2003?

I know that I can map a UNC path to a local drive letter. However, I am wondering if there is a way to map a UNC path to a local folder. I have a program that has a specific folder hard coded into the program and I am wanting to try and create a…
Davin Studer
  • 1,501
  • 3
  • 15
  • 28
29
votes
4 answers

Loading local html file in webView android

I have to load an existing html file into a WebView that is located at this path in the file system: /data/data/com.example.example/files/file.html But, when the WebView loads it, I don't see anything. Who can help me? WebView code (assuming path…
donadev
  • 439
  • 2
  • 7
  • 17
28
votes
8 answers

Javascript: Download data to file from content within the page

setting is the following: I have a homepage where I display a diagram that has been constructed using comma seperated values from within the page. I'd like to give users the possibility to download the data as cvs-file without contacting the server…
Simon
  • 303
  • 1
  • 3
  • 6
28
votes
1 answer

How to access a global variable within a local scope?

This is my code #include using namespace std; int x = 5; int main() { int x = 1; cout << "The variable x: " << x << endl; } I get as output 1, but I would like to have 5, as in accessing the global x variable. Is this…
user3080728
  • 283
  • 1
  • 3
  • 6
28
votes
5 answers

Do Local Notifications need user permission on iOS?

I am using UILocalNotification in my app to schedule notifications. The notifications work fine and show up when I want them to. I dont have an issue with that. I am NOT doing any remote/push notifications. What got me wondering is that I never saw…
RPM
  • 3,426
  • 2
  • 27
  • 35
27
votes
2 answers

Android WebView JavaScript from assets

How can I make JavaScript and images on my remote HTML page be loaded from assets folder (or just any local resource)?
tomurka
  • 851
  • 1
  • 7
  • 16
27
votes
6 answers

PHP $this variable

I am reading some PHP code that I could not understand: class foo { function select($p1, $dbh=null) { if ( is_null($dbh) ) $dbh = $this->dbh ; return; } function get() { return $this->dbh; } } I can't find $this->dbh…
wordpressquestion
  • 745
  • 1
  • 7
  • 18