Click here to Skip to main content
15,914,943 members
Everything / Simulate

Simulate

simulate

Great Reads

by Vahe Karamian
This article will cover the basics of Leap Motion integration into your Unity 3D project. We will look at the basic setup and implementation of the basics to get you started. In order for you to try the code, you will need to have the Leap Motion hardware.
by Alexey Chernobaev
Date and time source interface allows to use different actual date and time sources (e.g. current system time or accelerated system time) in your C# code to simplify debugging, simulation, etc.
by Avron Polakow
This article presents a client-side, JavaScript Relational Database Simulator in the browser, using SQL commands to Create, Read, Insert, Update and Delete in-browser table data, as well as formatting the output as HTML objects in a Webpage.

Latest Articles

by Alexey Chernobaev
Date and time source interface allows to use different actual date and time sources (e.g. current system time or accelerated system time) in your C# code to simplify debugging, simulation, etc.
by Avron Polakow
This article presents a client-side, JavaScript Relational Database Simulator in the browser, using SQL commands to Create, Read, Insert, Update and Delete in-browser table data, as well as formatting the output as HTML objects in a Webpage.
by Vahe Karamian
This article will cover the basics of Leap Motion integration into your Unity 3D project. We will look at the basic setup and implementation of the basics to get you started. In order for you to try the code, you will need to have the Leap Motion hardware.

All Articles

Sort by Score

Simulate 

8 Jul 2015 by Vahe Karamian
This article will cover the basics of Leap Motion integration into your Unity 3D project. We will look at the basic setup and implementation of the basics to get you started. In order for you to try the code, you will need to have the Leap Motion hardware.
10 Dec 2016 by Alexey Chernobaev
Date and time source interface allows to use different actual date and time sources (e.g. current system time or accelerated system time) in your C# code to simplify debugging, simulation, etc.
6 May 2012 by Keith Barrow
This solution is better for Win7 (and probably Vista - I can't check on this)As I said in my original answer, finding the button control is brittle as it relies on the class name. Each time the application being targeted is run, the class name changes in Window7. Luckily I re-ran the code and...
21 Feb 2023 by OriginalGriff
That code doesn't compile:fprintf(doc," %f %f %f \n\n",y,mean_r,); You have specified three "%f" parameters in the format string but provided two, and have an empty parameter at the end - you'll get an error for the ",)"...
5 May 2012 by Member 8697687
Hi,Im on Windows7 and I need to simulate a mouse click( without moving the cursor ) in a window that is minimized or hidden Is this possible ? And if so, then how can I do this( what APIs should I use, and will work in all windowses ) ? OBS: I need only the code scheme in general, not...
21 Nov 2012 by Richard MacCutchan
Start here[^], or try a bookstore or library.
16 Aug 2013 by Richard MacCutchan
See http://www.oracle.com/technetwork/java/javacard/overview/index-jsp-140503.html[^] and http://www.oracle.com/technetwork/java/javacard/javacard1-139251.html[^].
16 Jul 2016 by Kornfeld Eliyahu Peter
MSDN - SendKeys.Send:To specify keys combined with any combination of the SHIFT, CTRL, and ALT keys, precede the key code with one or more of the following codes.SendKeys.Send("^v");---SendKeys.Send Method (String) (System.Windows.Forms)[^]
22 Feb 2023 by merano99
Quote: Auyik 10hrs 10mins ago I edited my code to include a function that calculates the average. Is it ok the way I did it? no! float mean(float sum, float counts){ double mean = 0.0; mean = sum/counts; return mean; } It is almost...
15 Apr 2023 by OriginalGriff
Start by using the debugger to find out exactly what values you are getting: argc and argv - when you know the number of arguments and what they are, it should be obvious what the problem is. We can't do that for you: we have no idea what you...
14 May 2012 by SASS_Shooter
Try reading this then extrapolating it into C#.Fifo M/M/1 simulation[^]
17 May 2012 by MrZedSven
I have a jukebox program running that does announcements if you press certain buttons on the keyboard. I wanted to do the key presses using my own program, running in the background, based on certain time periods.I have used sendkeys.send and my.computer.keyboard.sendkeys but it doesn't...
18 May 2012 by Stephen Hewison
User account control in windows Vista and later can block send keys.If one process has elevated permissions it won't be able to send keys to another.Read the notes in the follow MSDN article:SendKeys Class[^]
24 Nov 2012 by Sajeesh Payolam
http://en.wikipedia.org/wiki/S...
22 Feb 2013 by Alireza ghasemi
Hello DearsI have a problem in time span in C#I want to simulate ball motion .i have some equation that needs to recalculating in every microsecond and I want to display result 60 FPS.Please help me...
22 Feb 2013 by Chris Reynolds (UK)
I've not used XNA too much but you have two events an Update and a Refresh. From what you're saying you want to update your model more frequently but still draw at 60FPS. I found this...
27 Apr 2013 by snprint
I want to login the third system,like some email system.I have my userID and password.I can store them in my website. I want to automatic login the third system.now,I can auto login throw VBS ,but how can I change the VBS to Html?VBscriptSet ie =...
1 May 2013 by snprint
how can I get the same performance in web browser like the VBS code?
21 Aug 2013 by CPallini
You might start from Wikipedia page on traffic simulation[^].
30 Sep 2013 by Kenneth Haugland
Ok, this is going to take some explaining before I present the code. The algorithm Im implementing is called TLM [^]for short. To construct the algorithm I have noticed that each cell or node, can communicate with 4 of its neighbors, called North, South, West and East for conviniance. In...
30 Sep 2013 by Kenneth Haugland
Ok. I found out what was wrong, its the sequence of events.First calculate all scatter, for all points, then propagate the sound pressure. Or in code:Private Sub SimulationTimer_Tick(ByVal sender As Object, ByVal e As EventArgs) ' Updating the Label which displays the current second...
13 Jul 2014 by Francisco T. Chavez
I've been building a small racing game in C#, and I've hit a bit of a block when it comes to the impulse resolution of the car to car collisions. At the moment, the cars are able to hit and push each-other, but there's no resulting rotation from these collisions. The problem I'm having is...
16 Nov 2013 by Francisco T. Chavez
I ended up using the point of minimum extent along the normal axis, from CarB. It's the possible solution I mentioned in the question. Things are a little bouncy, but I think that has more to do with the constants I'm using. Besides, most people that have tried the game out tend to get a bit of...
2 Feb 2014 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
ProblemPosting only a code block and expecting answers from our side is a very bad idea.RequirementsPlease explain the requirement and scenario. We should know what exactly you are trying to achieve.IssueNext thing is - describe what you have tried to achieve the task.If...
3 Nov 2014 by Franz W
I am trying to send keystrokes to a 16bit DOS application that is wrapped in NTVDM. My code below currently is able to successfully send keystrokes to any application (e.g. Notepad) including the command prompt which makes me wonder why it doesnt work with the DOS application im trying to send...
31 Aug 2015 by mikos7
I'm porting a .net app to OSX using mono and things were going great. But right now I'm struggling with simulating keystrokes on OSX.The app is a console application that uses a barcode scanner. The scanned barcode is used to lookup information about products which is inputted into the...
10 Sep 2015 by JENOVA_SHINRA
Hi...I have a problem with ns-2 simulation... When i run my simulation it gives me this Error :--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o52: no target for slot -1 _o52 type: Classifier/Portcontent dump:classifier _o52 0 offset 0 shift 2147483647...
28 Sep 2015 by kozmikadam
Hello everyone ,I have a school project , so i'm looking some info for this.We should be make a 3D scene , and we should be add some 3D components , like house , car , human etc. with drag and drop. Or maybe we can select from a catalog. Also some components should have some animation...
13 Oct 2015 by KarstenK
You best stick to OpenGL because it is the most widely spread technology, but it is hard to learn. You must learn about matrices, porjection and vectors mathematics and some strange commands.Here is a good starting point: Learning Modern OpenGL.Invest some time in learning as reading or...
24 Mar 2016 by stackprogramer
hi,i want to simulate a system physical in simulink matlab rs2015.i read from website mathworkscross producti.e. using this:t1 = [2,3,1]; t2 = [3,1,2]; C = A(:,t1).*B(:,t2)-A(:,t2).*B(:,t1);please see image simulink:please see imagefcn function is defined:function C =...
24 Mar 2016 by stackprogramer
solution that i found i created vector and i used mux and demux for create separating signals.i created fcn and inputs signal,now with fcn and mux and demux finally i created cross product function.thanks for attention
16 Jul 2016 by joonood
i've written a win app using c# that automatically contacts to other applications such as browsers. i want to copy something in my win app, and paste it into the browser without involving user to click or move mouse. I don't have any problem with simulating mouse cliks, but i have problem to...
17 Jul 2016 by joonood
I have a win app (C#) that use clipboard to send and receive data to/from other applications. for example i wnat to use Word app in windows, I copy a text using c# to the clipboard, but when i want to simulate paste key (Stroke Ctrl+v) in c# , the clipboard is empty and i just got "v" as...
17 Jul 2016 by OriginalGriff
Start by using Clipboard.SetText instead of SetDataObject - it shouldn't make any difference in this case, but it's a simpler way to do things.Your code works: I tried it in a simple form in one of my apps:private void button2_Click(object sender, EventArgs e) { ...
18 Jul 2017 by TheVoidDz
Hello, Recently i have been working on a simple Simulation Code (Discrete Event Simulation) with a single queue and single server and deterministic number of clients with Python , i just want to know if my code is correct or i'm i missing something , because i'm having some difficulites in the...
17 Jul 2017 by Patrice T
Quote: i just want to know if my code is correct or i'm i missing something , As programmer, it is your task to make your code right and to know that it is so. Quote: i'm having some difficulites in the Queue This is not informative, describe the problem, give example. Quote: my code work but...
2 Apr 2020 by OriginalGriff
We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us...
11 Aug 2022 by Shivang Dubey(Shivi)
when a user click on that the dropdown options are visible to them and a user can select from the available I want to simulate the visibility of options without manual clicking on dropdown element. HTML code
14 Dec 2020 by Richard Deeming
You can simulate the click, but it won't cause the drop-down list to open. const element = document.getElementById("cohort"); const event = new MouseEvent("mousedown"); element.dispatchEvent(event); MouseEvent() - Web APIs | MDN[^] ...
14 Dec 2020 by InbarBarkai
In the comments section of the following link, it seems depricated: javascript - How can you programmatically tell an HTML SELECT to drop down (for example, due to mouseover)? - Stack Overflow[^]
16 May 2021 by Member 15202663
When using the create module with for example the lognormal distribution, and directly dispose all entities, the output is exactly the same when running the model exactly 500 hours for example. However, the output should be variable right? And I...
16 May 2021 by OriginalGriff
This site is devoted to software development, we don't provide technical support for company products. And most especially, we do not provide tech support for paid products - all that would do is encourage companies to "offload" tech support to...
22 Feb 2023 by Auyik
I'm trying to calculate the average of a set of random numbers (all of them between 0 and 1), considering if other conditions are fulfilled. That is, calculate the average of a list of random numbers for every value of a float "y" while it is...
21 Feb 2023 by CPallini
Quote: r = rand()/(float)RAND_MAX; That should be, instead r = rand()/(RAND_MAX + 1.0f); Then you forgot to reset the sum_r variable inside the ITERATIONS loop. Try #include #include #include #include ...
15 Apr 2023 by DosNecro
#include #include #include #include // for sleep() function enum direction { UP, DOWN, LEFT, RIGHT }; struct ant { int row; int col; enum direction dir; }; void print_map(char **map, int...
15 Apr 2023 by Richard MacCutchan
You should capture all arguments at the beginning of your main method. As it is you are capturing argv[1] at the beginning as waiting_time, and then later on as wait_time. That is bound to cause confusion. Also, you use the atoi function to...
15 Apr 2023 by merano99
As OriginalGriff said, a debugger should find the problem. However, except for the problem that the file might not be found, I have not found any problem reading in when there are actually exactly 7 positive numbers in the input.txt file. If...
15 Apr 2023 by Richard MacCutchan
This is the same issue as How to implement a sleep wait time function and take it in as a command line argument?[^], where I gave you a suggestion as to capturing the command line parameters. And I notice that you have still got the erroneous...
19 Jan 2016 by Avron Polakow
This article presents a client-side, JavaScript Relational Database Simulator in the browser, using SQL commands to Create, Read, Insert, Update and Delete in-browser table data, as well as formatting the output as HTML objects in a Webpage.
23 Nov 2012 by kave2011
please introduction a good brief reference for learn simula and a software for run simula.
9 Dec 2013 by IAmABadCoder
EDIT: How do I make a population simulator, that simulates population growth?(Unnecessary)Hi I'm Jake and recently I've started designing a population simulator. What would be the best way to make a population simulator running on a timeline? How would I incorporate random gender, age,...
30 Sep 2013 by Member 10306588
So,as a part of a project, i am trying to create a SJF scheduling simulation using C++. i am posting a part of my code which i found online and implemented in mine.For some reason the loop is infinite and i cant figure out why. Also if someone could explain what t and w variables are would be...
18 Feb 2015 by Boudi AlSayed
hey, I want to make an app that can simulate a Guitar Hero controller, I don't really know what type of inputs does the Guitar controller give, It is like simulating xbox gamepad, but a type of "Alternate Guitar". X360ce (xbox 360 gamepad emulator) can emulate these kind of inputs, [^] please...
13 May 2012 by spawn986
Hello, i'm trying to build a Discrete-event simulation implementing the Fifo algorithm in MM1 model, any help to kick me off in the project, i've went thro lots of codes in other languages but they provide little if nothing all of help, so, anyone of you guys have something here that might help...
21 Feb 2013 by elfuego81
Hello every body I have an arena simulation HW and I got stuck on this part:"Since each driver fills different amount of gas, therefore the net profit is not fixed, it has continuous values between 10 $ to 30$. it follows a probability distribution that is 10$ for 40% of the cars, the other...
5 May 2014 by David A. Gray
You may have better luck with the Clipboard (System.Windows.Forms.Clipboard). Please see http://msdn.microsoft.com/en-us/library/system.windows.forms.clipboard(v=vs.110).aspx[^]
3 Nov 2014 by David A. Gray
SA, please get a life. I've been talking to applications running in NTVDMs for years. it's not easy, but I've had much more success with the clipboard than with trying to force feed keystrokes to it.
6 May 2012 by farshad saeidi
mouse event handle by windows and always response to screen and in application handle by function inside the codeif you have source code of minimized or hidden window and you can modify this , you can use other way to communication between 2 applicationotherwise try change status of...
6 May 2012 by Member 8697687
Realy really great post Keith Barrow :) Very high quality :) But I have some questions : 1. I don't want to click on a control, its just a simple spot in a window, no button, no nothing,so it will work ? 2. Will work with any window I will try ? 3. If the OS will get updated or a new...
16 Aug 2013 by Patrick Wanjau
I'm new to Java Card technology. I intend to start developing Java Card applications, but this area seems to have very little tutorials, if at all there are. I have checked the netbeans tutorials but they are not comprehensive. Where can I get a great tutorial for a newbie? Also, what is the...
21 Aug 2013 by DreiIsAwesome01
What programming language should I use to create a traffic simulator where the user can add roads, intersection, traffic lights, etc and assemble them for simulation? Thank You!
18 Feb 2015 by Boudi AlSayed
HEY, I've created a custom gamepad out of a cheap USB gamepad board... My custom gamepad should be able to generate a key press of xinput type, like xbox360 controllers (not only gamepad, but others like guitar or drums controllers) I just want to know how send xinput messeges or any kind of...
5 Nov 2015 by Member 12115918
In an airport simulation project focusing on queueing, I have a number of fligth arrivals with batches of baggage that I would like to assign to 5 different baggage claims in the end of the system. Right now what I experience is that the bags queue up at 1-2 baggage claim (process modules),...
3 Mar 2021 by Member 15088966
this is how the system looks like: Imgur: The magic of the Internet[^]
11 Aug 2022 by Member 15735126
Hello, have you found a solution?
15 Apr 2023 by DosNecro
#include #include #include #include // for sleep() function enum direction { UP, DOWN, LEFT, RIGHT }; struct ant { int row; int col; enum direction dir; }; void print_map(char **map, int...