operations

Polynomial operations using operator overloading (resolved)

I'm trying to use operator overloading to define the basic operations (+,-,*,/) for my polynomial class but when i run the program it crashes and my computer frozes. Update4 Ok. i successfully made three of the operations, the only one left is division. Here's what I got: polinom operator*(const polinom& P) const { polinom Result...

Sikuli List of Functions & Operators

Hello, 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 well, and seems to be based in Python(!!). Examples would be great. Thanks. ...

Experience/Articles about "decision tree" documentation?

I'm running an "defect fixing" group (developers do 2 weeks operations, then rotate). I want to build up a documentation "how to deal with problem x" - basically a decision tree: Is the problem in part x of the web site? Yes: Is the problem occurring in all browsers? Yes: ... No: ... No: ... The doc...

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 etc, so I've no ability to explicitly mark operation scope). I want to trace all operati...

My sml compiler doesnot recognize simple operations on arrays (update(arr,int,int), array(int,int) etc). Help!

Hi, I installed the sml interpreter from here : http://www.smlnj.org/, I used the self extracting .EXE for windows. (I'm running windows7 64 bit) Although simple operations on basic datatypes are working, it is not recognising operations on arrays/vectors (update, array constructor etc). Do i need to install something else as well to ma...

operation specified in binding is not defined for 'Porttype', but it is there, wsdl.. help..

Hi guys... this thing is driving me crazy... Whenever I try to validate it.. it gives me error at <wsdl:operation name="ComposedClassOpt"> complete definition is below... that "The operation specified for the 'Binding' binding is not defined for port type 'ComposedClassPortType'. All operations specified in this binding must be defin...

CPU floating operations cost

I'm interesting in the time cost on a modern desktop CPU of some floating point operations in order to optimize a mathematical evaluation. In particular I'm interested on the comparison between complex operations like exp, log and simple operation like +, *, /. I tried to search for this information, but I could't find a source. What ...

file operations in java

Possible Duplicate: how can I import a file in java programming language How can we read and write a file in java? What are the basic operations to do this? ...

How to create an empty R vector to add new items

Hi, I want to use R in Python, as provided by the module Rpy2. I notice that R has very convenient [] operations by which you can extract the specific columns or lines, how could I achieve such a function by python scripts? My idea is to create a R vector and add those wanted elements into this vecotr so that the final vector is the same...

Android : Network operations in Appwidget

Hi, I'm developing a Android AppWidget for my application. For updating my appwidget I need to download data from network. But when I try to do that in onUpdate method, my appWidget is killed by Android system. I learnt that time consuming operations can't be done in receivers so I launched a service from onUpdate method and launched a t...

ORA-12704: Unable to convert character data

I am trying to perform SET operations in Oracle across remote databases. I am using the MINUS operator. My query looks something like this. SELECT NAME FROM localdb MINUS SELECT NAME from remotedb@dblink This is throwing up a ORA-12704 error. I understand this warrants some kind of conversion or a NLS Setting. What should I try nex...

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

Hi, 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. Using Rules an action is created called "safe delete" that checks things like if the node is ...

objective-c divide always returns 0

Something really weird is happening. float p1 = (6 / 100); NSLog(@"p1 = %f", p1); With those two lines of code I get the following output: p1 = 0.000000 Why is a simple devide with static numbers not working! I have so much work to do to deal with divide not working! What he heck, am I crazy? ...

Remove point from Delaunay Triangulation

Hello, I try to understand how a point from a delaunay triangulation can be removed. I read some scientific papers but i didn't get it totally. As I am not a native speaker I think I would benefit from a more simple and direct explanation. I already implemented a dynamic delaunay triangulation based on a english description, so I know t...

constant-time set operations

Are there constant-time algorithms for binary set intersection and union? I imagine using bitmaps with pointers to elements in the memory and using OR for union and AND for intersection. Does anyone now of a solution? ...