Questions tagged [invocation]

187 questions
1
vote
1 answer

Is it possible to train a Google Home to recognize a certain invocation?

I'm developing an application using the Google Home. Although I'm using the simulator for most of my testing, occasionally I'd like to test using a real device. Currently, my device has a really hard time recognizing my invocation phrase; I can see…
Mapsy
  • 4,192
  • 1
  • 37
  • 43
1
vote
1 answer

Java ASM visitMethodInsn parameters?

I'm trying to understand how Java's ObjectWeb ASM library (framework?) works by a combination of reading the documentation and looking at example code. I'm slowly getting the idea behind it, but I've found a bit of example code that I'm just not…
IceMetalPunk
  • 5,476
  • 3
  • 19
  • 26
1
vote
1 answer

Windows makefile (name) - syntax error: ')' missing in macro invocation

I was given a Windows makefile to use for an OpenGL assignment I have to do, but it throws this error when I run it using 'NMake': makefile(7) : fatal error U1000: syntax error: ')' missing in macro invocation This is the content of the makefile…
Matt Young
  • 73
  • 2
  • 12
1
vote
3 answers

Fork(): Dont return from child until it's terminated

I'm having some troubles with fork() and that kind of things. I'm developing a shell, where the user can write commands that whill be executed as in a normal and common shell. I have a main function like this: void Shell::init() { string…
Pablo Reyes
  • 293
  • 1
  • 5
  • 14
1
vote
0 answers

Method invocation may produce java NullpointerException in Button click listener

I want to open just make a toast when user click on button it is very simplest thing but i cant do it :| method innovation may produce java NullpointerException warning occurred and toast didn't show public class TrackingRecord extends…
AndroidDev
  • 97
  • 1
  • 1
  • 9
1
vote
1 answer

Constructor invocation bound to new keyword in Java?

I'm working on Java Code Profiling where I need to know how many times a method has invoked a constructor in source code. So far the easiest way is to scan for new keyword and count that how many times constructor has been invoked. I would like to…
ammar26
  • 1,584
  • 4
  • 21
  • 41
1
vote
3 answers

What is the best way to reactivate an app running in the tray?

I have a delphi app that runs minimized to a tray icon. When the tray icon is double clicked the app opens a non-modal user interface form. I have added logic to the app to detect whether it is already running. If it isn't running, it starts up…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
1
vote
2 answers

Obtain reference to arity-0 scala function

Scala allows functions with no parameter lists to be invoked without parentheses: scala> def theAnswer() = 42 theAnswer: ()Int scala> theAnswer res5: Int = 42 How would I construct a scala expression that evaluates to the function theAnswer…
Asad Saeeduddin
  • 46,193
  • 6
  • 90
  • 139
1
vote
2 answers

Returning a custom promise

I'm having some issues getting a custom promise to work with my little app I'm working on. Here is an abbreviated version of my app.js var Promise = require('promise'); var Commands = require('./commands'); var respond = function() { var…
Jordan
  • 2,393
  • 4
  • 30
  • 60
1
vote
3 answers

Apply/Call method in Javascript: What is the first arguments "this"?

I am confused about using apply or call method correctly. I know that apply is passing an array to the function and call is passing strings to a function. For example the code below, what does "this"really have to do with the code? if it has nothing…
Someone
  • 157
  • 2
  • 3
  • 10
1
vote
3 answers

Invoking Function in Javascript without parentheses ()

Case 1: function square(x) { return x*x; } var s = square(); // Invoking with parentheses console.log(square(2)); console.log(s(2)); Case 2: function square(x) { return x*x; } var s = square;// invoking without parentheses…
Mansi
  • 35
  • 1
  • 7
1
vote
0 answers

Groovy dynamic method invocation with nested function

I need to evaluate a string with nested function calls. Is there an easy way to do this with groovy? Edit: Code made more realistic. The context is nonacademic; my function needs to combine and evaluate a bunch of arbitrary strings and values from…
Roko
  • 35
  • 1
  • 7
1
vote
1 answer

MethodHandle InvokeExact parameter

I am confused by method parameters for method handles. I first build a guardwithtest method handle as shown below: public class App { public static void trueTarget(String str, String own, String t){ System.out.println("This is true…
shijie xu
  • 1,975
  • 21
  • 52
1
vote
0 answers

Unable to Invoke SMS on Blackberry Z10

I'm trying to invoke SMS from blackberry through QML on button click action but its showing error. This is my code. Button { id:smsTrigger onClicked: { smsSendInvocation.query.updateQuery(); …
Francis F
  • 3,157
  • 3
  • 41
  • 79
1
vote
2 answers

Find invocations of subclass method

For context, say I have these classes: public class Foo { public void doStuff() {} } public class Bar extends Foo { @Override public void doStuff() {} } public class Zig extends Foo { @Override public void doStuff()…
Brad Mace
  • 27,194
  • 17
  • 102
  • 148