Onedrivecmd 1.3: 推上PyPy,支持分享和直链 / Onedrivecmd 1.3: Now on PyPy, with sharing and direct link support

修了一堆奇怪的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 .
 

Mac 装R LaTex knit全过程

      No Comments on Mac 装R LaTex knit全过程

 
从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了。

onedrivecmd: Yet another Onedrive command-line client for Linux and OSX / Onedrive的命令行工具

https://github.com/cnbeining/onedrivecmd
 
又撸了一个东西玩。
MS经常给EDU邮箱,但是Linux下没有工具,也就是说有巨大备份需求的大户反而跑不了。
按megacmd,照猫画虎,撸一个这玩意。
MS的SDK挺难用的,文档挺语焉不详的。但是幸好没遇到什么很大的需要debug的东西。
老样子,欢迎PR。
AGPL,麻烦想偷的自己琢磨琢磨先。

Things to read in the free time

      No Comments on Things to read in the free time

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: