Questions tagged [operations]
298 questions
1
vote
0 answers
Context based operations with Sencha Touch2
My requirement is to have a tabbed panel and context based (sub operations) segmented buttons in one of the tab panels. On click of the button we should hide the current list and show the new list.
I'm able to show the segmented buttons but not the…

sathishyellanty
- 11
- 2
1
vote
2 answers
OCUP UML operation semantics example
I am currently learning for the OCUP UML Fundamental exam.
While reading the book i found something strange about operations.
The semantics of an operation:
[visibility] name (parameter list)[:type][{property strings}]
now there are the following…

user1126171
- 11
- 1
1
vote
2 answers
Operations / Calculation in Java
Okay I have got following for loop:
public static void main(String []args){
for (int i=2; i<12 ; i=i+2)
System.out.print(3-i%3);
System.out.println();
}
And it is printing out: 12312. In order to understand how it…

Acemi
- 173
- 1
- 4
- 13
1
vote
2 answers
SQLite arithmetic between columns of different tables
I have a statement like so:
SELECT f.column1, 0.9*sum(s.column2) FROM first f, second s WHERE f.colum1 = f.column1*0.9*sum(s.colum2)
Basically what I want to do is multiply the value from the 'first' table in the column1, by 0.9*sum(s.colum2) i.e…

Mohd
- 313
- 1
- 4
- 16
1
vote
1 answer
c++ adding a menu for operations
below is the code I have so far which works, my question is how do I then go from here to include a menu so operations can be performed on the matrices that are read from the text files?
Examples for operations could be the determinant, add,…

user3536870
- 249
- 1
- 2
- 13
1
vote
2 answers
Simple Calculator with multiple operations - Android
I have created a simple calculator that calculates two inputs (ex. 2 + 2 = 4). What I want to do now is to make the app to calculate multiple operations like (ex. 2 + 2 * 4 - 1 = 15). Can someone help me with my code? Here is my code.
public class…

jajaja
- 389
- 1
- 12
- 26
1
vote
1 answer
Math operations with integer divisions
I want to know the result of a String with many math operations. An example:
((49 -(16 - 72))/(21+ (72/(81 + 57))))
I'm using eval function and it works, but the result of a divide operation has to be an integer, and I don't know how to do it! Any…

Daniel 976034
- 189
- 1
- 1
- 18
1
vote
4 answers
python condensing functions for +-*
I've got 3 math operation functions I need to use on a point3 value. I was wondering if someone could shed any light on a way to better write these functions in a more clean and condensed fashion please.
Thank you.
ptA = [10.0, 20.0, 30]
ptB = [50,…

JokerMartini
- 5,674
- 9
- 83
- 193
1
vote
1 answer
How to call operations other than CRUD in RIA Domain Service?
I have some trouble getting my head around how to implement more complex operations in a Domain Service in RIA Services. This is all Silverlight 4, VS 2010 and .Net Framework 4 in Beta 2.
Goal
I wish I could create an operation on my…

SoManyDetails
- 149
- 2
- 8
1
vote
2 answers
set operations using pointers
I need to implement a set of functions providing various set operations such as create set, add element to set, etc. I am new to programming, however, I know how to write a function but my problem with this task is that I need to use pointers and I…

user90790
- 305
- 1
- 4
- 13
1
vote
1 answer
Rails App Excessive Disk Read/Write
a rails app that's been running in production for almost a year began excessive disk read/writes after a push we did today.
Here's a read total graph.
As well as a read ops graph
We pushed at around 22:30 and disk usage went bananas.
If I'm doing…

timsabat
- 2,208
- 3
- 25
- 34
1
vote
1 answer
In Cassandra 1.2 - CQL 3 is it possible to abort a secondary index build?
Been using a 6GB dataset with each source record being ~1KB in length when I accidentally added an index on a column that I am pretty sure has a 100% cardinality.
Tried dropping the index from cqlsh but by that point the two node cluster had gone…

David
- 17,673
- 10
- 68
- 97
1
vote
2 answers
Manipulating Bit-wise Operations
There is this puzzle question of creating an equivalent bit-wise & with only | and ~ operators.
I've been doing brute force combinations of | and ~ using 6 (0110) and 5 (0101) trying to get 4 (0100), but I still cannot get the answer.
The maximum…

Sugihara
- 1,091
- 2
- 20
- 35
1
vote
1 answer
Definition of mathematical operations (sin…) on NumPy arrays containing objects
I would like to provide "all" mathematical functions for the number-like objects created by a module (the uncertainties.py module, which performs calculations with error propagation)—these objects are numbers with uncertainties.
What is the best way…

Eric O. Lebigot
- 91,433
- 48
- 218
- 260
1
vote
1 answer
Arithmetic operations on integers in vhdl
I'm trying to do a few mathematical operations on integers in a piece of vhdl code but when i try to compile the tool says "0 definitions of operator "+" match here". Here is what i'm trying to do:
for i in 0 to arr_size - 1 loop
for j in 0 to…

Jean-Luc Nacif Coelho
- 1,006
- 3
- 14
- 30