Monday, October 18, 2010

HOW TO MAKE A PRESENTATION WITH LATEX

After installing a latex interpreter, install beamer package. In Ubuntu 9.10, try this:

sudo apt-get install latex-beamer

Code example (subtracted from here):

\documentclass{beamer}
\usepackage[latin1]{inputenc}
\usetheme{Warsaw}
\title[Make a LaTeX presentation using Beamer]{Introduction to Beamer\\How to make a presentation with LaTeX?}
\author{Nadir Soualem -- Astozzia}
\institute{Math-linux.com}
\date{Jule 13, 2007}
\begin{document}

\begin{frame}
\titlepage
\end{frame}


\begin{frame}{Introduction}
This is a short introduction to Beamer class.
\end{frame}

\end{document}

Thanks to:

Sunday, October 10, 2010

HOW TO COPY FILES AND DIRECTORIES IN LINUX

find -iname "*.doc" -exec cp -rf --parents {} {}.doc \;

Example:

find /media/disk -iname "*.doc" -exec cp -rf --parents {} {}.doc /media/disk-1/Misdocumentos/TodosLosDocumentos \;


Sources:
http://www.linuxquestions.org/questions/linux-newbie-8/copy-files-from-multiple-directories-into-one-directory-162396/
http://www.codecoffee.com/tipsforlinux/articles/21.html

Tuesday, June 15, 2010

HOW TO INSTALL iText LIBRARY IN UBUNTU/DEBIAN


Depending of where the Java SDK is installed, there are many ways to install it, this is the most common:
  1. Download iText jar file from here.
  2. Save it on a new empty folder.
  3. Go to the new folder and copy the .jar file to /ext/ folder where the SDK is installed. Eg: sudo cp *.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/
  4. That's it.

Sunday, June 6, 2010

Installing MySQL in Ubuntu 9.04

1. sudo apt-get install mysql-server
Opcional: sudo apt-get install mysql-admin
Also Optional, google for: MySQL workbench

Monday, April 5, 2010

Unable to realize com.sun.media.codec.video.jmpx.Jmpx@ XXXXXX


I guess you are working with JMF.
If you got a problem like this, all you have to do is:
  1. Copy all .so files FROM /JMF-2.1.1e/lib/ TO /usr/lib with: sudo cp *.so /usr/lib/
  2. Compile your code :)

Install JMF 2.1.1e in Ubuntu 9.04



  1. Download JMF .bin from here, choose
  2. Rename the file from .bin to .zip
  3. Copy the three .jar files FROM /JMF-2.1.1e/lib/ TO /usr/lib/jvm/java-6-sun/jre/lib/ext/ with this: sudo cp *.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/
  4. Restart, and you got it!.


Source: this

Sunday, February 28, 2010

SQLITE 3.6.22 + Ubuntu



If your need to upgrade to SQLite 3.6.22 I recommend you to get it here: http://www.sqlite.org/sqlite-amalgamation-3.6.22.tar.gz untar it then ./configure and make that's all.

One of the most important improvements on this version is that allows you to use more than one foreign key in a table. Eg:

Instead of:

CREATE TABLE authorISBN (
authorID INTEGER PRIMARY KEY NOT NULL,
isbn varchar (20) NOT NULL,
fk_authorID INTEGER NOT NULL,
fk_isbn varchar (20) NOT NULL,
FOREIGN KEY (fk_authorID) REFERENCES authors (authorID),
FOREIGN KEY (fk_isbn) REFERENCES titles (isbn)
);

You can write:

CREATE TABLE authorISBN (
authorID INTEGER PRIMARY KEY NOT NULL,
isbn varchar (20) NOT NULL,
FOREIGN KEY (authorID) REFERENCES authors (authorID),
FOREIGN KEY (isbn) REFERENCES titles (isbn)
);

Stats


View My Stats

Contributors