settings

Change language inside an application

China☆狼群 提交于 2019-12-02 18:35:55
问题 I'm developing an iphone app and starting to work on the internationalization. I'm wondering if it is possible to change the language inside the application without having effect to general language settings? Any idea? 回答1: Check out this question which asks essentially the same thing, and has some interesting answers: How to force NSLocalizedString to use a specific language 来源: https://stackoverflow.com/questions/3155929/change-language-inside-an-application

Using icons in Android preferences

与世无争的帅哥 提交于 2019-12-02 18:29:58
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? CommonsWare The Settings application uses a private custom PreferenceScreen subclass to have the icon -- IconPreferenceScreen . It is 51 lines of code, including the comments,

Change the username for Git in Xcode?

六眼飞鱼酱① 提交于 2019-12-02 17:41:48
Is there any way to change the Git username and email for Xcode? When I try commit now it will post my real name. I want it to post my GitHub username so that you can link commits to my user on GitHub. Usually with Git I've been able to just type git config --global user.name whoosh in the terminal but it doesn't seem to work on Mac and Xcode. VonC As mentioned in " Where is the Git commit info set in Xcode 4? ", XCode takes user information from your contact card from your (2012) Address Book ( called Contact in 2014 ). Changing your contact card would change user information (for new commits

How to Export/Import Toolbars in Visual Studio

萝らか妹 提交于 2019-12-02 17:13:24
I export my settings in Visual Studio and if I ever move to a new machine or have problems, I use those backed up settings to restore Visual Studio to the way I like it. It also allows me to maintain a consistent development environment between the various machines that I use. This works great for keybindings, syntax highlighting, user tools, pretty much everything except for the toolbar locations and customizations . Whenever I move to a new machine and restore the settings, the toolbars are not affected. I have spent a fair amount of time setting up toolbars with my macros, external tools,

Shortcut for changing font size

本秂侑毒 提交于 2019-12-02 16:02:53
Does anybody know if there is a shortcut or something similar for changing the font size in the text editor in Visual Studio 2008? What I mean is something like Ctrl + mouse wheel like in Firefox. Accessing the Options window and then selecting Environment > Fonts and Colors is fine if you don't have to change the font size all the time, but in my case, I would like to be able to change it depending on what I am doing (writing and reading code or just reading it). I guess I could create two almost identical settings files and import them whenever I want, but that is even slower. In the Macros

What accounts to use when installing SQL Server 2008 Developer

纵然是瞬间 提交于 2019-12-02 15:03:00
I am installing SQL Server 2008 Developer here, and on the Server Configuration step of the installation it asks me about Service Accounts. What do I choose here? I can see the available ones in the screen shot, although on most of them I can only select two or three of those. When I click the Use the same account for all SQL Server 2008 services button I can choose between NT AUTHORITY\NETWORK SERVICE and NT AUTHORITY\SYSTEM . What do I choose here, and why? From Microsoft: Local System account. The name of this account is NT AUTHORITY\System. It is a powerful account that has unrestricted

Manually trigger IOptionsMonitor<>.OnChange

蹲街弑〆低调 提交于 2019-12-02 14:34:50
问题 In ASP.NET Core 2.1, I use IOptionsMonitor<> and have it set up so I can successfully get events for when I change the appSettings.json file. So this is working. What I want to do now is to manually change some values in my options, through code, and have that trigger all my monitors. Is this possible? 回答1: For IOptionsMonitor<Locations> , it only changes the value in memory and did not save back to appsettings.json . For a workaround, you will need to implement your own method to save the

How to save Atom editor config and list of packages installed

独自空忆成欢 提交于 2019-12-02 14:14:09
I have recently started using Atom editor. Its pretty great so far. I am planning to install it on several other machines. How can I replicate the config and list of packages installed on my current machine to other machines. Is there a config that I can use to export and import them on other machines. Use Git to version control your config file ( ~/.atom/config.cson ), and any other config files (dotfiles) you may have. You can then host your Git repository for free on somewhere like GitHub , and retrieve it on other computers simply by running git clone https://github.com/{username}/{repo} .

PhpStorm wrap/surround selection?

一世执手 提交于 2019-12-02 14:13:15
Often in coding and templating I need to wrap a certain part of text. Is there any shortcut to wrap the current selection, for example: Hello World "Hello World" Hello World {{ trans 'Hello World' }} Im using PhpStorm 7 for Mac and PC. I found something similiar, with: ctrl + alt + j you can wrap with a html-tag but nothing else. Also ctrl + alt + - comments the current selection according to the current file format(php, twig, html, ...) Steve.NayLinAung I know this is a little late answer, but I hope anyone who looks this question get helped. In PhpStorm, almost everything can be configured

Open Settings.app When Button is Tapped in UIAlertView on iPhone SDK [duplicate]

六月ゝ 毕业季﹏ 提交于 2019-12-02 13:52:03
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Opening the Settings app from another app Is there a way to direct the user to the Settings.app whenever I show a UIAlertView prompt? This prompt alerts the user that his location services is turned off and I want the user to open the Settings.app when he taps the button inside my UIAlertView . UPDATE: I'm looking for a similar code stated here: How to launch myapplication settings tab in settings app from my