So I play trivia games a lot with my family, and I always lose!! I always know the answers, but I can never seem to type in the answers fast enough, so I came up with the idea to make a computer program to play for me! I'm super new to coding, so I'm not sure how to begin. But my best guess would be to screenshot the computer screen, isolate the question from the rest of the data, run that question through a database of questions/answers I've been building, getting the answer, finding the answer on the screen and clicking it(if its a multiple choice question), or typing the question into an input field. My main issue is I have no idea how to do any of that, or if it's even possible. Any suggestions on where I can look to learn how to do this?
Well I'm not too sure on how this can be done but here is an idea.
Try using python3 with selenium (many tutorials on google) to try and get the question text.
If you want you can also use SQL as database query language.
If the questions are already in your database and you have the answer in the same row as the question in the database, you can make a query selection to get the answer and the python3 with selenium program can input the answer text into an input field.
Alternatively you could use BeautifulSoup4 in python3 and then copy+paste the answer into the input field yourself.
Related
Hello to the whole community,
After a day of reflection, I managed to understand my mistakes, only one remains for the moment.
I am asked to put (SonataAdminBundleAdminAdminInterface) in my admin contacts here but unfortunately, it doesn't work and I don't understand where the error comes from.
Have you already had this problem?
May be stupid question. I created HSPIPluginB1 project from template, it compiles, runs and connects to HS.
But I've got no idea what to do next? How do I create devices, triggers, etc?
Great question. HSPIPluginB is described here. There's some help in the forum thread linked therein, but, for the most part, that HSPI template doesn't do much more to help. Your best bet, for now, is to hunt through the HS developer forum and documentation (https://homeseer.com/developer-support/). Honestly, it's pretty difficult to write a HomeSeer plugin as is, but that's not the fault of the HSPI project.
Fortunately, I'm working on HSPIPluginC. It's significantly easier to understand, but it's not finished. You can get a glimpse of where I'm going with it by checking out https://github.com/alexdresko/HSPI/issues/77#issuecomment-322885054. If anything, there's probably some useful code in there to help you move forward.
If you have any ideas for how HSPI can be made better, please Create an issue or start up a conversation in the chat room
I am trying to create a program that will have a form to add users with multiple information (first/last name,tel,vat,email etc.) and store them in a database.
Then I want to have a standard form and will choose from the database the user each time I want to print the form. This way when the user is chosen all fields will be filled with the info from the database.
I have no clue with VB at all so all I ask here is for some guidance.
Can someone point me in the right direction?
Sounds like you need to learn .NET first, so head over the Microsoft Virtual Academy and wade through VB Fundamentals for Absolute Beginners.
If you are interested in making a user website, then this Microsoft tutorial is a good place to start. It shows how to create a Movie database with maintenance screens. You should be able to adapt it to "users".
You can also search the MSDN Developer Code Samples.
Happy coding.
P.S. Stack Overflow is for specific technical questions, not general inquiries. That's why your question is getting down-voted.
I am pretty new in this game so please do not judge me harshly.
So I need to build a question/answer database for an app.
The idea is simple:
User types a question and if I have an answer in my database, it gives an answer. If I do not have an answer, it goes for my manual moderation, so I can add new answers for the future.
I do not know if someone has already build a software like this and I can just buy one, or do I have to hire someone to build one from the ground. Which language should I use? Which software?
I know that Java, C++ and SQL are most popular languages for that type of jobs, but are they the best solution or there are better languages?
I need a database that can hold a really huge amount of data.
I would really appreciate any help guys!
and if any of you can build me this database, I do not mind to hire a freelancer.
Thank you!
Best Regards,
Ayazhan.
Yes you can do it.
if you have some knowledge in SQl then you can make an local Db in your app and consume it according to requirement. The simple question and answer app contains set of predefined questions.
The above link will help you to develop this app.
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 5 years ago.
Improve this question
Before I start: I know this is a very broad question, but it is the best way I could phrase it, I have searched around a lot and can only seem to find generic explanations. I searched SO and didn't find much. I have also skimmed through some pages in the wordpress codex, and didn't find anything really useful.
I would like to create a simple database driven blog-style website, it will really only consist of stories (their title, date, content, etc), I just began teaching myself web development and my idea of how database driven websites work has proven to be completely wrong. I figured you would always need a file connecting to the database for each article, but the more I read I learn about mark up being generated on request, and so on, so the actual /year/month/day/article doesn't actually have to exist on the server, or that may be wrong, that is why I am here.
As I said I cannot find much on this topic that isn't a generic graphic of a server interacting with a web page. How does one go about creating a database driven website of this style? Are the files/directories not actually on the server but only created on a case by case basis as someone requests it? If so, then why can you type out a complete url and it be there with out throwing a 404? I have a lot of questions, really all I need is a strong explanation of how these sites work, code examples, and so on. Could someone explain how they work or point me to information (recommended articles, examples or books)?
EDIT: Please don't recommend a framework, I want to understand how these sites work and build one myself.
It's actually quite simple. Wordpress's index page calls wp-blog-header.php. That file calls for other files, and those files call for other files. It goes on for some time until all the contents of the page are actually loaded.
The databases come in when you start thinking about having users. Obviously the user information is stored in the database. Beyond that, Wordpress keeps post titles, dates, and other information in the database for easy loading later on.
Comments are also stored in the database. Each comment is associated with a number, and in the database, just like the posts, the dates/times as well as the usernames associated with the comments are kept.
Further exploration in the actual Wordpress files will reveal a lot of interesting features.
You might want to check out Django. It is an open source Python web framework that provides a lot of the functionality you are talking about. It also has a lot of very good high-level documentation with even a free e-book. It is centered a bit more on newspaper type sites than blogging, but most of the same principles apply. If you are new to python and like to use IDEs I would recommend checking out PyCharm. It has tight Django integration and makes for simple project setup and debugging.
Generally speaking, you'll use a framework that will take input parameters (year/month/day/article), run some code to fetch data from the database, and dynamically create the webpage. There isn't an actual .html file sitting on the webserver. One of the most popular frameworks to do websites like you're describing is Ruby on Rails, which makes it incredibly simple to do.