\begin{mdframed}[roundcorner=15pt, frametitle
={Abstract},frametitlerule=true,frametitlebackgroundcolor=brown!30!white,]
...
\end{mdframed}
Sunday, December 14, 2014
Latex TextBox
Thursday, December 4, 2014
The Truth of Being Problematic
There are two categories of students in the world:
"Good students" and "Problematic students".
I have been a good student much of the time, but I am somehow being problematic when I was in Hong Kong.
But I don't think it is a big deal. There are many problematic students (and professors) in MIT and Stanford as of what I know.
Of course I wish I were a Straight-A student which will make my life easier, but being problematic does not mean a straight fail.
Anyway I am back to the Good-Student mode now and I am totally cool about continuing this way for the rest of my life. I guess that's what others say about growing up and being mature. =)
"Good students" and "Problematic students".
I have been a good student much of the time, but I am somehow being problematic when I was in Hong Kong.
But I don't think it is a big deal. There are many problematic students (and professors) in MIT and Stanford as of what I know.
Of course I wish I were a Straight-A student which will make my life easier, but being problematic does not mean a straight fail.
Anyway I am back to the Good-Student mode now and I am totally cool about continuing this way for the rest of my life. I guess that's what others say about growing up and being mature. =)
Sunday, November 23, 2014
Torch7 Cheatsheet
1. How to start gfx session:
luajit -lgfx.start
to stop:
luajit -lgfx.stop
2. How to run gfx script:
th -i 1_vis.lua
luajit -lgfx.start
to stop:
luajit -lgfx.stop
2. How to run gfx script:
th -i 1_vis.lua
Thursday, November 20, 2014
Pros and cons for different places to stay
China:
Pro:
Mediocre career path (IT sector).
Good housing and good food.
Close to home.
Con:
Chinese lifestyle.
Not so much freedom.
Chinese mindset everywhere.
Dictatorship. A lot of politics, censorship and restrictions.
Potential bad life quality due to pollution and unsafe food.
Isolated from the world.
Too entertaining. Hardly anyone is serious about anything.
Conclusion: OK to visit for short-term but may not be suitable to stay in the long-term.
US:
Pro:
Good career path (research).
High tech.
Good life quality.
Freedom.
Vast personal space.
Western style and mindset.
Con:
Few connections.
Far from home.
Not so good food.
Conclusion: the learning curve is high but good to stay in the long-term.
HK:
Pro:
Many connections.
Metropolitan lifestyle.
Close to home.
Good food.
Partially western mindset.
Small city. I know everyone. Feel safe.
Con:
Bad career path (if stay in IT sector).
High living cost. Bad housing.
Too materialistic and entertaining.
Crowdy and noisy. Very little personal space.
May easily get bored.
Conclusion: better than China but need sacrifice a lot of things (career interest, life quality). May need to consider other career options.
Conclusions: Both Hong Kong and US look good. But there is a trade-off between short-term benefits and long-term gains.
Pro:
Mediocre career path (IT sector).
Good housing and good food.
Close to home.
Con:
Chinese lifestyle.
Not so much freedom.
Chinese mindset everywhere.
Dictatorship. A lot of politics, censorship and restrictions.
Potential bad life quality due to pollution and unsafe food.
Isolated from the world.
Too entertaining. Hardly anyone is serious about anything.
Conclusion: OK to visit for short-term but may not be suitable to stay in the long-term.
US:
Pro:
Good career path (research).
High tech.
Good life quality.
Freedom.
Vast personal space.
Western style and mindset.
Con:
Few connections.
Far from home.
Not so good food.
Conclusion: the learning curve is high but good to stay in the long-term.
HK:
Pro:
Many connections.
Metropolitan lifestyle.
Close to home.
Good food.
Partially western mindset.
Small city. I know everyone. Feel safe.
Con:
Bad career path (if stay in IT sector).
High living cost. Bad housing.
Too materialistic and entertaining.
Crowdy and noisy. Very little personal space.
May easily get bored.
Conclusion: better than China but need sacrifice a lot of things (career interest, life quality). May need to consider other career options.
Conclusions: Both Hong Kong and US look good. But there is a trade-off between short-term benefits and long-term gains.
Monday, November 10, 2014
An Interesting Thread
I decide to write something outside latex, matlab, etc.
Yes I have been using GIMP a lot recently. Changing habit from Photoshop to GIMP takes some learning curve.
The interesting thing is, if you select some region from an image, and want to create a new image with that region (same size), what will you do?
This is the hotkey:
select->Ctrl+new->Ctrl+shift+V
Happy open sourcing.
Yes I have been using GIMP a lot recently. Changing habit from Photoshop to GIMP takes some learning curve.
The interesting thing is, if you select some region from an image, and want to create a new image with that region (same size), what will you do?
This is the hotkey:
select->Ctrl+new->Ctrl+shift+V
Happy open sourcing.
Tuesday, November 4, 2014
latex include figure
Method 1
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\begin{figure}
\centering
\begin{subfigure}[b]{0.22\textwidth}
\includegraphics[width=\textwidth]{img/fig1/000254.png}
\label{fig:left_img}
\end{subfigure}
\begin{subfigure}[b]{0.22\textwidth}
\includegraphics[width=\textwidth]{img/fig1/000254R.png}
\label{fig:right_img}
\end{subfigure}
\begin{subfigure}[b]{0.45\textwidth}
\includegraphics[width=\textwidth]{img/fig1/vel2.png}
\label{fig:vel}
\end{subfigure}
Method 2
\begin{figure}
\includegraphics[width=1\columnwidth]{img/img5/scenes.png}
\caption{.}
\label{fig:}
\end{figure}
Git Remove and Latex Bibliography
Sometimes you decide to add .gitignore in your git project in the middle, and you need to remove some files.
You can use the following command:
git rm *.aux(or blg/bbl/swp...)
To build bibliography, you need to follow the following steps:
PDFLATEX->BIBTEX->PDFLATEX->PDFLATEX
You can use the following command:
git rm *.aux(or blg/bbl/swp...)
To build bibliography, you need to follow the following steps:
PDFLATEX->BIBTEX->PDFLATEX->PDFLATEX
Subscribe to:
Posts (Atom)