Questions tagged [operations]

298 questions
6
votes
4 answers

Sikuli List of Functions & Operators

I've just discovered Sikuli, and would like to see a comprehensive functions list without digging through the online-examples and demos. Has anyone found such a list? Furthermore, apparently Sikuli supports more complex loops and function calls as…
PPTim
  • 1,346
  • 6
  • 18
  • 33
6
votes
2 answers

R populating a vector

I have a vector of zeros, say of length 10. So v = rep(0,10) I want to populate some values of the vector, on the basis of a set of indexes in v1 and another vector v2 that actually has the values in sequence. So another vector v1 has the indexes…
ganesh reddy
  • 1,842
  • 7
  • 23
  • 38
6
votes
3 answers

Multiplying Rows and Columns of Python Sparse Matrix by elements in an Array

I have a numpy array such as: array = [0.2, 0.3, 0.4] (this vector is actually size 300k dense, I'm just illustrating with simple examples) and a sparse symmetric matrix created using Scipy such as follows: M = [[0, 1, 2] [1, 0, 1] …
Willian Fuks
  • 11,259
  • 10
  • 50
  • 74
5
votes
2 answers

Is it safe to remove Docker containers listed with `docker ps -f status=created`?

I've already seen posts showing how to remove exited containers listed with docker ps -q -f status=exited, but I also want to clean up 'created' but not 'running' containers. Is it safe to remove containers with the 'created' status, or is there a…
Blake
  • 53
  • 1
  • 5
5
votes
2 answers

How to operate on elements on a list?

I'm making a program on python that needs to hold some info on lists and them execute mathematical operations on them. Here's a sample of my code: VCentral = [] Atlantico=[] Pacifico=[] Norte=[] Sur=[] LVC=0 LA=0 LP=0 LN=0 LS=0 LTotal=0 def…
Dave Carballo
  • 157
  • 1
  • 5
  • 13
5
votes
1 answer

Nested multithread operations tracing

I've a code alike void ExecuteTraced(Action a, string message) { TraceOpStart(message); a(); TraceOpEnd(message); } The callback (a) could call ExecuteTraced again, and, in some cases, asynchronously (via ThreadPool, BeginInvoke, PLINQ…
Sinix
  • 1,306
  • 9
  • 46
5
votes
3 answers

Alternatives to GCC's new atomic integer operations

GCC's recent support for atomic operations (as described here) is great, and is 90% of what we need. Unfortunately, some of our products still need to run on Windows and so we need atomic integer operations for Windows as well. In the past, we had…
dicroce
  • 45,396
  • 28
  • 101
  • 140
5
votes
1 answer

Hint for lookup table set bit count algorithm

I am looking at solution for the set bit count problem (given a binary number, how to efficiently count how many bits are set). Here, http://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetNaive, I have found some methods. What about the…
kiriloff
  • 25,609
  • 37
  • 148
  • 229
4
votes
1 answer

How can I delete Hudson's built artifacts?

We are using Hudson for our Continuous Integration server and it's great. We have 2 issues with it, which are mildly related. https://hudson.dev.java.net/issues/show_bug.cgi?id=2736 The build order in Hudson means that the downstream dependencies…
jabley
  • 2,212
  • 2
  • 19
  • 23
4
votes
2 answers

NSDecimalNumber for big number operations on iPhone

I need to use big number for precision in my application, float or double are not enough. I also have int and float numbers, and I have to do operations with all of them. I think that NSDecimalNumber is good for the precision I need, but I would…
Dachmt
  • 2,079
  • 4
  • 29
  • 45
4
votes
1 answer

Displaying WCF Web service operations

So I've created a WCF service application and hosted it on IIS7. It currently has a few test 'helloworld' methods. When I run it in my browser I get this screen: Now the service itself works great, but how can I display the operations like…
ingh.am
  • 25,981
  • 43
  • 130
  • 177
4
votes
2 answers

Problems with importing com.sun.org.apache.xpath.internal.operations

I'm new to Java, and I am trying to import a project from GitHub into Intellij just to get the hang of it. I get an error message when I try to build the solution, and it is saying that the package "com.sun.org.apache.xpath.internal.operations" does…
Dawg Dawgman
  • 41
  • 1
  • 1
  • 2
4
votes
4 answers

Do not allow a user to delete a node but allow to delete through Views Bulk Operations

I have the following scenario: Editor Role should not be allowed to delete nodes. Therefore the corresponding permission is de-selected in the permissions page. However Editor should be able to to delete nodes from Views Bulk operations.…
Sid Kshatriya
  • 4,965
  • 3
  • 25
  • 29
4
votes
4 answers

boolean operations with integers

This is probably pretty basic... but I don't seem to get it: How does (2 & 1) = 0 (3 & 1) = 1 (4 & 1) = 0 etc.. This pattern above seems to help find even numbers or (0 | 1) = 1 (1 | 1) = 1 (2 | 1) = 3 (3 | 1) = 4 (4 | 1) = 5 (5 | 1) = 5 I know…
David Brown
4
votes
0 answers

How to control the ordering of operations in my MBean when viewed in JConsole or Java VisualVM

I see this question was posted under title "jconsole operation ordering", but didn't see any responses to it and couldn't add a comment as I am new. So posting this question again! I have an MBean with many operations and would want to present them…
spider
  • 41
  • 1
1
2
3
19 20