This is not a blog, but my notes and tips for research. Feel free to take any information and leave any comments or questions.
Search This Blog
Friday, December 14, 2007
Wednesday, December 5, 2007
Tuesday, December 4, 2007
Yuewei Liu's defense
Congratulations!
Wednesday, November 21, 2007
A paper accepted in EPJE
"The European Physical Journal E (EPJ E) originates from the merging of Il Nuovo Cimento, Journal de Physique II, and Zeitschrift für Physik."
Sunday, November 11, 2007
Double Spacing in LaTex
To doublespace a LaTeX document, you should include the line \usepackage{setspace} after your \documentclass line. Before your \begin{document} command, \doublespacing will make the text of the whole document doublespaced. Footnotes, figures, and tables will still be singlespaced, however. For one-and-a-half spacing, instead use the command \onehalfspacing In order to make a part of the text of your document singlespaced, you can put: \begin{singlespace} at the beginning of the text you want singlespaced, and \end{singlespace} at the end. You can also set the spacing to be something other than doublespaced; for example, if you wanted to have one-and-a-quarter spacing between lines, use the line \setstretch{1.25} before your \begin{document} command, and after the \usepackage{setspace} line.
Source
Monday, November 5, 2007
Positions Available
web site http://pam.eng.hawaii.edu
Download this announcement (PDF and Word)
Friday, November 2, 2007
Scholarship offered to Todd Kawamoto
Monte Carlo Simulation of Crossflow Filtration
A supplementary video is as follows simulating distribution of particles in the crossflow (x-direction) membrane channel.
Awards Ceremony and Reception, Sep. 27, 2007
Friday, October 5, 2007
MPI-Broadcating a new data type
!****************************************************************************
program main
use mpi
TYPE particle ! Defining the DATA TYPE of "particle"
REAL, DIMENSION(3) :: Coord
REAL :: Radius
REAL :: ZetaPt
END TYPE particle
type(particle) :: colloid1
integer n, myid, numprocs , rc
integer, dimension(1) :: t, b, d
call MPI_INIT( ierr )
call MPI_COMM_RANK( MPI_COMM_WORLD, myid, ierr )
call MPI_COMM_SIZE( MPI_COMM_WORLD, numprocs, ierr )
print *, 'Process ', myid, ' of ', numprocs, ' is alive'
colloid1%Coord = 0
colloid1%Radius = 0.0
colloid1%ZetaPt = 0.0
if ( myid .eq. 0 ) then
n = 100000
colloid1%Coord(1) = 10.0
colloid1%Coord(2) = 20.0
colloid1%Coord(3) = 30.0
colloid1%Radius = 1.0
colloid1%ZetaPt = 0.0
endif
call MPI_BCAST(n,1,MPI_INTEGER,0,MPI_COMM_WORLD,ierr)
if ( myid .gt. -1 ) then
print *, ' n of process ', myid, ' is ', n
endif
t(1) = MPI_REAL
b(1) = 13
d(1) = 0
call MPI_TYPE_STRUCT (1,b,d,t,MPI_PARTICLE, ierr)
call MPI_TYPE_COMMIT (MPI_PARTICLE, ierr)
call MPI_BCAST(colloid1,1,MPI_PARTICLE,0,MPI_COMM_WORLD,ierr)
if ( myid .gt. -1 ) then
print *, myid, colloid1
endif
call MPI_FINALIZE(rc)
stop
end
Wednesday, September 26, 2007
Monday, September 10, 2007
File repository setup
I have been using SVN (subversion) to manage my document file repository. SVN is being utilized more widely than CVS. With the repository in my Linux box, accessing the SVN repository from Windows on my PC was not an easy task.
There are several ways to use ssh (secure shell) to connect a remote host from Windows: Cygwin, openssh for windows, CopSSH, and PuTTY. PuTTY is popular since it is free of charge and can be easily incorporated with any other Windows software. Using a private ssh-key, PuTTY allows very easy access to remote hosts, providing a reasonable GUI as good as other ssh programs for Windows such as TortoiseSVN.
TortoiseSVN is also free software, providing all the SVN features under Windows. It works with Windows Explorer (Firefox also works fine with it!) to locate the remote repository through an ssh protocol authenticated by the private key stored in PuTTY.
One of practical ways of using SVN is:
1) Visit the repository to locate a directory of tasks;
2) Check out the directory to a local directory (This can be done to Windows or Linux. In Linux, KEDSVN provides an excellent GUI);
3) Work with files in the directory;
4) Once done, commit the files updated to the directory, which will be remotely transmitted and stored in the repository, and
5) Delete the local directory to avoid any confusion with older versions.
Any jobs not completed in your office can be easily retrieved from anywhere in the world. If the previous directory is not deleted, then the 'update' option can be used to partially overwrite and/or add files to the local directory by retrieving the most updated files from the repository.
Thursday, August 23, 2007
subequation numbering in LaTex
\begin{eqnarray}
u &\simeq& \gamma_0 y \\
v &\simeq& v_w\left(x\right)
\end{eqnarray}
\end{subequations}
Wednesday, August 22, 2007
/newcommand
\documentclass[letterpaper]{article}
\newcommand{\tcol}[1]{\textcolor{blue}{#1}}
\begin{document}
A \tcol{command} usually begins with a backslash.
\end{document}
==================
General Usage
==================
\newcommand{cmd}[args]{definition}
\newcommand{cmd}[args][default]{definition}
\renewcommand{cmd}[args]{definition}
\renewcommand{cmd}[args][default]{definition}
These commands define (or redefine) a command.
cmd
- A command name beginning with a
\
. For\newcommand
it must not be already defined and must not begin with\end
; for\renewcommand
it must already be defined. args
- An integer from 1 to 9 denoting the number of arguments of the command being defined. The default is for the command to have no arguments.
def
- If this optional parameter is present, it means that the command's first argument is optional. The default value of the optional argument is
def
. definition
- The text to be substituted for every occurrence of
cmd
; a parameter of the form#n
incmd
is replaced by the text of the nth argument when this substitution takes place.
Wednesday, August 15, 2007
Ubuntu CJK Chinese Japanese Korean Input Guide
sudo apt-get install uim anthy scim-gtk2-immodule scim-uim scim-chinese scim-hangul scim-tables-zh scim-tables-ja scim-tables-ko
sudo touch /etc/X11/Xsession.d/74custom-scim_startup
sudo chmod 646 /etc/X11/Xsession.d/74custom-scim_startup
echo 'export XMODIFIERS="@im=SCIM"' >> /etc/X11/Xsession.d/74custom-scim_startup
echo 'export GTK_IM_MODULE="scim"' >> /etc/X11/Xsession.d/74custom-scim_startup
echo 'export XIM_PROGRAM="scim -d"' >> /etc/X11/Xsession.d/74custom-scim_startup
echo 'export QT_IM_MODULE="scim"' >> /etc/X11/Xsession.d/74custom-scim_startup
sudo chmod 644 /etc/X11/Xsession.d/74custom-scim_startup
sudo touch ~/.kde/Autostart/startscim
echo "#!/bin/sh" >> ~/.kde/Autostart/startscim
echo "scim -d" >> ~/.kde/Autostart/startscim
sudo chmod 745 ~/.kde/Autostart/startscim
Press CTRL-SPACE to bring up SCIM input methods.
Thursday, August 9, 2007
Projector configuration with Ubuntu
sudo dpkg-reconfigure -phigh xserver-xorg
Tuesday, August 7, 2007
pdftk tools
pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf
or (Using Handles):
pdftk A=1.pdf B=2.pdf cat A B output 12.pdf
or (Using Wildcards):
pdftk *.pdf cat output combined.pdf
Split Select Pages from Multiple PDFs into a New Document
pdftk A=one.pdf B=two.pdf cat A1-7 B1-5 A8 output combined.pdf
Encrypt a PDF using 128-Bit Strength (the Default) and Withhold All Permissions (the Default)
pdftk mydoc.pdf output mydoc.128.pdf owner_pw foopass
Same as Above, Except a Password is Required to Open the PDF
pdftk mydoc.pdf output mydoc.128.pdf owner_pw foo user_pw baz
Same as Above, Except Printing is Allowed (after the PDF is Open)
pdftk mydoc.pdf output mydoc.128.pdf owner_pw foo user_pw baz allow printing
Decrypt a PDF
pdftk secured.pdf input_pw foopass output unsecured.pdf
Join Two Files, One of Which is Encrypted (the Output is Not Encrypted)
pdftk A=secured.pdf mydoc.pdf input_pw A=foopass cat output combined.pdf
Uncompress PDF Page Streams for Editing the PDF Code in a Text Editor
pdftk mydoc.pdf output mydoc.clear.pdf uncompress
Repair a PDF's Corrupted XREF Table and Stream Lengths (If Possible)
pdftk broken.pdf output fixed.pdf
Burst a Single PDF Document into Single Pages and Report its Data to doc_data.txt
pdftk mydoc.pdf burst
Report on PDF Document Metadata, Bookmarks and Page Labels
pdftk mydoc.pdf dump_data output report.txt
Sunday, August 5, 2007
Tuesday, July 31, 2007
Dell-made 16-node cluster: 2006 version
- Linux Cluster from Dell Inc. under support from National Science Foundation
- 16 nodes, 2 Xeon processors (2.3 GHz), and 2 GB memory per node
- Queuing system: Platform Lava, Platform Computing Inc.
- Programming Language: Intel FORTRAN 90 and Intel C/C++
- Library Installed: BLAS, BLACS, ATLAS, LAPACK, ScaLAPACK, OPENMPI
Home-made 16-PC cluster: 2001 version
Friday, July 20, 2007
Conditions for Equilibrium
--- Elementary Statistical Physics by C. Kittel ---
Friday, July 6, 2007
Kmail Backup
1. Kmail:
.kde/share/apps/kmail/
.kde/share/config/kmailrc
2. You can export a current Calendar in Kontact as "iCalendar" format, save it with a unique name in a directory, and add it to Calendar again. Do not need to backup the files under .kde directory. "To-do List" and "Journal" are also included in the "iCalendar" file of the ".ics" extension.
3. Knote:
.kde/share/apps/knote/
Wednesday, July 4, 2007
Replacing characters using vi editor
1) Open the file using vi editor:
vi myfile.txt
2) Use keystrokes of Esc, followed by
which will replace all "old" with "new" within the entire document.
Sunday, July 1, 2007
Useful LSF commands
- bacct - displays accounting statistics about finished jobs
- bhist - displays historical information about jobs
- bhosts - displays hosts and their static and dynamic resources
- bjobs - displays information about LSF jobs (e.g. bjobs -u all)
- bsub - submits a batch job to LSF
- bpeek - displays the stdout and stderr output of an unfinished job
- bqueues - displays information about queues.
- lsclusters - displays configuration information about LSF clusters
- lshosts - displays static resource information about hosts.
- lsid - displays the current LSF version number, the cluster name, and the master host
name - lsload - displays load information for hosts
- lsinfo - displays all load sharing configuration information
- lsmon (xlsmon) - displays load information for LSF hosts and periodically updates the display
- lsrun - submits a task to LSF for execution.
Saturday, June 30, 2007
A simple bash script to change a file name
#!/bin/bash
mv mydata.dat my$1data.dat
If the script name is "changefile", type and enter in a shell prompt:
changefile 22
22 is the argument ($) taken as $1, and 1 means the first argument. In this case, there is only one argument.
Friday, June 29, 2007
Negative Index of Array Dimension
DO i=-5,5
Z(i) = REAL(i)
WRITE(*,*) i, Z(i)
END DO
STOP
END
Generation of Files with Sequential Names
INTEGER :: i,imax=1000000
INTEGER :: r,s
DO i = 1,10
WRITE(str,'(F7.6)') REAL(i)/REAL(imax)
r=scan(str,".")
s=len(str)
str=str(r+1:s)
WRITE(str,*) TRIM(Fname)//TRIM(str)//".dat"
OPEN(unit=imax+1,file=str)
WRITE(imax+1,*) TRIM(str)
CLOSE(unit=imax+1)
END DO
STOP
END
Friday, June 22, 2007
How to create SVN repository
svnadmin create --fs-type fsfs /home/albertsk/svn2/albertsk
kdesvn provides a wonderful GUI environment with users to easily manage svn repositories.
Good svn tutorials can be found at
http://artis.imag.fr/~Xavier.Decoret/resources/svn/
http://svnbook.red-bean.com/
Labels
- Academic Notes (4)
- BLAS (1)
- CEE618 (2)
- CentOS (1)
- Computation (1)
- Conferences (1)
- Cross compiling (1)
- Graphics (1)
- Hawaii Tour (2)
- Intel compiler (1)
- Just (1)
- Laptop (1)
- LaTex (22)
- Life and Humanity (8)
- Linux and Computing (107)
- LSF (1)
- Lyx (3)
- Macintosh (5)
- MPI (1)
- News (11)
- OpenFoam (1)
- OpenMPI (1)
- PBS (2)
- Software (4)
- SSH (2)
- torque (1)
- Touchpad (1)
- VMD (1)
- yum (1)