Tuesday, April 29, 2014

Latex Matrix Example

 \[  
 \begin{bmatrix}  
  X^1_1 & X^1_2 & \cdots & X^1_d \\  
  X^2_1 & X^2_2 & \cdots & X^2_d \\  
   \vdots & & & \\  
   X^N_1 & X^N_2 & \cdots & X^N_d    
 \end{bmatrix}  
 \]  
You can reference to the latex wiki page.

Saturday, April 26, 2014

Latex: a minimum working set

 \documentclass[12pt]{article}  
 \usepackage[utf8]{inputenc}  
 \usepackage{amsmath}  
 \title{Template}  
 \date{}  
 \begin{document}  
  \maketitle   
 \end{document}  

Thursday, April 24, 2014

Install GoAgent in 5 Minutes (Chrome Version)

You are in China, and you feel like you need to access beyond Chinese websites. I know how you feel, since I have been through this before. The good news is that you can now use goagent to bypass the Great Fire Wall. This tutorial shows how it can be done in 5 minutes.

Step 1. Create an application at Google App Engine. Remember the app id.


If you have already created one for the purpose of goagent before you don't need to create it again. You can use the same app to host goagent.

Step 2. Download GoAgent files. I have put a copy at my Google Drive so that you can access it here. In case you are not able to access Google Drive, I have put a copy at Weiyun which could be downloaded here.

Step 3. Unzip the files, run Server\Uploader.bat. Write down your Google App id as well as your email address and your password. After that you should be able to see Deployment Successful.

Step 4. Edit Local\Proxy.ini. Write down your appid and leave everything else as it is.



Step 5. Open Chrome and install the extension Proxy SwitchSharp here. The setting page should open automatically. If not manually open the setting page.

Step 6. In the export/import tab, you should see "Recover from local files" under "SwitchSharp options". Upload the file Local\SwitchOptions.bak. Click Yes when confirmation window popped up.

Step 7. In the "Switching Rules" tab, click "Update list immediately". However this is likely to fail as it is probably blocked by GFW, so here you should bypass it by turning on SwithSharp first. Click SwitchSharp icon on Chrome and choose "goagent".

Configuration is done. Go ahead and enjoy freedom.

Tuesday, April 8, 2014

Latex References for Equations and Hyperlinks

Equations:

 \usepackage{amsmath}  
 \begin{eqnarray*}  
 \min\frac{1}{2}w^Tw+C\sum\limits_{i=1}^l\epsilon_i \\  
 \mbox{subject to }y_i(w^T\phi(x_i)+b)\geq 1-\epsilon_i,\\  
 \epsilon_i\geq 0,i=1,...,l,  
 \end{eqnarray*}  
Hyperlinks:

 \usepackage{hyperref}  
 \url{https://www.statsoft.com/textbook/support-vector-machines}