Questions tagged [setting]
261 questions
2
votes
0 answers
how to show setting with preferenceFragment in DrawerLayout in android?
I use DrawerLayout including 4 pages. I want to create setting page for my app.
This is MainActivity.class for initializing DrawerLayout:
public void selectDrawerItem(MenuItem menuItem) {
// Create a new fragment and specify the fragment to…
user4568864
2
votes
2 answers
Exit status set by comparison operator in bash script
The following bash script prints "ERROR!" rather than "Server error response" even though wget returns 8:
#!/bin/bash
wget -q "www.google.com/unknown.html"
if [ $? -eq 0 ]
then
echo "Fetch successful!"
elif [ $? -eq 8 ]
then
echo "Server…

akarollil
- 435
- 4
- 12
2
votes
1 answer
Custom user configuration in C# application
Let's say I have a command line application that needs to reference some form of a user configuration file. Furthermore, the values contained within this file are to only be updated by the user manually -- there won't be any ways of updating the…

kylemart
- 1,156
- 1
- 13
- 25
2
votes
1 answer
Android database setting ImageView
I have a database with 5 columns, 1 column which is a TEXT with the name of a drawable that is /res/drawable folder.
private void fillData() {
mCursor = db2.getAllAchievements();
startManagingCursor(mCursor);
String[] from = new…

Jay_EL
- 69
- 1
- 7
2
votes
0 answers
Unity3D and new Firebase setting (due to the Firebase 2016/05/18 update)
Google updated Firebase recently (2016/05/18) so that we need apiKey for Web or adding rules to build.gradle for Android.
I'm using Firebase in my Unity3D project and it's working now anyway with old settings.
1) Until when can I use these old…

Yongsun Choi
- 71
- 5
2
votes
1 answer
Javascript setting date not working, showing wrong hour
I want to set date and time to 2016-05-11T00:00:00.000Z
var date = new Date(2016,4,12,0,0,0,0);
but instead of showing Date 2016-05-11T00:00:00.000Z its giving Date 2016-05-11T19:00:00.000Z
I want time 00:00:00 but its giving 19:00:00

Asfandiyar Khan
- 84
- 8
2
votes
1 answer
zebra datepicker direction - past up to certain date
I want to set up Zebra datepicker plugin in a way that it has enabled all past dates up to certain specified date. I found out this stackoverflow post that explains how to do that if that border date is today. But, if the border date is lets say 1…

user2461067
- 41
- 5
2
votes
1 answer
cannot find "use IIS Express" in the Solution Explorer dropdown in VS2013
I just installed VS 2013, and I cannot find an option to use IIS express when I right click on the website project name.
Did this option get moved?
Without this option when I open an existing website, and run, I get 403.14 Forbidden error saying…

user2669043
- 97
- 1
- 6
- 12
2
votes
2 answers
Celery: how to create a settings file?
I basically want to set the prefetch to 1. However I don't think there's a way to do this when running celery worker -prefetch=1 or something like that. I need to create a settings file but not sure what this file should be named as (settings.py?)…

user299709
- 4,922
- 10
- 56
- 88
2
votes
2 answers
How to Store Key-Value or One to Many User Settings in database (Xml, Json)?
Should we Keep application key-value settings data in Serialized manner in db like XML or JSON format.
e.g. user setting data can be kept in serialized manner in a single nvarchar(2000) column
Or I should keep them as table with columns like BELOW…

abksharma
- 576
- 7
- 26
2
votes
2 answers
Store array of custom class in settings file
I have one class:
public class CustomClass
{
public string Columns;
public string Filter;
public string SourceDB;
public string SourceTable;
public string DestinationDB;
public string DestinationTable;
}
In the user…

Akshay J
- 5,362
- 13
- 68
- 105
2
votes
1 answer
Setting up Ogre3d an Qt5.0
Im trying to compile a ogre 3d example project on Qt5.0 as a plain c++ project, but Im getting a lot of errors of "No such file or directory", I already add all the paths to the pro file. Also I set the Environment Variable, OGRE_HOME as in this…

Alex Ar
- 37
- 1
- 7
2
votes
1 answer
Android:How to show the location source settings programmatically?
I want to open location source settings,I do as this
Intent intent = new Intent( Settings.ACTION_LOCATION_SOURCE_SETTINGS );
startActivityForResult(intent, 0);
but in some phones(main Android 4.0.4,some 4.1.2) it report an exception:
…

user2273067
- 21
- 1
- 3
2
votes
1 answer
django memcached setting location list has tuples?
Just saw this configuration in one of the project setting.py
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'KEY_PREFIX' : 'projectabc:',
'LOCATION': [
…

James Lin
- 25,028
- 36
- 133
- 233
2
votes
1 answer
How to disable “the error the value ‘abc’ is not valid for IntegerProperty”
I hope someone can help me out to disable the default validation that MVC 3 runs when I post a string value in an integer field. Currently the application will add the error “the value ‘abc’ is not valid for IntergerProperty” to the ModelState…

André Barendse
- 21
- 2