Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Does anyone have experience programming voice recognition in C++ (Windows and/or Mac) for a limited number of commands aiming for SPEED? Is it realistic at this point to achieve recognition of the command from the first syllable - ie, command is recognized by the time user gets to second syllable at reasonably fast speaking tempo? All commands would be programmed to start with a different syllable, if necessary, a radically different one (like, "oo", "xy", "fay" - only some 30 commands would be required).
Similar questions have been asked, but this is a fast moving field. Would the best idea be to look for open source libraries or to interface with compiled implementations?
I'm working professionally in this field, and I seriously doubt whether it is possible at all. C++ isn't the problem, the question is whether a computer allows it. The error rate on small sound clips is large, it's the Hidden Markov Model that fixes recognition. But in your case you simply can't feed it enough data.
Not that humans can do it either. Speech processing isn't as instant as your brain makes you believe.
You can do this with CMUSphinx with Pocketsphinx decoder.
The partial hypothesis of decoding is avaiable during the recognition process and you can usually get a first syllable as soon as it is uttered. If you give it 0.1s to stabilize (not visible for the user), you will get an accurate results on a command set.
There are even tools build on the top of CMUSphinx specifically designed for realtime control, for example in games, you can check InProTK and their demonstrations.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I was wondering what kind of front end is used for trading applications. Coming from a quant background, I was always only concerned with research and back end of the application but am at a total loss when it comes to front end/ gui. Most of my coding has been done in c++ and I am using just a config file to pass parameters.
Now it turns out due to regulatory reasons, this might not suffice. I need to have a front end which can start/ stop the strategy, change parameters and fetch order and trade history. So question boils down to this, How can I create a simple ui which can sit on another machine, communicate with the colocated machine and do all this.
Initially I thought of using web/javascript but not much is out there regarding this. Qt is another option but I suspect it will require substantial rewrite of the code and learning.
What is the preferred front end for medium to high frequency trading applications which have the core strategy running in c++?
Coming from the industry, I can tell you with certainty: Anything goes. I have worked on trading application frontends using MFC, QT, Forms, WPF. Java is quite popular too, as are homegrown abominations. One non-obvious way to communicate with the colocated machine is Citrix or Remote Desktop.
You do need to make sure that you have well defined behavior in case the client crashes, server crashes, connection between them freezes/gets lost, connection to the market gets lost, connection comes back, etc. Tell the trader how it will react in these situations, in advance. If it doesn't make sense, the trader won't use your application.
Further details depend on many variables. Are you an ISV, or is it an in-house application? Are you working in an arcade? Which markets are you connecting to? Does your hosted co-lo environment have some special rules in regards to what can run there?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there any image manipulation (jpg, png or bmp I dont care) library for MS-DOS wich works under DosBox for Android with Turbo-C++?
I want to do a small old-school game and right now this is the only setup I've got to program as my laptop is screwed and Im not going to buy another anytime soom.
The thing is that the Turbo-C++'s graphic manipulation library is enough to do some kinda-decent user interfaces, but I need to use sprites (drawing circles and rectangles is not exactly what I need).
Is there any library? I know MS-DOS is kinda dead, but you gotta use what you have IMO.
And if no, what could I do to display images on screen?, I guess setting the pixels one by one loaded from a bmp could work but seems pretty inefficient and tedious to do.
Any ideas?,
Thanks.
Allegro is the best general-purpose games & graphics library I know of for DOS. It won't work with Turbo, but it will work with DJGPP, which is free (it's a build of GCC and related tools for DOS). If you use DJGPP with RHIDE, development feels a lot like Turbo.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have a graph of the dependencies of all tasks, and the costs of each task. Now I want to calculate a scheduling for a given amount of CPUs. I've found many papers on scheduling algorithms, optimal schedulers seem to be too expensive for my problem size (around 100 nodes) as it's an NP-hard problem. I'd settle for a heuristic, preferably one that has a bound how close it gets to the optimum. My problem now is: do I really have to code it myself?? This should have been solved many times before, it can be easily applied to project management, maybe there something exists?
If you happen to know a library in python that'd be perfect or the next best thing would be C++, otherwise i'd settle for anything else.
This is a pretty common problem. It also shows up in hardware design.
There has been a lot of work on algorithms to solve it.
If you are going to write something yourself, start by checking out "Hu's Algorithm".
If you just want a solution, these functions are built into architectural synthesis programs.
Look at the Wikipedia pages on high level synthesis and logic synthesis.
There are several professional tools that can handle this, if you can get access to them through school or work.
There are university programs you can often get for free that can also handle this problem.
I'm not up-to-date on what is currently available. An very old one is MIS II from Berkeley. It's scripting language was Tcl, not Python.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm studying physics and I know C++ at a basic level. at my study it's sometimes really useful to create a program which can graphicly represent some data or do calculations and then graphicly represent them. I read that, for example, to be able to master the basics of openGL I would need to do a 10 week long course of openGL. But that is too much time.
I'm wondering if there are any libraries available (for windows) which allow me to do some easy stuff like:
-DrawPixel(x,y,color)
-DrawCircle/Line/Shape/Polygon([list of points])/Triangle/Square (+rotation)
-DrawImage(filename,width,height,etc...)
-DrawText()
Is there any library which has this easyness? It would be really cool because if I do something (create a program) and I need to explain my team (who have never programmed) how I have done it (the program / results), this would make it much easier to explain!
I looked at SDL, HGE, OpenFrameworks (somewhat the "closest" yet still far away) and a few other popular libraries but they are all so far away.. why is there no such easy library?
Are there any available which are just not being found with the keywords i search in google?
I would suggest that you take a look at cinder. Try out the Hello Cinder tutorial. I think you will find it supports your needs by providing an abstraction layer above DirectX or OpenGL.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Does anyone know a good resource or some pointers which could help me make a side scrolling tile based (descreet movement for character) with box pushing and moving platforms etc. I'm focused right now C/C++ console development (tho after this project I may stop and do stuff a little more graphical, still C/C++). Something bit like Super Serib Bros. I've taken a look at the code of SSB and I have some idea of how it works, tho the variable names aren't particularly helpful.
It occurs to me someone somewhere must have thought about his problem before. So before I go re-inventing the wheel, any clues?
You'd probably be best signing in one of the better known game development groups, for example GameDev or DevMaster as well as checking out the stuff Microsoft pushes.
I'm not sure how many resources you will find for making games, as most open source games develop their own tools and commercial games keep their tools private.
I think that the best strategy is to start from scratch, using existing low-level libraries.
For C++, I recommend using Box2d for physics and HGE for graphics. I have also heard that python's pygame library is good, but have not tried it myself.
I use a an editor/engine called RPG Maker for fun in my spare time. You can download the demo for free. It is a tile based rpg engine and is pretty basic, but the engine is written in ruby and can be browsed very easily.