kanji koohii FORUM
anki-resource.uk.to - 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: anki-resource.uk.to (/thread-4016.html)

Pages: 1 2


anki-resource.uk.to - bombpersons - 2009-09-17

I've been messing around with django and finally (sort of) got it working with my webserver (lighttpd). I have been working on a smart.fm like site that lets you add sentences, as well as media. You will be able to search, download a set of sentences as an anki deck, and be able to add all the sentences in your deck to the site with an anki plugin.

At the moment, you can add sentences (log in as user: test and password: test) and view them. If you get a 404 error, just remove the ankiResource.fcgi part of the url. I don't why it does that, I'll need to fix it, but for the moment, I just wanted to see what you guys thought of it. Also don't worry about how ugly the site looks, that part will come later Wink

http://anki-resource.uk.to/


If you are interested in helping, you can see the source here:
http://github.com/bombpersons/ankiResource


anki-resource.uk.to - mafried - 2009-09-17

You should fix that link by removing ankiResource.fcgi, as the url dispatcher is throwing a Http404.

You might also want to add a .gitignore file to your repository, with
Code:
*.pyc
database.db
to keep those pesky files from showing up in version control.


anki-resource.uk.to - bombpersons - 2009-09-17

mafried Wrote:You should fix that link by removing ankiResource.fcgi, as the url dispatcher is throwing a Http404.

You might also want to add a .gitignore file to your repository, with
Code:
*.pyc
database.db
to keep those pesky files from showing up in version control.
I'm using fast CGI, I think I need ankiResource.fcgi. I don't have it in any urls, so I have no idea why it's showing up...

I'm just getting the hang of using git, thanks for the tips =)


anki-resource.uk.to - mafried - 2009-09-17

Lol, yeah i meant remove it from the URLs of course.

Good luck with the project.


anki-resource.uk.to - pubbie2 - 2009-09-17

bombpersons Wrote:and be able to add all the sentences in your deck to the site with an anki plugin.
Wouldnt it be better to be able to add sentences From the site To an anki deck? I would be very interested in such a plugin. My python skills are non-existent, otherwise I would have modified the smartfm-importer plugin to use a user-specified XML URL.
I already have a site, sort of like the one you're building, up and running on a local server.


anki-resource.uk.to - karategirl09 - 2009-09-17

I've also recently started working on a website similar to this, also in Python. It uses CherryPy. I started it because I wanted a simple way of reviewing my sentences online and I don't really like smartfm. It's just running locally right now and so far I can only log in, add/delete sentences, and view them. I'd like to implement an SRS algorithm for it though.

Anyway good luck with the site.


anki-resource.uk.to - bombpersons - 2009-09-17

mafried Wrote:Lol, yeah i meant remove it from the URLs of course.

Good luck with the project.
Mmh.. The weird thing is, it isn't in the urls... I think it has something to do with the way I got lighttpd set up.

pubbie2 Wrote:Wouldnt it be better to be able to add sentences From the site To an anki deck? I would be very interested in such a plugin. My python skills are non-existent, otherwise I would have modified the smartfm-importer plugin to use a user-specified XML URL.
I already have a site, sort of like the one you're building, up and running on a local server.
Yes, there will be a web versions where you can download selected sentences as an anki deck, it wouldn't be too hard to write a plugin to do the same thing.

IceCream Wrote:i think its a brilliant idea! sorry i cant help, i have 0 programming skills.
pubbie, i guess the idea would be that we can make a huge database of sentences from natural sources that everyone can load up and down from...
Yes, that's the idea I'm using too. If you can auto import other peoples sentences from their decks, it would become massive source of native sentences =D

I'll post here whenever I add or change anything. If you have any ideas please say =D


anki-resource.uk.to - pubbie2 - 2009-09-17

Heres how my web-interface, aka pick0r, works:
showoffpick0r.avi

You'll notice it tar's the .txt file with the sentences and the related jpgs and mp3s.
I extract it and use ankis usual import on the .txt file and right-click->send-to->.media folder on the jpegs and mp3s to send them off to my decks .media directory. A plug-in would eliminate that part.

I use all my favorite subs2srs decks as source material, thats why I'm uninterested in what sentences other people have in their decks.


anki-resource.uk.to - bombpersons - 2009-09-17

pubbie2 Wrote:Heres how my web-interface, aka pick0r, works:
showoffpick0r.avi

You'll notice it tar's the .txt file with the sentences and the related jpgs and mp3s.
I extract it and use ankis usual import on the .txt file and right-click->send-to->.media folder on the jpegs and mp3s to send them off to my decks .media directory. A plug-in would eliminate that part.

I use all my favorite subs2srs decks as source material, thats why I'm uninterested in what sentences other people have in their decks.
Whoa, that looks awesome =D


anki-resource.uk.to - ruiner - 2009-09-17

Page not found.

Also: Template Syntax Error.


anki-resource.uk.to - pubbie2 - 2009-09-17

IceCream Wrote:pubbie: me too... but when i think of all the dramas there's scripts for but no timed subs, i think if there were sentences on a site like that from those dramas too, i'd definately search and use them. Especially whenever i don't have much time to make any, that would be great! and, if everyone contributes, there should end up with a wicked selection...
I have an idea for a "system" to help fix that problem. It came to me while I was timing My boss My hero by hand. I haven't started coding it as it requires a lot of preparation and thinking beforehand. It is very simple, in a way Smile thats all I'll say for now.


anki-resource.uk.to - bombpersons - 2009-09-17

ruiner Wrote:Page not found.

Also: Template Syntax Error.
Yeah, I know. Still trying to get django to work happily with lighttpd at the moment. I might have it working properly by tommorow.


anki-resource.uk.to - bombpersons - 2009-09-18

よーし、Got it working =D

It's still not much, but I got rid of the 404's. You can try registering, but there are still some bugs. If you can't register, you can still post sentences with a test user I created.

Login with
username: test
password: test


anki-resource.uk.to - HerrPetersen - 2009-09-18

Great idea! I will keep looking to see where it goes Smile


anki-resource.uk.to - bombpersons - 2009-09-18

Registration now definatly works =D


anki-resource.uk.to - bombpersons - 2009-09-19

I've been working on a anki import script and have had some success, now just need media support. You'll find quite a few new sentences at http://anki-resource.uk.to

Github link for the importer if anyone's interested.
http://github.com/bombpersons/ankiResourceImport


anki-resource.uk.to - MeNoSavvy - 2009-09-20

Good idea. Does anyone know of any good resources on how to manipulate anki decks programmatically?

It's interesting as well that people tend to use python for these kind of projects, and how popular python seems to be amongst the community of japanese learners. I know python to a certain extent, but I don't use it often enough to have built up any kind of expertise.


anki-resource.uk.to - bombpersons - 2009-09-20

MeNoSavvy Wrote:Good idea. Does anyone know of any good resources on how to manipulate anki decks programmatically?

It's interesting as well that people tend to use python for these kind of projects, and how popular python seems to be amongst the community of japanese learners. I know python to a certain extent, but I don't use it often enough to have built up any kind of expertise.
The reason I'm using python is because it's easy to manipulate anki decks. You can use libAnki directly to do it. There isn't any documentation but it's pretty easy to use if you read the source files. Example:

Code:
#To open a deck:

deck = anki.DeckStorage.deck(filename)

#To get an expired card from deck.

card = deck.getCard()

#To answer a card

card.answer(difficulty)

#Then save

deck.save()
It takes a bit of digging around to do more complicated things, but you can always ask Damien at anki google group =D


anki-resource.uk.to - bombpersons - 2009-09-20

Yay, we have media support. You'll see I've tested uploading most of my deck, and the media works =D

Now I think the website needs a search function, pagination, etc


anki-resource.uk.to - bombpersons - 2009-09-20

Added a simple search.


anki-resource.uk.to - zodiac - 2009-09-21

Looks like an awesome site! I use python but have not done any web programming before, hope to contribute someday.

Is it possible to implement tagging sentences to help with easier organizing, searching and the like?


anki-resource.uk.to - bombpersons - 2009-09-21

zodiac Wrote:Is it possible to implement tagging sentences to help with easier organizing, searching and the like?
Sentences do have tags, but I still need to read up more on how to implement it with search.

zodiac Wrote:Looks like an awesome site! I use python but have not done any web programming before, hope to contribute someday.
Take a look at http://www.djangoproject.com/ It's very easy to use and learn.
It feels great to be able to use python to make a website and not be restricted by ugly looking php =D


anki-resource.uk.to - zodiac - 2009-09-22

Other than the basic python-django, are you using any other packages?

Edit: Also, what version of django are you using?


anki-resource.uk.to - bombpersons - 2009-09-22

zodiac Wrote:Other than the basic python-django, are you using any other packages?

Edit: Also, what version of django are you using?
I'm using the latest version of django and django-haystack (for search)


anki-resource.uk.to - bombpersons - 2009-09-23

Does anyone know if there is an easy way to get video formats other than ogg working with the new <video> tags? Or is there a way to get it working with some flash players? It would be quite annoying if I had to call ffmpeg to convert to flv everytime media is uploaded =(