Friday, December 21, 2012

Use a Linux Machine as Web Proxy


Prerequisites:
- Linux machine: Ubuntu with SSH connection, says, 98.138.253.109, port 22, user bossie
- Windows machine: PuTTy, Firefox browser

PuTTy:
- Put in SSH info (Hostname: 98.138.253.109, Port: 22, Connection type: SSH)
- Left panel: Connection > SSH > Tunnels and add server info with a port number, says 8888 then click Add button

 - Open connection, log in

Firefox:
- Options > Advanced > Network > Settings.
- Choose Manual proxy configuration, enter localhost for the SOCKS Host, and 8888 for the Port.


VoilĂ  your proxy. Browse Web through 98.138.253.109

Thursday, December 20, 2012

Quick Start: Graph with Matlab

Prepare data in file ttidata.m

1 157 1851 (separated by TAB)
2 203 1864
3 250 1866
4 281 1869
5 313 2187
6 344 2713
7 359 2716
8 375 2942
9 406 3039
10 453 3301

Draw (x, y) and (x, z) graphs on the same canvas

load ttidata.m
y = ttidata(:,2);
z = ttidata(:,3);
plot([1:length(y)],y,'g-x')
hold on
plot([1:length(z)],z,'g-x')

Quick Start: LaTeX

Environment Preparation
1. LaTex package: download and install
- MiKTex: http://miktex.org/
2. LaTex editor: download and install
- TexMaker: http://www.xm1math.net/texmaker/
3. Template: download and extract
- IEEEtran: http://www.ieee.org/documents/windows_latex_template.zip

Hello World
1. Open bare_jrnl.tex in the IEEEtran template with TexMaker and edit it as you wish.
2. Build the document by F6 (PDFLaTeX) and view F7 (View PDF)