Thursday, December 27, 2018

AutoCAD Language Pack

Ref Link : https://knowledge.autodesk.com/support/autocad/downloads/caas/downloads/content/autocad-2019-language-packs.html
安裝了 Language Pack 之後語言的切換是利用 acad.exe 之後所附帶的參數來決定執行時的語系, Parameter :
English : “xxxxx/acad.exe” /product ACAD /language “en-US”
繁體中文 : “xxxxx/acad.exe” /product ACAD /language “zh-TW”
若是直接執行 “xxxxx/acad.exe” 這個執行檔而不帶任何參數的話則是會依上次所執行的語系執行 AutoCAD.

KiCAD 5.0.0-3

4.0.7 -> 5.0.0-3
Notes : 新版 (5.0.0-3) KiCAD for macOS  剛安裝好後開啟舊版 (4.0.7 版) 的 project 時不要直接以 click 方式開啟 “.sch” file, 先 click “Schematic Layout Editor” 並 Copy & Remap Symbol 後再開啟舊專案的 schematic (.sch) file, Windows 版的 KiCAD 5.0.x 則會在安裝後第一次 click .sch 時開啟對應的 Dialog (Copy / Remap Symbol).

MariaDB 在 FreeNAS Jail 中的安裝

FreeNAS 11.x Jail 中的 MariaDB Binary 有相容性問題, 導致 MariaDB Server 無法正確啟動.
solution ref link : https://forums.freenas.org/index.php?threads/fdatasync.59650/
Build / Install Instruction / Step (MariaDB 可能會有更新版本!):
portsnap fetch
portsnap extract && portsnap update
pkg install readline-7.0.3_1 sudo nano tmux mariadb102-server-10.2.15 mariadb102-client-10.2.15
cp /usr/local/share/mysql/my-medium.cnf /usr/local/etc/my.cnf
cd /usr/ports/databases/mariadb102-server
make deinstall
make install clean ALLOW_UNSUPPORTED_SYSTEM=true

Paper size ~ A series

以我們常用的 A 系列為例, 長寬比是 1 : √(2)
幾何作圖 :
以一正方形對角線為半徑畫弧至 0 度作為 寬, 以正方形高度為 高.
以上述長寬繪製之矩形長寬比即為 A series 之長寬比
(以公分為單位, 四捨五入)

Skype App(Not Desktop) Local Cache(Chat History)

Skype App Local Cache File Position :
C:\Users\%USERNAME%\AppData\Local\Packages\Microsoft.SkypeApp_kzf8qxf38zg5c\LocalState\live#XXXXXXXXXXX




High CPU usage while VS 2017 editor is idle

以 Visual $tudio 2017 15.7.2 開啟 FreeRTOS (for x86 platform) 時在 Idle 情況或是當 cursor 停在某些 FreeRTOS Functioin (caller) 時 Visual $tudio 2017 總是會占用高額 CPU 使用率, 且 cursor 在整個 Visual $tudio 2017  中都會呈現 "I", 整個 Visual $tudio 失去回應(User Interaction).
Goolge Solution 1 (High CPU usage while VS 2017 editor is idle) : https://developercommunity.visualstudio.com/content/problem/36586/high-cpu-usage-while-vs-2017-editor-is-idle.html
Result : Useless.

mount nullfs (null file system) @FreeNAS for jail

在 FreeNAS / jail 中要 mount Host 的 folder 須在 Host 上執行 mount (nullfs), mount point 即是 jail folder 相對應的 node.

使用 Win32 API 連接網路磁碟 (WNetAddConnection2)


fake ARP

fake ARP (Address Resolution Protocol) ref link : http://www13.plala.or.jp/toor/2014/11/16/arpspoof.html

SolidWorks (Network License) 啟動很慢 (over 4 mins) 問題

google 到這篇是正解 : Eureka! Discovered *the* culprit to slow SolidWorks startup time.
...Scott - you absolute star! We had recently installed 2018 network licence with PDM and were experiencing loading times of over 1 minute no matter what we tried!
'Loading registry' and 'PDM add in' were particularly slow but the main hang up was on 'Initialising VBA engine'. How I loathed watching that splash screen sit there whilst I felt how productive I was NOT being!
No 'Connect' folder in our FLEXnet folder, but it did have _tsf & _tsf.data_backup files from what must have been the 2017 SW install (judging by the data last modified). Cut and paste all the files elsewhere for safekeeping and fired up SW2018....BOOM she loaded up in 8 seconds flat!
Lets hope many others will benefit from this fix. Thanks, thanks, thanks for posting!

Thursday, October 25, 2018

Script for macOS PPTP VPN

macOS 之下的 VPN GUI 設定已不支援 PPTP, 所以在 macOS 之下要使用 PPTP VPN 需要 DIY.
Sample Script (ex : /etc/ppp/peers/pptpvpn), PPTP Server : Volans Router.

plugin PPTP.ppp
noauth
remoteaddress "IP or Hostname"
user "USERNAME"
password "PASSWORD"
redialcount 1
redialtimer 5
idle 1800
receive-all
novj 0:0
ipcp-accept-local
ipcp-accept-remote
refuse-eap
refuse-pap
refuse-mschap-v2
hide-password
mppe-stateless
looplocal
nodetach
ms-dns 8.8.8.8
usepeerdns
defaultroute
debug

Ref Link :
https://lemnet.fr/blog/tag/vpn
https://www.cts-llc.net/2017/02/21/pptp-on-osx-just-one-last-time.html
https://smallhacks.wordpress.com/2016/12/20/pptp-on-osx-sierra/
https://malucelli.net/2017/05/16/pptp-vpn-on-macos-sierra/
http://neutrofoton.github.io/blog/2017/11/22/pptp-on-macos/
https://filipmolcik.com/pptp-vpn-on-macos-sierra-and-high-sierra/
https://www.linuxquestions.org/questions/linux-networking-3/pptpd-not-working-ms-chap%5Bv2%5D-auth-not-performed-4175445673/
https://ethancbanks.com/2016/09/26/auto-adding-routes-when-mac-pptp-connection-comes-up/

Notes : remark the “defaultroute” and add following line for connect internet & PPTP VPN  in the same time or ref https://ethancbanks.com/2016/09/26/auto-adding-routes-when-mac-pptp-connection-comes-up/.
sudo route -n add -net 192.168.1.0/24 192.168.1.1

Thursday, September 06, 2018

ASUS RT-AC3200, Do NOT route my traffic through the VPN

Firmware Version : 3.0.0.4.382_50624
WAN DNS Setting
  Connect to DNS Server automatically : yes (NOT THE ROOT CAUSE, NO MATTER WHAT VALUE CONFIGURED)
LAN - DHCP Server
  DNS and WINS Server Setting
  DNS Server : 8.8.8.8
Enable SSH Service : yes
Before Routing Table Updated : 
After Routing Table Updated : 
Verify :
WTF !

我負責

 ... + ...........  政策 我負責. 負責推卸責任. (阿不然你以為哩...) 聽說 記錯了 請見諒 深感抱歉.... 抗(國外)疫(苗)中...