Questions tagged [operations]

298 questions
2
votes
2 answers

Array subtraction and/or reshaping

I would like some help with a problem. In Python: a=array([2,2]) b=ones((2,10)) I would like to know if there is a function that allows me to subtract b-a to have an array of 2x10 full of -1. I can do it one with 1D arrays, I just wanted to know if…
Leon palafox
  • 2,675
  • 6
  • 27
  • 35
2
votes
3 answers

How to follow C++ bit storage in Java?

if I have in c++: char abc[4]; abc[0] = 0xC0; //11000000 in binary abc[1] = 0x20; //00100000 in binary abc[2] = 0x44; //01000100 in binary abc[3] = 0x20; //00100000 in binary So how this will be stored in memory - 11000000 00100000 01000100…
JavaBits
  • 2,005
  • 11
  • 36
  • 40
2
votes
2 answers

IBM Rational Rose: Is it possible to model class's operations and integrate it for code generation?

I'm using IBM Rational Rose, but I'm not sure if I'm able to model/design the methods/procedures which are known as "operations" within a class onto "UML User Class Diagram". Is there any way to model the algorithm or the code of 'operations' (i.e…
user6039980
  • 3,108
  • 8
  • 31
  • 57
2
votes
1 answer

Get local path from network path

I have a funny situation. I am sitting on a computer on which there is a shared folder, say, "My_Folder". So, I can access it using the address "\My_Box\My_Folder". Now, if I write a small tool in C#, I can convert the "\My_Box\My_Folder" to…
pete
  • 93
  • 1
  • 5
2
votes
1 answer

How to model the VRP flow constraint

I'm having some trouble modeling this constraint in Julia right now I have for k=1:v for j = 2:nodes @constraint(model,sum(x[i,j,k] for i=1:nodes) == sum(x[j,i,k] for i=1:n)) end end where nodes is the customer set, n includes the depot and…
DJK
  • 8,924
  • 4
  • 24
  • 40
2
votes
1 answer

Bit operations Cracking the Coding Interview

I've been trying to work through the first problem in CTCI, which involves bit manipulation, and I just can't figure out how the author accurately made the mask in his final solution. Could someone explain the calculations for "int left", "int…
Mackalester
  • 154
  • 2
  • 13
2
votes
2 answers

delete or update operations is not working on hive 0.14

Anyone knows why the delete/update operation is not working in hive 0.14 (it's supposed to be working starting 0.14 version) even I do follow the steps/format to create table and get: FAILED: SemanticException [Error 10294]: Attempt to do update…
rawal
  • 35
  • 1
  • 11
2
votes
1 answer

How to combine multiple Microsoft Store Operations SQL reports?

I've got very limtied SQL knowledge and I'm attempting to combine two reports in Microsoft Store Operations. I ideally want to know which tender each sale went through. They have a tender report but it doesn't show tax or sales details, and they…
Joe A
  • 21
  • 2
2
votes
1 answer

VHDL File system operations synthesis

I have a question about the VHDL synthesis system and more precisely about IO files operations. My question was does the synthesis system make the synthesis for file operations like write(), read() when they are writting in a VHDL code ? For…
2
votes
1 answer

Other ternary operations than conditional expression

I read on Wikipedia that there are often only one ternary operation type possible in C-like languages, which is the conditional expression. I am trying to find out what other ternary operation exists and what language would make use of them.
B7th
  • 644
  • 1
  • 6
  • 17
2
votes
1 answer

Assembly Language x8086 - Getting User input

I am stuck on a problem I have for a homework assignment that is asking me to ask the user fora digit ranging from 1 digit to 5 digits (eg. they can input 1, 12, 123, 1234) I know how to ask the user for whatever number they want, using a loop and…
AlternateRealm
  • 27
  • 1
  • 4
  • 8
2
votes
2 answers

Javascript isn't correctly adding and subtracting floats

I've been messing about with an inventory-like system for a website I'm working on. I don't usually use JavaScript, So this little problem has been driving me crazy. I'm trying to add two floats together using two different functions. One is…
User K
  • 380
  • 3
  • 16
2
votes
0 answers

Get BizTalk message flow exception via Powershell?

Is there a BizTalk.Operations class or other BizTalk class such that I can retrieve the HAT Message Flow Exception? The exception, not the ErrorInfo or ErrorDesc property, that I'm referring to is found in: Go to BizTalk Group Hub (2010) 1.…
J P
  • 21
  • 2
2
votes
4 answers

Basic Java Calcualtor: Only addition working

I am trying to build a simple calculator that operates on Double values and performs: + - * / negation ^2 for some reason, whichever operation i specify when running the program executes the addition function. So when I try to do 5 7 * I get 12.0…
Charlie Tidmarsh
  • 37
  • 1
  • 1
  • 2
2
votes
1 answer

Gui async operations pattern?

I'm designing code for a download manager, and i was wondering if there are some good known patterns for the async operations? I'm asking this because i have just started developing my own pattern. Download a single file itself is an async operation…
DxCK
  • 4,402
  • 7
  • 50
  • 89