Tensorflow error on macOS

$ sudo mv include/cudnn.h /Developer/NVIDIA/CUDA-7.5/include/ $ sudo mv lib/libcudnn* /Developer/NVIDIA/CUDA-7.5/lib $ sudo ln -s /Developer/NVIDIA/CUDA-7.5/lib/libcudnn* /usr/local/cuda/lib/ Segmentation fault: 11 ln -sf /usr/local/cuda/lib/libcuda.dylib /usr/local/cuda/lib/libcuda.1.dylib Error didn’t resolved: Traceback (most recent call last):   File “/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py”, line 174, in _run_module_as_main     mod_name, mod_spec, code = _get_module_details(mod_name, _Error)   File “/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py”, line …

Run openconnect on MAC

$ brew install openconnect $ cd /Library/Extensions $ sudo kextload -v tun.kext Download vpnc-scprit $ chmod +x /usr/local/bin/vpnc-script $ sudo openconnect $ cd ~ $ touch .openconnect $ vim .openconnect Example: authgroup=*****RXVPN user=**** no-cert-check script=/usr/local/sbin/vpnc background passwd-on-stdin $ sudo openconnect –config ~/.openconnect https://ruanxi.ruanxi.net  

Mac Remote Desktop Connection Error connecting to Windows 10

  Error show: Remote Desktop Connection cannot verify the identity of the computer that you want to connect to.  Try reconnecting to the Windows-based computer, or contact our administrator. Case for mac. Error show: Remote desktop certificate error For Windows 10 access windows 10. Solution: C:\Users\ruanxi>gpedit.msc gpedit.msc path: Local Computer …

DD command on mac OS

1.Checkout your present disk’s status diskutil list formate into FAT32 2.Unmount disk sudo unmountDisk /dev/disk2 3.Write .img file to disk2 sudo dd bs=1m if=~/Documents/OS/2015-05-05-raspbian-wheezy.img of=/dev/disk2 3125+0 records in 3125+0 records out 4.Eject disk sudo diskutil eject /dev/disk2

MAC 编译c

例如: #include “stdio.h” void main(void){ printf(“hello,world!”); } 已经提前写好:test.c 打开mac vi bash-3.2# vi test.c bash-3.2# ./test.c ./test.c: line 3: syntax error near unexpected token `(‘ ./test.c: line 3: `void main(void){‘ bash-3.2# cc test.c -o test test.c:3:1: warning: return type of ‘main’ is not ‘int’ [-Wmain-return-type] void main(void){ ^ test.c:3:1: note: change …