December 23, 2008 by anjinpradhan
- First make sure you have Latex installed
- Then install beamer class by using sudo aptitude install latex-beamer
- After that you can use this template to create a simple beamer presentation
——————————————————————————————————————————-
Copy from here
——————————————————————————————————————————–
\documentclass{beamer}
%For complete list of themes
%Check out http://www.math.umbc.edu/~rouben/beamer/quickstart-Z-H-31.html#node_sec_31
\usetheme{Warsaw}
\title{Template Beamer Presentation for my reference}
\author{Anjin Pradhan}
\date{\today}
\begin{document}
\frame{\titlepage}
\section[Outline]{}
\frame{\tableofcontents}
\section{Introduction 1}
\subsection{Sub Section 1}
\frame
{
\frametitle{Frame 1}
\begin{itemize}
\item<1-> List Item 1
\item<2-> List Item 2
\item<3-> List Item 3
\end{itemize}
}
\section{Introduction 2}
\subsection{Sub Section 2}
\frame
{
\frametitle{Frame 2}
\begin{itemize}
\item<1-> List Item 1
\item<2-> List Item 2
\item<3-> List Item 3
\end{itemize}
}
\subsection{Highlights}
\frame
{
\frametitle{For Highlighting Stuff}
\begin{theorem}[Highlighting this ]
Can be used to highlight theorum and other stuff
\end{theorem}
}
\subsection{Adding columns}
\frame
{
\frametitle{For Adding Column}
Here is what Three Column looks like:
\begin{columns}
\begin{column}{0.45\textwidth}
\begin{itemize}
\item itemized item 1
\item itemized item 2
\item itemized item 3
\end{itemize}
\end{column}
\begin{column}{0.25\textwidth}
\begin{enumerate}
\item item 1
\item item 2
\item item 3
\end{enumerate}
\end{column}
\begin{column}{0.45\textwidth}
This has been a test
\end{column}
\end{columns}
}
\subsection{Adding Tables}
\frame
{
\frametitle{Adding Tables}
\begin{tabular}{lcccc}
Class & A & B & C & D \\\hline
X & 1 & 2 & 3 & 4 \\
Y & 3 & 4 & 5 & 6 \pause\\
Z & 5 & 6 & 7 & 8
\end{tabular}
}
\subsection{Graphic}
\frame
{
\frametitle{Adding Graphics}
\begin{figure}
\includegraphics[width=3in,height=2in]{sample.eps}
\end{figure}
}
\end{document}
- After you have changed tha template as per need you can issue these command to get the pdf presentation
- $ latex file.tex
- $ latex file.tex
- $ dvips file.dvi
- $ ps2pdf file.ps
Or you can use texmaker like i do.
FYI you can useĀ jpeg2ps to convert jpg file into eps so that the graphic can scale properly.
Posted in Latex | 3 Comments »
December 23, 2008 by anjinpradhan
Today i did a complete switch from ppt/odp to beamer presentation.
I think beamer is better than ppt/odp but though is not user friendly
This tutorial has helped me a lot to make this transition http://www.math.umbc.edu/~rouben/beamer/
Posted in Latex | 1 Comment »
December 22, 2008 by anjinpradhan
1. First create and public key and private key pair using
ssh-keygen -t dsa
2. Then copy the file to every machine you want to ssh without specifying password
scp ~/.ssh/id_dsa.pub user@remote_machine:~user/.ssh/authorized_keys
Easy huh
Also now you can executing command without logging into the system. just do
ssh user@remote_machine “REPLACE THIS WITH ACTUAL COMMAND”
Posted in Linux | Tagged ssh long and difficult password linux pub identity file | Leave a Comment »
December 22, 2008 by anjinpradhan
The new version of MYSQL CLUSTER DB just came out and upon preliminary research i think its better than the older one and the DATA REPLICATION it supports.I like they have used shared nothing architecture and now they use heartbeat to track the status of each node in the cluster.
MYSQL CLUSTER DB by default requires three nodes
- Data Node
- Management Node
- SQL node
Also Apache has a module which enables load balancing and session support. I was just wondering will we see radical changes in performance if we use MYSQL CLUSTER and apache with load balancing enabled. To mirror the web app on different nodes i was thinking about using high availability NFS SERVER or rsync server. If i were to use rsync i would look for changes in the main repository every new few hours or so.
Though since MYSQL DB loads everything in memory it requires a huge amount of ram. But inspite of the inherit drawbacks of both the application will we see a increase in performance.
I will try to run this experiment when i have time
Something to ponder.
Posted in Linux | Tagged "mysql cluster" "apache" "apache loadbalancing" | 2 Comments »
September 2, 2008 by anjinpradhan
——————————————————————————————————————————————
This shell script can update your webserver and update your svn repository at once. More description coming soon. STILL NEEDS TO BE TESTED PROPERLY.
——————————————————————————————————————————————
case $2 in
“”)
echo “Please specify the duration”
exit;;
esac
WEBSERVER_URL=XXXXXXXXXXXXXXXXX
WEBSERVER_ADDRESS=XXXXXXXXXXXXXXXXXXxxxxx
FILES=`find $PWD -type f -cmin -$2 -print`;
LOCAL_WEB=xxxxxxxxx
AddToSVN()
{
for i in $FILES;do
if [ "$i" != '$PWD/caseShell.rb' ]; then
svn add $i
fi
done
}
UpdateToTestServer()
{
cd ..
echo “I NEED THE PASSWORD TO YOUR WEBSERVER”
scp -p -r $LOCAL_WEB $WEBSERVER_ADDRESS
echo “PLEASE PROVIDE THE PASSWORD AGAIN”
ssh $WEBSERVER_URL -l XXXXXXXXXx -i XXXXXXXXx “/etc/init.d/apache2 restart”
}
UpdateToSVN()
{
svn update
}
case $2 in
“”)
echo “Please specify the duration”
exit;;
esac
case $1 in
“t”)
AddToSVN
UpdateToTestServer
UpdateToSVN
echo “Total Update Successfully completed”;;
“s”)
AddToSVN
UpdateToSVN
echo “SVN Successfully update”;;
“ts”)
UpdateToTestServer
echo “Update test server made succesfully”;;
*)
echo “Invalid option specified”;;
esac
Posted in Linux | Tagged shell scripting | Leave a Comment »