2013年9月3日 星期二

心得:Opera & FX

在Opera換新核心之後看到有些人開始轉用FX,我也因為新版Opera 有一些常用功能還沒弄好而暫時使用FX,目前為桌電使用FX比電使用OP,兩個瀏覽器同時使用。

2013年8月24日 星期六

ingress

ingress是我最近被抓來新玩得一款手機遊戲,這遊戲是由 Google 的 NianticLabs 開發的一款擴增實境遊戲,現實裡的世界地圖就是遊戲裡德世界地圖玩遊戲時是以真實地圖配合GPS進行。
        現實世界裡的景點在遊戲裡就是個portal據點,而我們玩家們就是要去佔領或是守護這些portal據點。

2013年5月31日 星期五

Opera

最近一陣子Opera的大新聞大概就是他改用Webkit核心,而改用Webkit核心的新手機板瀏覽器已經正式推出了,桌面板的也在前幾天推出NEXT版。

Google Keep

最近玩了一陣子Google Keep ,這Google出的筆記軟體挺方便的,在Android上紀事時方便簡潔,輕巧好用沒有太多的功能,就單純的文字既是跟代辦事項還有照片跟語音記事這樣,可是它可以同步,這樣每次手機還原後記事也都會還在。
現在除了手機板之外還有Chrome的擴充元件版,開啟後他會獨立開一個新視窗,裡面資料也是跟手機同步,以單純記事來說我覺得這套軟體鰻好用的。

2013年5月13日 星期一

個人常用符號

粗體\textbf{}
斜線$\backslash$
%       \%
^        \^{}
_        \_{}
下標  _{}
\thispagestyle{empty},後一指令的目的是避免頁碼出現

2013年5月8日 星期三

VSFTP設定


# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone?  vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=NO
#
# Run standalone with IPv6?
# Like the listen parameter, except vsftpd will listen on an IPv6 socket
# instead of an IPv4 one. This parameter and the listen parameter are mutually
# exclusive.
#listen_ipv6=YES
#
# Allow anonymous FTP? (Disabled by default)
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
#write_enable=NO
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=NO
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=NO
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# If enabled, vsftpd will display directory listings with the time
# in  your  local  time  zone.  The default is to display GMT. The
# times returned by the MDTM FTP command are also affected by this
# option.
use_localtime=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories.  See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
#chroot_local_user=YES
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# chroot)
chroot_local_user=YES
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# Customization
#
# Some of vsftpd's settings don't fit the filesystem layout by
# default.
#
# This option should be the name of a directory which is empty.  Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd/empty
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
#
#
#secure_chroot_dir=/home/dot/test
#user_config_dir=/home/dot/test
#userlist_enable=NO
local_root=/media/dot/DATA/FTP

2013年2月13日 星期三

ASUS A45VM 使原廠還原

        之前電腦裡的SVCHOST有點小問題,有時候會吃CPU的使用量,然後又抓不到問題在哪一直無法解決,於是就決定要來還原系統。由於之前做的還原光碟沒帶回家所以直接用它內建的還原系統去還原。
       在開機看到ASUS這幾個字時按F9即可進入還原系統裡,進去後有三個選項,第一個是還原C槽,第二個是還原成一個磁區第三個是還原成最開始的兩個槽(兩個槽裡的資料都會清空)。
       我使用第一個選項進行還原,他還原的速度還蠻快的大概10~15分鐘內可以結束這階段的還原,為啥說這階段呢?因為他不像GHOST那樣還原完就可以直接使用,他這階段還原完的效果跟你直接拿一片win7來灌是一樣的。沒有驅動程式沒有其他有的沒的軟體就只有乾乾淨淨的win7在那裏。之後她會自動重新開機進去跑安裝程式,所有的驅動程式以其他原本所附的一些軟體以及更新檔都直接全自動化的安裝完成,這階段他會不斷地重新開機,此時不要操作電腦直到他完全跑完,最後跑完他會跟你買電腦第一次開機一樣,此時就是完全還原完成了。
        一開始我以為他是向GHOST那樣的還原方式,後來跑完第一階段後才發現不是,"據說"這種還原方式比較穩定,先幫你把win7還原好剩下的驅動程式在自動安裝,但是我不喜歡這種還原方式,他花的時間跟我直接灌win7在灌那些驅動沒差多少,這次還原我花了也有4.50分鐘八。這樣只是方便我不用處理驅動而已。
        而且我發現這次還原完後出現了一些我這台電腦原本沒灌的廠商公用程式,像是Face Logon還有一些windows的程式。這種還原方式對我來說還蠻奇特的。

2013年2月9日 星期六

Latex 個人常用package以及設定

此設定為參考元智大學論文Latex範本所修改過來

使用的排版系系統是XeLatex  其中XCJKnumb需另外下載

\usepackage{geometry}
\usepackage{titlesec}
\usepackage{titletoc}
\usepackage{graphicx}
\usepackage{subfigure} % for subfigure
\usepackage{algorithmic} %演算法使用
\usepackage{algorithm}
\usepackage{amsmath} % 各式 AMS 數學功能
\usepackage{amssymb} % 各式 AMS 數學符號
\usepackage{mathrsfs} %草寫體數學符號,在數學模式裡用 \mathscr{E} 得草寫 E
\usepackage{listings} % 程式列表套件
\usepackage{url} % 在文稿中引用網址,可以用 \url{http://www.ntust.edu.tw} 方式
\usepackage{fontspec} %加這個就可以設定字體
\usepackage{xeCJK} %讓中英文字體分開設置
\usepackage{fancyhdr}
\usepackage{xCJKnumb}
\pagestyle{fancy}
\fancyhead{} % reset left, central, right header to empty
\fancyfoot[C]{\thepage} %中間 footer 擺放頁碼
%\renewcommand{\abstractname}{\large 摘要} %將摘要英文改成中文
\renewcommand{\figurename}{圖}%將圖片英文改成中文
\newcommand{\mybaselinestretch}{1.5} %行距 1.5 倍 + 20%, (約為 double space)
\renewcommand{\baselinestretch}{\mybaselinestretch} % 論文行距預設值
\renewcommand{\headrulewidth}{0pt} % header 的直線; 0pt 則無線
\geometry{verbose,a4paper,tmargin=3.5cm,bmargin=2cm,lmargin=3cm,rmargin=3cm}
\setmainfont{Arial} %設定主要字型,也就是英文字型
\setCJKmainfont{DFKai-SB} %設定中文字型
\XeTeXlinebreaklocale "zh" %這兩行一定要加,中文才能自動換行
\XeTeXlinebreakskip = 0pt plus 1pt %這兩行一定要加,中文才能自動換行
\setCJKmainfont[AutoFakeBold=4,AutoFakeSlant=.4]{DFKai-SB}   %設定軟體粗體及斜體
%切換字體
%\defaultCJKfontfeatures{AutoFakeBold=6,AutoFakeSlant=.4} %以後不用再設定粗斜
%\newCJKfontfamily\Kai{標楷體} %定義指令\Kai則切換成標楷體
%\newCJKfontfamily\Hei{微軟正黑體} %定義指令\Hei則切換成正黑體
%\newCJKfontfamily\NewMing{新細明體} %定義指令\NewMing則切換成新細明體

Latex 章節名稱及目錄改為中文

Latex章節預設的名稱是Chapter 1 2 3 這樣一直下去
如果要改成中文"第一章" 這樣的話需要 titlesec, titletoc,CJKnumb這三個package
如果是使用XeLatex最後一個要改成xCJKnumb 這個package要另外自行下載,估狗可以估狗的到。
使用 CJKnumb package的話 使用下面的指令
\usepackage{titlesec}
\usepackage{titletoc}
\usepackage{CJKnumb}
 \titleformat{\chapter}{\centering\Huge\bfseries}{第\,\CJKnumber{\thechapter}\,章}{1em} {}





使用xCJKnumb package的話 使用下面的指令
\usepackage{titlesec}
\usepackage{titletoc}
\usepackage{xCJKnumb}
\titleformat{\chapter}{\centering\Huge\bfseries}{第\,\xCJKnumber{\thechapter}\,章}{1em} {}

改變章節名稱後章節上方可能會有一大片空白,此時可使用
\titlespacing{\chapter}{0cm}{-1.3cm}{1em}  指令來修改上方空白的大小


以上只會改變內文裡的Chapter 目錄裡的不會改。
目錄裡的也要改的話要在目錄指六後面加上以下指令(此處使用xCJKnumb)
\titlecontents{chapter}[0em]
{}{\makebox[4.1em][l]
{第\xCJKnumber{\thecontentslabel}章}}{}
{\titlerule*[0.7pc]{.}\contentspage}

將目錄標題中文化使用下列指令
\renewcommand\contentsname{目錄}
\renewcommand\listfigurename{圖目錄}
\renewcommand\listtablename{表目錄}

要寫成表1.1 圖1.1的話需加入下列指令
\newcommand{\loflabel}{圖}
\newcommand{\lotlabel}{表}

然後再圖目錄處加入
\renewcommand{\numberline}[1]{\loflabel~#1\hspace*{1em}}
\listoffigures

表目錄處加入
\renewcommand{\numberline}[1]{\lotlabel~#1\hspace*{1em}}
\listoftables


手動將章節加入目錄可以參考這篇http://www.ptt.cc/bbs/LaTeX/M.1242265895.A.D0A.html

大致內容如下
使用 addcontentsline指令
\addcontentsline{toc}{章節名}{標題}
章節名 要加入目錄的那段的層級 ex: chapter section
標題 要加入目錄那段的名字 ex: Chapter ABC的ABC

Latex 參考資料

以下為Latex的一些參考資料,時間充足的話建議把http://homepage.ntu.edu.tw/~ntut019/cwtex/cwtex.html 裡面的"cwTeX3 手冊 [含超連結功能]"看完。
這手冊寫得非常的詳細,只是他是使用cwtex來排版如果是使用其他排版系統如XeLatex的話有些語法要修改一下。

如果是要用Latex來寫論文的話可以參考元智大學的論文範本
網址如下
http://exciton.eo.yzu.edu.tw/~lab/latex/howto_yzu_thesis.html
裡面寫得很詳細排版啥也都沒有問題。
其他學校的舊請自行估狗了

2013年1月28日 星期一

Latex 安裝

Latex是一種基於TEX的排版系統`,這邊我是使用XeLatex。不用cwTex是因為cwTex是使用Big5編碼而XeLatex則是使用UTF-8編碼。而個人偏好使用UTF-8編碼而且用UTF-8在其他作業系統上比較不會出現亂碼的問題。而且可以直接使用系統裡有的字型而不用再另外轉格式給Latex用。

        在WINDOWS下安裝XeLatex只需要去下載MiKTeX 來安裝即可

安裝完後開啟Texwork就可以開始進行撰寫。將上方的編譯引擎改成XLatex即可使用XeLatex編譯。
個人是習慣使用這套軟體,其他編寫軟體也可以另外去下載來用。

         在UBUNTU下要安裝XeLatex就稍微比較麻煩了點,要安裝的套件有Texworks、 texlive、texlive-xetex、TeX Live: TeX Live documentation 、TeX Live: LaTeX recommended packages 、TeX Live: LaTeX supplementary packages、TeX Live: Graphics packages and programs、texlive-science
主要是需要安裝Texworks、 texlive、texlive-xetex這三個套件,其中 Texworks跟 texlive-xetex可以直接在軟體中心裡找到, texlive需在synaptic套件管理程式裡面勾選安裝,剩下的都是package看需要哪些package在找對應的套件下載即可,前面所列的是我有用到的package。
安裝完後一樣開啟texworks即可編寫,使用方式跟windows版的一樣。 

2013年1月27日 星期日

回憶2012

這邊本來應該要在20天前打的才對,之前真的太忙了跨完年就開始準備期末考跟期末報告了,都沒時間來打這篇記錄一直拖到現在才有空來打。

時間過得很快的一年又這樣過去了,這一年中一樣發生了好多事情好多大的變化,又認識了好多新朋友,去年是充滿了驚奇、變化、樂趣的一年。