2017年8月6日 星期日

[ 生活] 銀行增貨

原 280 萬 (1.75%) 增 100 萬 (1.97%)
30年 20年
10003 5045 = 15048
20年 20年
13836 5045 = 18881
30年 10年
10003 9188 = 19191

銀行手續費 2000 元. 地政規費 4700 元. 火地險 2000 元.
雙方身份證,印章,權狀。
轉貨後原銀行去開清償證明。

2017年1月9日 星期一

[Quadcopter][ArduPilot] How to compile apm_planner


1) Archlinux - Install the required packages:
sudo pacman -S qt5

2) Clone the repository in your workspace:
cd ~/workspace
git clone https://github.com/diydrones/apm_planner

3) Build APM Planner:
cd ~/workspace/apm_planner
qmake apm_planner.pro
make

4) Run APM Planner:
./release/apmplanner2

Reference:

[Quadcopter][ArduPilot] How to compile apm_planner


1) Archlinux - Install the required packages:
sudo pacman -S qt5

2) Clone the repository in your workspace:
cd ~/workspace
git clone https://github.com/diydrones/apm_planner

3) Build APM Planner:
cd ~/workspace/apm_planner
qmake apm_planner.pro
make

4) Run APM Planner:
./release/apmplanner2

Reference:

2016年12月9日 星期五

[Line] 詐騙處理流程

今天因為信任一個朋友,而Line遭到盜用,處理的流程紀綠一下。


1. 首先我先GOOGLE 找問看看,如何處理。看到可以填“問題反應表
中午 13:11 馬上寫填問題反應表。

填好上面表格之後,送出會寄一封E-mail到個人信箱裡面去。
內容如下
親愛的用戶,您好:

客戶服務中心已經收到您的來信,感謝您的聯絡。
我們將盡速為您確認問題後回覆給您,請您耐心等候。

您所反應的問題內容如下:
---------------------------------------
編號:0003390462

問題內容:
1)您認為帳號被他人盜用的詳細理由
我告訴朋友(或不明人士)自己的電話號碼跟認證碼

2)發生問題的LINE帳號基本資訊
0918000111                  <-- 要填手機號碼
Oh_My_God@gmail.com         <-- 要填電子信箱 
haha 7                      <-- 要填手機型號

3)問題發生的日期及時間
2016年12月9號 12點10分左右     <-- 要填發生時間

2. 致電到手機的電信業者,取消小額付費。

3. 打 警政署165反詐騙
裡面的人員,給了三點建議
1. 緊急連絡LINE裡面的人,說自己的帳號己被盜,也請認識的朋友幫忙。
我也緊急在 FB 貼上Line 被盜用的訊息。


2. 填寫 Line 的問題反應表。
第一時間就填好表格。


3. 到附近的派出所報案。
派出所員警說要有被害的事實成立,才可以拿報案三聯單。
所以我只有到派出所備案。
PS. 當詐騙人員有給帳號時,如有詐騙成立,即可以報案,及凍結該帳戶。




晚間 19:53 的時候, LINE的官方網站有傳訊息給我。
    回覆

親愛的用戶,您好:

這裡是LINE客戶服務中心。

關於您所反應的問題,請參考下列之說明:


近期因為被不肖人士得知簡訊內4位數認證碼,導致帳號被假冒的問題有增加的趨勢。
我們進行確認作業後,系統顯示該名不肖人士得知了您的認證碼後,利用該筆認證碼建立了一筆新的帳號。
然而,您原先使用的帳號並非被盜用,而是該名不肖人士擅用您的個人圖片及姓名建立了一筆新的帳號假冒為您的帳號,
進而導致您原先使用的該筆帳號目前已成為無法使用的狀態。

當不肖人士使用您的個人資料建立另一筆帳號時,您的帳號已成為無法使用的狀態。
※使用LINE時,同一筆電話號碼無法同時設定於多筆帳號內。

帳號一旦成為無法使用的狀態,您於帳號內設定的好友名單、群組列表、聊天記錄和連動應用程式的設定(例如:LINE Game、LINE PLAY等)等資料將同時被刪除。
很抱歉,帳號資料一經刪除,我們亦無法救回。

而對方建立的帳號,若仍未刪除的情況下,該筆帳號將會持續存在於LINE系統內,
因此,我們建議您依照下列方式刪除該筆帳號。
只要以下列方式建立一筆新的LINE帳號,對方建立的帳號即會立即被刪除。
https://help.line.me/line/?contentId=50000021

今後使用LINE時,即使是熟識的人提出詢問,也請勿輕易將「電話號碼及認證碼」或「電子郵件帳號及密碼」等等,
僅有您才能獲得的資訊告知他人,感謝您的配合。​

【回補付費商品的相關說明】
若您在該筆無法使用的帳號內持有付費商品,我們將會為您回補該帳號中的付費商品至新帳號內。
然而,若您未曾持有付費商品,我們將不會進行回補作業,敬請見諒。
※請注意:付費商品回補作業僅限此次。

若希望我們為您進行付費商品的回補作業,請依照下列操作步驟再次與我們聯絡,謝謝。

◆操作步驟◆
1)建立一筆新的帳號
 ※建立帳號時,請以您告知第三者的電話號碼進行認證操作。
2)使用您於步驟1)建立的LINE帳號,依序點選「其他」>「設定」>「常見問題」
3)依序點選「貼圖/代幣/主題」>「代幣、貼圖等商品消失」
4)點選「消失的商品能夠還原嗎?(LINE代幣、貼圖等)」
5)點選位在該說明內容下方的「申請移動商品」
6)複製以下〈從這裡〉〈到這裡〉的內容,貼於「詳細的問題內容」回答內,點選傳送。
※提醒您:來函諮詢時,請不要更動下列內容,感謝您的配合。
在LINE 官方還沒有回應之前,刪除了帳戶但還是沒有辨法鎖定電話號碼。此時詐騙的人還是在使用中。
當LINE 官方回覆及處理之後,即可以輸入我的電話號碼。這時朋友在20:56時,回報詐騙的人己不在。







此次詐騙的手法,最主是要向我所認識的好朋友借錢(3萬元)。
我只能在第一時間發佈訊息,讓傷害降到最低。
造成各位好朋友的困擾,深感抱歉。

2016年8月12日 星期五

[VMware][Archlinux] How to install vmware 12 pro

Linux OS
# uname -a
Linux localhost 4.7.0-1-ARCH #1 SMP PREEMPT Mon Aug 8 22:05:58 CEST 2016 x86_64 GNU/Linux


Pre-settings:
pacman -S linux-headers
pacman -S gcc
pacman -S make

Download VMware 12pro


Execute and install vmware
# sudo bash VMware-Workstation-Full-12.1.1-3770994.x86_64.bundle

After install vmware start to execute "vmware" or "sudo vmware-modconfig --console --install-all".
("sudo vmware-modconfig --console --install-all" compile vmware kernel module)
There are some file which under " /usr/lib/vmware/modules/source" need to be fixed.
The file of VMware kernel module Source under /usr/lib/vmware/modules/source
vmblock.tar vmci.tar vmmon.tar vmnet.tar vsock.tar

vmnet.tar :
userif.c:
Decompress vmnet.tar and edit userif.c and find following string.
“get_user_pages” to “get_user_pages_remote”

netif.c:
Edit following file
/tmp/test/vmnet-only/netif.c:468:7: error: ‘struct net_device’ has no member named ‘trans_start’; did you mean ‘mem_start’?
dev->trans_start = jiffies; –> dev->mem_start = jiffies;


vmmon.tar :
hostif.c:
edit hostif.c and find following string.
“get_user_pages” to “get_user_pages_remote”
/tmp/test/vmmon-only/linux/hostif.c:1165:13: error: too many arguments to function ‘get_user_pages’


Reference:
Debug :
Q1: How to debug

A:
There are many log under /tmp/vmware-root

Q2:
Directory must be non-empty
System service scripts directory (commonly /etc/init.d)

A:
sudo mkdir /etc/init.d

Note :
YF590-4WX8M-H81QZ-2YX59-XVAF6
Reference:

2016年8月11日 星期四

[sabayon] Install binary package by using the branch(sabayon) of gentoo

Install equo
# emerge equo

Put the database file under amd64
# cd /var/lib/entropy/client/database/amd64
# curl -O https://raw.githubusercontent.com/Sabayon/docker-armhfp/master/base-armhfp/ext/equo.sql
# cat ./equo.sql | sudo sqlite3 equo.db

first generate the entropy database
# sudo equo rescue generate

Update the database
# equo update
# equo repo mirrorsort sabayonlinux.org

Reference:
Note :

If you get an error message that the overlays do not exist then you need to add them:
# layman –add sabayon
# layman –add sabayon-distro

Update the Sabayon overlays to the latest versions:
# layman –sync sabayon
# layman –sync sabayon-distro

2016年8月4日 星期四

[Archlinux] pacman 如何編釋與使用

重要的圖表:
Pacman +---> Configuration file
               +
               +-> RootDir = The path which install the binary file
               |
               +-> DBPath  = The Database of pacman
               |      +      Execute "./pacman -Syy" will create local and sync
               |      |              which under /var/lib/pacman
               |      |
               |      |               sync = Put all DB under this path
               |      |
               |      +----> According the setting(below) in configuration file
               |             [core]
               |             [extra]
               |             [community]
               |
               +-> CacheDir= Put all package which download from internet.

下載pacman並編釋
pacman 在 Linux_Cross_Compiler_tools/Pacman/X86底下
git clone git@github.com:xxxxx/Linux_Cross_Compiler_tools.git


./pacman -Syy
完成編釋動作之後,並執行pacman資料庫更新,db檔會儲存在 /var/lib/pacman/sync 之下
./var/lib/pacman/sync/core.db
./var/lib/pacman/sync/extra.db
./var/lib/pacman/sync/community.db
./var/lib/pacman/sync/archlinuxfr.db

開始下載與安裝 geany

./pacman -S geany

 geany 的可執行壓縮檔會被下載到 ./var/cache/pacman/pkg/
./var/cache/pacman/pkg/geany-x86_64.pkg.tar.xz

Reference:

2016年6月27日 星期一

[Linux Kernel] How to compile ASUS_WMI & ASUS_NB_WMI


I want Fn+F9 can work. So the follow step is procedure for my testing. It work.

make menuconfig

Device Drivers → X86 Platform Specific Device Drivers

Tick up
<M>   WMI  (will open - < >   ASUS WMI Driver)
Tick up
    <M>   ASUS WMI Driver (when tick up this time will tick up another item was called Asus Notebook WMI Driver)
        <M>     Asus Notebook WMI Driver

Check .config

[happy@localhost linux-4.6.2]$ grep -inr "asus_wmi"  .config
3177:CONFIG_ASUS_WMI=m
[happy@localhost linux-4.6.2]$ grep -inr "asus_nb_wmi"  .config
3178:CONFIG_ASUS_NB_WMI=m


How to find the method. I check my .config in my archlinux. The command like below.
zcat /proc/config.gz > .config

And I find my settings in my archlinux have two option have been opened.
CONFIG_ASUS_WMI=m
CONFIG_ASUS_NB_WMI=m

So I decide to download the linux kernel to find how to make those two option appear on my .config.

Why I want try this option, because my touchpad(Fn+F9) no work. I search other information that told me maybe I need this kernel module. So I want to compile it, and try if this module can let my touchpad work or not.

After set up the .config, then we need to start compile our kernel.
There have two method can do this job.

Method 1:
Use genkernel to compile kernel.

A: No specific .config
    genkernel all (Builds all stages — the initrd, kernel image and modules.)

B: Specific .config
    genkernel --config=/path/to/genkernel.conf all

Method 2:
Copy the bzImage to /boot
/usr/src/linux/arch/x86/boot/bzImage –> /boot

I need to find which one is initramfs

Edit /boot/loader/entries/gentoo.conf
title Gentoo Linux
initrd /initramfs-genkernel-x86_64-4.4.6-gentoo
linux /bzImage
options root=/dev/sda2 rw

Reference:

2015年4月25日 星期六

[Xournal] 編輯 PDF 檔工具

檔案下載
編輯 PDF 工具 (Xournal)

開啟檔案



文字字型選擇
工具 -> 文字字型
選擇字型:
在預覽看到中文字,表示這個字型支援中文字



打上中文




輸出成新的PDF檔

2015年2月9日 星期一

[ArchLinux] How to install archlinux

Prepare :
1. Download image
archlinux-2015.02.01-dual.iso

2. dd into usb flash
dd bs=4M if=/path/to/archlinux-2015.02.01-dual.iso of=/dev/sdx && sync



1. Design the partition of disk
Type: gdisk /dev/sda
Type: o //This will create a new empty GUID partition table and destroy all your data and overwrite existing partitions

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          104447   50.0 MiB    EF00  EFI System
   2          104448       125933567   60.0 GiB    8300  Linux filesystem
   3       125933568       142710783   8.0 GiB     8200  Linux swap
   4       142710784      1953525134   863.5 GiB   8300  Linux filesystem

Explain:
sda2 (/mnt/)
mkfs -t ext4 /dev/sda2

sda1 (/mnt/boot)
mkfs -t fat /dev/sda1

sda4 (/mnt/data)
mkfs -t ext4 /dev/sda4

mkswap /dev/sda3
swapon /dev/sda3

mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
mount /dev/sda4 /mnt/data

2. Install base package into /mnt
pacstrap -i /mnt base net-tools

3. Create fstab into /mnt/
genfstab -U -p /mnt >> /mnt/etc/fstab

4. Install and configure a bootloader
pacman -S gummiboot
gummiboot install
nano /boot/loader/entries/arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=/dev/sdaX rw

5. reboot


1. Update the database
pacman -Syu

2. Install X Window System
sudo pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils mesa

3. Install video driver for intel
a. pacman -Ss | grep intel
extra/intel-tbb 4.3_20141204-1
extra/intel-ucode 20140913-1
extra/libva-intel-driver 1.5.0-1
extra/xf86-video-intel 2.99.917-1 (xorg-drivers xorg) [installed]

b. pacman  -S  xf86-video-intel

4. Test x window
startx





1. Install desktop environment of cinnamon
sudo pacman -S cinnamon

2. Display manager (a graphical login program)
sudo pacman –S gdm
sudo systemctl start gdm

Reference:
1. How to Install Arch Linux with UEFI
2. Installing GUI (Cinnamon Desktop) and Basic Softwares in Arch Linux
3. Arch Linux Downloads
4. USB flash installation media

2014年12月25日 星期四

[Archlinux][ibus] Install input method into Archlinux


  1. Install ibus
    pacman -S ibus
  2. Install input method package
    pacman -S ibus-rime
  3. Edit order to show which one is the first choice of your input method.
    vim  ~/.config/ibus/rime/default.yaml
    Modify following file to another
    schema_list:
      - schema: luna_pinyin
      - schema: cangjie5
      - schema: luna_pinyin_fluency
      - schema: luna_pinyin_simp
      - schema: luna_pinyin_tw

    schema_list:
      - schema: cangjie5
      - schema: luna_pinyin
      - schema: luna_pinyin_fluency
      - schema: luna_pinyin_simp
      - schema: luna_pinyin_tw
Reference:

[Archlinux][Cinnamon] How to install cinnamon in Archlinux

  1.   pacman -S xorg
  2.   pacman -S xf86-input-synaptics
  3.   Find VGA card
      lspci | grep VGA
  4.   Install VGA driver
      Search all VGA driver
      pacman -Ss | grep xf86-video
      sudo pacman -S xf86-video-vesa (virtualbox VGA driver)
  5.   Install startx command
      pacman -S xorg-xinit
  6.   Install cinnamon theme 
      pacman -S cinnamon
      pacman -S gdm
  7.   Install system management
      pacman -S systemd
  8.   Enable gdm all the time
      sudo systemctl enable gdm
      sudo systemctl start gdm

Reference :

2014年12月9日 星期二

[GitHub] How to clone the code from github

First  :
Make sure the key have post github websit.
Step 1: Check for SSH keys
cd ~/.ssh

Step 2: Generate a new SSH key
ssh-keygen -t rsa -C "your_email@example.com"

Step 3: cat ~/.ssh/id_rsa.pub
ssh-rsa AAAx3NzaC1yc2EAAAABIwAAAQEAsyKnnxxxxF0GUxxkkAkI+41FDLZXRKC6QL/GuzcheyL3tvcUNNG/GyqgBSKOglUz+MvAy9PvObOpd1wVnPvFL/djmtvxxx/do93BCqX2xxvo/5Q3xM8xxxxxxxGJ/kKsWb0+KYi8xxxxxLRKz5FQTlnE8FyungbZxxxCKNqj/3YDV13RxxG61DIJvKxx5Q== your_email@example.com
Copy the above code to following the webpage of github.
1. Go to setting page
2. Press "SSH key"
3. Press "Add SSH key"
4. Paste the above code into the column.


Step 4: Test everything out
ssh -T git@github.com

# Hi username! You've successfully authenticated, but GitHub does not

#####################################################################
Git Clone  :
Go to any folder which you want and copy any SSH clone URL (e.g. "git@github.com:martinh/libconfuse.git").
Type the following command. After that enjoy your travel around the code of open source.
git clone git@github.com:martinh/libconfuse.git

Reference :

2014年11月24日 星期一

[VirtualBox][Vagrant] How to install and use vagrant



Install :

1. Go to Vagrant and download suitable package and execute it.
2. Go to VirtualBox and download following package.
VirtualBox platform packages
VirtualBox Extension Pack


Usage:


1. Create a folder
$ mkdir happy-1
$ cd happy-1
2.
Choose box Windows box or Mac OS box or following box
hashicorp/precise64: Ubuntu 12.04 LTS (Precise Pangolin) 64-bit
ubuntu/trusty64: Ubuntu 14.04 LTS (Trusty Tahr) 64-bit
chef/centos-6.5: CentOS 6.5 x64
chef/debian-7.4: Debian 7.4 x64
yungsang/coreos: CoreOSsupport Docker
williamyeh/ubuntu-trusty64-docker: Ubuntu 14.04 LTSsupport Docker
williamyeh/debian-jessie64-docker: Debian Jessiesupport Docker
Choose to practice docker.
$ vagrant init yungsang/coreos
$ vagrant up
After system startup, then ssh into machine and have fun.
vagrant ssh

Reference :
1. Vagrant Tutorial(2)跟著流浪漢把玩虛擬機
2. Windows Boxes for Vagrant Courtesy of Modern.ie
3. Issue tracker for OS X Mavericks Vagrant box

2014年6月23日 星期一

[碩士]研究方法

[碩士]研究方法

尋找主題方法


  1. 加註日期, 有任何想法就寫下來,豐富主題內容。
  2. 論文區域性,題目不用太大
  3. 利用零碎時間,想想題目,有任何想法寫下,以利未來參考或更深度思考。
  4. 多看文獻。
    可增加深度,但所找論文和想做主題有偏,可先劃橫桿[1]
  5. 讀剩下存留的文獻
  6. 主題明確時,可找老師討論
  7. 如果還是沒有題目,以數學而言,可以把前人智慧,用自己方式走一遍,此論文為學習類。

文獻編排

1. 一開始給文獻一個隨機的號碼。
2. 最後定稿時,文獻號碼要重排。

實驗方法


  1. 論文要誠實,實驗結果不可以亂改。
    1. 方法
    2. 步驟
    3. 對象
    4. 結果

    結果的部份,要自我解釋。
    假如結果部份無法解釋,可做為未來研究對象。
  2. 個人《想法》和《做法》很重要。

論文結論

實驗<—>結果 相互呼應
1. 論文有缺陷較好,可有未來研究對象.
2. 論文無缺陷,可把方法應用在不同對象.
3. 放大論文優點,為什麼這題目值的寫.

註解

[1] 暫時先劃橫桿,之後或許也可以參考。

2014年1月8日 星期三

「報告」 整合多媒體實作

交通大學 --》 大學路 1001號
透過建議路線
Q1 :從交通大學到南寮國小,共要花多久時間?

Q2 :從交通大學到西門國小,共要花多長距離?
透過街景服務

Q3 :舊社國小,附近有那些街景?