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
Related
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.
I am a C++ teacher and I have a couple of students. I have my student do alot of programs that require I/O but I would hate having them download the files. Is there a way I can put the files online and they just access it from their computers by passing the address of the file on some public online file server to the program?
If I get you right, you want to provide program code in an online text editor, and not as a file download.
As this was (erroneously?) tagged "accessibility", I'll answer the question from the screen reader accessibility perspective.
Unfortunately, there are no known fully accessible online code editors these days. All of them use some techniques that prevent screen readers from reading the code when your user navigates it with his/her keyboard and namely arrow keys. This is actually a huge problem of many online courses.
So what I suggest you to do is to make a repository on Github (or on Gitlab, if you want a free and private repo) and teach your students to work with Git from the very beginning, this will be very helpful in their future developers life. Avoid Bitbucket since these days (June 2017) it seems very far from being accessible to screen reader users.
I have a website and its mobile version (m.mydomainname.com), the problem is that Im in a bit of a dilemma with the mobile website. t has dependencies files like the javascripts, phps, etc. Im not sure if I should get these files from the main domain website or from their own folder. I do know that it would be easier to update them if they are only located in one folder, but I dont know if it will be reducing its speed or not. So the question basically is will it reduce its speed or not?
I see no reasons (apart from some very esoteric ones) why putting static files in different folders should affect the speed of access, hence I'd say the answer to your question is almost certainly no.
However, you can always simply try both options and measure the difference in throughput. If you find any, I'd be interested to hear about it.
I started looking at card.io as part of a Android application that should to be able to scan a card and recognise the card number, date of expiration, card holder.
After digging for a while, I got to the card.io-dmz/models/generated folder where I see files that, according to a comment in their beginning, were "Autogenerated from models/conv/...".
However I was not able to find details about the files used to generate these "models". After checking the code, I assume that these generated files are directly responsible with the OCR of the numbers from cards.
To provide an example, the following card is scanned and recognised just fine (numbers only)
but the following card fails
I tried adjusting the ROI before the vertical segmentation is done, but I think the differences between the font used on the 2 cards makes it impossible to scan the second card.
My question really is, given the current open source projects from git hub, are there any chances for someone to add the capability of scanning cards similar as the black one above, or this would require to have access to other resources used to perform the actual OCR?
Dave from card.io here.
#Adrian your conclusions are all correct.
While we'd love to extend our deep-learning character-recognition models to cover newer style cards, such as your second card above, it's a big task.
Quite a few new-style cards (~100) would be required both to update the code that locates the card number in the first place, and then to train new character-recognition models.
At the moment, this isn't something that lends itself well to open sourcing. People tend to not want to share images of their credit cards, for some reason.
We have given some thought toward creating an open-source app that could be used to collect some portions of card images (e.g., all digit positions, plus actual images of just a few of the digits, plus an image of the expiration date). Then perhaps we could crowd-source a usefully large collection of information. And while that collection is being built, we could work on open-sourcing the many in-house tools we have created for working with computer vision and deep learning.
Would such a project be something you might participate in?
I have this kind of problem. I have created a web application and I am going to run it on a dedicated server. Users will be able to upload photos and other kind of files. If the users increase I add another server.
So they become two like in the picture below. Now since the files are being uploaded to my applications root folder, I think the new server won't be able to read those files. How can I accomplish to store files in a way that whatever server a user will be connecting to he will be able to retrieve the file. How are the cheaper computers (small ones in the ring) connected so that they store files like one big drive with one giant folder such that whenever I want to increase storage I just add another cheap computer to the ring. What do I need to search for in the web?
please pardon me for my poor English. I had asked a similar question before but nobody answered so I thought the photo might help. I am willing to learn anything new to solve this problem. my other earlier question