![]() |
|
AnkiWarrior - making Anki more addictive (plug-in) - Printable Version +- kanji koohii FORUM (http://forum.koohii.com) +-- Forum: Learning Japanese (http://forum.koohii.com/forum-4.html) +--- Forum: Learning resources (http://forum.koohii.com/forum-9.html) +--- Thread: AnkiWarrior - making Anki more addictive (plug-in) (/thread-6521.html) |
AnkiWarrior - making Anki more addictive (plug-in) - fleet street - 2012-01-05 My browser is Firefox. When I tried to submit my score this morning, I was told that http://ankiwarrior.hallojapan.de/score.php?user=??????????????? (I have removed my username from the link. If it matters, I am fleet street.) is a suspicious site, which could install malware on my computer. I asked why and was sent here: http://safebrowsing.clients.google.com/safebrowsing/diagnostic?client=Firefox&hl=en-GB&site=http://ankiwarrior.hallojapan.de/score.php?user=????????????????? (Once again, I have removed my username from the link) I didn't understand most of it, so you will have to go onto the link to check. If you do not trust my link, then please download Firefox and get to the link from there. They added that this might not be the webmaster's fault as a third party may have interfered with your website. I have used your website for months, if not years, so please note that I am not accusing you of anything. Thank you for listening to my problem. AnkiWarrior - making Anki more addictive (plug-in) - jonuhey - 2012-01-05 Today my score was reset to level 1. No idea what happened, but kinda meh... any way to fix it to at least the score I last updated in the site? AnkiWarrior - making Anki more addictive (plug-in) - Proxx - 2012-01-05 Fleet street, thanks a lot for the information. I just saw that all files on my server have been hacked today. I am really sorry about this. I've temporarily taken off the sites until I figure out the reason. Anybody knows how somebody can change all the html and php files on my server? An iframe has been added at the end of all sites... @jonuhey: You mean on the scoreboard or locally in Anki? If it was on the scoreboard it will probably be fixed once the sites are up again. AnkiWarrior - making Anki more addictive (plug-in) - jonuhey - 2012-01-05 Ony in anki, locally atm. AnkiWarrior - making Anki more addictive (plug-in) - Proxx - 2012-01-05 jonuhey Wrote:Ony in anki, locally atm.Hi, it should not happen that your level gets lost. Here is how you can fix it if you remember your rank: Open Anki and go to 'Settings / Plugins / Open Plugin folder'. Close Anki now (important!). In the anki plugin folder which opened, locate and edit ankiwarrior\aw_exp.txt. First line is the experience, second line (which is probably more important) is the level. Change it accordingly. Save the file and start anki again. Your level should now be as you've set it. AnkiWarrior - making Anki more addictive (plug-in) - jonuhey - 2012-01-05 Ok thanks, that helped ^^ Edit: Im not sure what happened, but it maybe happened because I had some HD issues the past few days, the old file might have corrupted or something... not really sure as I thought the partition with it wasnt affected, will check further later. AnkiWarrior - making Anki more addictive (plug-in) - Proxx - 2012-01-07 Hi, just a short note that the website for ankiwarrior is safe again. Sorry for the troubles... AnkiWarrior - making Anki more addictive (plug-in) - albopictus - 2012-02-15 Hi Proxx I have "a situation" for which a little modification of your great plugin would help a lot. This is the thing: I use Anki to teach Spanish to my two daughters (and Japanese to myself) Since I live abroad, I would like them to be able to catch up when we go back home and they have to study there. Now it just occurred to me that it would be great if I could tweak Ankiwarrior to display Spanish cities. This way, they would be learning geography too... And here's the question: how complicated would this be? Is it something as straightforward as substituting a list of Spanish cities and population with that of Japanese cities in your plug? I'm betting no, but still, it's worth asking... And how about the map, any chances it can be easily changed? If this could be done, it would in fact be a huge expansion of AW's scope, since it could be used by learners of any language (not that it can't now, but still...) Anyway, thank you for sharing your great work. Keep it up! (easy to say, huh) AnkiWarrior - making Anki more addictive (plug-in) - Proxx - 2012-02-15 Hi albopictus, it is quite easy to change the cities: Just go to the plugin directory of ankiwarrior and open the aw_cities.py in a text editor. There you will one line for each city, like this: 1 : (u"Kōnan", u"江南市", 100200, "http://ja.wikipedia.org/wiki/%E6%B1%9F%E5%8D%97%E5%B8%82"), where 1 is the level Kōnan is the city name 江南市 is the city name in Japanese 100200 is the population of the city and the last one is any link, in this case to the wikipedia site of the city. Just replace this information with the Spanish cities. you can remove all entries from 51 to 267, if you need only for example only 50 cities. Just make sure you'll have a continuous number range starting with 0. For the images, just replace the files in the ankiwarrior/img folder with whatever images you want. They can be gif, jpg, svg or png. Just make sure the name of the image equals the rank of the city. The image file for the above example (Konan) should there be something like 1.jpg or 1.png. To create new google maps images is unfortunately not that easy. I had a list of coordinates of all the Japanese cities and wrote a program to automatically generate the google maps images with it. I don't know if I still have that program somewhere, if it is still working and if I still know how to use it. I would therefore suggest you try to find some nice images :-) Let me know if you have any further questions or any problems with editing the above mentioned file. Proxx AnkiWarrior - making Anki more addictive (plug-in) - albopictus - 2012-02-15 @proxx Thank you so much for kind and fast reply. Yes, it is like you say; google maps is a nice extension but probably doesn't justify the effort, since one can very well do with images. I will keep you posted and send you the new text/images if and when I get round to doing it. Again, I appreciate your disinterested sharing! AnkiWarrior - making Anki more addictive (plug-in) - albopictus - 2012-02-15 @proxx Oh, and by the by: I don't know if you checked it or it's a coincidence but yes, there are exactly 50 regional capitals in Spain! AnkiWarrior - making Anki more addictive (plug-in) - ouboros - 2012-02-28 I tried to edit both Anki Warrior and Nanpanki, but they both just crash. Changing images and sound files is fine. But if I try to change names, or the number of points needed to move up a level, they crash on load. I tried changing the names in : aw_cities.py and girls.py Is that the wrong place??? (Using a Mac btw, if that makes any difference) AnkiWarrior - making Anki more addictive (plug-in) - Proxx - 2012-02-28 albopictus: I didn't know, I just used the first reasonable number which came into my mind ;-) ouboros: Can you post the error message? aw_cities.py is using UTF-8 without BOM charset, maybe your editor is saving them in some other charset? AnkiWarrior - making Anki more addictive (plug-in) - ouboros - 2012-02-29 I edited it in TextEdit. I saved it as unicode-8. Below is the error message. It has a link to the python site. I read the page twice, but still don't understand what I'm supposed to do. An error occurred in a plugin. Please contact the plugin author. Please do not file a bug report with Anki. Traceback (most recent call last): File "ankiqt/ui/main.pyc", line 2472, in loadPlugins File "/Users/deni/Library/Application Support/Anki/plugins/AnkiWarrior.py", line 11, in File "/Users/deni/Library/Application Support/Anki/plugins/ankiwarrior/aw_cities.py", line 2 SyntaxError: Non-ASCII character '\xe3' in file /Users/deni/Library/Application Support/Anki/plugins/ankiwarrior/aw_cities.py on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (aw_cities.py, line 2) AnkiWarrior - making Anki more addictive (plug-in) - Proxx - 2012-02-29 Hi, please try to put this as the first line in aw_cities: # -*- coding: utf-8 -*- AnkiWarrior - making Anki more addictive (plug-in) - ouboros - 2012-03-01 Proxx Wrote:Hi,That worked great, thanks. ^-^ AnkiWarrior - making Anki more addictive (plug-in) - ouboros - 2012-03-02 Also, is there anyway to put animated .GIF files in??? AnkiWarrior - making Anki more addictive (plug-in) - Proxx - 2012-03-02 I have actually never tried. Gif should work. If they would be animated or not I don't know. If not, it depends somewhat on python and there nothing I can do, sorry. AnkiWarrior - making Anki more addictive (plug-in) - ouboros - 2012-03-02 ok, thanks edit: yeah, I just worked out how to do it. But, unfortunately, the animations don't work. AnkiWarrior - making Anki more addictive (plug-in) - kaamaru - 2012-04-17 Love this plugin! Anyway I can backup this plugin's scores? When I restored my mac to an earlier backup it also pushed me down a level on AnkiWarrior. Thanks! AnkiWarrior - making Anki more addictive (plug-in) - Proxx - 2012-04-17 kaamaru Wrote:Love this plugin! Anyway I can backup this plugin's scores? When I restored my mac to an earlier backup it also pushed me down a level on AnkiWarriorYes, you can just backup the ankiwarrior folder located inside the anki plugin folder. (Settings / Plugins / Open plugin folder) |