jamhed / anki Goto Github PK
View Code? Open in Web Editor NEWAnki flashcard tools
Anki flashcard tools
Hi Jamhed,
I launched the anki sync script, everything seemed OK from the log, but nothing new appeared in my ankiweb account. So I created a Basic dock in Anki and relaunch the script. Now I get this error:
$ sudo docker run -it jamhed/anki bin/anki-sync.pl Basic en-fr
malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at lib/AnkiWeb.pm line 40.
Now I get this error even I delete the Basic dock.
Is there any specification about the fields of the target dock in AnkiWeb ?
Thanks you for your work.
Best regards,
Thibaud.
Hi Jamhed,
Thanks for your work, that's really excellent !
I don't understand well how to install the script. In Ubuntu, I did this:
sudo apt install cpanminus
sudo cpanm JSON DBI DBD::SQLite LWP::UserAgent LWP::Protocol::https
I created a config.json at the root of the anki folder.
I don't understand what to do with the docker. When I launch it now by sh docker/build.sh I get docker: not found
.
Have I to enter "sudo snap install docker " ?
Now, when I type:
./bin/google-phrasebook.pl > phrasebook.json
I get Can't locate Google.pm in @INC (you may need to install the Google module)
It appears that this module is in the lib folder, so I suppose that launching the docker was a prerequisit.
And, in the docker file, I see the parameter -t jamhed/anki
Have to replace it by -t /opt/anki
if I placed your script in the /opt folder ?
Best,
Thibaud.
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.