multiple-instances

Using Wordpress as a CMS to a site AND blog (two completely different layouts for each). Duplicate installation?

I'm going to create a website using Wordpress static pages feature. It's going to have a menu for all the created pages. A blog is going to be created as well. This blog has a completely different layout/menu from the main site, but within the same domain: "http://www.domain.com" is the website url, and "http://www.domain.com/blog/" is ...

Most efficient way to update attribute of one instance

Hi all - I'm creating an arbitrary number of instances (using for loops and ranges). At some event in the future, I need to change an attribute for only one of the instances. What's the best way to do this? Right now, I'm doing the following: 1) Manage the instances in a list. 2) Iterate through the list to find a key value. 3) Once I ...

Javascript: Add multiple Lighthbox galleries on same page

I am using a modified version of light house from this page. I want to add two instances of the same code to add two differrent slideshows on the same page. Is this possible? ...

In a distributed environment, how can I configure log4j to log to different files for each JVM instance in the same host?

My application runs on IBM WebSphere 6.1 Network Deployment. The application have several JSP files and Java classes. Today each host have only one JVM instance but my intention is to start another instance on each host. How can I configure log4j to log to different files for each JVM instance in the same host? I thought of using variabl...

Multi-server Ruby on Rails Production Logging

I currently have an RoR app in production across four application servers with independent logs per instance. What's the best way to aggregate the logging to a common location without resorting to syslog? ...

Android - How to create Multiple instances of an Activity?

I was wondering is it possible to create multiple instances of a single Activity in Android? I currently start my own inCall screen for a Voip Test by using the following code: public void initInCallScreen(String pName, String phoneNumber, int contactID, boolean callDirection, int lineID){ //starts in callScreen di...

Javascript - Search/React for each result

So if you have the following string: "$(document).ready(function() {" There are three open parentheses "(" I know there is the good 'ol string.replace(/(/g, "replacement_string"); way of doing things, but lets just say that doesn't exist for this question. Now lets say I have a function that does replaces "(" with "?". Is there a way ...

Detecting if another instance of the application is already running

My application needs to behave slightly differently when it loads if there is already an instance running. I understand how to use a mutex to prevent additional instances loading, but that doesn't quite solve my problem. For example: Instance 1 loads, gets the mutex. Instance 2 loads, can't get the mutex, knows there's another instan...

Calling an instance of a class by its tag.

I have several instances of a UIControl class Foo being instantiated, one instance corresponding to each cell in a UITableView. Each foo toggles the image on the left side of the cell via a selector when the image is touched (checkmark, no checkmark). I've also assigned each instance a tag: foo.tag = indexPath.row; The center of the ...

Multiple User Control On Same Page And reference issue with Javascript

Hi, I have one usercontrol which contain one textbox, few buttons and one calander. I had place two instance of user control in one page as design time. It works fine all working from server side...mean server side events reference proper control at runtime. Problem start after raising server side events from javascript. I succeed to f...

JQUERY Click events for multiple Images

I'm creating an image gallery just for fun to expand my introductory knowledge of JQUERY. The gallery has a bunch of thumbnails which, when clicked on, will show a large image just below in an image viewer div. In addition, when a thumbnail is active (image is being viewed) the thumbnail animates from 75px to 100px. I've got it working ...

Dynamically creating many instances of ASP.NET usercontrols: How do I create it, and where will my conflicts be?

I haven't seen this implemented before in ASP.NET, but am thinking about a UI that would look and act like this: Conceptual Overview A TabControl is loaded and the first tab contains a grid When a row is double-clicked, a new tab is created with the record detail The content of the tab/record detail is created by a usercontrol Many ta...

Prevent opening multiple instance of VB application

Hi everyone, I'm working on VB6 application, which is connected to MS Access database, so I don't want to allow user to open multiple instances of my application as this will create conflicts & alter connected database. Also, if user tries to open another instance, the currently running instance must be focused. How can I attain this? ...

Multiple Boost.Thread Instances OK in a C++ application?

I have an application with a plug-in architecture that is using Boost.Threads as a DLL (specifically, a Mac OS X framework). I am trying to write a plug-in that uses Boost.Threads as well, and would like to link in the library statically. Everything builds fine but the application quickly crashes in my plug-in, deep within the Boost.Thre...

Sharing Hibernate on multiple Tomcat instances

Hi, I have 4 web applications, that have a common reference to an Hibernate implementation but that run on different Tomcat instances. And so, for example, a connection pool configured in Hibernate with a min size of 3 (with c3p0), will result in 12 connection open (3 for each instance) when all the projects are running . I'd like to "...

WCF Services - Create multiple instances on startup?

Apologies if this has been asked before, but I've searched and can't find an answer We have a WCF service that provides upto 100 instances - as there are 10,000 clients but the calls are very quick. The only performance overhead we've noticed is on the first call to an instance...e.g. the first time any of the instances is called (or a...

How do you run multiple instances of JBoss 4.0 (running under Eclipse) on the same machine?

At my office we run JBoss 4.0 and use Eclipse to debug and run the JBoss server. We're deploying simple wars, nothing terribly complex. However, I haven't yet figured out how to get this version of JBoss to either allow me to run separate instances of the war (HEAD and the Branch, for example) or to run separate servers controlled by two...

SQL Server database + strange things

Hello, I have 3 instance of database named X. Each of them is on the other server. Now... Let's look on the some table named Orders. In X_1 and X_2 size of this table is about 500MB with 1 000 000 records. In X_3 size of this table is about 1,5 GB with 1 000 000 records. Why? What is wrong. I have made shrink on each database. I'm ...

Maintaining Multiple instances of an activity

I have an activity that need to be created for 4 different types. Activity User A Activity User B Activity User C Activity User D All the instances of Activities are created using the same Activity(for example, User) class. Now i want to re order the activity B to top. So from Activity User D im calling the Activity User B using the ...

Multiple RequiredFieldValidators on page but they need to apply to different button clicks

Hi, I'm working on a asp.net page and I have the following scenario: I have 2 fields that have requiredfieldvalidators which need to "fire" their validation when button1 is clicked but NOT when button2 is clicked and another field which is validated by another requiredfieldvalidator with the opposite scenario. (requiredfieldvalidator f...