Questions tagged [simulate]

For issues relating to simulating a system, action, function, or behavior.

Simulation is an attempt to model a real-life or hypothetical situation so that it can be studied to see how the system works. By changing variables in the simulation, predictions may be made about the behaviour of the system. It is a tool to virtually investigate the behaviour of the system under study.

451 questions
3
votes
2 answers

Setting up a web developer lab for learning purposes

I'm not a developer by profession. Therefore, I'm not exposed to real world technical problems that face professional developers. I read/heard about web farms, integration between different systems, load balancing ... etc. Therefore, I was…
Saleh Al-Abbas
  • 155
  • 1
  • 10
3
votes
1 answer

Javascript Dom Right Click Function

This question was already asked in a simple way here: Trigger right click using pure JavaScript, however, none of the answers there is what I (and apparently the poster of that thread) seek. First and foremost, this question is not about events. I…
J3STER
  • 1,027
  • 2
  • 11
  • 28
3
votes
1 answer

Xdotool Fails On Raspberry Pi

I'm running retropie on my Raspberry Pi, and I want to figure out a way to use the GPIO to simulate keystrokes. Xdotool seems like my best bet, but it doesn't work locally or over ssh. When I enter xdotool key 'd' I get the error: Error: Can't open…
Minecat40
  • 41
  • 1
  • 5
3
votes
0 answers

Wrong mouse pixel positioning on multiple screens C++

I'm using two monitors (one: 1440x900, second: 1280x1024) and I don't know what values should I set on SCREEN_WIDTH and SCREEN_HEIGHT. For example, I tried SCREEN_WIDTH = 1440 and SCREEN_WIDTH = 1280 (I want to simulate mouse on right monitor named…
Yas
  • 351
  • 2
  • 17
3
votes
4 answers

Simulate a class of type enum

how can I do to simulate a class of type enum in java <5.0 ..?? public final class Week { private static final Day[] _week = {Day.MONDAY, Day.TUESDAY, Day.WEDNESDAY, Day.THURSDAY, Day.FRIDAY, Day.SATURDAY, Day.SUNDAY}; public static Day…
Mercer
  • 9,736
  • 30
  • 105
  • 170
3
votes
0 answers

Simulate a distribution with a given kurtosis and skewness in r?

I can measure a distribution's kurtosis and skewness using the moments package, and simulate a distribution using rnorm(), but I don't know how to apply the two together to simulate a non-normal distribution. Is there a package that can help? Most…
Jim
  • 31
  • 1
3
votes
1 answer

Simulate multimedia key presses in Delphi

I need to simulate pressing of multimedia keys (such as play/pause, prev/next track, rewind/forward, etc.) in Delphi. I can simulate 'normal' keys easily using the next code: keybd_event(VK_SPACE,0, 0, 0); keybd_event(VK_SPACE,0, KEYEVENTF_KEYUP,…
user3558897
  • 113
  • 1
  • 8
3
votes
0 answers

Simulating physical key events in UIWebView

I need to create UIButton above UIWebView in iOS SDK, when user press this button it simulates UIWebView a physical keyboard key pressed, in the best situation, arrow keys.
3
votes
1 answer

Recreating Memory Situation From gc.log / replay gc.log

I was wondering if anyone knows a tool recreating a memory situation / memory load from an existing gc log to test different gc settings. With enough print parameters switched on it should be possible to create a similar load situation based on the…
3
votes
2 answers

Keypress To Simulate A Button Click in C#

Ok, so I'm in the process of making a Tic-Tac-Toe game to help me learn C#. I'm attempting to add a bit of functionality to it, so I want people to be able to use the NumPad on a computer to simulate clicking the buttons. Here is what I have but…
Cistoran
  • 1,587
  • 15
  • 36
  • 54
3
votes
0 answers

R: Quantifying uncertainty for predictions from lme4 (predict.merMod)

I have the following mixed effects model with two crossed random effects which I am using to model tree growth: Model <- lmer (log(Growth) ~ log(Size) + log(Competition) + (1 + log(Size) | Treatment) + (1 | Plot)) I am using this model to predict…
3
votes
0 answers

How to automatically simulate server responses from a browser plugin (Firefox/Chromium)

While I am testing a web application, for some requests that are computational intensive on the server side, I would like to simulate the server response directly from a browser add-on. I would like to be able to configure the URL and set-up a JSON…
Radu Maris
  • 5,648
  • 4
  • 39
  • 54
3
votes
3 answers

Executing an onclick event, without clicking.

I'm using a script called photobooth for JavaScript where the user is supposed to click the camera icon to take a picture, but instead I want it to be code executed. Here is the snippet of code that I believe to be the photobooth take picture event.…
user2266621
  • 97
  • 1
  • 1
  • 7
3
votes
2 answers

Windows simulate network cable loss

I'm trying to program some tool and i want to simulate a network cable lose with it. So i want to get the same effect like i unplug the networkcable from my computer and plug it in again. It's not the same as the '/renew' / '/release' commands. When…
Stefan Koenen
  • 2,289
  • 2
  • 20
  • 32
3
votes
0 answers

Simulate / Fake a keypress in javascript

Possible Duplicate: Simulate JavaScript Key Events --EDIT-- Long story short I have a swiffy object on the page and I can "control" it using different keypresses and one of them is by pressing "P".. right now, if I physically press P it performs…
ttothec
  • 323
  • 1
  • 3
  • 10