Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to create a question and answer generator based on countries for example, if I put the question, what is the capital of England? I want it to automatically generate the answer London. Is it easy to do this in PHP or any other language?
I wouldn't say "easy" but it's do-able, and very time consuming. It's not something you could whip up in a matter of hours.
You have to account for mis-spelling, question format etc. and just pull answers from a database based on what you get. But it depends on how far you want it to go.
To make it intelligently generate the answers, that's another story, as IMSoP said, but you could take "What is the capital of England?" with a form, look for "capital" and "england" and then look in the database for what to return when that is asked, and output it that way. If it's just a few basic questions about countries then yeah, that's easy, and it will take a few hours to write, but a proper Q&A application is not something that is easy, or quick.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am building an examination system. I was wondering, could I take random photos of the person taking the exam in random intervals? The students will be required to allow the site to use the camera for them to access the question. The system will then take random photos in random intervals. I want to use PHP or anyone with an idea how I can go about it?
Javascript is more suited for that kind of task. Check out this API for more informations ΒΈ
Edit, You should take in consideration that not alot of browsers allows it. it seams to be more accepted in mobile browser.
Hopes it helps !
Nic
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm using Parse.com for my back-end, and in my table I have column named geopoint whose time type is GeoPoint. In another table I have the same. So I need to calculate distance between those two geopoints. Is there way to do that with parse? Or you can provide another solution. I'm using PHP
Without any code snippets it would be hard to give you the answer. I can point you in the right direction though.
As you are only using 2 points I assume you want Euclidean distance. (Straight line or 'as the crow flies')?
Wolfram has an excellent page on this here: http://mathworld.wolfram.com/Distance.html
It is (slightly) simplified here too: http://www.cut-the-knot.org/pythagoras/DistanceFormula.shtml
If you are still having trouble then post code snippets. Ideally something where you are already accessing these objects.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm trying to make a dynamic timeline like facebook that can post pictures and descriptions with dates using mysql php for database. I put bootstrap because I like their design, and it's easy to use.
My problem is i don't know where to begin or where do I study it.
Here's an example of what I'm talking about:
Any suggestions?
What a generic question... this seems to me an impossible question to answer but maybe you need just some little advices to begin studying the right languages which you can use to achieve what you want.
First of all please provide an image of what you want to do and more important the fundamental languages that you have to know are HTML (obviously), CSS, Javascript and PHP for some server side script.
Talking specifically about your problem, here is where you can see some open examples with well commented code that allows you to understand everything.
http://www.jqueryrain.com/2015/05/ideabox-jquery-timeline-news-ticker/
http://www.jqueryrain.com/2014/11/vertical-timeline-css3-jquery/
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
You find a lot of info on this online. But not what the exact work around of the use of Algorithm is in MySQL. The real basics, if you will..
What a query is, is obvious, of course. What Algorithm does, remains unclear.
Main reason for this question is: to improve profiling & matching records to known users. (In this case: to match docs in a database to users that need them)
Some examples of the usage of it are highly appreciated!
Algorithm is a keyword used with create view in MySQL. The documentation does a pretty good job of explaining it.
The short answer is that MySQL supports two methods of handling views: either "merging" the view definition in the calling code or creating a temporary table. The first is called MERGE and the second TEMPTABLE. In general, MERGE is faster, but most views are TEMPTABLE because of the restrictions on `MERGE.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Hello Stackoverflow Family, I'm trying to create a small quiz application for my website. I've created true/false and points questionnaire but the one I'm stuck with is something like this.
What is the logic of these types of quizzes?
I use php and jquery.
Basically start with a question, say:
do you have four legs?
If they answer yes, you've got an end point, dog. ask:
are you a dog?
If the answer is no. ask for a question which shows the difference between a dog and their answer, also what their answer is. so next time someone isn't a dog, ask them that question.
What are you?
a cat
Suggest a question to separate a cat from a dog?
"do you go miow?"
basically build up a tree of data, each question points to either a question on the 'yes' or 'no' action. or an end point, which is either "are you this?" or "so what are you?"
in theory, and it's not perfect, but it's pretty good, this will guide a user to the answer they're seeking if it's been put in before.
that's the logic, but I don't use PHP, so you'll have to work out how to implement it yourself.