This link provides the detailed the solution.
http://www.planet-rcs.de/article/mac_serial_port/
Note:
1. make sure you are using PL-2303 cable
2. In addition to the software mentioned in the link, you could use minicom. It has the same function in Linux.
Tuesday, February 28, 2012
Saturday, February 18, 2012
Install Xcode on Lion 10.7
After install XCode from app store, the terminal still doesn't recognize Unix command: make, gcc.
You need go to apple development website to download "command line tools for xcode".dmg file.
and install it.
https://developer.apple.com/downloads/index.action#
You need go to apple development website to download "command line tools for xcode".dmg file.
and install it.
https://developer.apple.com/downloads/index.action#
Wednesday, February 1, 2012
comment package cannot be used by latexdiff
main.tex
\usepackage{comment}
background.tex
\begin{comment}
\end{comment}
if run command at article-latexdiff
error message:
File ended while scanning use of \next.
Need to remove
\begin{comment}
\end{comment}
\usepackage{comment}
background.tex
\begin{comment}
\end{comment}
if run command at article-latexdiff
error message:
File ended while scanning use of \next.
Need to remove
\begin{comment}
\end{comment}
Saturday, December 3, 2011
e1000 network card info
http://developer.intel.com/products/ethernet/resource.htm?s1=all&s2=82541PI&s3=Datasheet#s1=Gigabit%20Ethernet&s2=all&s3=all
e1000 network card model:
82540EM
82541PI
......
Small difference between 82540EM and 82541PI
1. The default internal buffer size is different
82540EM : 16KB
82541PI: 24 KB
2. 82540EM can configure MSI control register at PCI configuration space, but 82541PI is a read only register
e1000 network card model:
82540EM
82541PI
......
Small difference between 82540EM and 82541PI
1. The default internal buffer size is different
82540EM : 16KB
82541PI: 24 KB
2. 82540EM can configure MSI control register at PCI configuration space, but 82541PI is a read only register
ethtool
// man page of ethtool
$ ethtool -h
// Check statistic registers of network card
$ ethtool -S eth0
// See most of the registers of network card in interface eth0
$ ethtool -d eth0
// See the driver information
$ ethtool -i eth0
NIC: Intel e1000
more info:
http://www.globax.info/mediawiki/index.php/Intel_Gigabit_Performance
$ ethtool -h
// Check statistic registers of network card
$ ethtool -S eth0
// See most of the registers of network card in interface eth0
$ ethtool -d eth0
// See the driver information
$ ethtool -i eth0
NIC: Intel e1000
more info:
http://www.globax.info/mediawiki/index.php/Intel_Gigabit_Performance
Thursday, December 1, 2011
latexdiff for Paper in PDF
1. Install the latexdiff
http://fengweizhang.blogspot.com/2010/12/subversion-latex.html
2. run:
$ latexdiff -t CFONT --flatten ../HC-4/main.tex main.tex > doc.tex
-t CFONT: type of latexdiff
--flatten: reversal of directory
../HC-4/main.tex: old version of main.tex of paper
main.tex: new version
doc.tex: output file
3. run:
$ pdflatex doc.tex
if reference cannot show, change the makefile from main to doc
compile the tex file and generate the pdf file
Other option(doesn't work on my Mac):
$ latexdiff-vc -t CFONT --fatten --svn -r 7 main.tex --pdf
latexdiff-vc: combine latexdiff and version control
-t CFONT: type
--fatten: reversal of directory
--svn: version control type
-r 7: compare to old version 7
main.tex: current version
--pdf: run pdflatex to generate pdf
more info:
http://helpful.knobs-dials.com/index.php/Latexdiff
http://web.njit.edu/all_topics/Prog_Lang_Docs/pdf/latexdiff/latexdiff-man.pdf
http://fengweizhang.blogspot.com/2010/12/subversion-latex.html
2. run:
$ latexdiff -t CFONT --flatten ../HC-4/main.tex main.tex > doc.tex
-t CFONT: type of latexdiff
--flatten: reversal of directory
../HC-4/main.tex: old version of main.tex of paper
main.tex: new version
doc.tex: output file
3. run:
$ pdflatex doc.tex
if reference cannot show, change the makefile from main to doc
compile the tex file and generate the pdf file
Other option(doesn't work on my Mac):
$ latexdiff-vc -t CFONT --fatten --svn -r 7 main.tex --pdf
latexdiff-vc: combine latexdiff and version control
-t CFONT: type
--fatten: reversal of directory
--svn: version control type
-r 7: compare to old version 7
main.tex: current version
--pdf: run pdflatex to generate pdf
more info:
http://helpful.knobs-dials.com/index.php/Latexdiff
http://web.njit.edu/all_topics/Prog_Lang_Docs/pdf/latexdiff/latexdiff-man.pdf
Tuesday, November 29, 2011
/boot directory is full and remount another partition to /boot direcotry
Problem: /boot directory on /dev/hda1 is full, and no more space on disk
Solve: re-mount /dev/hda6 to /boot
[root@centos5 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 9.5G 7.7G 1.4G 86% /
/dev/hda6 23G 4.7G 17G 22% /home
/dev/hda3 1.9G 37M 1.8G 3% /tmp
/dev/hda1 90M 85M 5M 100% /boot
mount /dev/hda6 /boot
[root@centos5 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 9.5G 7.7G 1.4G 86% /
/dev/hda6 23G 4.7G 17G 22% /home
/dev/hda3 1.9G 37M 1.8G 3% /tmp
/dev/hda1 23G 4.7G 17G 22% /boot
tmpfs 251M 0 251M 0% /dev/shm
/dev/hda6 23G 4.7G 17G 22% /boot
Solve: re-mount /dev/hda6 to /boot
[root@centos5 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 9.5G 7.7G 1.4G 86% /
/dev/hda6 23G 4.7G 17G 22% /home
/dev/hda3 1.9G 37M 1.8G 3% /tmp
/dev/hda1 90M 85M 5M 100% /boot
mount /dev/hda6 /boot
[root@centos5 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 9.5G 7.7G 1.4G 86% /
/dev/hda6 23G 4.7G 17G 22% /home
/dev/hda3 1.9G 37M 1.8G 3% /tmp
/dev/hda1 23G 4.7G 17G 22% /boot
tmpfs 251M 0 251M 0% /dev/shm
/dev/hda6 23G 4.7G 17G 22% /boot
Subscribe to:
Posts (Atom)