- 🌱 I’m currently learning idk)
mmmartt / hust-courses-to-ics Goto Github PK
View Code? Open in Web Editor NEWGet Courses From Hub(HUST)
Get Courses From Hub(HUST)
npm start
运行后会报错,并会产生一个eng.traineddata
文件
➜ hust-courses-to-ics git:(master) ✗ npm start
> [email protected] start /Users/kyle/Developer/hust-courses-to-ics
> babel-node src/index.js
==== node-hustpass ====
logging in...
==== node-hustpass ====
Error opening data file ./eng.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
Failed loading language 'eng'
Tesseract couldn't load any languages!
AdaptedTemplates != nullptr:Error:Assert failed:in file /workspace/tesseract/src/classify/adaptmatch.cpp, line 196
undefined
undefined
/Users/kyle/Developer/hust-courses-to-ics/node_modules/tesseract.js/src/createWorker.js:173
throw Error(data);
^
Error: RuntimeError: abort(undefined). Build with -s ASSERTIONS=1 for more info.
at ChildProcess.<anonymous> (/Users/kyle/Developer/hust-courses-to-ics/node_modules/tesseract.js/src/createWorker.js:173:15)
at ChildProcess.emit (events.js:315:20)
at ChildProcess.EventEmitter.emit (domain.js:485:12)
at emit (internal/child_process.js:906:12)
at processTicksAndRejections (internal/process/task_queues.js:85:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `babel-node src/index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/kyle/.npm/_logs/2020-09-05T03_12_19_550Z-debug.log
eng.traineddata文件内容
<?xml version='1.0' encoding='utf-8' ?>
<Error>
<Code>UnavailableForLegalReasons</Code>
<Message>The appid is unavailable for legal reasons.</Message>
<Resource>file-1252889006.cos.ap-guangzhou.myqcloud.com/tesseract/eng.traineddata.gz</Resource>
<RequestId>NWY1MmQwYTRfNzQyZDdhNjRfYWU3N18xNDI0NGQ=</RequestId>
<TraceId>OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODc0OWRkZjk0ZDM1NmI1M2E2MTRlY2MzZDhmNmI5MWI1OTdjMDczODYwZjM5YTU3ZmZmOWI5MmY4NjkxY2I3MGNiMTZmYzA2N2QxZWU5MzkxNGQxNGZkZGE2OTAyOWUxMDA=</TraceId>
</Error>
OS: macOS 11 beta6
[email protected]
node v14.4.0
Barrett.js, BigInt.js, and RSA.js are no longer needed. Just remove them.
Too lazy to make a PR.
From April 30, 2020, HUSTPass requires users to input captcha when authenticating.
I've made a PR (ignore CI failures).
Time of ics exported is not correct in some devices.
I think this should be something wrong with timezone setting, and I tried to fix it by this, but don't seem to work.
I will try to figure it out when I get some spare time(several weeks later).
ps: if someone knows how to do with this, please let me know!
It seems the current project didn't need duration and repeat.( I changed the duration and repeat, but nothing changes, at least in my iOS and Mac devices)
I alse looked it up at https://icalendar.org/iCalendar-RFC-5545/3-3-6-duration.html, it says
Negative durations are typically used to schedule an alarm to trigger before an associated time (see Section 3.8.6.3).
But we already have trigger time to indicate it, so what's the duration and repeat mean and for?
The default reminding time is ahead of 10 mins, which is not suitable for us.
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.