settings

Eclipse Luna Dark theme, syntax coloring resets. How to disable?

不问归期 提交于 2019-12-03 06:37:43
Original Question: Eclipse luna theme issue Related Question: How to make Eclipse color settings permanent? TL;DR Eclipse Luna 4.4, Dark theme, Win 7 64bit, some settings reset to an initial value on start. How to make them stay the way i configured them ? Examples: Java Syntax Coloring, enums are italics with the dark theme, i dont want them italics tho... Additional Research In the workspace\.metadata\.plugins\org.eclipse.core.runtime.settings\org.eclipse.jdt.ui.prefs file there is a tag named overriddenByCSS that seems to cause this issue. It only exists if the dark theme is used. I looked

celery-django can't find settings

╄→尐↘猪︶ㄣ 提交于 2019-12-03 06:22:31
I have a Django project that uses Celery for running asynchronous tasks. I'm doing my development on a Windows XP machine. Starting my Django server ( python manage.py runserver 80 ) works fine, but attempting to start the Celery Daemon ( python manage.py celeryd start ) fails with the following error: ImportError: Could not import settings 'src.settings' (Is it on sys.path? Does it have syntax errors?): No module named src.settings sys.path includes 'C:\development\SpaceCorps\src', so I'm not sure why it can't find this module. Here's the full output from starting the daemon: C:\development

Accessing Meteor Settings in a Self-Owned Production Environment

删除回忆录丶 提交于 2019-12-03 06:20:52
问题 According to Meteor's documentation, we can include a settings file through the command line to provide deployment-specific settings. However, the --settings option seems to only be available through the run and deploy commands. If I am running my Meteor application on my own infrastructure - as outlined in the Running on Your Own Infrastructure section of the documentation - there doesn't seem to be a way to specify a deployment-specific settings file anywhere in the process. Is there a way

What is the difference between the ApplicationSettings section and the AppSettings section? [duplicate]

旧时模样 提交于 2019-12-03 06:15:42
This question already has answers here : Pros and cons of AppSettings vs applicationSettings (.NET app.config / Web.config) (5 answers) Can someone please explain to me the difference between the AppSettings and ApplicationSettings sections in the App.Config file. Why are there two different sections that apparently do the same thing?? Saajid Ismail I believe that the <appsettings/> collection in your app.config/web.config allows you to store settings in key-value pairs, and is accessed through the System.Configuration API, as follows: string setting = System.Configuration.ConfigurationManager

How to use different .settings files for different environments in .NET?

自古美人都是妖i 提交于 2019-12-03 06:08:19
问题 .NET allows you to use .settings files to manage application settings. I would like to store Production, Development and Test settings separately in a way that I can do something like this: EnvironmentSettings environmentSettings; // get the current environment (Production, Development or Test) ApplicationEnvironment Environment = (ApplicationEnvironment) Enum.Parse(typeof(ApplicationEnvironment), Settings.Default.ApplicationEnvironment); switch (Environment) { case ApplicationEnvironment

Best-Practices : how should I store settings in C# (Format/Type)?

坚强是说给别人听的谎言 提交于 2019-12-03 06:04:57
Now I'm curious what are possibilities to store/load settings in .net. For example I need to store user name/password for different db's and etc.., also I need to store some options and etc. My though was to create [Seriazable] class and save it to file... What can You suggest? what are possibilities in .net and etc. If you want to store application configuration settings , you can leverage the 'AppSettings' in the App.Config or Web.Config file depending on if its a windows or web application. I believe the syntax for reading the configuration values is string configValue = Configuration

Change browser proxy settings from Python?

只愿长相守 提交于 2019-12-03 05:59:27
问题 I have written a program that relies on a proxy to function. I now need a script that will check to see if the browser is set to use the right proxy, and if not, change it to use it. I need this implemented for as many browsers as possible, but is only required for Internet Explorer, Google Chrome, Mozilla Firefox, Safari and Opera . I am not even sure how to go about this, but it is for a project for work that will be due in a few days. If anyone can help or lend advice, I would greatly

C#: How to make sure a settings variable exists before attempting to use it from another assembly?

戏子无情 提交于 2019-12-03 05:53:34
I have the following: using CommonSettings = MyProject.Commons.Settings; public class Foo { public static void DoSomething(string str) { //How do I make sure that the setting exists first? object setting = CommonSettings.Default[str]; DoSomethingElse(setting); } } Depending on what type CommomSettings.Default is, a simple null check should be fine: if(setting != null) DoSomethingElse(setting); If you want to check BEFORE trying to retrieve the setting, you need to post the Type of CommonSettings.Default. It looks like a Dictionary so you might be able to get away with: if(CommonSettings

Save (Private) Application Settings on iOS?

空扰寡人 提交于 2019-12-03 05:38:30
问题 I'm aware of NSUserDefaults for saving/restoring user preferences. What is the equivalent class for an application ? For example, the application may have a "last run" field; or it may have a field for a unique identification of the device for use at the application level. My intention is to keep the application's settings (not user's settings) out of the Settings Application, and not backup those settings in iTunes, Time Machine, {whatever}. I'm getting a lot of noise for Java and C#, but

Using icons in Android preferences

三世轮回 提交于 2019-12-03 05:13:52
问题 I would like some of my preferences to have icons, like the Settings app. I guess one way of doing this would be to copy all the relevant code and resources from the Settings app, but it seems like overkill for a couple of icons. Also I don't like the idea of having to duplicate the code and resources in each project that requires settings icons. Has anyone solved this already with a simpler or resource-free approach? 回答1: The Settings application uses a private custom PreferenceScreen