$this->connect->pdo->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
firebase ios dsym
dsym
先build好上傳
再前往你家的/Users/你的名字/Library/Developer/Xcode/Archives
會看到剛剛上傳的日期,裡面有你剛剛上傳的檔案
又見打開套件內容
複製裡面的dsym資料夾出來壓縮,上傳給firebase
mac 環境變數檔案
cat ~/.zshrc
cat ~/.bash_profile
FFMPEG 壓縮
$command = 'ffmpeg -i ' . $item . ' -vcodec libx265 -b:v 200k -b:a 128K -r 25 -threads 0 -acodec copy -y compress/' . $item . ' 2>&1';
echo shell_exec($command);
libx265
libx264
-b:v 200k 畫面比率
-b:a 128k 聲音
-r 25 fps
-thread 0 不限制cpu
-acodec 避免爆音
PHP 上禮拜時間
//上月一號
$startDate = date("Y-m-01", strtotime("-1 month"));
//上月最後一天
$endDate = date("Y-m-t", strtotime("-1 month"));
//上個禮拜一
$startDate = date("Y-m-d", strtotime("-2 week Monday"));
//上個禮拜天
$endDate = date("Y-m-d", strtotime("-1 week Sunday"));
ios 關閉合規證明
<key>ITSAppUsesNonExemptEncryption</key><false/>
Flutter 添加web 支持
flutter create --platforms=web .
ubuntu ssl 多個不同domain
路徑 /etc/apache2/sites-available
新增不同domain ssl.conf
NameVirtualHost *:443
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName yourdomain.com.tw
ServerAlias *.yourdomain.com.tw
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerName yourdomain.com.tw
Include /etc/letsencrypt/options-ssl-apache.conf
ServerAlias *.yourdomain.com.tw
SSLCertificateFile /etc/letsencrypt/live/yourdomain.com.tw/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/yourdomain.com.tw/privkey.pem
</VirtualHost>
</IfModule>
待解決問題
ubuntu 16.04
curl
openssl
Mac install php@5.6
brew tap shivammathur/php
brew install shivammathur/php/php@5.6
then switch php version
brew unlink php
brew link --overwrite php@5.6