Questions tagged [operand]
177 questions
0
votes
0 answers
How to get operand of instruction using qemu
I would like to get the operand of an i386 instruction that is executed in my QEMU guest. for example ,I'd like to get the operand0x400400 of 40053a:e8 c1 fe ff ff callq 400400 ,But it seems that I can not find the C function used…

William
- 43
- 1
- 7
0
votes
1 answer
Logical Operators in PFQuery Error
I am trying to use an AND operand in a PFQuery but I get the following error at query.whereKey... Is there a way to achieve this?
No '&&' candidates produce the expected contextual result type 'AnyObject'
let bagNumber =…

J. K.
- 1
- 4
0
votes
4 answers
purpose of multiple else/if statements? NOT single if then else statement
I just wanted to know if there is any purpose to writing else if or if this is purely written for better code readability. For instance, this code taken from the oracle java tutorials:
class IfElseDemo {
public static void main(String[] args) {
…

user2329174
- 87
- 1
- 7
0
votes
0 answers
MIPS error "operand is of incorrect type"
I am trying to convert C code into MIPS assembly code, however I am getting an error:
"$t4": operand is of incorrect type
I could not find the error. Here is my C code and assembly code:
int A[4];
int i;
int diff;
for(i=0; i<3; i++){
diff =…

Habil Ganbarli
- 213
- 2
- 7
- 14
0
votes
1 answer
While dealing with Dictionary elements in Python faced unsupported operand type(s) for +=: 'int' and 'NoneType'
The problem is that while running this code everything is fine:
d={'9h':9, 'Qd':10}
l=['9h', 'Qd', 'test', 'test2']
s=0
for i in range(len(l)):
if l[i] in d:
s += d.get(l[i])
print s
But while doing it with classes I got the error…

Roft
- 3
- 5
0
votes
2 answers
Trying to include an "or" in a case on mysql - Error Code: 1241. Operand should contain 1 column(s)
I'm trying to include an "OR" clause in a CASE but I keep getting
"Error Code: 1241. Operand should contain 1 column(s)
Here's a sample of the query.
select [...],
CASE
when category1.Category1Name in (...) or…

JeffersonSteele
- 9
- 4
0
votes
1 answer
Select another column on IN query (subquery)
I have a query that gets a sku_product product that is sold on a precise date
SELECT stock_products.`related_warehouse_position_id`, `product_code`, `EAN_CODE`, `custom_cart_picked_up`, `warehouse`, sum(`RemainingStock`),…

Dev E-reall
- 1
- 3
0
votes
1 answer
No instance for (Ord a0) arising from a use of `max'
I'm new to haskell, and i'm trying to use operand .
function strangeMaths has to be smth like logBase 2 ((max x)^3) but using 3 functions and operand .
so i did this code
strangeMaths = f . g . h
f = logBase 2
g = (^3)
h = max
but this gives…

Денис Грачев
- 138
- 1
- 10
0
votes
5 answers
mysql SELECT query syntax issue
SELECT * FROM `question` WHERE que_id =(select * from emp_qusans where emp_id=9 and ans!=3)
The query throws the following error message.
1241 - Operand should contain 1 column(s)
How can i fix it ?

Chetan
- 133
- 1
- 5
- 17
0
votes
0 answers
SML create a list of lists operand mismatch
I am trying to create a list of lists meaning my result should be like
thatgraph = [[0,[1,2]],[1,[1,3],[1,4],[1,5]],[2,[3,4],[4,4],[5,5],[5,10]]
The code i use is :
fun pin2graph (pin,thatgraph,i,j,rows,cols,havepizza) =
if (i

Akismpa
- 61
- 7
0
votes
0 answers
Missing Operand Error With "Set /a" type variables
Alright, so I know this question has been asked before, however I've not yet revived an answer that works.
So when I make variables like this
set /a HP = %END% + (%STR% * .5) * %LVL%
I get the Missing Operand Error, I've been told to remove the "%"…
user7668768
0
votes
1 answer
Splitting string using operator in android for calculator App
I want to make a calculator App. For this I need to be able to split a string into two when there is an operand between them. I tried my code like this:
String[] operation= display.split(Pattern.quote(currentOperator));
currentOperator contain my…

user3529490
- 1
- 1
0
votes
1 answer
Use PDO exec(array()) with several operands
I would like to secure my requests in my code.
Today my curent functions are like this.
public function UpdatePMS($table,$data,$where) {
$ret = array();
$set_data = "";
foreach($data as $key => $value){
$set_data .=…

Danard
- 69
- 8
0
votes
1 answer
Can't assign function to call or unsupported operand type(s) for -=: 'str' and 'int'
To take 1 away from the variable "glory", the variable needs to be an integer. When turning it into an integer I just receive: "Can't assign function to call".
import sys
glory = input("Glory charge: ")
glory_prev = glory
print(glory_prev)
pouch =…

FynFTW
- 3
- 2
0
votes
1 answer
Error 1241 Operand should contain 2 column(s)
My query : http://pastebin.com/8c2rLrRk
In this 3rd case 2nd when condition is causing the issue, if i comment that then query is running well. So pls let me know where the loophole in this syntax.
user7095134