multiple

Two css files defining same class

If I have two css files: File 1: .colorme { background-color:Red; } File 2: .colorme { background-color:Green; } And have included them in a page, which one will take priority? I'm guessing the one that is loaded last? If so is there anyway to ensure which one css file is loaded last? ...

RMI binding interfaces to same registry from different classes.

I have a client that connects to an RMI registry over SSL, so as far as I know on the server side I have to use LocateRegistry.createRegistry(). However how would I get another Server to bind interfaces to the same registry, and have them being accessible even when the first server is closed. Any help would be greatly appreciated. Tha...

everyday, I have to arrange all data of Market : SPOT in excel file, So could any one help to provide excel VBA tips

Sample raw Data :- Market : Oddlot ______________________________________________________________________________________________________________ CUSTOMER |INSTRUMENT| BROKER | CONTRACT| TRADE | BOUGHT | SOLD | PRICE | HOWLA | LAGA | HOWLA | | ORDER | NO | TIME | | | ...

Rails - execute multiple queries in a single connection

How do I issue multiple SQL queries in a single database connection in Rails? My problem is, I have multiple records(about 200 or more records) to be checked with the database table's existing records(I am checking composite primary key values) I could use ActiveRecord's exists? method in a single transaction block. But I don't know whe...

How to auto-include all headers in directory

I'm going through exercises of a C++ book. For each exercise I want to minimize the boilerplate code I have to write. I've set up my project a certain way but it doesn't seem right, and requires too many changes. Right now I have a single main.cpp file with the following: #include "e0614.h" int main() { E0614 ex; ex.solve(); } ...

filter functions problem

I'm working on a search component for an app I'm working on and I needed to add some filters to it. I've found an example and got the first filter working fine. Now I'm trying to add a second filter I'm running into problems... In the example I found they use filterFunctions, but I only get an option for filterFunction, why is that? He...

PL/SQL - How to pull data from 3 tables based on latest created date

Hello, I'm hoping someone can help me as I've been stuck on this problem for a few days now. Basically I'm trying to pull data from 3 tables in Oracle: 1) Orders Table 2) Vendor Table and 3) Master Data Table. Here's what the 3 tables look like: Table 1: BIZ_DOC2 (Orders table) OBJECTID (Unique key) UNIQUE_DOC_NAME (Document Name i.e...

Rails: Easy way to add more than one flash[:notice] at a time.

I thought every time you do a flash[:notice]="Message" it would add it to the array which would then get displayed during the view but the following just keeps the last flash: flash[:notice] = "Message 1" flash[:notice] = "Message 2" Now I realize it's just a simple hash with a key (I think :)) but is there a better way to do multiple...

How to combine these two JavaScript functions?

var curtext = "View large image"; function changeSrc() { if (curtext == "View large image") { document.getElementById("boldStuff").innerHTML = "View small image"; curtext="View small image"; } else { document.getElementById("boldStuff").innerHTML = "View large image"; curtext = "View large image"; ...

MySql query problem with prev/next selection and mutiple columns sorting

here's my table products_tb for products: --------------------------------------- | product_id | prod_name | cat_id | --------------------------------------- | 112 | Zumar | 3 | | 131 | Xerox | 2 | | 143 | Dan | 1 | | 145 | Alan | 1 | | 195 | ...

Using emacs across many hosts

On a daily basis I: use multiple workstations running either Linux, Windows, or MacOS X edit files on additional Linux hosts that are not any of the workstations mentioned above The only common element here is that the internet connects all of these hosts: workstations and servers. I can keep all of the config files in sync on my wo...

mysql multiple insert - what happens on error?

What happens in mysql multiple records insert during an error. I have a table: id | value 2 | 100 UNIQUE(id) Now i try to execute the query: INSERT INTO table(id, value) VALUES (1,10),(2,20),(3,30) I will get a duplicate-key error for the (2,20) BUT... Will the (1,10) get into the database? Will the (3,30) get into the database?...

Logs overwritten in CruiseCControl.NET when there is multiple MSBuild Tasks.

I have two MSBuild tasks in my CC.NET config. In the end of the execution, i can see two blocks of warnings/errors in the log and published email. But the problem is that the contents of both the blocks are the same and that is from the second MSBuild task!! In another way, the second MSBuild task overwrites the first log, and then creat...

configuring kerberose-sso-negotiate in multiple domains

hi all I have mycorp.com, ch1.mycorp.com, mycorp2.com domains (it is all windows) I am configuring sso-kerberose-negotiate authentication My server running in mainaaa3.mycorp2.com, I have created spn "http:/mainaaa3.mycorp2.com" for it, and I have set trusts between domains, but if users from mycorp.com, ch1.mycorp.com domains that bro...

MySQL search for user and their roles

I am re-writing the SQL which lets a user search for any other user on our site and also shows their roles. An an example, roles can be "Writer", "Editor", "Publisher". Each role links a User to a Publication. Users can take multiple roles within multiple publications. Example table setup: "users" : user_id, firstname, lastname "pub...

HTML muliple select should look like HTML select

Hi I am trying to use a HTML select box with 'multiple' select options and size to 1 as below ` <SELECT NAME="toppings" MULTIPLE SIZE=5> <OPTION VALUE="mushrooms">mushrooms <OPTION VALUE="greenpeppers">green peppers </SELECT> When the size is set to 1 small scrollbar appears which makes the page clumsy.If I increase the size its eatin...

How to update multiple rows with different values in mysql?

I have a table with a column 'A'. Some rows have 14 digits for the column 'A' and some have only 12. I need to transform all the entries to 14 digits. The datatype is varchar I would like to update all the rows at once (one query), adding zeros before the first digit, so an entry like 012345678910 would become 00012345678910. Is it po...

Multiple labels in a table cell view

hi all, i want to add 3 labels into a cell dynamically, cell is created dynamically as well. but i don't know how to create labels and add it into the cell in objective c (iphone). can anybody help me? ...

How best to implement support for multiple devices in a web application.

Hello. My client would like a business application to support 'every possible device'. The application in question is essentially a web application and 'every possible device', I believe encompasses mobile phones, netbooks, ipad, other browser supporting devices, etc. The application is somewhat complex w.r.t. the data it captures and ot...

jQuery .each() with multiple selectors - skip, then .empty() elements

I'd like to remove all matching elements, but skip the first instance of each match: // Works as expected: removes all but first instance of .a jQuery ('.a', '#scope') .each ( function (i) { if (i > 0) jQuery (this).empty(); }); // Expected: removal of all but first instance of .a and .b // Result: removal of *all* ins...