考虑到大部分人在服务器上用:
- 上传复用session:之前可以明显看见每段(60MB,API死限制)上传后会有3~5秒的掉速;现在掉速只有1~2秒
- 下载块变成10M:希望可以加快下载。当然想快 用新的direct命令搞出直链用aria2/axel拖就是。
https://github.com/cnbeining/onedrivecmd 老地方。
考虑到大部分人在服务器上用:
https://github.com/cnbeining/onedrivecmd 老地方。
修了一堆奇怪的bug 加入了分享和直链,方便服务器用。
一句话安装:
pip install onedrivecmd
代码还在https://github.com/cnbeining/onedrivecmd 。
Onedrivecmd now comes with sharing and direct link support.
To install:
pip install onedrivecmd
Still open-sourced at https://github.com/cnbeining/onedrivecmd .
从OSX 10.11后 Apple有了新的安全设定 所以knit不能使用正常方法安装。
以下操作需要网络。
下载并安装:
R:https://cran.r-project.org/
RStudio: https://www.rstudio.com/products/rstudio/download/
MacTex: https://www.tug.org/mactex/mactex-download.html
下载并全部安装。需要很好的网络:加起来3.5个G以上。
设置:
1. 设置-安全性和隐私-任何来源。
2. Launchpad(四指并拢)-其他-终端(terminal)
输入 dsenableroot
输入登陆(开机)密码 3次
输入 sudo ln -s /Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin/pdflatex /usr/texbin/pdflatex
输入登陆密码
3. 打开RStudio-新建RMarkdown文件-点knit-提示要安装一大堆-点OK
会安装很多包。
现在应该可以正常knit了。
Error from Flask:
code 400, message Bad HTTP/0.9 request type
This is due to feeding HTTPS to Flask.
Solution: Set HTTPS, use HTTP or use Nginx to handle the HTTPS decode.
下个版本加个setup.py吧。。。
https://github.com/cnbeining/onedrivecmd
又撸了一个东西玩。
MS经常给EDU邮箱,但是Linux下没有工具,也就是说有巨大备份需求的大户反而跑不了。
按megacmd,照猫画虎,撸一个这玩意。
MS的SDK挺难用的,文档挺语焉不详的。但是幸好没遇到什么很大的需要debug的东西。
老样子,欢迎PR。
AGPL,麻烦想偷的自己琢磨琢磨先。
Speech side:
Audio Segmenting:
http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0144610#sec008
Then run FFMpeg with -s and -t with subprocess
Google Speech API: https://cloud.google.com/speech/reference/rest/v1beta1/speech/syncrecognize
curl 'https://speech.googleapis.com/v1beta1/speech:syncrecognize?key=AIzaSyBmmqjUsStJat65IP7KgKuH2cz6rRvlIr8' -H 'Referer: https://cloud.google.com/' -H 'Origin: https://cloud.google.com' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.75 Safari/537.36' -H 'Content-Type: text/plain;charset=UTF-8' --data-binary '{"config":{"encoding":"LINEAR16","sampleRate":44100,"languageCode":"en-US","maxAlternatives":1},"audio":{"content":"BASE64_BINARY"}}' --compressed
Less than 1 min inline, better if under 30s
Video Side:
Thumbnail: https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video
Vision API:
curl 'https://vision.googleapis.com/v1/images:annotate?key=AIzaSyBzeghi0W7mGczap8SC8AmNudYOlwfU-KE' -H 'Referer: https://cloud.google.com/' -H 'Origin: https://cloud.google.com' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.75 Safari/537.36' -H 'Content-Type: text/plain;charset=UTF-8' --data-binary '{"requests":[{"image":{"content":"BASE64"},"features":[{"type":"TYPE_UNSPECIFIED","maxResults":50},{"type":"TEXT_DETECTION","maxResults":50}]}]}' --compressed
CC:
Question: How to difference the zone of CC?
ASS: Put them there.
Style:
ASS: {\pos(369.675,206)} with response, 1s
Translation:
Toolkit+API+CAT
Transcode:
Release:
https://assl.loovit.net/
https://hostsymbol.com/clients/cart.php?a=add&pid=1
没什么要说的,换了个key,继续续命。
不行了再把新算法拿出来。