从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,继续续命。
不行了再把新算法拿出来。
没想到又把我挤兑到用老Key了。
https://github.com/cnbeining/Biligrab
Continue reading
curl 'http://space.bilibili.com/ajax/settings/setPrivacy' -H 'Cookie: f******' -H 'Origin: http://space.bilibili.com' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-CA,en;q=0.8,en-US;q=0.6,zh-CN;q=0.4,zh;q=0.2' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.48 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Referer: http://space.bilibili.com/******/' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' -H 'DNT: 1' --data
'looking_video=0&submited_video=1&fav_video=0&coins_video=0&bangumi=0&played_game=0&groups=0&tags=0' --compressed
如果submited_video变成0 那么连过往投稿都不会出现。一键大小姐。