Questions tagged [intercept]

A programming interface for intercepting input device communication.

461 questions
3
votes
1 answer

Plotting a line in a chart given the y intercept and slope

I've written a program that calculates the line of best fit (intercept/slope) given several input values from the user. I've plotted each of the individual values, however unsure of the code to plot the line given the slope and y-intercept. This is…
Michael D
  • 45
  • 1
  • 5
3
votes
3 answers

Computing intercept for an accelerated object in 2D

I'm making a C program in which I simulate a Patriot missile system. In this simulation my Patriot missile has to catch an incoming enemy target missile. The information about the Patriot missile and the enemy target are stored in a structure like…
PaulRox
  • 79
  • 1
  • 9
3
votes
2 answers

Intercept / Disable System Keys in Java

Is there a way to intercept the system keys in Java so that the events are not propagated to the operating system? Ctrl+Alt+Del or other security related combinations do not matter, the main problem is for example the Windows key. The program in…
3
votes
1 answer

calculateDistanceX(MotionEvent) method in intercept touch events handling

I'm new to android and trying to learn intercept touch events handling using this documentation, but i do not understand that calculateDistanceX(MotionEvent) method at all, and the more I searched about it the less i found. I'm completely…
MamadTell
  • 163
  • 1
  • 12
3
votes
0 answers

Cordova + Android: Intercepting streaming webm resource

I am using Cordova v3.4.0 with Android 4.4. My web app defines a video tag element for a webm stream.
D. Dsouza
  • 31
  • 2
3
votes
1 answer

How to intercept and apply effects to Firefox audio/sound output

I want to build a Firefox extension that will allow me to directly manipulate the audio output, applying live filters and effects, from (for example) a streaming video site. Im struggling to find any good resources to help me. I think the effects…
Tom
  • 105
  • 1
  • 6
3
votes
2 answers

How to intercept a variable in a function from another function

Suppose I had a function like this in test.py: from math import sqrt def a(): intermediate_val = sqrt(4) return 5 def b(): another_val = sqrt(9) return 8 I want to write a function that looks at both a() and b() and returns the…
Ryan Norton
  • 145
  • 1
  • 2
  • 8
3
votes
2 answers

How to fix intercept value of glm

This is the example that I work on it : data2 = data.frame( X = c(0,2,4,6,8,10), Y = c(300,220,210,90,80,10)) attach(data2) model <- glm(log(Y)~X) model Call: glm(formula = log(Y) ~ X) Coefficients: (Intercept) X …
Cherif
  • 33
  • 1
  • 6
3
votes
1 answer

Can the effects package in R be used for lm models with no intercepts?

Can the effects package in R be used to plot (marginal) effects for a linear model which does not include an intercept? Here is some R code I tried for such a model: x <- seq(1,100,by=0.1) y <- 1 + 2*x + rnorm(n=length(x)) model <- lm(y ~ 0 +…
Isabella Ghement
  • 715
  • 6
  • 14
3
votes
1 answer

Passing JSON error responses via HTTPD

The team I work with is creating an API interface for their application in order to expose data to a website that requires it. They are sending requests and responses in JSON format but are currently stymied on the following issue. They have…
oldNoakes
  • 549
  • 1
  • 5
  • 14
3
votes
1 answer

Java Intercept HTTP Request

What is the best way to do this? I tried to use a ServerSocket and change my proxy setting port to send all traffic to my Java program. Well, it connects but I can't seem to read the request with clientSocket.readLine(). I don't want to know how to…
MrLolEthan
  • 76
  • 3
  • 9
3
votes
2 answers

How to intercept networking calls (REST) in iOS using NSURLProtocol

I need to intercept the networking call that the client will make in the application while the call will successfully complete. I found out that a solution is implementing the NSURLProtocol abstract class and register to the application. This seemed…
George Taskos
  • 8,324
  • 18
  • 82
  • 147
3
votes
1 answer

how to intercept IP packets on linux

I am trying to achieve this goal on Linux (not sure if it is possible and how if so): I need to write a program to intercept all IP packets on an interface, and deliver this packet to a specific set of user-space programs. By intercept I mean, an IP…
user2975098
  • 115
  • 1
  • 7
3
votes
2 answers

Windows: How to intercept Win32 disk I/O API

On Windows, all disk I/O ultimately happens via Win32 API calls like CreateFile, SetFilePointer, etc. Now, is it possible to intercept these disk I/O Win32 calls and hook in your own code, at run time, for all dynamically-linked Windows…
Harry
  • 3,684
  • 6
  • 39
  • 48
3
votes
2 answers

Intercepting Camel Endpoint Dynamically

I am trying to intercept an endpoint where the value of the URI matches some information in the exchange header. Let say I have a field in the header called DatabaseName. I want to enforce that a specific route is only writing to the database…
Klaus
  • 2,328
  • 5
  • 41
  • 62