發表文章

ubuntu 16.04 format sd 卡

1.觀看所有硬碟的狀態  df -h 2. 先umount  sudo umount /dev/sdd1 (有多個區塊,全部區塊都要umount  3. 參考 先分區塊  sudo fdisk /dev/sdd 4. 參考 format 格式,(used fat32  sudo mkfs.vat /dev/sdd1

ubuntu 18.04 install opengl glm glfw glew (實驗ing)

in codeblocks 實驗ing ... project build options->Linker settings -> GL GLEW glfw 1.GL   參考 2.GLEW   download & building GLEW 3.glfw Download : https://www.glfw.org/ Documentation : https://www.glfw.org/documentation.html 可以下載.zip or clone from git . Compiling GLFW   -->   build GLFW

Ubuntu 看網卡的上網流量

sudo apt install iftop 先用 ifconfig 看 interface example: interface: eno1 sudo iftop -i eno1 就可以看到流量開始累積, 如果關掉就重新累積。

[C/C++語言] undefined reference to 錯誤排解

在include svd的c code 時, complier 一直出現 error, 參考了下面這篇網誌解決!! [C/C++語言] undefined reference to 錯誤排解

c use Makefile test

created a Makefile: build: register_test.c         gcc -c register_test.c  link: register_test.o         gcc -o register_test register_test.o run: register_test         ./register_test clean:         rm -f *.o *.exe *.executable ou:         cd output/         make -C Makefile create a .c file: regitster_test.c (測試用register 有沒有比較省時 #include <stdio.h> #include <sys/time.h> int main( int argc, char* argv[]) {    struct timeval start, end;    gettimeofday( &start, NULL);    double timeuse;    register double sum;    register int j,k;    for(j=0;j<1000000000;j++)         for(k=0;k<10;k++)             sum=sum+1.0; ...

ubuntu 16.04 聲音

圖片
以前都開靜音沒發現, 原來開聲音的時候, 使用中,電腦會發出聲音~ 比方說你在打字,apple 他會逐字念出來, 按了search 還會叫你等等~ 但是我不太需要這功能, 所以就想關掉他。 System settings -> sound -> Application ->第四個,Mute靜音打勾。 為什麽是第四個,也是試出來的哈。

tensorflow with virtualenv and Hello world

安裝一個虛擬器, 參考書本 TensorFlow学习指南:深度学习系统构建详解 ch2 安装TensorFlow 內容為書上節錄,如果有侵權,我會馬上刪除此篇!!!!  網路上也有一篇提到很多個安裝虛擬環境的方式 這邊是書上提到 輕鬆安裝使用 pip:  pip install tensorflow 有個缺點,就是會覆蓋原本已安裝的python版本, 如果有其他用途使用,會很麻煩,所以可以考慮安裝虛擬器 pip install virualenv 直接參考書中安裝虛擬環境 ~/ens 儲存名為 tensorflow 的虛擬環境, 虛擬環境在此為(~/envs/tensorflow 文件中),可以自己改名稱~ cd ~ mkdir envs virtualenv ~/envs/tensorflow 安裝之後 進入虛擬機 的使用方式: source ~/envs/tensorflow/bin/activate teminal會變成 (tensorflow)$ 在此再安裝 TensorFlow, 不會影響原本電腦上安裝過的包,cpu&gpu版本 (tensorflow)$ pip install tensorflow  (tensorflow)$ pip install --upgrade tensorflow-gpu 檢查方式跟結果會跟 上一篇 一樣: (tensorflow)$ python >>> from tensorflow.python.client import device_lib >>> device_lib.list_local_devices() 結束之後出虛擬機的方式 (tensorflow)$ deactivate *覺得每次都要輸入  source ~/envs/tensorflow/bin/activate 很煩的話  可以考慮在 ~/.bashrc加入虛擬的路徑: alias tensorflow="source ~/envs/tensorflow/bin/activate" 以後都只要輸入 tensorflow就可...