I am beginner in python and Flutter (4 months that i actually code) self-taught . There is a lot of information and I am facing a problem. I don't know how to go about it.
I am building a dictionary app in Flutter. I extracted all the words and definitions from the French Wiktionary with Scrapy and I processed all the data with pyspark. All data was inserted into an ObjectBox database with python and which has a final size of 460 mb for 355,000 elements. I compressed it with Brotli and its final size is 65 mb. So I end up with a compress mdb file. And now I'm stuck.
I thought of extracting the database to read it live with ObjectBox in Flutter but it does not read the mdb files directly and it gets complicated, I can't find any documentation on the subject. Moreover I tell myself that if the live extraction is not done on the internal memory, it will reserve ram? (If I understood correctly) This will not lead to a crash?
Or is it possible to extract it when installing the App so that objectBox can read it directly?
Or maybe I'm scratching my head over nothing. Directly read a Json but I'm afraid that the queries will be long because the word search is live for the user That this one writes a letter, my program must return me the words beginning with this one.
What would you do to maximize performance in the background ? Thanks for your help .
welcome on StackOverflow! :)
I think your question is a duplicate of this one:
How setup dart objectbox with a local database pre-populated?
as long as you refer to this NoSQL database by ObjectBox in both python and flutter and you're trying to use this package in the former and this in the latter.
Is that the case? Does the answer on the other question help you? If not, can you pls. elaborate what's missing/failing?
In general if you add a few links/references + narrow down the number of things/topics you ask might help (you can ask follow-up questions in comments later on answers or just post a new question if you still need infos). Not that I'm a pro here, could just make it easier for others to answer IMHO.
Related
I am a what you could call an aspiring game dev. Recently I've been experimenting with making smaller games using python and giving them to others in an executable format so that they can play. I've recently made a game that holds high scores, leaderboard info and such in a local JSON file. I moved this file to an online bin so that it could be accessed by multiple people. The problem I'm having is that I don't know how to properly hide or make unreadable the key that is in my code. Thanks for any help.
I tried looking up the problem on different platforms, and yes stack overflow ofc, but I was unsuccessful
So, to be even more specific. I am making a program that contains a database of cars (models, years, horsepower, etc). Of course every time i compile, obviously, the contents are reseted and the vector is empty. Is there any way to save the contents of the vector within the program without the involvements of saving it to a text file? Sorry for the stupidity of this question...I am a noob.
I am assuming that you are working in c++, so you can use MySQL Connector/C++ to save your vector data in MySQL rows for this refer to : MySQL Connector/C++ 8.0 Developer Guide or mysql-connector-cpp but this will not be simple to implement.
Else, you can save it in csv or text file and then use python scripting which will be very easy to implement. MySQL Connector/Python or Python MySQL
Also if you are comfortable with shell scripts you can automate it all, and it will take care of all the storage stuffs.
Does anyone know where the Moodle multiple choice data is ? like the data of letter A , B , C etc.? because I really want to know where it stores. I hope someone can help me for the Thesis project making.
I think you are looking for (mdl)_qtype_multichoice_options.
You can find which database tables particular question (or even module) is using inside question subfolder, "db" folder.
See here for example: https://github.com/moodle/moodle/blob/master/question/type/multichoice/db/install.xml
EDIT:
My bad, mentioned table points to single, multichoice questions options, not real answers (if that is what you are looking for).
You are looking for (mdl)_question_answers (where mdl_question_anwsers.question points to mdl_question.id (and mdl_qtype_multichoice_options.questionid).
After studying the Moodle database for hours, the multiple choice data ,like a. Alpga, b. Bravo etc., are stored in the moodle.mdl_question_answers. Except for the essay type which has a different storage as well.
You didn't specify what exactly you're researching and which technology you're using, but you can easily extract some quiz data from Moodle with R, I use the moodler package. If you're connecting to the Moodle database from R, then give it a go. The author is quite responsive, so he may be able to accommodate your requests.
https://channel9.msdn.com/Events/useR-international-R-User-conferences/useR-International-R-User-2017-Conference/moodler-A-new-R-package-to-easily-fetch-data-from-Moodle
Intro
I have learn basic programming in the past at school (vb) so i understand the logic behind an application and the way it think.
I started this week to learn python because ... I would like to be able to build what i need without having to smash my head in the keyboard.
In the mean time i would like to resolve my problem and i'm asking to all of you in case someone have seen something somewhere.
I have try to search but not sure how to ask so respond was not relevant.
My Question
I know i can do this in excel but i'm looking for another way if possible.
Does someone knows if there existe an application online or on a mac that give me the ability to:
1- Import data from a csv file and add it in a database. So every day i will log 100 line of data.
2- After that i would like to manage condition related on data store in store in file 2 and 3.
3- That will generated a file 4 where i can see the only important case i have to take care for the day.
I imagine a little bit Access from microsoft but i don't remember if i was able to add parameter on the data i will visualise or condition.
What i'm trying to achieve
I have to process a lot of data manually right now and i'm trying to find a way to take out automatically the recurring problem from a list that i receive every day And there is no other way for me than build my own validation process.
Thank for your help. I'm new but i will try my best to bring something is this community (Python studies lv1, VB -15ans) . For now i'm building my startup And my expertise is more in technical skill on security products and technical support.
In case i'm not alone that would like to be able to do some basic thing like i was needed without having to program from scratch a database program i found those 2 solution yet:
https://www.zoho.com/creator/
and
http://www.ifreetools.com/
I currently am faced with a need to host 20 small video files for my website. I know I could just host them with my project in a folder but I came a crossed this article.
http://www.kindblad.com/2008/04/how-to-store-files-in-ms-sql-server.html
The thought of storing the file in the db had not occurred to me. My question is would there be a performance increase or decrease by storing the files as bit data in the db versus just streaming the data. I like the idea of having the data in the db for portability and having control and who gets access to the videos. Thanks in advance.
Unless you have a pressing need to store them in a database, I wouldn't, personally. You can still control who gets access to which files by using a handler to validate access to the file. One big problem that the method in that article has is that it doesn't support reading a byte range - so if someone wants to seek to the middle of a video, for example, they would have to wait for the whole thing to download. You'd want it to be able to support the range header, as described in this question.