Questions tagged [operations]
298 questions
0
votes
1 answer
System calls in linux kernel
What are three of the basic file operations provided via system calls in the Linux kernel?

Weigel Gram
- 185
- 1
- 2
- 11
0
votes
2 answers
Can any one explain how to Understanding Datastore Read Costs in App Engine?
I am doing geoquery among 300 user entities with a result range 10.
I've maked a query for 120 times. For each query I got 10 user entity objects.
After this my app engine read operations reached 52% (26000 operations).
My user entity has 12 single…

Sridhar Nalam
- 527
- 8
- 9
0
votes
2 answers
Multi Bit TCP Request in Java
I am trying to make a tcp request in Java to a existing TCP server that is already available.
the interface specification is:
Field Length Type
Length 2 bytes 16-bits binary
Message ID 1 byte 8-bits…

Gigaquad
- 153
- 4
0
votes
2 answers
Print five strings from mysql operations
this is my query
$sum = "SELECT htno,
SUM(tm) AS tech,
SUM(tm)/7.5 AS divi,
SUM(credits) AS cred ,
SUM(CASE WHEN credits <= 0 THEN 1 ELSE 0 END) AS log,
SUM(CASE WHEN credits > 0 THEN 1 ELSE 0 END) AS pass,
SUM(CASE WHEN em >= 0 THEN 1 ELSE 0…

EngineersHub EH
- 37
- 8
0
votes
3 answers
Java bit operations error (convert to byte and convert back)
I'm trying to convert date of birth (three ints) to byte and convert it back but I'm having an issue. I have to convert it by using bit operations and send data over multicast server and receive it and change back to int. Server works fine, but bit…

user1528100
- 49
- 2
- 5
0
votes
1 answer
How can one identify the operation to perform in a servlet?
I am trying to follow this example
but I can't understand this part:
Imagine also that the servlet's context path is myServer/myApp/servlets. The servlet container would direct a request with URL myServer/myApp/createUser.do myServlet to myServlet,…

Iulia
- 7
- 2
0
votes
1 answer
HQL removing parenthesis from arithmetic operations
Following HQL:
"-(a.import + a.bill)"
gets translated to following SQL:
"-a.import + a.bill"
instead of expected:
"-(a.import + a.bill)"
This makes the operation to calculate a result diferent from what is expected.
The translation has been…

Tomas Romero
- 8,418
- 11
- 50
- 72
0
votes
1 answer
Why variables sum returns multiplication?
in the following code:
void fusioneArray(int v[], int vL, int w[], int wL[], int *fusione)
{
int i,j,temp;
int k=0;
printf("%d",wL+vL);
for(i=0;i

Antonio Ciccia
- 726
- 3
- 8
- 18
-1
votes
1 answer
How to make SUM(A+B) without defining the row number?
I have in Excel a whole column field, where I have to set
for row 2: SUM(A2+B2),
for row 3: SUM(A3+B3)...
Is there a fast way to set it to the whole column without having to insert it one by one in the fields?
Something like SUM(A#+B#), where #…

Yoru Ten
- 39
- 6
-1
votes
2 answers
Arithmetic Operations -Java
class Example {
public static void main(String args[]){
System.out.println(12+8/5%4*(5-4/5)+4*5);
}
}
Why the output is 37? Can anyone explain? I'm a beginner in java

Nelumi
- 1
- 3
-1
votes
2 answers
Writing file to array it writes only last record in my array
I want to print my console lines to txt file.I want this operation in else statement.But it writes to file only last record.How can i fixed it? When i try buffered reader it cant solve my problem.Thanks everybody.Have a good day.Which solution do…

TheFlash
- 25
- 5
-1
votes
1 answer
json crud operations using core javascript
I want to perform the following CRUD operations on this json
1)Update content_available as true for code (EN, CN).
this is what i have tried. but it doesnt work.
myObj = {
"data": [{
"code": "EN",
…

SChavan
- 57
- 5
-1
votes
1 answer
Android studio - byte operations - changing value
I have a problem with bit operations
int progress = slider.getProgress(); value of user input
then I have to do shift left and change it to HEX
int shl = 1<

Max Kolanko
- 13
- 1
- 6
-1
votes
2 answers
my program prints out a different result from what expected
so every time i try to put an "n" in, the first line will put out a number that is equal to n+1. so please help me what i did wrong! thank you
#define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
#include "../../../std_lib_facilities.h"
int…

Quy Nguyen
- 5
- 3
-1
votes
4 answers
Operations With 3 Sets In Java
I have 3 sets and i'm using sets
HashSet set_1 =new HashSet();
set_1.add("1");
set_1.add("2");
set_1.add("3");
HashSet set_2 =new HashSet();
set_2.add("4");
set_2.add("5");
set_2.add("6");…

BlazePage001
- 61
- 9