config

Magento theme problem

I tried creating a new theme in Magento by creating the following folders: /app/design/frontend/interface/default /skin/frontend/interface/default I copied into these folders the entire content of the base/default folders (in both skin and design). I enabled the theme bu putting "interface" in "current package name" for a website and...

Unity Container ResolutionFailedException when the mapping is correct in the config file

I was using a ServiceLocator which i was DIing with Unity public ServiceLocator(IUserStore userStore, IProdcutsStore productsStore, ...etc) {} public IUserStore UserStore { get { return userStore; } } This all worked fine, but I wanted lazy instantiation of the repositories as they have quite sparse use. So my ServiceLocator n...

How to use git difftool to diff merge conflicts?

After a merge failed with some conflicts I can list those with git diff, but git difftool won't display them with the difftool set in the config(in my case Kaleidoscope), instead it will just use normal diff. A git difftool comparing with a previous commit will work. Is there a way to use git difftool on merge conflicts? Greets Jan ...

CKEditor edit settings using the PHP implementation

Hello! How can I do this: CKEDITOR.replace( 'editor1', { on : { instanceReady : function( ev ) { // Output paragraphs as Text. this.dataProcessor.writer.setRules( 'p', { indent : false, breakBeforeOpen : true, breakAfterOpen : false, breakBefo...

cakephp swiftmailer config

hi i am using swiftmailer component in my app and am looking for a way to have a separate config (perhaps in config folder?) for swiftmailer that checks what debug mode i am using and thus uses different settings? case 1: on production mode use simple smtp server without auth. case 2: on debug mode use gmail settings or other settings s...

Deploying a Rails application on apache

Ive built a small application which interacts with mysql at the backend.When I run on the mongrel server its wrking fine. I want to run this application on apache server. The application is a rails application OS is opensolaris I tried to modify the httpd.conf in apache and added the follwing lines to it. LoadModule passenger_module /va...

getting aliases from config by regular expression (bad separated)

Hey guys, I tried to get some aliases from a specific config file in a short bash script. The config looks like: [other config] [alias] alias: command -o option alias2: command -l 2 alias3: command -o option [other config] How would you get these aliases separated? I would prefer a output like this: alias: command -o option alias...

Is it possible to put variables inside config files?

Hi! I use smarty to allow different languages on my site, which works OK so far. I store the texts in config files in different sections. But then there are sentences like this: "You have 6 new mails!", which would be in german "Sie haben 6 neue Mails!" Now there's text before the number and behind the number, which is loaded from ...

Ruby Rack - mounting a simple web server that reads index.html as default

Hello, I'm trying to get some information from this tutorial: http://m.onkey.org/2008/11/18/ruby-on-rack-2-rack-builder basically I want to have a file config.ru that tell rack to read the current directory so I can access all the files just like a simple apache server and also read the default root with the index.html file...is there a...

The way to maintain with git different hardware setups with a number of configs and a number of branches

I have the git repository where I am storing 4 different programs based on same code base. Some branches just have the different realization for some features. And others do completely different things(preparing the environment for calculation and calculation itself). There is no problem for me to make 4 different branches for it. But al...

Loading custom config file into a Codeigniter library

I know this is probably simple, but I'm not getting. I've created a library, and I want to load the parameters from a config file. So here's an example of what I have: // libraries/Mylib.php class Mylib { var $ci; var $key; public function _construct { $this->ci =& get_instance(); $this->ci->config->load('mylib'); ...

postback times are the same no matter what is happening

I found this by accident and feel that it must be a settings issue. I was initially trying to solve a problem with uploading large files. In the process of implementing a solution I was able to get the file uploaded in approximately 2 minutes whereas before it would timeout after a much longer time period. The strange thing is this: the ...

What's the best way (coding-wise) to store system configuration in a PHP application?

Note: Configuration are being kept in a PHP file, config.php. I've seen this done differently, here's a short list of examples (I'm storing DB info in these examples): Constants: global, readonly define('DB_USER','user12'); define('DB_PASS','21user'); Using GLOBALS array: global, changeable, repetitive, mixed with other globals $GL...

Create Addon Domains from PHP

I have a VPS (CentOS) with CPanel and Suphp enabled. Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_fcgid/2.3.5 As a root I created an account and set up a domain for it. Now I can login to this account's CPanel and create addon domains. For my project I ...

Managing web and app configs in MANY environment

WE are a MS shop (yes, we have TFS 2K8 and 10). I am the system administrator, not developer, so my POV is a bit different than most articles on deployment and config pre/post build tasks. I need to manage about 40 different applications/site, each with its own config settings, but within 2-3 concurrently operating dev, 2-3 concurrently...

How to exclude certain plugins from war in grails 1.3.5

Hi I'm seeking how to exclude plugins for specific environments. According to GRAILS documentation, starting with 1.3.5 it's now possible to disable a bunch of plugins. For example, I add the jetty plugin for local testing, but don't need it for deployment. I try to use the following in Config.groovy: envname { . . . pl...

Silverlight - service config switching

We've just added a dedicated test server for our Silverlight applications. We are deploying full copies of all our apps and services onto the test server. The issue we have is that we need to manually update ServiceReference.ClientConfig when we deploy, to point to the appropriate server (ie. test or live). I'm sure this is a common iss...

How to hide Zend's application.ini from the public?

I am using the Zend Framework for construction of my site, which uses the application.ini file to store database info (such as username and password). I discovered that typing /application/configs/application.ini in the web browser plainly shows all the contents of the applications.ini file. How can I prevent this? I tried setting the ch...

How edit/save config.php file from a form

Hi everyone, I have a file called config.php with contents that looks like this: $setting_1 = "value1"; $setting_2 = "value2"; $setting_3 = "value3"; $setting_4 = "value4"; How can I use a form to edit/save these values from a webpage? Any help would be appreciated. ...

How do I add a new virtual host to my apache?

<VirtualHost mydomain1.com:80> ServerAdmin webmaster@localhost ...stuff here </VirtualHost> <VirtualHost mydomain2.com:80> ServerAdmin webmaster@localhost ...stuff here </VirtualHost> This doesn't seem to work. Before, it was <VirtualHost *:80> and it worked. ...