settings

django-pipeline not compressing

廉价感情. 提交于 2019-12-23 20:10:33
问题 I have just installed django-pipeline into my django application and it doesn't seem to be compressing my javascript files. It seems to be installed properly as the template tags are working correctly. I'm using manage.py collectstatic in order to compress the files. Here is my current configuration. I have also set up my app to use django-staticfiles per the django-pipeline docs as I'm using Django 1.3. STATIC_ROOT = os.path.join(PROJECT_ROOT, 'site_media', 'static') STATIC_URL = '/site

django-pipeline not compressing

99封情书 提交于 2019-12-23 19:50:58
问题 I have just installed django-pipeline into my django application and it doesn't seem to be compressing my javascript files. It seems to be installed properly as the template tags are working correctly. I'm using manage.py collectstatic in order to compress the files. Here is my current configuration. I have also set up my app to use django-staticfiles per the django-pipeline docs as I'm using Django 1.3. STATIC_ROOT = os.path.join(PROJECT_ROOT, 'site_media', 'static') STATIC_URL = '/site

Visual Studio Code sidebar selection color

坚强是说给别人听的谎言 提交于 2019-12-23 18:47:54
问题 How to change visual studio sidebar file highlight/selection color? 回答1: Use list . Go to User Settings , add these lines: "workbench.colorCustomizations": { "list.hoverBackground": "#535353", "list.activeSelectionBackground": "#fff", "list.activeSelectionForeground": "#000", ... } There are many configuration for list , for example "list.hoverBackground": "#535353" set highlight color while your hover on it, "list.activeSelectionBackground": "#fff" set highlight color after you select/click

Best approach for UITableViewCell with both a left and right label

房东的猫 提交于 2019-12-23 16:24:39
问题 My app has several settings that multiple choice (e.g. an enum value). I want to replicate iOS' sound settings table view cell, where the name is on the left, the selected value on the right, followed by a disclosure indicator ( > ). My approach so far has been to create a custom table view cell ( .xib and custom UITableViewCell class), with a value label added to the cell's content view. However, it appears that using textLabel is incompatible with a custom content view (see my other

iphone/ipad dev - how to launch the system settings app programmatically

ぐ巨炮叔叔 提交于 2019-12-23 12:18:08
问题 In the settings -> general, there is a switch to turn on/off the location services. In the Maps app, when location services is off, if the user click on the find me button, it pops up an alert and asks the user to turn on location services in the settings. It then exits the app and launch the settings app. How can I do that programmatically in my app? 回答1: As of iOS 5.0 you can open the settings app programmatically using the "prefs://" URL scheme. You are out of luck on earlier versions. 回答2

Visual Studio 10, reset configuration manager to factory settings

陌路散爱 提交于 2019-12-23 12:05:54
问题 I have made several changes to both debug and release settings and now I want to return to factory settings. How could I do that? 回答1: There is no easy way to go back to the default configuration for a project file. When you create a new project it's based off a template located in your Visual Studio directory (e.g. C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Windows\1033\ClassLibrary.zip) and VS has no way of reapplying the template. However, you

User.config corruption

孤人 提交于 2019-12-23 10:08:14
问题 So I've done quite a bit of research on trying to figure this issue out but can't seem 1) Reproduce the issue, but more importantly 2) Find an update-to-date solution for fixing it. It's already happened twice within a span of 2 weeks where randomly the user.config file will get corrupted (e.g. there will be missing chunks of the XML file) and thus result in an application crash on next startup. Cliffnotes: I need an up-to-date solution for dealing with this issue programmatically(i.e.

Visual Studio: Set default project on project or solution settings

旧街凉风 提交于 2019-12-23 06:49:19
问题 I have a Visual Studio 2010 solution with several projects. One of the projects is set as the default project, but I want to change that by default. I know that I can right click the project I want to be the startup project and select "Set as StartUp project", but this setting will be stored in the user's files (.slo and .user files). As a company policy, we don't check these files in the source control system, therefore when another user opens the solution it will have a different project as

App settings bundle not showing up in settings app when using openurl

♀尐吖头ヾ 提交于 2019-12-23 05:06:36
问题 When my app launches, a modal view displays to the user and includes an option to adjust a setting in the Settings app. If this option is selected, I use openURL as follows: if (&UIApplicationOpenSettingsURLString != NULL) { NSURL *appSettings = [NSURL URLWithString:UIApplicationOpenSettingsURLString]; [[UIApplication sharedApplication] openURL:appSettings]; } This successfully redirects the user to my app's settings in the Settings app. The problem is that the only setting that appears to

How to store a file in LDAP?

隐身守侯 提交于 2019-12-23 05:02:41
问题 I'm looking for the best way to store a configuration file in an LDAP server. My application used to save the user settings in an xml file. The user logins have been centralized in an LDAP server. The users are stored as "inetOrgPerson" in the LDAP server. I would like to attach the xml file to each user. What would be the best way to do it? Does a standard LDAP schema offer a class to store a text file? Or do I habe to extend the schema for my needs? 回答1: Well, the best solution would