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

Schedule notification using alarm manager in xamarin forms for android

I have created a dependencie to show the notifications In My DeviceDetails_Droid.cs I've set set alarm for 30 seconds The functionality for local notification works perfectly when app is active but when I killed the app (close app) the alarm …
user797725
  • 89
  • 1
  • 6
9
votes
4 answers

Play local audio file with AVAudioPlayer

I'm testing my app in simulator. I'm downloading file and getting it's local way like this…
SwiftStudier
  • 2,272
  • 5
  • 21
  • 43
9
votes
5 answers

Sphinx-quickstart doesn't work

I am trying to install sphinx on a remote machine. Since I don't have an access to the root, I did this: $bash $mkdir -p ~/local/lib/python2.7/site-packages $export PYTHONPATH=$PYTHONPATH:~/local/lib/python2.7/site-packages $export…
pmjn6
  • 307
  • 1
  • 4
  • 14
9
votes
1 answer

How to connect to Heroku postgres database from a local connection in php

I'm trying to access to my Heroku Postgres database from a php code that runs locally. pg_connect("host=myhost port=5432 dbname=mydb user=me password=*** sslmode=require options='--client_encoding=UTF8'") works well when the code runs on Heroku,…
Guig
  • 9,891
  • 7
  • 64
  • 126
9
votes
7 answers

Local variables defined inside for loops in C++

In the following piece of C++ code: for (int i=0; i<10; i++) { int y = someFunctionCall(); //Some statements } is the variable (y) allocated each time the loop iterate and then de-allocated when the iteration is done,…
Ahmed Adel
  • 331
  • 4
  • 10
8
votes
3 answers

Is it possible to "dynamically" create local variables in Python?

Is it possible to create a local variables with Python code, given only the variable's name (a string), so that subsequent calls to "'xxx' in locals()" will return True? Here's a visual : >>> 'iWantAVariableWithThisName' in locals() False >>>…
MitchellSalad
  • 4,171
  • 8
  • 23
  • 24
8
votes
5 answers

Sending mail to local mail server - "SENT: 550 The address is not valid."

I am trying to send mail to my local mail server. I am using hMailServer as mail server and I have configured it as mentioned here: Setting up local Mail (SMTP, POP3, IMAP) Server on XAMPP But when I try to send mail I am getting this error: (…
Olcay Ertaş
  • 5,987
  • 8
  • 76
  • 112
8
votes
5 answers

Local Notification in foreground in iPhone SDK

Will the local notification show up when the app is in foreground and currently running in iPhone SDK?
Dip Dhingani
  • 2,499
  • 2
  • 20
  • 18
8
votes
1 answer

iPhone: How to play local notification sound loud independent of volume setting?

The FoneHome iPhone app has a feature where you can play a sound as part of a local notification. That sound is loud regardless of what the iPhone's volume level is set at. How is it possible to get a local notification (or push) to play an audio…
puot
  • 161
  • 1
  • 7
8
votes
2 answers

Python month/day names in other language

Debian is set to en_US but I need day/month in German. So how can I get %a to output Do instead of Thu? draw.text((0,34), time.strftime("%a %d.%m.%Y"), font=font)
MrGlasspoole
  • 415
  • 2
  • 4
  • 15
8
votes
3 answers

kubeadm/kubectl/kube-apiserver turn on feature gate

i'm trying to test the local persistent volume in kubernetes v1.9.2. from what i gather (and i may be wrong!) i cannot use kubeadm to add these feature gates: $ sudo kubeadm version kubeadm version: &version.Info{Major:"1", Minor:"9",…
yee379
  • 6,498
  • 10
  • 56
  • 101
8
votes
3 answers

Where do I save my HTML and PHP files when I am using a local server on my Mac (OS X 10.6 Snow Leopard)

I am learning PHP and MySQL and just set up a local server on my Mac Snow Leopard. The different components work (PHP work, MySQL works from the terminal, and Apache is set up. Where should I save my HTML and PHP files? Some sources say /users/[my…
Andy
  • 83
  • 1
  • 1
  • 3
8
votes
3 answers

Embedded WSGI backend for Python desktop app using webkit

Disclaimer: I'm not very familiar with any of the things mentioned in the question title. Would it be possible to use a browser control (like Webkit) as a frontend for a WSGI app (using a framework like Flask) without starting a local WSGI…
user93202
8
votes
4 answers

On-Disk database storage, best practices

If this question seems common to you, I apologise, I did a quick search around this site and a few google searches and could not find a satisfying answer. My question is this; I have only been a software developer for 3-4 years now. This may seem…
user407356
  • 284
  • 5
  • 18
8
votes
3 answers

how to deploy shiny app that uses local data

I'm deploying my shiny app and I don't know how to input my a local dataset. I keep getting Error: object "data" not found. Here is my path to shiny folder. library(shinyapps) shinyapps::deployApp('C:\\Users\\Jeremy\\Desktop\\jerm2') In this…
Tyrion Lannister
  • 270
  • 2
  • 7
  • 20