Hi,
I'm using Tomcat to deploy two web-services endpoints but on one WAR file (I used one WAR because the two endpoint implementations are calling one another).
How can I define different login methods to each endpoint?
I actually need two different custom realm for each endpoint...
Thanks
HI, i have two tables
1- name, id, code
2- id, value, concept
One name can have two concepts and two values. i want to retreive this:
Id, name, value1, value2.
How can i do that?
Tanks
I have two Python scripts in two different locations and cannot be moved. What is the best way to send information between the two scripts?
say for example in script1.py i had a string e.g.
x = 'teststring'
then i need variable 'x' passed to script2.py, which saves the variable 'x' to a text file?
Any ideas?
So I have two cell arrays:
A = {2 2 2 2}
B = {[1 2] [3 2] [5 5] [7 7]}
and a function of two arguments:
F = @(a, b) [a * b(1), (b(2) / 3), (b(1) + a) * 22]
And I want to apply the function to the two cell arrays like so:
idealfun(F, A, B)
and have it do the right thing (return a cell array with four cells of 1x3 vectors). Any ideas how to…
I have two different .Net projects, hosted on github.
I would like to create a shared "commons" library for the two projects.
How should I structure my repository to facilitate this sharing?
Ideally, a change in this common library in one project could easily be pushed into the other project. I prefer to keep the code itself editable from the…
Hi,
I have two seperate git repositories at ~/linux and ~/android. I want to make a diff of the two repositories using git. Or is there any way to merge the two repositories.?
Regards,
Murugaprabu
Hello:
I have two tables with a column 'date'. One holds (name, date) and the other holds (date, p1, p2). Given a name, I want to use the date in table 1 to query p1 and p2 from table two; the match should happen if date in table one is within two seconds of date in table two.
How can you accomplish this using SQLAlchemy?
I've tried…
I have two HashMaps and I can iterate both hashmaps with following code
Iterator it = mp.entrySet().iterator();
while (it.hasNext()) {
Map.Entry pairs = (Map.Entry)it.next();
String firstVal = pairs.getValue();
}
Iterator it2 = mp2.entrySet().iterator();
while (it2.hasNext()) {
Map.Entry pairs2 = (Map.Entry)it.next();
…
Is it a viable option to compare two FileInfo.CreationTimeUtc.Ticks of two files on two different computers to see which version is newer - or is there a better way?
Do Ticks depend on OS time or are they really physical ticks from some fixed date in the past?
I dont know if this is possible, but if Im working on two areas of code in a long file, I have to note the line numbers and scroll between the two areas of code. Is there a way you can jump between two commonly used areas of code?
Perhaps setup a flag of some sort?
This question is related to:
How do I determine the intersection point of two lines in GDI+? (great explanation of algebra but no code)
How do you detect where two line segments intersect? (accepted answer doesn't actually work)
But note that an interesting sub-problem is completely glossed over in most solutions which just return…
Is it possible to generate two different psuedorandom numbers on two separate program runs without using time as the seed? i.e. using the same seed on both runs, is it possible to get two different numbers?
I have two projects, both of them data access layers, and both using EF. I have another project calling services related to the two different assemblies. Are there any pitfalls on using two different models on two different databases linked to the same database?
I'm asking this because I've been getting this generic…
I have two floats in Python that I'd like to subtract, i.e.
v1 = float(value1)
v2 = float(value2)
diff = v1 - v2
I want "diff" to be computed upto two significant figures, that is compute it using %.2f of v1 and %.2f of v2. How can I do this? I know how to print v1 and v2 up to two decimals, but not how to do…
Hello everybody!
Thank you in advance for your help!
I have two lists with some stocks prices, example:
a = [10.23, 11.65, 12.36, 12.96]
b = [5.23, 6.10, 8.3, 4.98]
I can calculate the correlation of these two lists, with:
import scipy.stats
scipy.stats.pearsonr(a, b)[0]
But, I didn't found a method to…
I have two lines that extend to infinity but both have a starting point. They are both described by a starting point and a vector in the direction of the line extending to infinity. I want to find out if the two lines intersect but i don't need to know where they intersect (its part of a collision detection…
I am using windows, Mysql DB, PHP
I am building the Joomla Component whose one of the functionality is to synchronize the folders
I want to sync two folders of different name.. How can I do this? It has to be dne in the same machine, no two different servers are involved in it..
How to sync two folders…
In a nutshell
I need a CSS solution for the following requirements:
Layout: One centered column with fixed width and a minimum height of 100%
Two vertically repeated background images behind the centered column, one aligned to the left, one aligned to the right
Cross browser compatibility
A little…
We have two Coldfusion servers that have a huge performance difference running the exact same code on the exact same input data. The code in questions instantiates a large amount of CFCs (Coldfusion Components, which are similar to objects in OOP languages).
I compared the two servers by running…
I would like to transfer files between two places over the internet. Right now I have a VPN and I am able to browse, download and transfer files. So my question is not really how to transfer the files; Instead, I would like to use the most efficient approach because the two places constantly share…
I will like to transfer files between two places over the internet. Right now I have a VPN and I am able to browse, download and transfer files. So my question is not really how to transfer the files; Instead, I will like to use the most efficient approach because the two places constantly share a…
Hello,
I am not a developer and I don't much experience with scalable server architectures. But I am in need of a highly available and scalable system for one of my projects.
There is going to be two servers I am going to use for the time being. Both with 4 core CPUs and 8 GB RAM with RAID…