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
7
votes
5 answers

How can i simulate a slow network connection

Possible Duplicate: Network tools that simulate slow network connection I have a Bet Server which sends bet data to a game terminal I would like to simulate a slow network connection. i want the network to be really busy, heavily loaded so i can…
Riaz Ladhani
  • 3,946
  • 15
  • 70
  • 127
7
votes
2 answers

How to simulate timeout response

I'm creating a Python script that is always checking if a webapp is ok, because it was usual to send timeout response to several requests. This script uses httplib: conn = httplib.HTTPConnection("10.255.255.1") conn.request("HEAD", "/") ping =…
pedrorijo91
  • 7,635
  • 9
  • 44
  • 82
7
votes
3 answers

C# Stress Test - Simulate multiple access to a given shared resource

How can you simulate/stress test about 100 users accessing a given shared resource (e.g. Database) in a c# unit test?
Soni Ali
  • 18,464
  • 16
  • 44
  • 53
7
votes
1 answer

HTML5 datalist - simulate a click event to expose all options

I am trying to automatically show all options of a datalist html5 element to the user when a button is clicked bringing the input element into focus. Normally, all options are shown when the user clicks on the associated text input element twice. I…
user2570550
  • 71
  • 1
  • 3
6
votes
5 answers

Android: How to simulate back button

Currently my activity allows users to fill up certain data. Including spinner etc. When user click next system navigates to another screen. When I press back button on the phone previous activity loaded and filled data is available. My requirement…
Jay Mayu
  • 17,023
  • 32
  • 114
  • 148
6
votes
1 answer

add error to a transformed vector of dependent values

I would like to simulate (add error/rnorm) a transformed vector of dependent values, but I don't know how to keep the transformation's properties while doing so. I made a toy example to demonstrate my problem. I have a vector of interval…
Wave
  • 1,216
  • 1
  • 9
  • 22
6
votes
1 answer

How to get conflicts before merge with JGit?

I am trying to perform with JGit all the merge scenarios from a project that had conflicts. Is it possible to get the conflicts prior to the actual merge? In other words, is it possible to simulate a merge with JGit? My goal is to access the…
6
votes
2 answers

How to simulate multimedia key press (in C)?

Modern keyboards have special multimedia keys, e.g. 'Pause/Play' or 'Open Web Browser'. Is it possible to write a program that "presses" these keys? I would prefer solution in C, but I would accept a language agnostic solution, too.
Tom Pažourek
  • 9,582
  • 8
  • 66
  • 107
6
votes
1 answer

How does the function "simulate" work, conceptually?

I apologize in advance if my question seems really simplistic or naive, but I'm trying to understand what the function simulate does, conceptually (i.e., I'm interested in the logic of it, independently of whether it's applied to lm, lme, etc.) Say…
msoftrain
  • 1,017
  • 8
  • 23
6
votes
2 answers

Simulate click at x/y coordinates using javascript

How can I simulate a click at x/y co-ordinates using javascript or jquery? I will use the script multiple times and I want the script to click on postion one then postion two then three then four and so one. It is better without moving the mouse…
Ahmed Hafez
  • 115
  • 1
  • 1
  • 5
6
votes
1 answer

How to simulate a Unicode Char "key press" in Mac Os X using Objective-C?

I want to simulate a unicode character in Mac OS X to send to the Foreground application. I mean I have a unicode char(can contain Arabic, Chinese, etc.) like 'a' and I want to input it. Please note that I am not trying to use Virtual Keys or Key…
Peyman
  • 3,059
  • 1
  • 33
  • 68
5
votes
2 answers

what is the difference between Emulate and Simulate?

I am asking this question in the context of computers and microcontrollers. I need a concise answer. These words seems to get mixed up, I don't know if they are interchangangeable but have a feeling that they are not. Thanks. I haven't found a…
quantum231
  • 2,420
  • 3
  • 31
  • 53
5
votes
1 answer

Simulate CSRF Attack

I want to simulate CSRF Attack to check my website vulnerability. I tried it on my asp.net webapplication but failed to simulate. So please help me to simulate the CSRF attack. I have simulated by having a test.aspx.
Tej
  • 51
  • 1
  • 3
5
votes
1 answer

C# Simulate VolumeMute press

I got the following code to simulate volumemute keypress: [DllImport("coredll.dll", SetLastError = true)] static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo); byte VK_VOLUME_MUTE = 0xAD; const int…
Ron
  • 3,975
  • 17
  • 80
  • 130
5
votes
1 answer

Simulate app with Firebase services in China

My app uses FireBase services such as notifications, crash reports and more. I know that some Google services are blocked in China, is there a way for me to simulate (from outside China) how my app will perform in China in order to test what…
1 2
3
30 31