Tuesday, December 21, 2021

The power of now

Introduction: 

imminent: imminent death

relinquish: one learns to relinquish mental/emotinal resistance to the "suchness" of the present moment

intersperse: almost continuous anxiety interspersed with periods of suicidal depression

dread: a feeling of absolute dread

loathing: a ddep loathing of the world

loathsome: The most loathsome thing of all, however, was my own existence

annihilation: a deep long for annihilation

luminosity: That soft luminosity filtering through the curtains was love itself.

prisitine: Everything was fresh and prestine

palpable: Sometimes it is very strong, almost palpable, and others can feel it too

eon: have kept humans in bondage to suffering for eons

verbatim: Some of the questions and answers I wrote down almost verbatim

extraneous: overlaid with extraneous matter

obscure: alsmot completely obscured by it

exaltation: There is then a feeling of exaltation and heightened aliveness


Wednesday, December 15, 2021

How to skip the OPTIONS preflight request

 

When trying to post request directly from angular, got the CORS error:

Access to XMLHttpRequest at '***' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

The browser adds a OPTION call (preflight) as the content-type is application/json

Can add a chrome shortcut like the below to make the request successful:

"C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="c:/chrome_dev"

Sunday, December 12, 2021

Play mkv from apple TV

 

1. Install VLC for mobile from apple TV

2. Enable "Remote Playback"

3. From the computer (for me MAC), access the IP, and drop mkv files

For me, drop files failed, so I started mac http server and add the URL

4. It's pretty fluenct, totally no lag even for 1080P/blueray planet earth

Another way is through the File Sharing (SMB) but it seems that VLC has a bug so it cannot save the configuration, the "Remote Playback" has an advantage you can control the progress bar from the computer side.

Mac http server


sudo npm install http-server -g

cd到文件服务的文件夹下,通过运行此命令设置本地服务器:

$ http-server ./ -p 1313

现在,HTTP服务器运行在端口。使用您的网络浏览器和访问http://localhost:1313/



作者:w11794dl3u
链接:https://www.jianshu.com/p/ce592c3ee347
来源:简书

著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。