Tuesday, December 28, 2010

beamer bullets for table of contents

%\setbeamertemplate{sections/subsections in toc}[ball]
\setbeamertemplate{subsection in toc}[ball]
%ref: beamer class user guide

beamer is not good in the sense that it took me quite a long to figure
out how to put some bullets in the table of contents.

beamer installation place on ubuntu

/usr/share/texmf/tex/latex/beamer

it might be help when we need to know where beamer and other classes
files are located.


and use
texhash
mktexlsr

to remake the indices for texlive

Monday, December 6, 2010

ubuntu videio 2 audio

# mplayer -dumpaudio nodame_theme.flv -dumpfile nodame_theme.mp3

Saturday, November 27, 2010

ssh proxy server

ssh -D 8080 -Nf example.com

Saturday, October 9, 2010

Latex cross out line

http://voip.csie.ntu.edu.tw/resources/tipsonlatex.htm

\usepackage{ulem}

\xout{xx} 
\sout{yy} 

Thursday, August 19, 2010

svnsync example

copied from http://paste.lisp.org/display/99333

it really works

first create a file pre-revprop-change including the following output by cat. And the file needs to be executable.
That is,


$chmod +x pre-revprop-change


$ cat pre-revprop-change
#!/bin/sh
exit 0


$ ls -Alh pre-revprop-change
-rwxr-xr-x 1 pmezard staff 18B May 17 11:37 pre-revprop-change
$ svnadmin create repo
$ cp pre-revprop-change repo/hooks/
$ svnsync init --username svnsync file://`pwd`/repo http://wub.googlecode.com/svn
Copied properties for revision 0.
$ svnsync sync file://`pwd`/repo
Committed revision 1.
Copied properties for revision 1.
Transmitting file data ................................................................
Committed revision 2.
Copied properties for revision 2.
[...]

Wednesday, July 21, 2010

kerying in ubuntu

Remove the files under that folder would get rid of the keyrings
and then it would remind you to create a new one.

Monday, July 5, 2010

working with long lines in vim


When we have long lines in VIM and we set wrap option to make it a lone lines look like 
several lines in view.  But the moving across lines using jk are still on real lines. How to work around this? 

First, we can map like the following:
 noremap <C-J> gj noremap <C-K> gk 

That's really useful when dealing with long lines. It lets you use Control-J and Control-K to move up and down screen lines instead of buffer lines with j and k. Control-J isn't really mapped to anything by default, it's like hitting enter, but Control-K is something to do with digraphs. However, noremap won't remove this ability in insert mode.

Alternatively, you could use:

 noremap <Up> gk noremap <Down> gj 


Wednesday, June 23, 2010

Hiren's BootCD

Hiren's BootCD might be a handy tool when it comes to

repair boot sector in windows 7
recover wim to a partition



Thursday, June 10, 2010

windows 7 recover mbr and bootsect

bootsect in under boot folder in windows 7 install disc

easybcd is a good tool to repair automatically.

http://neosmart.net/dl.php?id=1

Sunday, April 18, 2010

R pchs, point symbols






R points symbols

png('tmp.png', width=800, height=2000);
plot(c(1,2), c(0, 20), type = 'n', xlab="", ylab="", main='', xaxt='n', yaxt='n');
points(rep(1.3, 20), 1:20, pch=1:20, cex=3);
text(rep(1.7,20), 1:20, as.character(1:20), cex=3);

Sunday, April 11, 2010

snow leopard slow connect ssh

/etc/sshd_config

# add the following line seems working
UseDNS no

mac rm ssh kerberose

I am not sure what I am doing?

sudo sso_util remove -k -a username -p password -r NAME. OF.KERBEROSREALM

Wednesday, March 31, 2010

vim reg for substitution

http://webspace.webring.com/people/do/oleg66/


Meaning
&
the whole matched pattern
\L
the following characters are made lowercase
\0
the whole matched pattern
\U
the following characters are made uppercase
\1
the matched pattern in the first pair of \(\)
\E
end of \U and \L
\2
the matched pattern in the second pair of \(\)
\e
end of \U and \L
...
...
\r
split line in two at this point
\9
the matched pattern in the ninth pair of \(\)
\l
next character made lowercase
~
the previous substitute string
\u
next character made uppercase

Saturday, January 9, 2010

bash PS1

export PS1='\h:\w \u\$ '

Monday, January 4, 2010

linux software for me

Terminator

Two for editing mp3 tags:
EasyTag
tagtool


partimage to backup partitions