configuration

Script to find a folder in registry

HI Guys, I am new to scripting. I want to write a script to find whether that folder exists in registry or not. ...

how to store a list of objects in session

i want to store a list of objects in session List<ContentQueueLog> inactiveContent = GetInActiveContent(this.userID, this.visitorID); when i store this list in sesssion it is stored but while trhying to get it its null i am storing sessions in sql someone hinted me about serialization but i cudnt get it need some explaination ...

NHibernate.MappingException: An association from the table table refers to an unmapped class: Int32

Hi, im starting whit Nhibernate and have managed to get a few examples working, but now the aplication im makin throws this exeption when Nhibernate load the configuration. NHibernate.MappingException: An association from the table TBL_MARCADAS refers to an unmapped class: Int32 at NHibernate.Cfg.Configuration.SecondPassCompileForeign...

what are better solutions for storing configuration data in ASP.NET than the web/machine config

We have a large multi tenanted website which requires thousands of lines of web.config to support it. As the system grows we are finding it more and more difficult to manage this configuration file. The system currently in place uses XSLT to generate the config but this solution seems to involve a lot of duplicated code (we have 12 depl...

Application.xml vs sun-application.xml

Hi, I'm developing a JSF2 application using Glassfish which contains some EJB's; is there a reason I should use sun-application.xml versus the standard application.xml file? I would like to deploy my application as an exploded EAR. Do I need to do anything special with the application xml configuration? Thanks in advance! ...

[PHPUnit] Trying to run a test, but get a fatal error

I configured the external tool correctly. As soon as I start to run a test case I get this error: Failed loading C:\PHP\5.2.13\ext\php_xdebug.dll PHP Warning: PHP Startup: Unable to load dynamic library 'C:/PHP/5.2.13/ext\php_oci8.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: require_once(../../.....

What is the best way to handle Java web application versioning?

I have a standard Java application that handles both REST and UI calls. What is the best way for me to create and manage an application version (major.minor.release.build)? I'm using Subversion, Maven, Bamboo (continuous build) and Spring in the stack. I would like the version to be tied together with SVN, Bamboo and Maven. And, woul...

Trouble installing Clojure dev environment on ubuntu

I followed this guide: http://wiki.unto.net/setting-up-clojure-and-slime Which walked me through the steps of building Clojure and Clojure-contrib from source along with SLIME and swank emacs scripts. I am a total noob when it comes to emacs. I am getting this error: File error: Cannot open load file, swank-clojure-autoload This...

`No such file` error after uploading large files with php

There is a service for uploading large files (more than 500MB) with php/apache. The progress of upload is tracked by the uploadprogress pecl extension. This scheme works fine only for small file uploads. However, there is a problem when uploading large files. Once the upload is finished, there is a standard information in the $_FILES ar...

Logging for application in different environment Log4j

Hi, I am developing a logging framework using Log4j. I am not able to figure out how to maintain separate log files for different environment, i.e., development, testing, staging and production. ...

Drupal's JS and CSS optimization error

I started getting errors after I turned on Drupal's performance improvements which pack all the CSS and JS files into single files. The error looks like this: The selected file /tmp/fileO4fjBF could not be uploaded, because the destination js/js_8a69e612be02242c2866a4a19223bd12.js is not properly configured. I'm not sure ho...

mysql vs ini files?

My php program is broken up into modules and each module has its own settings. These settings will hardly change, so would it be better to put the settings in a ini file or in a mysql database? If I go with the ini style then how hard is it to update the ini file? ...

Username setup in TortoiseHG

I'm trying to set up a local repository with TortoiseHG. It's not linked to any remote repository; I just want to be able to manage changes on my own box. Creating the repository went fine, but when I go to commit, I get an error: Commit: Invalid username Your username has not been configured. Please configure your userna...

Would it make sense to use XAML for configuration scenarios?

One simple way to add some configuration is to define a configuration section which is not much more than some object that can be (de)serialized based on the XmlSerializer classes. Now, XAML is at its heart more or less a hierarchy of objects but provides things like naming of elements, binding, etc. Has anyone ever used XAML outside i...

.NET: Reading a configuration section from a stream - possible?

I have the following problem: I need to get a ConfigurationSection - object from a stream that contains a well formed app.config - file (which will has to be loaded from the assembly resource streams). Is there any way to load that from a stream? Background (to satisfy the "why would you want that" questions): I'm working on some ki...

What is the proper way of handling configurations (database login and passwords, etc.) in a dynamic web project?

I just got my hands on doing dynamic web programming using JSP. What is the proper way to handle the configurations? For example, database name, host, login, and password, and indexing directory in the server, etc. My concern is mostly about the security of the passwords. Currently I hard code the data into the .java files, I don't thin...

I have a require("config.php") with arrays, but still get Undefined variable error

Hi. I hava a function that looks something like this: require("config.php"); function displayGta() { (... lots of code...) $car = $car_park[3]; } and a config.php that look something like this: <?php $car_park = array ("Mercedes 540 K.", "Chevrolet Coupe.", "Chrysler Imperial.", "Ford Model T.", "Hudson Super.", "Packard ...

Removing the explicit runtime dependencies to other projects' libraries in Eclipse launch configurations for projects that use Plug-in descriptions?

In Eclipse it is possible to create launch configurations in a project, specifying the runtime dependencies from another project. A problem I found was that if you have a multiple project workspace, being possible that each project has its own libraries, it is easy to add explicit dependencies in a secondary project to libraries that are...

How to enable IBM Websphere Application Management Service?

I try to use the IBM Websphere $AdminApp (and the Ant tasks) to install/update an application EAR on a remote server. You may want to read this question too. Manual process I open a jython console with this command line: $was61profile1\bin$> wsadmin.bat -lang jython -host MYHOST -port 32092 After that I want to list all applications...

How to create a Android WifiConfiguration and access wifi with username/password.

Hi everybody, WifiConfiguration conf = new WifiConfiguration(); conf.SSID = "ssid"; conf.preSharedKey = "\"password\""; conf.status = WifiConfiguration.Status.ENABLED; conf.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN); conf.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP40); conf.allowedGroupCiphe...