Pages

Friday, March 23, 2012

Chromium daliy builds PPA

In order to add the Chromium daily builds PPA to your Ubuntu repositories use the terminal and type the command:

sudo apt-add-repository ppa:chromium-daily/ppa

Friday, March 16, 2012

Beamer class (presentation mode) in LaTeX - an example of subfloats

I'd thought I'd post an example of a subfloat (a subfigure, but subfig is the package and subfloat the command; the subfigure package and command are older, see http://www.faqoverflow.com/tex/1966.html and http://texblog.org/tag/subfigure/) in Beamer, a presentation class for LaTeX.

\begin{frame}

  \begin{figure}[t]
   \centering
   \captionsetup[subfloat]{labelformat=empty}
   \subfloat[]{\label{} \includegraphics[scale = 0.15]{Sentinel_Bradford_et_al_07.png}} 
   \subfloat[]{\label{} \includegraphics[scale = 0.15]{Hyperion_(3)_Olds_et_al_99.png}}\\
   \subfloat[]{\label{} \includegraphics[scale = 0.15]{Stargazer_Olds_et_al_99.png}}
   \subfloat[]{\label{} \includegraphics[scale = 0.15]{Quicksat_(2)_Bradford_et_al_04.png}}
%    \captionsetup{labelsep=period, labelfont=sc} %\caption{} \label{fig:}
  \end{figure}

\end{frame}

Screenshot:


These are some concept hypersonic vehicles.  I just used this as an ending slide for my MS defense presentation.

Clockwise beginning at top-right:

Sentinel:
Bradford, J. E., Olds, J. R., & Wallace, J. G. (2007). Concept Assessment of a Hydrocarbon Fueled RBCC-Powered Military Spaceplane. 54th Joint Army-NavyNASA-Air Force (JANNAF) Propulsion Meeting (JPM) and 5th Modeling and Simulation / 3rd Liquid Propulsion / 2nd Spacecraft Propulsion Joint Subcommittee Meeting. Denver, Colorado.

Hyperion:
Olds, J. R., Bradford, J. E., Charania, A. C., Ledsinger, L., McCormick, D. J., & Sorensen, K. L. (1999). Hyperion: An SSTO Vision Vehicle Concept Utilizing Rocket-Based Combined Cycle Propulsion. 9th International Space Planes and Hypersonic Systems and Technologies Conference and 3rd Weakly Ionized Gases Workshop. Norfolk, VA.


Quicksat:
Bradford, J. E., Charania, A., Wallace, J., & Eklund, D. R. (2004). Quicksat: A Two-Stage to Orbit Reusable Launch Vehicle Utilizing Air-Breathing Propulsion for Responsive Space Access. Space 2004 Conference and Exhibit. San Diego, California.


Stargazer:
Olds, J. R., Ledsinger, L., Bradford, J. E., Charania, A., McCormick, D., & Komar, D. R. (1999). Stargazer: A TSTO Bantam-X Vehicle Concept Utilizing Rocket-Based Combined Cycle Propulsion. 9th International Space Planes and Hypersonic Systems and Technologies Conference and 3rd Weakly Ionized Gases Workshop. Norfolk, VA.

LaTeX - formatting - utilizing vertical space - \vspace

Again, I was adjusting the look of my CV using the \vspace command because there were extra spaces between section headings, an horizontal line, and the first entry of the section like so:


Here is that section of code:

\section*{Employment} 
\HRule 
\begin{itemize}
\item \textbf{Graduate Research Assistant}
\item University of Tennessee Space Institute, Tullahoma, TN
\item November 2011 - Present
 \begin{itemize}
 \item AFRL Prime Contract No. FA9300-06-C-0023
 \item Assisted major advisor who was a reviewer for journal papers in critiquing and writing summaries
 \item Assisted major advisor in building and proofreading research grant proposals
 \end{itemize}
\end{itemize}
\HRule
\begin{itemize}
\item \textbf{Graduate Research Assistant}
\item University of Tennessee Space Institute, Tullahoma, TN
\item August 2006 - May 2011
 \begin{itemize}
 \item Worked on AFOSR grant No. FA9101-06-D-0001/0003, Advanced High-Speed Propulsion Development; Out of the grant I produced and presented one AIAA conference paper and my MS thesis in Aerospace Engineering

So I tightened it like this:


\section*{Employment} \vspace{-5 mm}
\HRule \vspace{-6 mm}
\begin{itemize}
\item \textbf{Graduate Research Assistant}
\item University of Tennessee Space Institute, Tullahoma, TN
\item November 2011 - Present
 \begin{itemize}
 \item AFRL Prime Contract No. FA9300-06-C-0023
 \item Assisted major advisor who was a reviewer for journal papers in critiquing and writing summaries
 \item Assisted major advisor in building and proofreading research grant proposals
 \end{itemize}
\end{itemize}
\HRule \vspace{-6 mm}
\begin{itemize}
\item \textbf{Graduate Research Assistant}
\item University of Tennessee Space Institute, Tullahoma, TN
\item August 2006 - May 2011
 \begin{itemize}
 \item Worked on AFOSR grant No. FA9101-06-D-0001/0003, Advanced High-Speed
Propulsion Development; Out of the grant I produced and presented one AIAA conference paper and my MS thesis in Aerospace Engineering

So little things like this make LaTeX, IMO, very versatile/customizable and small changes can make big differences in looks.

LaTeX formatting - right alignment \ruggedleft

Here is a small thing, but I'd thought I'd post it since the small things can be big. Anyways, I was cleaning up my CV and the template I found and am using had my information at the top using this code.

\begin{minipage}[t]{0.5\textwidth}
  212 E. Emerald Ave \\
  Knoxville, TN 37917-5531
\end{minipage}
\begin{minipage}[t]{0.5\textwidth}
 Phone: (812) 531-9006 \\
Email: \href{mailto:timothy.andrew.barber@gmail.com}{timothy.andrew.barber@gmail.com} \\
Homepage: \href{http://timothyandrewbarber.blogspot.com/}{http://timothyandrewbarber.blogspot.com/}
\end{minipage}


Now the CV looked like this.





Now this is ok, but I decided I wanted it aligned to the right.  So I use the command \raggedleft to do this.  Found here: http://en.wikibooks.org/wiki/LaTeX/Paragraph_Formatting

The code now looks like this:

\begin{minipage}[t]{0.5\textwidth}
  212 E. Emerald Ave \\
  Knoxville, TN 37917-5531
\end{minipage}
\begin{minipage}[t]{0.5\textwidth}
 \raggeleft Phone: (812) 531-9006 \\
\href{mailto:timothy.andrew.barber@gmail.com}{timothy.andrew.barber@gmail.com} \\
\href{http://timothyandrewbarber.blogspot.com/}{http://timothyandrewbarber.blogspot.com/}
\end{minipage}

So I decided to remove the "Email:" and "Homepage:" as well.  Don't worry, my CV is a page on my blog and a few other sites so my info is out there anyways.

Tuesday, March 13, 2012

Latex - formatting - date

Most document classes automatically use the current date on the title page.  To change the date the date manually simply use the command \date{text} where the "text" is where you put in your date of course (\date{October 9, 1998}).  In order to have no date show up simply put nothing in the \date command braces (\date{}).

Thursday, March 8, 2012

Transferring files, syncing, and authorizing-deauthorizing on iTunes

So, I decided to finally update my iOS on my iPhone 3GS.  I haven't done this in awhile since I don't usually use Windows and I could never get iTunes to work in Wine (I don't remember if it will at all) nor I have finished my VirtualBox Windows installation (I have to do something to get it to recognize USB drives and just haven't done it).  Anyways, I wanted to back my iPhone up before updating from 4.3.3 to 5.1 and was having trouble doing it.  I needed to authorize a laptop but couldn't since I already had 5 other computers authorized.  I decided to deauthorize all 5 (yes all 5 since there is no option to pick or choose, BOO).  I selected this option, signed in, but iTunes gave me a message saying it couldn't access iTunes and to come back later and try again.  What the heck?!  I tried it a few more times with the same result.  So I then began to look for help on Apple's website.  Garbage.  The website is no help and this is why I am writing this blog.  Couldn't find an email address for customer support like Apple's site suggested.

Anyways, I went back and tried the deauthorization route a few minutes later.  Wow, it magically worked.  I then clicked under File the option to transfer all purchases.  Woohoo!  It finally worked.  So, I am writing this in case anyone got as frustrated as I did for this simple task.

Highlighting text in LaTeX - changing hl colors too

Please Make A Note: How to highlight text in LaTeX
Utilize the "soul" package.  (Side note, I think the "color" package should be loaded for this to work as well. The class I am using for my thesis already has it loaded, and I saw this somewhere, so just in case.)

\usepackage{soul}

Then use the following command to highlight text:

\hl{text to be highlighted}

Screenshots:



Although, it seems you cannot highlight citations using this command.  There is probably a way to do this.

Update: 3-9-12

You can use the \hl command around text options such as \textit and \textbf.  To use different colors to highlight I found this neat command here:

http://tex.stackexchange.com/questions/5959/cool-text-highlighting-in-latex

\newcommand{\hlc}[2][yellow]{ {\sethlcolor{#1} \hl{#2}} }

which is to go into the preamble.  The command is then:


\hlc[green]{Text goes here.}


Screenshot: