Questions tagged [setting]

261 questions
3
votes
1 answer

eclipse editor colors - how to set in outline view

The line that is highlighted on Eclipse is really hard for me to see. I am color blind, but I can see colors. I assume the the highlight color in the outline screen has very little contrast to the other colors. Thank you! Anyway I will try and…
Mark Worsnop
  • 4,407
  • 15
  • 54
  • 79
3
votes
2 answers

Detect if phone vibrates on device physical/software Keys

in Some cases in your app you just wanna the phone to vibrate if a certain button in your app has been clicked , in my case there is a search mode that switching to and from this mode will make the phone vibrate and also this would happen if the…
Mahan
  • 147
  • 1
  • 3
  • 14
3
votes
2 answers

Can xcode pass compile flags to depended target from the depending one?

Here is the case I'm faced with when building my mac app. The project has three targets: target A is comprised of UI src code and produces the final app; target B produces command-line test program that executes some unit tests(I'm not using the…
bestOfSong
  • 81
  • 1
  • 6
3
votes
1 answer

Set values from src/groovy classes to domain class properties

I'm working on crawler4j using groovy and grails. I have a BasicCrawler.groovy class in src/groovy and the domain class Crawler.groovy and a controller called CrawlerController.groovy. I have few properties in BasicCrawler.groovy class like url,…
clever_bassi
  • 2,392
  • 2
  • 24
  • 43
3
votes
0 answers

using sublime text 2. When I renamed file/folder in sidebar ,file/folder is overwritten WITHOUT confirming

I use sublime text2. When I renamed fileA to fileB that already exist, the file is over written without confirming. like this case. http://www.sublimetext.userecho.com/topic/116014-folder-renaming-bug/ Does anyone know how to change setting to check…
3
votes
2 answers

Setting values in matrices - Python

I made i matrix 5x3 field = [] fields = [] for i in range(0,5): for j in range(0,3): x = 1 field.append(x) fields.append(field) When i want to change one field fields[2][2] = 0 i get this: fields[0][0] =…
Ivan Vulović
  • 2,147
  • 6
  • 27
  • 43
3
votes
2 answers

Enable/Disable Wifi on non-jailbroken iOS device

This I needed for my internal app. I want to toggle wifi on ios device. Any framework is available. I tried following code, but it provides me no help. This doesn't change my wifi settings. { Class BluetoothManager =…
user2259101
  • 61
  • 1
  • 3
3
votes
2 answers

Setting Correct Filepath for a txt Save - vb.NET

Okay. I feel like this should be programming 101, but I cannot seem to find a decent answer on how to set a file path name to be dynamic enough to be set explicitly to where the exe is installed. Basically, this application is actually going to be…
Bobby Nicholls
  • 101
  • 2
  • 9
3
votes
5 answers

Stopping the jQuery blur event within the blur function

I have a textbox that I am using the blur event to validate the text with a regular expression. If it fails I want the textbox to keep the focus. I know in regular javascript you can say return functionName(); in the onblur event within the actual…
user189119
2
votes
4 answers

Php cookie not setting

Alright I'm totally baffled. Here's my code: if ($password == $correct_password[0] && !isset($_COOKIE['user'])) { setcookie("user", $email, time() + 3600); var_dump(isset($_COOKIE['user'])); echo "!"; …
Raekye
  • 5,081
  • 8
  • 49
  • 74
2
votes
2 answers

android get vibration settings

I need to get the right settings for vibrator so that my application respects the device's sound settings. On the following code, if the vibrator is off(on my phone when I lower the volume, it is a state when the volume is off and vibrator is off…
Buda Gavril
  • 21,409
  • 40
  • 127
  • 196
2
votes
1 answer

How to opencart 3.0.0.0 add external theme on localhost?

I installed opencart 3.0.0.0. And then I put in external theme file front-end catalog/view/theme/welldone_theme in this location but I can not connect the admin stater setting for not visible and Waring error is: you do not have permission to…
user8203652
2
votes
1 answer

Why is my system using my old PYTHONPATH after explicitly setting?

I am running a script that explicitly sets the PYTHONPATH to avoid naming collisions. However, even if I say os.environ['PYTHONPATH'] = '', it looks as though the system is still able to find my old path that "lives" outside the script. How is my…
Matt Norris
  • 8,596
  • 14
  • 59
  • 90
2
votes
0 answers

How to get status of system Haptics setting programmatically in ios?

In my app, i want the user to enable or disable haptic feedback. When the haptic feedback of device is off, i will not allow the user to enable it. I want to know the status of haptic setting in the device and if its on/off.
Apsara
  • 61
  • 6
2
votes
2 answers

is the vibration for call setting accessible in android?

Is there a way I can access the system preference for vibration settings? I have an alarm-like app which I want to inherit the vibration setting from the phone's ring/sound settings. However, I do not know how to programmatically access these…
damonkashu
  • 1,813
  • 5
  • 19
  • 25
1 2
3
17 18