More or less I want to execute two functions in parallel.
One way as I see is doing through SetTimeOut function.
I have not completely gone through the ReactiveExentension, although it looks promising but may be overkill for my needs.
Is there any framework which supports parallelism ?
My use case is trivial, but I would like to know if anybody heavily needed parallelism in Java Script ?
Thanks, Biswanath.
- (void)setPropertyValue:(const *void)inValue forID:(UInt32)propertyID {
}
The compiler doesn't like the const *void, for some reason. When I have that, it says:
error: expected ')' before 'void'
When I make the parameter like (UInt32)foo there is no problem. Does const *void only work in functions?
I need a parameter which can be a "pointer to anything" like UInt32, Float64, etc.
i have got 24 buttons in my project.I need to manage them but I don't want to get my MainViewController polluted by 24 declarations of pointers, properties & synthesizes.
i was thinking about using buttonPushed functions and do it like:
-(IBAction)buttonPushed:(id)sender{
UIbutton *button=sender;
[buttons addObjectAtIndex:[sender tag]];
}
my question is:is sender a pointer to the IBObject?
It starts to bore me that I always have to ask questions about trifles.
I simply need a list of all plugged in USB devices and have the user select one to let the console application receive any data the USB device sends.
I can then start playing around with the data in my program.
I don't want to use library's, only standard C++ functions, and the program should work in Windows 98.
Hi,
I have a Virtual Machine with MOSS 2007 (Enterprise), VS2008 and SQL 2005.
I want to start exploring 2010. I need to know what I need to get started.
Can I donwload 2010 beta from Microsoft Site? Can I just install it without any conflicts with existing setup?
Thanks.
im using netbeans to code a web application with symfony.
it seems that netbeans doesnt support symfony in auto completion.
could one fix this problem.
cause i want to be able to click on symfony's functions and get to the source, eg helper function and model methods and classes.
I currently have a testing environment for web apps on a virtual machine.
The problem - i would like to keep IE 6 for testing and also have access to newer versions of IE as well.
How can i do this?
Thanks.
I can't believe it, but this is really happening. I ran out of available quote symbols using jquery and javascript native functions together. Can somebody help? Maybe there is yet another symbol?
var t=setTimeout('$("#popupChange").html('<img src="http://servername/pdf/picture/genericThrobber.gif" />');',2000);
Are there any libraries knocking around that provide any additional general purpose math functions for Javascript? Say things like sums over a range, derivatives, integrals, etc. I can imagine that many things aren't possible, so even libraries that do rough approximations would be interesting.
Thanks!
Hi,
I have a website deeloped in ASP.NET and I want it to be accessed via local URL, for eg: http://localhost/website20
I tried once but the CMS in my website started giving error "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS."
Please help about the steps I need to follow.
In C++, why does string::find return size_type and not an iterator?
It would make sense because functions like string::replace or string::insert take iterators as input, so you could find some character and immediately pass the returned iterator to replace, etc.
Also, std::find returns an iterator -- why is std::string::find different?
I want to display google maps (mutliple markers etc) and just found that there is one paid solution "GMap 2.3" for PHP. I was looking for an open source solution. Do you guys code using Google Maps API functions or use any wrapper script? What are some good links for this?
Often we think that an antivirus or similar is more than sufficient,
but many clients could accomplish so many processes that it would
be more safe having a real sandbox environment like unix like OS.
Better virtual machine like VMWare, VirtualBox and similar sandabox,
or there are better ways to keep safe our privacy?
I have a class definition of the form
class X
{
public:
//class functions
private:
A_type *A;
//other class variables
};
and struct A_type is defined as
struct A_type
{
string s1,s2,s3;
};
Inside the constructor, I allocate appropriate memory for A and try A[0].s1="somestring";
It shows segmentation fault.
Is this kind of declaration invalid, or am I missing something
I have this code in base class
protected virtual bool HasAnyStuff<TObject>(TObject obj) where TObject:class
{
return false;
}
In child class I am overriding
protected override bool HasAnyStuff<Customer>(Customer obj)
{
//some stuff
if Customer.sth etc
return false;
}
I am getting this error
'''Type parameter declaration must be an identifier not a type'''
What is it I am doing wrong here?
hi,
I'm using Drupal for a website and I can only use jQuery 1.2.7 (not the most recent versions).
I want to fade in / fade out a div element and I'm using mouseover / mouseout functions.
However, this element contains some children and when I move the mouse over it, the mouseout function is triggered, because I'm moving over one of its children.
Since I don't have mouseleave function, how can I solve this issue ?
thanks
usually, symbolic functions return vectors for vector inputs:
syms('x');
f=x*2;
subs(f,[1 2 3])
outputs: [2 4 6]
but doing
f=sym('0');
subs(f,[1 2 3]);
outputs: 0
and not: [0 0 0]
so basically, my questions is how do I make f behave as a "normal" symbolic function.
I can do something ugly like f=x-x to create a function that always returns zero, but is there a prettier way?
I want to create a PHP app that can send text messages. There are different gateways for different email carriers. Is there any library I could use that would be able to lookup or detect which gateway to use just by passing the phone number into it? This way I can take whatever email address I get out and use PHP's email functions to send a message. Thanks in advance!
In the code I am writing I need a foo(int, char*) and a foo(int, int) functions.
If I was coding this in C++ I would use templates. Is there any equivalent for C? Or should I use void pointers? How?
Thanks.
I found that even modern Python versions (like 3.x) are not able to detect BOM on text files. I would like to know if there is any module that could add this missing feature to Python by replacing the open() and codecs.open() functions for reading and writing text files.
I am using Video For Window's AVIFile functions. When I use AVIFileOpen I notice that it uses the flag FILE_FLAG_NO_BUFFERING when creating the .avi file. ProcessMonitor shows the that file was created with "no buffering". This flag is causing performance issues and I was wondering if there is a way to use this function without that flag.
I have a service and inside one of the functions i'm creating a domain object and trying to save it.
when it gets to the save part, i get the error
No Hibernate Session bound to thread,
and configuration does not allow
creation of non-transactional one here
What do i need to do in order to save a domain object inside of a service. everything on the internet makes it look like this should just work....
I'm doing a C# project and I want to call next_permutation from the algorithm library in C++. I found the way to call c++ functions in c# but i dont know how to get vectors from c++ and use it in c# (cause next_permutation require a int vector...)
this is what I'm trying at the moment:
extern void NextPermutation(vector<int>& permutation)
{
next_permutation (permutation.begin(),permutation.end());
}
[DllImport("PEDLL.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void NextPermutation(IntPtr test);