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
72
votes
9 answers

An image does not exist locally with the tag: while pushing image to local registry

I am trying to push an image to a local registry running in minikube but get the below error: Successfully built ee84225eb459 Successfully tagged user/apiserver:0.0.1 $ docker push localhost:5000/user/apiserver:0.0.1 The push refers to a…
Amit Shah
  • 751
  • 1
  • 5
  • 7
59
votes
3 answers

Local Notifications in Android?

In iOS, a "Local Notification" is used by an app when it is in the background, to inform the user that something has happened, that they might want to pay attention to: Local notifications ... to inform users when new data becomes available for…
Arsalan Haider
  • 621
  • 1
  • 6
  • 7
59
votes
4 answers

Why are global variables always initialized to '0', but not local variables?

Possible Duplicate: Why are global and static variables initialized to their default values? See the code, #include int a; int main(void) { int i; printf("%d %d\n", a, i); } Output 0 8683508 Here 'a' is initialized with '0',…
yuvanesh
  • 1,093
  • 2
  • 9
  • 19
55
votes
10 answers

Is there any way to test PHP locally without installing a server?

I'm looking for something like http://phpfiddle.org/, but completely local. I don't want to commit to installing something as complex as Apache, then PHP on top of that, just to try out code when I'm offline. Is there anything that can run PHP 5.5…
Ky -
  • 30,724
  • 51
  • 192
  • 308
51
votes
6 answers

Error message when starting vim: "Failed to set locale category LC_NUMERIC to en_CH" (or en_BR, en_RU & LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES)

I freshly installed vim (Vi IMproved 8.1) as a text editor on my MacOS 10.14.5 with Homebrew. Each time that I run vim I get this error message: Warning: Failed to set locale category LC_NUMERIC to en_CH. Warning: Failed to set locale category…
ecjb
  • 5,169
  • 12
  • 43
  • 79
51
votes
9 answers

How to copy files from local machine to docker container on windows

I have to import data files from a user local file C:/users/saad/bdd to a docker container (cassandra), I didn't find how to proceed using docker commands. I'm working on windows 7.
Manou
  • 511
  • 1
  • 4
  • 3
51
votes
5 answers

Use multiple local strategies in PassportJS

I'm trying to use multiple LOCAL strategies with PassportJS. I'm not trying to use local, facebook, and gmail, etc. I have two sets of users stored in separate objects and I want to use a local strategy to authenticate both. As it stands, I cannot…
Plattaz
  • 525
  • 1
  • 6
  • 5
51
votes
3 answers

Local functions in Python

In the following Python code, I get an UnboundLocalError. As I understand it, local functions share the local variables of the containing function, but this hardly seems to be the case here. I recognise that a is an immutable value in this context,…
Matt Joiner
  • 112,946
  • 110
  • 377
  • 526
50
votes
5 answers

How to make a local variable (inside a function) global

I'm using functions so that my program won't be a mess but I don't know how to make a local variable into global.
user1396297
44
votes
5 answers

Defining Setter/Getter for an unparented local variable: impossible?

There's a few previous questions on StackOverflow questioning how one goes about accessing local variables via the scope chain, like if you wanted to reference a local variables using bracket notation and a string, you'd need something like…
user748221
42
votes
5 answers

iphone local notification in simulator

I just downloaded xcode and trying to make local notification example. The question is if local notification works in simulator? thank you
user349302
  • 3,491
  • 7
  • 27
  • 31
41
votes
15 answers

Does it help GC to null local variables in Java

I was 'forced' to add myLocalVar = null; statement into finally clause just before leaving method. Reason is to help GC. I was told I will get SMS's during night when server crashes next time, so I better did it :-). I think this is pointless, as…
Peter Štibraný
  • 32,463
  • 16
  • 90
  • 116
38
votes
6 answers

Working offline with SVN on local machine temporary

I am working on a project currently on SVN. I however will not have access to the internet for a few days, and will be working on my project. Is there any way to make a clone of the repository on my local machine, commit changes to it, and when I…
Karan
  • 14,824
  • 24
  • 91
  • 157
36
votes
3 answers

Can I load a local html file with the cheerio package in node.js?

I have a few html files on my harddrive that I'd like to use jquery on to extract data from. Is this possible to do using cheerio? I've tried giving cheerio the local path but it doesn't work. One idea I had would be to create a web server in…
Jpaji Rajnish
  • 1,491
  • 4
  • 17
  • 35
36
votes
2 answers

annotating a local variable in php

I am using Eclipse PDT and I want to annotate a local variable using Phpdoc. All I see is that I can annotate the variables/properties of a class using @var or even @property, but how is this possible for a local variable? How can I do something…
tzortzik
  • 4,993
  • 9
  • 57
  • 88