malcolmt / remember_me Goto Github PK
View Code? Open in Web Editor NEWCode for our 2010 Django Dash entry: an (primarily Asian) language vocabulary trainer.
License: Other
Code for our 2010 Django Dash entry: an (primarily Asian) language vocabulary trainer.
License: Other
We're using UserProfile.student as the name of the OneToOneField back to the User model. Django requires it to be called "user" (it's a slight bug in Django that validation doesn't pick that up).
Medium-term TODO. We don't really have a solid plan for the status page and what's there now doesn't scale very well (e.g. after you've worked on a couple of thousand characters).
Right now, you could potentially get 100% by reading the answer from the hidden field. A bit of symmetrical encryption will fix that (we avoided it for the Dash to cut down on third-party dependencies).
The way we collect the information for questions feels inefficient for large scale stuff. It seems like the generator should be able to work only with Word pk values and information from SessionProgress and Progress and the QuestionForm is responsible for fetching the data. That will make it easier to redisplay questions as well.
Since we're at 100% width, it looks a little cramped vertically. Makes sense to float the footer to the bottom of the screen.
The rough idea is: http://www.hardcode.nl/archives_139/article_244-jquery-sticky-footer
Clicking on the login link causes shifting in the toolbar links. Using an absolutely positioned div will be better there. We also need to add a border and float it up the z-order so it's clearly over the background.
When the question is a Chinese/Japanese character and the answers are English meanings, it would be good to display the character(s) much larger. Perhaps to the left side of the possible answers.
We need a similar, but perhaps slightly different, idea for English -> Ideogram questions.
The main problem is that complex characters are hard to read when they're tiny.
The Chinese levels are very large (only 4 levels for ~6600 characters). We need something like the number of strokes or usage frequency counts to create a sub-level ordering.
Creating an admin user in the initial syncdb triggers a call to create a UserProfile for the same user. Except UserProfile hasn't been installed yet (it's part of minerva's migration scripts). So we should check the content type table and not do anything if the that model isn't there yet.
A user doesn't necessarily have a language preference. We should display a way to select the language, but that's all, in that case.
There are a couple of links in the footer that go to FIXME pages. These need to be implemented.
It should be sufficient to just click on the answer, without needing to select an option and then hit submit. So some Javascript hijacking to hide the submit button, make each answer a block-level target area and submit on click should do the trick.
All links are always available (e.g. login link on create user page, or question link on question page). A couple of things might be usable as tabs. Other things need to be disabled or hidden when not appropriate.
Everything is still hard-coded to "zho", despite the UserProfile setting.
We should migrate UserProfile.language to be a ForeignKey to the Language model, for consistency. This involves changing all the code that refers to UserProfile.
For efficiency, it probably makes sense to make Language.code a primary key, however, this is fiddly with migrations, as the backwards migration will be difficult to write.
For people working on multiple languages, a link on each page to switch alternate language would be useful.
There are no tests at the moment for any of the minerva/ classes. We should fix that.
Running the migrations runs into problems with 0003_* in the minerva app. There's a duplicate key problem somewhere in the zho data.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.