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
27
votes
3 answers

Advantage of Local Classes Java

What is the advantage of local classes in Java or in any other language that makes use of this feature?
Paradius
  • 7,949
  • 11
  • 32
  • 38
27
votes
5 answers

Google Chrome --allow-file-access-from-files disabled for Chrome Beta 8

I have been developing an AJAX application using jQuery and Microsoft Seadragon technology. I need to have access to the html5 canvas function toDataURL. With Google Chrome, the same origin rule applies to this function which means that a page run…
Alexandre
  • 507
  • 1
  • 5
  • 16
26
votes
4 answers

How can I test lambda in local using python?

Is there any way that I can test aws lambda in local? I know there is a package which name is 'localstack' but seems like there is not many people who tried it.
user6922072
26
votes
4 answers

How can I correct MySQL Load Error

I'm not quite sure a similar question to this was closed by I'm trying to execute the following MySQL program. mysql -e "load data local infile \ '/tmp/ept_inventory_wasp_export_04292013.csv' into \ table wasp_ept_inv fields terminated by ','…
octopusgrabbus
  • 10,555
  • 15
  • 68
  • 131
26
votes
5 answers

Namespaces with Module Imports

I am learning Python and am still a beginner, although I have been studying it for about a year now. I am trying to write a module of functions which is called within a main module. Each of the functions in the called module needs the math module to…
SpencerAAA
  • 291
  • 1
  • 4
  • 10
25
votes
5 answers

Include jsapi google on local machine, not from google.com

I would like to know if it is possible to download and include the jsapi library, but not hosted by google.com, hosted on my local machine. Because it's possible that my project can not have access to the Web.
Elmux
  • 399
  • 1
  • 4
  • 14
25
votes
11 answers

Python worker failed to connect back

I'm trying to complete this Spark tutorial. After installing Spark on local machine (Win10 64, Python 3, Spark 2.4.0) and setting all env variables (HADOOP_HOME, SPARK_HOME, etc) I'm trying to run a simple WordCount.py Spark application: from…
Mike D.
  • 293
  • 1
  • 3
  • 6
25
votes
3 answers

Access all stored cookies

I want to access my Chrome stored cookies from the JavaScript console. Is this possible?
dan
  • 251
  • 1
  • 3
  • 3
25
votes
3 answers

Lambdas and capture by reference local variables : Accessing after the scope

I am passing my local-variables by reference to two lambda. I call these lambdas outside of the function scope. Is this undefined ? std::pair, std::function> addSome() { int a = 0, b = 0; return…
Ashish Negi
  • 5,193
  • 8
  • 51
  • 95
25
votes
2 answers

Java get local IP

Im trying to get the local IP. It should work with System.out.println(Inet4Address.getLocalHost().getHostAddress()); or InetAddress addr = InetAddress.getLocalHost(); ip = addr.getHostAddress(); System.out.println("Ip: " + ip); but it always…
Nico Hauser
  • 644
  • 2
  • 8
  • 17
24
votes
2 answers

How can I test my ssh-keys locally without a server

I want to test my keys in ~/.ssh. I do not have sshd running (Git-Bash@Windows does not provide it). I'd like to test if I still remember the passphrase for my keys. I found these answers [1], [2], but they do not work for me. Is there an easy way…
Juve
  • 10,584
  • 14
  • 63
  • 90
24
votes
10 answers

iOS: How to Get the Device Current Language Setting?

There are some features within my application that are supposed to be based on the language settings of the device where it's running. I want to get the actual language and not some country settings. Foe example, if the language is English, I don't…
Ohad Regev
  • 5,641
  • 12
  • 60
  • 84
24
votes
1 answer

xmllint : how to validate an XML using a local DTD file

I have a local DTD file test.dtd. Content is : ]> I'd like to validate an XML using xmllint. This XML has no DOCTYPE in it :
Eric H.
  • 2,152
  • 4
  • 22
  • 34
24
votes
4 answers

Perl: "Variable will not stay shared"

I looked up a few answers dealing with this warning, but neither did they help me, nor do I truly understand what Perl is doing here at all. Here's what I WANT it to do: sub outerSub { my $dom = someBigDOM; ... my $otherVar = innerSub(); …
jackthehipster
  • 978
  • 8
  • 26
24
votes
6 answers

How can I localize Perl variables in a different stack frame?

I have some auto-generated code which effectively writes out the following in a bunch of different places in some code: no warnings 'uninitialized'; local %ENV = %ENV; local $/ = $/; local @INC = @INC; local %INC = %INC; local $_ = $_; local $| …
Ovid
  • 11,580
  • 9
  • 46
  • 76