Categories
Computer stuff Life

Sprint MyFi card

The hotel has both Ethernet and Wifi connections, but they cost $13 a day. So we are finally making some use of our Sprint mobile hotspot card. It gets only a 3G connection here, but the speed is passable for light internet use.

Categories
Fun Life

Morning in San Diego

Yesterday was a long travel day. US Airways had a plane that could not come to Philadelphia from Florida due to weather; it would have been the one for us. They decided to assign another plane to our flight and this delayed departure. When we finally pushed off from the gate at about 6 pm EDT (the scheduled time was 3:45 pm EDT), we had to wait our turn for the runway, so we finally were airborne at 6:30 EDT. We did manage to land in San Diego at 9PDT. By the time we were at the hotel, we were pretty exhausted so I took one photo (to be posted here later) and then hit the pillow.

The day looks very promising today, weather wise. After a hearty breakfast, we are ready for some sightseeing, once M is back from the convention center, where she is registering for her conference.

Categories
Computer stuff Life vacation

New Theme

OK, so I occasionally play around with the blog’s appearance. I just discovered this rather spectacular theme by visiting Amanda French’s website for a graduate course called Creating Digital History. I am gearing up mentally for some more frequent updates here, especially from our upcoming trip to San Diego/La Jolla (tomorrow to August 19). Yes, I know, I’ve promised frequent updates before. šŸ™‚

Categories
Computer stuff

Solar storm

There is a major solar storm that sent a plume Earth’s way. It will probably disrupt our electronics some time today.

Categories
Computer stuff

Testing

It used to be that the ScribeFire extension was available only on Firefox. Well, here it is on Chrome. Hurray! (Conditional on this post appearing correctly, of course.)

Categories
Life

Recovery of a technical post

The material below was originally part of a page in my economics-oriented site. Since it suddenly stopped been displayed there, I am attempting to resurrect it here as a stopgap measure.

What isĀ \text{\Large \LaTeX}?

\LaTeX is a free software package for typesetting documents for printing and for on-screen viewing. It is particularly strong for documents that involve a lot of mathematical expressions, but it also pays serious attention to refined aspects of typesetting. Documents typeset with \LaTeX are considerably more beautiful than documents created in any word processing application. Mathematicians, physicists, chemists, economists, and many other scholars use \LaTeX to typeset their works due to its superiority and free availability.

\LaTeX is a package based on the computer application \TeX, created in 1978 by Donald E. Knuth. The original author of \LaTeX is Leslie Lamport, but now \LaTeX is maintained by others. Please visitĀ http://www.latex-project.org/ for the history of \LaTeX and other related information. Knuth chose the name TeX because of the ancient Greek word Ļ„Ī­Ļ‡Ī½Ī·, which means art. People who know this pronounce TeX as “tech”, not “tex”. Knuth made \TeX freely available and it became one of the earliest and most successful open source software programs, around which there also sprang an amazingly large collection of extensions and packages, of which \LaTeX is a particularly successful example that lets you pay attention to creating content, while leaving the details of typesetting to professionally created templates.

A very good introduction to \LaTeX is theĀ Not-So-Short Introduction to LaTeX 2e.

I have been using \LaTeX over many years to typeset papers, presentations, lecture notes, and a book.

Sources for downloading \text{\Large \LaTeX} and related programs free of charge

The version of \LaTeX you will need in order to create and typeset documents depends on the operating system you run on your computer. Here are some good choices, arranged by operating system.
TeX Live 2009 – runs on every widely used operating system (Linux, other versions of UNIX, Mac OS X, Windows).
For those who use Windows, you can instead downloadĀ miktex.
For the Max OS X, the best setup isĀ MacTeX, which adds some very good tools to the TeXLive 2009 distribution. It includes the excellent \LaTeX development environment TeXShop (\LaTeX editor with a well-integrated previewer).
For editors I recommendĀ Emacs (see below if you are using a Mac),Ā Kile or Emacs on Linux, andĀ LEd orĀ Texniccenter on Windows. Winedt is an old favorite for Windows, but is is not free (shareware) and it is showing its age. TeXLive these days comes with TeXworks, which attempts to provide a development environment like TeXShop for all operating systems. It still has some rough edges. A special ability of Emacs, when the AucTeX emacs package is installed, is the ability to show equations and images within the text document as you prepare it, sparing you the need to keep compiling your document very frequently to see the output of your work.
For the hardy souls who are familiar with Emacs, theĀ Aquamacs version for Mac OS X is by far the best Emacs implementation I have seen, and I have tried Emacs on Linux, Windows, and the Mac. In fact, it is so well configured that you don’t really need to be a hardy soul to use it.

ADDITION: After the 3/3/2010 presentation at Temple University, Sandeep Bhaskar suggested that I should add a mention of theĀ TeXmaker program for composing, compiling, and previewing \LaTeX documents. It has graphical ways of entering commands that you may find hard to remember and runs on every widely-used operating system.

Tutorials and Examples

You create documents in \LaTeX by editing a text file with extension .tex. It is a good idea to avoid spaces in the name of the file. It is also a good idea to avoid word processors and instead use a text editor for this; I offered suggestions of editors earlier. A particularly problematic aspect of using a word processor for a .tex document is that most of them are configured to use curly apostrophes and other special marks that are most likely going to be misinterpreted by \LaTeX. Do not worry, \LaTeX will convert apostrophes to curly ones and will make many other beautifying changes to your text automatically, according to its professionally designed templates. Another advantage of text editors specially made for \LaTeX work is that they highlight commands in color and can automatically match braces, thereby reducing substantially the number of \LaTeX-syntactical errors that you make. The editors also have boilerplate embedded in special macros (these differ by editor) to save you typing; for instance, if I want to insert a bulleted list in my document and I am using Emacs, I type Ctrl+E and then “itemize” (without the quotes), causing Emacs to insert

\begin{itemize}
\item
\end{itemize}

and to put the insertion point right after the \item command for me to type the text of the first bulleted item.

I offer now some hints for creating various kinds of documents. My examples come in two parts: the .tex file and the resulting .pdf output file.

Workflow

The typical workflow in composing \LaTeX documents is as follows.

  1. Start with a template, maybe one of my examples below.
  2. Add text and formulas.
  3. Compile it with PDFLaTeX (each editor listed above provides a simple, one-click way of doing so).
  4. If you have added citations using BibTeX, run BibTeX (your editor should provide a simple, one-click way of doing so).
  5. If you ran BibTeX, run PDFLaTeX twice now, to resolve cross-references. (\LaTeX deals with cross-reference information by writing it into a file first, which it then needs to read to incorporate that information back into the document.)
  6. If you get error messages, do not panic. You probably mismatched braces or mistyped commands. Your document is still there, no matter how many errors you got. Google is your friend as you try to figure out errors, and the not-so-short introduction to \LaTeX mentioned above has some advise on dealing with errors, too.
  7. Preview the ensuing PDF. I recommend strongly against using Adobe Reader. It is slow, unsafe, and locks the files it has open, making it hard for you to repeat this process. Foxit Reader is a good alternative on Windows, and another good one and open-source to boot, isĀ Sumatra.Ā The Mac OS X system provides Preview, its own PDF reader that works very well (or you canĀ download the free Skim which is also an excellent PDF reader); of course, you can just use the integrated PDF reader in TeXShop. On Linux good alternatives are Evince, xpdf, or Okular, which is the native previewer of Kile.
  8. Repeat as needed.

Do not get worried that the compilation process will be slow. Modern computers are amazingly fast doing this. On my computers, I can typeset a 300-page book in about 5 seconds.

Composing papers

There are many choices for papers, some based on the default LaTeX article document class, others on different \LaTeX document classes. Here is anĀ example (and theĀ PDF output generated by compiling it with PDFLaTeX, the default variant of the \LaTeX compiler) based on some lecture notes of mine, with portions removed to make the file shorter. Even after the removals, the file shows you the use of many interesting packages, such as setspace for declarations such as \onehalfspacing or \doublespacing, fourier for a nice collection of fonts (try commenting out the line \usepackage{fourier} by typing % in front of it and recompile to see the default \LaTeX font set) and the wonderful graphics package tikz (written, like Beamer, by Till Tantau, who also wrote a fantastic manual for tikz).

Bibliographies

The creation and maintenance of bibliographies is easily automated in \LaTeX via the program BibTeX. Here is an easyĀ introduction. There are also programs that help with the creation and maintenance of the .bib file that you will need to have to use BibTeX. A good one that runs on Java, and so can be used on many operating systems, isĀ Jabref. It is a good idea to start work on your bibliography as you start composing the paper itself. You can then take advantage of the automation of bibliography management that \LaTeX offers when used in conjunction with BibTeX.

Making presentations

There are several presentation packages for \LaTeX. My favorite, and the one most \LaTeX-savvy economists use for their presentations, is called Beamer. A tutorial for Beamer can be found atĀ here(PDF). I also strongly recommend the Beamer manual, written by Till Tantau, the creator of Beamer, which should be in your TeX installation (and is easily found via a Google search if it is not). It is one of the best software manuals I have encountered; do not be put off by its length, it is lengthy in order to be clear and to cover all the myriad features of Beamer.

Here is an example Beamer presentation with theĀ source file (.tex file) and the file’sĀ PDF output.

Lecture Notes on the Fly

I have not used \LaTeX in this way, butĀ someone else has. The linked article has a treasure trove of good advice on how to make your creation of LaTeX documents more efficient and accurate.

List of Symbols Available in \text{\large \LaTeX}

There is aĀ comprehensive list.

CTAN

This acronym stands for theĀ Comprehensive TeX Archive Network. There you can find an unbelievably extensive collection of informative documents, packages, fonts, and software related to all things \TeX / \LaTeX.

Categories
Life Science

Mathematical formula predicts clear favorite for the FIFA World Cup

Mathematical formula predicts clear favorite for the FIFA World Cup. OK, it’s a little hard to believe that people have been collecting this level of detailed ball-passing data, but I guess so much money is involved with soccer that it all makes sense.

Update: The prediction was correct. (I thought the final itself was a horrible match.)

Categories
Computer stuff

Google Lays Out Its Mobile User Experience Strategy – Mobile Blog – InformationWeek

I found this on Kottke.org. Link to the full article at end. It has good advice for web designers and web app designers for mobile applications, and it may well be good to think about for my own purposes as the Lyric Fest redesign work continues.

“Understanding users, anywhere, anytimeRechis said that Google breaks down mobile users into three behavior groups:

A.Ā “Repetitive now”
B. “Bored now”
C. “Urgent now”

The “repetitive now” user is someone checking for the same piece of information over and over again, like checking the same stock quotes or weather. Google uses cookies to help cater to mobile users who check and recheck the same data points.

The “bored now” are users who have time on their hands. People on trains or waiting in airports or sitting in cafes. Mobile users in this behavior group look a lot more like casual Web surfers, but mobile phones don’t offer the robust user input of a desktop, so the applications have to be tailored.

The “urgent now” is a request to find something specific fast, like the location of a bakery or directions to the airport. Since a lot of these questions are location-aware, Google tries to build location into the mobile versions of these queries.”

via Google Lays Out Its Mobile User Experience Strategy – Mobile Blog – InformationWeek.

Categories
Life

Few Are Coming to See Greece’s Modern Olympic Ruins – WSJ.com

Few Are Coming to See Greeces Modern Olympic Ruins – WSJ.com. So now we have the ancient ruins and the folly of 2004 ruins. Nice.

Categories
Life

WordPress 3.0

As of today, version 3.0 of WordPress is released. I upgraded the blog and shifted it to the new default Theme, which I find very appealing.