simulation

Simulating tremor (from e.g. Parkinson's Disease) with the mouse on a webpage?

旧街凉风 提交于 2019-11-28 14:57:29
问题 I'm working for a foundation that raises awareness for accessibility in the internet. For a presentation, we want to offer a small workshop that simulates different disabilities/impairments to people. This is done via a website created especially for this presentation. One of the demonstrated impairments is having a tremor, which means experiencing shaky, difficult-to-control hand movements. With this impairment, it's very difficult to move the mouse cursor exactly and to press the mouse

Soccer simulation for a game

 ̄綄美尐妖づ 提交于 2019-11-28 13:54:33
问题 I would like to build a simulation engine which can simulate a soccer (association football) match. It would be cool great if you could help me. What is important to me is to decide which actions happen. The event listeners for each action can be implemented later easily. The function should only simulate the game results and comments to happening actions. There is no 2D/3D graphics needed. We're talking about games like Hattrick. I would propose that you have an array of minutes with actions

Is it possible to build a heatmap from point data at 60 times per second?

一个人想着一个人 提交于 2019-11-28 07:51:21
问题 I'm working on a simulation for clouds (actual clouds) where the clouds are simulated by 3D points, then projected into a 2D heatmap, about 640x480 units big. The number of points is about 50k, which is as small as I can go without the simulation breaking, but I can't seem to find a way to perform this with any speed (it usually takes 3-5 seconds of runtime) I suppose my question is, is it feasible for an average computer to be able to do this yet? I usually underestimate how fast computers

Depth first search - 2D Game map

為{幸葍}努か 提交于 2019-11-28 07:20:09
问题 I have created a 2D maze, and I want to find the quickest path between the red->blue colored nodes. I'm an unsure how I would go about implementing a depth-first search. I know that an adjacency matrix or list could be used to represent the connections between nodes. Though, I am unsure of how to construct it. for brevity : I need to return a list with the tiles coordinates searched (when looking for goal node), so i can depict the search on the maze. Or how would i construct an adjacency

Implementing a cache modeling framework

岁酱吖の 提交于 2019-11-28 05:57:42
问题 I would like to model the behavior of caches in Intel architectures (LRU, inclusive, K-Way Associative, etc)., I've read wikipedia, Ulrich Drepper's great paper on memory, and the Intel Manual Volume 3A: System Programming Guide (chapter 11, but it's not very helpful, because they only explain what can be manipulated at the software level). I've also read a bunch of academic papers, but as usual, they do not make their code available for replication... even after asking for it. My question is

Simulate keyboard input in C#

廉价感情. 提交于 2019-11-28 05:34:18
I need to know how to simulate keyboard input for keys W , S , A , D . I've used SendKeys with no avail as well as the InputSimulator library with no fix. What I'm trying to do is make it to where applications such as games (Battlefield, Natural Selection, ect. Newer FPS games) will register these simulated keys as real keystrokes. I'm trying to make a virtual controller program where external controls will register as keyboard inputs for these games. Is there a way to manually simulate keyboard input like there is with something like this? [DllImport("user32.dll", CharSet = CharSet.Auto,

How to set fake GPS location on IOS real device

自闭症网瘾萝莉.ら 提交于 2019-11-28 04:54:34
Currently I have to test app and set the different fake GPS locations on real IOS 7 devices. On Android I use 'My Fake Location'. Unfortunately, I didn't find the same app for IOS 7. Any ideas to solve my problem? Of course ios7 prohibits creating fake locations on real device. For testing purpose there are two approches: 1) while device is connected to xcode, use the simulator and let it play a gpx track. 2) for real world testing, not connected to simu, one possibility is that your app, has a special modus built in, where you set it to "playback" mode. In that mode the app has to create the

CONNECT BY or hierarchical queries in RDBMS other than Oracle

情到浓时终转凉″ 提交于 2019-11-28 03:56:07
问题 Oracle ships with a very handy feature. You can create hierarchical queries (recursive behaviour) using the following clause: CONNECT BY [NOCYCLE] {condition [AND condition...]} [START WITH condition] As documented here: http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/queries003.htm I'm wondering, are there any other established RDBMS that support an equivalent or similar syntax? Or can recursive behaviour like this be generically simulated using regular SQL? A good example

LinSched source for 2.6.35 kernel

偶尔善良 提交于 2019-11-28 02:21:16
问题 I have been trying to obtain the source for the version of LinSched (user space simulator for the CFS scheduler) for kernel 2.6.35 but I am not able to find it anywhere. This is the original git repo of LinSched for 2.6.32, which mentions that this version is deprecated and I should refer to here. Unfortunately, this link is broken. I also tried cloning the repo mentioned here, but git clone git://google3-2.osuosl.org/linsched/2.6.35.git throws an error: "fatal: Unable to look up google3-2

Interpreting assembly code [closed]

谁说我不能喝 提交于 2019-11-28 01:54:54
问题 Any assembly interpreters out there? What I'm looking for: I have some assembly firmware code I want to run, but not on the actual hardware. I would like to run the code and see what it is doing. So, is there some sort of free and easy to use assembly simulator out there? Any other pointers you can think of? 回答1: You should look into some processor emulator only that way you can "interpret" assembly, for example: Qemu or Bochs 回答2: In order to run assembly code that is designed for a