configuration-files

vim cant map <C-Tab> to :tabnext

这一生的挚爱 提交于 2019-11-29 14:12:06
问题 I have the following mappings in my .vimrc: map <C-S-Tab> :tabprevious<CR> nmap <C-S-Tab> :tabprevious<CR> imap <C-S-Tab> <Esc>:tabprevious<CR>i map <C-Tab> :tabnext<CR> nmap <C-Tab> :tabnext<CR> imap <C-Tab> <Esc>:tabnext<CR>i I want to switch the tabs with Strg+Tab forward and with Strg+Shift+Tab backward. Why does this mapping not work? 回答1: Are you using xterm ? If so, you can't map ctrl-tab without a lot of hackery. xterm and many other terminal emulators don't recognise ctrl-tab and

How can I specify an alternate config file for a WCF client?

一世执手 提交于 2019-11-29 10:25:43
I am working on a large system, for which I have to use WCF to access a web service. My test code works fine, now I need to integrate my WCF client code into the larger system. I cannot add to the existing 'app.config' file, and would like specify a separate .config file for use by my client code. How best can I accomplish this? Thanks! There are 2 options. Option 1. Working with channels. If you are working with channels directly, .NET 4.0 and .NET 4.5 has the ConfigurationChannelFactory . The example on MSDN looks like this: ExeConfigurationFileMap fileMap = new ExeConfigurationFileMap();

How to programmatically modify assemblyBinding in app.config?

陌路散爱 提交于 2019-11-29 09:45:28
I am trying to change the bindingRedirect element at install time by using the XmlDocument class and modifying the value directly. Here is what my app.config looks like: <configuration> <configSections> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> ... </sectionGroup> </configSections> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="MyDll" publicKeyToken="31bfe856bd364e35"/> <bindingRedirect oldVersion="0.7"

Is it possible to use multiple ehcache.xml (in different projects, same war)?

六眼飞鱼酱① 提交于 2019-11-29 09:11:53
I have a services project and a web project. I need to have eh-cache in both projects. The idea is that if the service project is updated, it's cache-related changes (like keys and invalidation rules) will also be available, while no changes are made to the web project. Being so independent, the service project can also be used with another projects without them even knowing of eh-cache. At this point, my web project also uses eh-cache for its own purposes. I am not much experienced with eh-cache and I fear that the two projects might clash when deployed together. I also did not find relevant

How do I turn logging off using log4j?

依然范特西╮ 提交于 2019-11-29 08:36:09
问题 I am using a third-party library which has a log4j.xml configuration - what's the best way to turn off the logging? 回答1: I think all that is required is to set the threshold parameter to OFF <log4j:configuration threshold="OFF"> <root> <priority value ="off" /> <appender-ref ref="console" /> <appender-ref ref="rolling-file" /> </root> </log4j:configuration> 回答2: Or directly from code: Logger.getRootLogger().removeAllAppenders(); 回答3: Depends on configuration. Try something like: <log4j

Boost property_tree: multiple values per key

て烟熏妆下的殇ゞ 提交于 2019-11-29 08:12:27
Boost property tree seems like an excellent library to use for parsing config files. However, I can't figure out how to handle situations where there are multiple values per key. For example, let's say I was specifying a box like this: box { x -1 1 y -1 1 z -1 1 } where x , y , and z are the bounds of the box on the x , y , and z axes respectively, specified using property_tree's INFO format. I see mention in the manual of using quotes for values that use spaces, but then I don't see that I could import those values as numbers. I'd have to parse the string into numbers, which seems to defeat

CloudConfigurationManager does not pick up ApplicationSettings from app.config

不问归期 提交于 2019-11-29 05:35:31
I have a library containing some Azure helper classes. Inside these helper classes I obtain settings such as the Azure account name and key. When running in Azure these settings are picked up from the cloud configuration file (cscfg). This all works fine. In order to unit test these classes outside of Azure (specifically the RoleEnvironment) I created settings of the same variable names within the unit test project. These actually get saved within an app.config file and are edited via the settings section which lives under the properties section of my test project. Rather than create my own

TYPO3 ver. 6.x - additional configuration a.k.a. `localconf_local.php`

三世轮回 提交于 2019-11-29 03:55:31
What we need In TYPO3 ver. 4.x we used to include additional configuration file for overwriting some settings (ie. DB credentials) by adding the include statement at the end of the localconf.php : @include_once('localconf_local.php'); Thanks to this trick it is possible for an example keep separate database settings or IM paths individual for each developer as we can just ignore our 'local' files from the git repository. What's the problem Unfortunately in TYPO3 ver. 6.x that approach requires manual changes of the LocalConfiguration.php to overwrite the values before the return statement,

iOS - Prevent iPhone Configuration Profile from being deleted OR check to see if it's installed

旧街凉风 提交于 2019-11-29 02:29:59
I'm working on an iOS enterprise app that relies on an Configuration Profile being put on the phone. Unfortunately, the user can "cancel" this profile, which really screws with our app. So I was wondering if a) is it possible to prevent a configuration profile from being deleted OR b) is there a way to check to see if a configuration profile is installed already (say, at runtime, then we can just install it again if it's not there)? Taskinul Haque If you want the configuration profile not to be tampered with / disabled by the user, this is possible! If you're using Apple Configurator to build

How to read values from multiple Configuration file in c# within a single project?

狂风中的少年 提交于 2019-11-29 02:07:13
Here in my project I have two application configuration files called app.config and accessLevel.config . Now using the OpenExeConfiguration I was able to access the app.config.exe file but not the accessLevel.config . Please help on this. The main reason I have 2 config files is to show the difference and make the code simple. I need to read the values from the accessLevel.config in my C# code. Tried the below code but no use: System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); config.AppSettings.File = "App2.config"; Michael See