Joined: Aug 2010
Posts: 86
Thanks:
0
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?
Joined: Jan 2007
Posts: 148
Thanks:
0
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.
Joined: Aug 2010
Posts: 86
Thanks:
0
Ony in anki, locally atm.
Joined: Aug 2010
Posts: 86
Thanks:
0
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.
Edited: 2012-01-05, 5:53 pm
Joined: Jan 2007
Posts: 148
Thanks:
0
Hi,
just a short note that the website for ankiwarrior is safe again. Sorry for the troubles...
Joined: Feb 2012
Posts: 3
Thanks:
0
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)
Joined: Jan 2007
Posts: 148
Thanks:
0
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
Joined: Feb 2012
Posts: 3
Thanks:
0
@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!
Joined: Feb 2012
Posts: 3
Thanks:
0
@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!
Joined: Feb 2012
Posts: 5
Thanks:
0
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)
Joined: Jan 2007
Posts: 148
Thanks:
0
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?
Joined: Jan 2007
Posts: 148
Thanks:
0
Hi,
please try to put this as the first line in aw_cities:
# -*- coding: utf-8 -*-
Joined: Feb 2012
Posts: 5
Thanks:
0
Also, is there anyway to put animated .GIF files in???
Edited: 2012-03-02, 3:41 am
Joined: Jan 2007
Posts: 148
Thanks:
0
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.
Joined: Feb 2012
Posts: 5
Thanks:
0
ok, thanks
edit: yeah, I just worked out how to do it. But, unfortunately, the animations don't work.
Edited: 2012-03-02, 12:01 pm
Joined: Jan 2012
Posts: 41
Thanks:
0
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!