When I call a rebol script with
call shell("rebol.exe myscript.r")
The shell doesn't return until the script is finished. Is there a way to force VBA Shell to be asynchronous ?
say suppose I have class as :
public class Age {
private int age;
public int getAge() {
return this.age;
}
}
In my Main class I am calling the getAge() method many times.
So I wanted to know is it advisable to call so many times or call once and assign it to some variable and use that variable.
Which is best and why?
Hi,
I am using jQuery.ajax function to make an ajax call to a page method in asp.net. I specifically set the content-type to "application/json; charset=utf-8". When I looked at the response in the firebug it says the content-type is html.
Following is the code to my ajax call
$.ajax({
async: asyncVal,
type: "POST",
url: url + '/' + webMethod,
data: dataPackage,
contentType: "application/json; charset=UTF-8",
dataType: "json",
error: errorFunction,
success: successFunction
});
Write a function, called constrainedMatchPair which takes three arguments: a tuple representing starting points for the first substring, a tuple representing starting points for the second substring, and the length of the first substring. The function should return a tuple of all members (call it n) of the first tuple for which there is an element in the second tuple (call it k) such that n+m+1 = k, where m is the length of the first substring. Complete the definition
def constrainedMatchPair(firstMatch,secondMatch,length):
Hello, I'm working on a c++ code that uses SDL/opengl. Is this possible to create a pointer to a quadric with 'gluNewQuadric()' before having initialized opengl with 'SDL_SetVideoMode'? The idea is to create a class with a (pointer to a) quadric class member that has to be instantiate before the 'SDL_SetVideoMode' call. This pointer is initialized in the class' constructor with a 'gluNewQuadric()' call.
Hi
when i try to call view controller view in to another view controller . that time there delegate method like viewWillAppear: does not call .
any Suggestion?
I'm making an AJAX call in my symfony project, so it has an sf_format of 'js'. In the actionSuccess.js.php view, I call get_partial to update the content on the page. By default it looks for the partial in 'js' format since the sf_format is still set as 'js'. Is it possible to override the sf_format so that it uses the regular 'html' partial that I already have (so that I don't have to have two identical partials)?
Hi All,
I got one problem while doing one TAPI application based project in C#. I'm using ITAPI3.dll
My problem is.. i'm not getting incoming call information. To get the incoming call information, i'm using getcallinfo function. but it is showing empty message.
Basically I call TrackMouseEvent in my WM_CREATE then I call it again after a WM_MOUSELEAVE but this freezes up my program. Where should I be sticking it? Thanks
I tried the following && conditional for my if statement and I get a "bad range" error:
<% if (from_today(contact, call.days) == 0..7) && (show_status(contact, call) == 'no status') %>
Why and how can I fix it? The only other way I could do it was to have a second nested if statement and break it apart...not pretty :(
I have:
var f1 = function(a){
alert(a)
}
var f2 = function(data, method){
method(data) // the problem is here,
// the method f1 is not called. Is there a way to call that method f1?
// the method f1 might not be in this scope, the method f1 can
// be in a class or like this...
}
f2(a, f1)
The question is: Is there a way to call that f1 from f2, from the passed method?
thanks
I am getting inling warning such as :
warning: inlining failed in call to ‘symbol_Arity’: call is unlikely and code size would grow
To get rid of this i changed the makefile adding the -Winline to get rid of this. I don't get any inlining warning. But , i don't know how wise is it to do in respect of performance. Can anybody please suggest me about it?
Hi all,
is there any way where I can call c++ code from a c code
class a
{
someFunction() ;
} ;
how to call someFunction() from a c code.
in other way I am asking how to avoid name mangling here
regards
Vinayaka Karjigi
class a(object):
c=b()# how to call the b method
d=4
def __init__(self):
print self.c
def b(self):
return self.d+1
a()
how to call the 'b' method not in the __init__
thanks
Can we call send from one thread and recv from another on the same socket?
Can we call multiple sends parallely from different threads on the same socket?
I know that a good design should avoid this, but I am not clear how these system APIs will behave. I am unable to find a good documentation also for the same.
Any pointers in the direction will be helpful.
I have the following problem:
"list.c"
struct nmlist_element_s {
void *data;
struct nmlist_element_s *next;
};
struct nmlist_s {
nmlist_element *head;
nmlist_element *tail;
unsigned int size;
void (*destructor)(void *data);
int (*match)(const void *e1, const void *e2);
};
/*** Other code ***/
What will be the signature for a function that returns 'destructor' ?
Im having issue with button on a top right hand side of naviogation bar on iOS:
I have a button that can launch a app.html file from app itself and show on top of current view and That popup webview can be minimize with dDone button on it,
Im having issues doing this, How can i call UIWebView on top of current view and allow it to launch app.html page from app directory.
Currently i have:
- (BOOL)webView:(UIWebView *)webViewer shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{
}
and this is a button that call that function
UIBarButtonItem *showAppMenu = [[UIBarButtonItem alloc] initWithTitle:@"Help" style:UIBarButtonItemStylePlain target:self action:@selector(webView)];
so i have a nsmutablearray that populates from a socket message.
problem is, when i call numberofrowsinsection on the uitableview, it will be 0, because it loads from the array. the array has 0 objects, because the incomingMessage hasn't been received yet.
i observe this array in my appdelegate, when it changes, i call refreshData on the tableView, but it doesn't refresh. how do you load a uitableview from a dynamic array?
I am calling this function which is modifying an array by reference:
function addWord(&$words, $wordIndex, $word)
{
$words[$wordIndex] = $word;
}
At the function call,
addWord(&$words, $wordsIndex, $word);
($words is used only during the function call)
doesn't work. How do I make this or a similar functionality work? I want the addWord to be a separate function.
What is purpose of this keyword. Doesn't the methods in a class have access to other peer members in the same class ? WHat is the need to call a this to call peer methods inside a class ??
The following code is intended to check if 4 numbers are entered in the blurred field. If not, the field value is deleted, and the field is focused. The deletion works fine, but the the call to focus() does not work.
$('input.dateValue').live('blur',function(event){
if (!(/(\d){4}$/.test($(this).attr('value')))) $(this).attr('value','').focus();
});
Why does the call to focus() not focus the field?
How can i create a function which looks like the jquery callback $
Say i want to call a element with id= "mydiv".
i want to be able to call it like
var div = $("mydiv").value;
i think the function should look like
function $(element)
{
return document.getElementById(element);
}
Is that the right way to do it, or do you prefer another way to solve it?
I want to sort a vector using std::sort, but my sort method is a static method of a class, and I want to call std::sort outside it, but it seems to be trouble doing it this way.
On the class:
static int CompareIt(void *sol1, void *sol2) { ... }
std::sort call:
sort(distanceList.at(q).begin(),
distanceList.at(q).end(),
&DistanceNodeComparator::CompareIt);
Shouldn't it be possible to do this way?