I have an online assessment platform, and I am trying to auto-grade math questions. The student will enter the question through our MathQuill interface that is working nicely. (for both desktop and tablets)
However, I am running into issues figuring out how to "evaluate" MathQuill or MathJax server side. And I want to do this because lets say the correct answer is 1/2, but the student can enter 2/4, 3/6, 4/8, etc... And all those answers will evaluate to the correct answer.
Does anyone know of a way to do this server side? Is there a service(API) that I can call that will help me with this?
Finally, I hope this is the right place to ask this question.
Thanks.
There really aren't any easy answers.
Some things people do:
Desmos wrote a custom LaTeX parser and evaluator
SwiftCalcs wrote a custom LaTeX parser to convert to the string format expected by the Giac computer algebra system, which they to JS with Emscripten
This MathQuill community member has been trying to use the Wolfram|Alpha API
in the past, I've massaged the .text() output from MathQuill into something usable by SymPy or Math.js
Related
I'm looking to create this project in processing, however, I'm finding the terminology a bit hard. I'm not sure how to call the effect where the line is staying permanently throughout the song to 'draw' the music data.
I would appreciate any guidance on what tutorials I could look at or an answer from someone.
My aim is to create something as close to this as possible:
https://www.youtube.com/watch?v=Bb5PTitqtlc&t=58s
Stack Overflow isn't really designed for general "how do I do this" type questions. It's for specific "I tried X, expected Y, but got Z instead" type questions. But I'll try to help in a general sense:
You need to break your problem down into smaller pieces and then take those pieces on one at a time. Write down exactly what you want to happen, in English, and that will be an algorithm that you can think about implementing with code.
Get something simple working. Can you write a simple sketch that plays a song? Then work your way forward in small steps. Can you write a simple sketch that prints out some numeric values based on the song that's playing? Separately from that, can you create a very simple visualization using hard-coded numbers? Get all of that working separately before you think about combining them into a sketch that shows a visualization based on a song that's playing.
Then if you get stuck, you can post a more specific question along with a MCVE. Good luck.
I am thinking about making an app to do with electrical equipment and I would like the app to recognise the name of tools as you write to save you time (predictive text). How would I go about creating a custom list of words the app recognises. Can anyone please point me in the right direction. I have looked around and not found much information on the subject. I am currently using objective c although learning swift so any of those languages will do. Many thanks.
What you want is not predictive text but rather autocomplete.
See this post, there's an answer by Jano with a link to code that seems to do what you need.
I want to create a 2D sprite that mimic the provided image:
http://a4.mzstatic.com/us/r1000/069/Purple2/v4/e6/0d/73/e60d73a8-6d78-64c2-dd59-9aabb54c7837/mzl.ujapwanw.320x480-75.jpg
and create different face expressions as provided sprites to unity3d in order to create an android application has multiple face expressions with those sprites... so my question... is what exactly the software I might use through out this process ??
Please, let me know the simplest step-by-step procedures, as I am in my first steps in computer graphics.
Thanks a lot.
Image manipulation is what you are looking for. To modify the current image you have and generate other facial expressions from it, you need to be very good at math. Image manipulation is not a basic stuff and I hope you are not new to programming.
Now that you understand that, you need OpenCV to be able to do this. You need to make a wrapper for it in c#. You can get the already made wrapper [here].1 https://www.assetstore.unity3d.com/en/#!/content/21088 .It works on Windows,Mac, Android and iOS and will save you time. Its NOT free but the price is worth it compare to the time you will spend building the wrappers for all platforms.
Once you get this, you can start learning OpenCV from the following link.
http://docs.opencv.org/doc/tutorials/tutorials.html
http://opencv-srf.blogspot.com/
http://shervinemami.info/openCV.html
http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/opencv-intro.html
If you the Unity plugin I mentioned, you can ask the author of the plugin to help you out if you are tuck.
I was doing an app that reads qrcodes, and I was wondering how can I avoid that anyone with a qrcode generator could clone one of my qrcode.
I know I can't avoid the duplication (especially if you use a small number) but I was wondering if there is any approach I could use to reduce this or add an app validation to avoid this.
Thanks in advance
Either use a one-time-use id where the first person to access your URL wins, or just accept it as free advertising. If you really wanted to go to the trouble I guess you could probably print a watermark that obscures the code so it is unreadable, somewhat like the security features most checks have, but this really sounds like an XY problem.
Think about the problem you're really trying to solve and how so solve it. QR codes themselves are just as reproducible as emailing someone a link or giving someone a piece of paper with a word on it.
I am new to processing, i found it by searching for "draw with coding" , and i tried it, seems every time i modify the code, i have to stop and render again to get the final result
Is there any way to get updated graph without re-rendering? that can be much more convenient for creating simple figures.
if not, is there any alternative to processing that can draw a graph with coding?
I've used Tikz in Latex, but that is just for Latex, I want something that can let me draw a figure by coding, I've suffered enough though using software like coreldraw, it lacks the fundamental elegance of coding..
thanks alot!
Please have a look at the FluidForms libraries.
easy to setup
documentation and video tutorials
as long as you don't run into exceptions, live code comfortably
if you prefix public variables with param you also get sliders for free :)
Do check out the video tutorials, especially this one:
Also, if using Python isn't a problem I recommend having a look at:
NodeBox
Field
Python is a brilliant scripting language - which makes prototyping/'live coding' easy(although it can be compiled and it also plays nicely with c/c++) and is easy to pick up and a joy to use.
In Processing, you must re-run your program to see the changes (graphically), unless you write code to receive input from the user to dynamically adjust what you are drawing. For creating user interfaces there's for example the controlP5 library (http://www.sojamo.de/libraries/controlP5/).
It doesn't support "live coding" (at least that I know of).
You must re-run the code to see the new result.
If Live coding is what you're looking for, check out Fluxus (http://www.pawfal.org/fluxus/) or Impromptu (http://en.wikipedia.org/wiki/Impromptu_(programming_environment)