2018年1月28日 星期日

WebAssembly

Download

$ git clone https://github.com/juj/emsdk.git
$ cd emsdk
$ ./emsdk install latest
$ ./emsdk activate latest

source
$ source ./emsdk_env.sh --build=Release

compile
emcc hello.c -s WASM=1 -o hello.html

$mv hello.html /var/www/html/.

open it in your browser.

2017年11月20日 星期一

Latex 安裝在ubuntu上

安裝

sudo apt-get install texlive-full

sudo apt-get install texmaker

編譯成pdf

pdflatex filename.lex

2017年11月2日 星期四

apache restart fail

AH00557: apache2: apr_sockaddr_info_get() failed for excellentjay-Satellite-L750
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
 
add the following line in /etc/apache2/apache2.conf 
 
ServerName localhost

2015年9月28日 星期一

Chrome WebGL



1. chrome://flags

2.覆寫軟體轉譯清單 Mac, Windows, Linux, Chrome OS, Android
覆寫內建的軟體轉譯清單,並針對不受支援的系統設定啟用 GPU 加速處理功能。 #ignore-gpu-blacklist

3.testing

chrome://gpu

Graphics Feature Status

  • CanvasSoftware only. Hardware acceleration disabled
  • Flash: Hardware accelerated
  • Flash Stage3D: Hardware accelerated
  • Flash Stage3D Baseline profile: Hardware accelerated
  • Compositing: Hardware accelerated
  • Multiple Raster Threads: Enabled
  • RasterizationSoftware only. Hardware acceleration disabled
  • Video Decode: Hardware accelerated
  • Video Encode: Hardware accelerated
  • WebGLHardware accelerated