Counting characters in text files on Linux

July 16th, 2009 Silvia 2 comments

The command wc counts lines, words and characters in text files on Linux. You just need to put on the console

wc namefile.txt

That will give you three number, the first one will be the number of lines in namefile.txt, the second one will be the number of words an the last one the number of characters. If you just want to know the number of  characters you can put -m between wc and namefile (or -l and -w for lines and words respectively).

Categories: Linux Tags:

Nice templates for beamer

June 25th, 2009 admin 2 comments

The following collection contains some of the templates for beamer that I take into account at the time of making a presentation.

The progressbar Beamer theme

This is one of my favorites themes for beamer. The template can be downloaded from this webpage.

beamer3_small

Read more…

Categories: Latex Tags:

yEd graph editor

June 23rd, 2009 Silvia 3 comments

logo

A very good graph editor, on Linux, Mac and Windows, is yEd. This program can be used to lay out simple and complex graph structures, as well as, nice diagrams because you can put the picture that you want in each node. Many times is a very useful tool to make schematic pictures for presentations or talks. It is totally free and you can find more information and download it here.

Categories: Latex, Physics Tags:

TikZ and Gnuplot

June 21st, 2009 Silvia 2 comments

A very nice package to make plots in LaTeX is TikZ. You can draw a lot of thing and you can also call another programs like Gnuplot. For a successful view you need to have installed Gnuplot and to allow that LaTeX can see another programs, that means you have to compile the file in the following way:

pdflatex --shell-escape filename.tex

instead to use

pdflatex filename.tex

Of course you can also use latex istead of pdflatex. You will find very good examples in TeXamplenet.

Categories: Latex, Matlab Tags:

FTP client: Filezilla

June 20th, 2009 Silvia 2 comments

logo

If you are looking for an FTP client with a friendly environment for Linux or Windows… Filezilla is the solution! It is very easy to use and supports FTP and SSH. For Linux users it is very similar to gFTP. Filezilla has its own wiki in which you can find the link to download it and a lot of solutions for many questions like how to use public/private keys authentication. If you are working on Windows and you want to edit files in the remote or local computer, I recommend you Notepad++ like associated editor. It is is a source code editor and supports syntax highlighting for 48 programming languages. This software also is free and you can download it from the above link. On Linux you have many options for a good source code editor, but of course, you can also use Notepad++.

Categories: Connections Tags:

SSH and graphical environment

June 19th, 2009 Silvia 3 comments

xming

It is very easy on Linux to run a program on a remote computer with graphical environment . You just need to write -X after ssh, that means

ssh -X username@remotecomputer

If you are working on Windows you need to install an X-server. There are many of them available on the web but, not all of them can run on Windows Vista. I think that the best is Xming because it runs on Vista and it is free!

You can download it here. After the installation (and each time that you want to use it) make double click in the Xming icon, you will see another icon on the right in the Windows bar. That means that the Xming is running. If your ssh client is Putty, you have to check the Enable X11 forwarding box under ‘Connection -> SSH -> X11′.

Categories: Connections Tags:

Export command in Maple

May 19th, 2009 admin 5 comments

We will comment two possibilities for exporting data from Maple to Matlab. The first one consists is by using the package CodeGeneration. We can load this package by typing

 with(CodeGeneration); 

The package contains the Matlab command which translates code from Maple to Matlab. The following example shows how to translate the expression x+y*z-2*x*z to Matlab code.

Matlab(x+y*z-2*x*z, resultname = "w");

Sometimes we need to generate a big amount of data in Maple and we want to export it to Matlab. In such a case the export command would be useful. We will show how to export the plot of a function to a file readable in MATLAB.

Let us define the function f(x)

restart;
f:=x->sin(x);

In this example we will put the data of the plot of f(x) from 0 to 5 and we will export this data to a file. For this
we will put the data for the plot in a matrix A.

A:=Matrix(2000,2);

for i from 1 to 2000 do
     A[i,1]:= i*5/2000;
     A[i,2]:=evalf( f(i*5/2000) );
od;

With this we have a matrix A with all the data necesary to make a plot. In order to export this to a file named “A_data” we use the following command

ExportMatrix(A_data" , SEQ,target=Matlab, format=rectangular);

Now we have a file “A_data” with two columns of numbers. In order to make it readable by MATLAB we should open it and add

M=[0.0 1.2
..

];

Finally we rename the file by “A_data.m” and we are ready to open it from MATLAB

Categories: Maple, Matlab Tags:

Engauge Digitizer

May 18th, 2009 Silvia 3 comments

This digitizing software tool converts an image file showing a graph or map, into numbers. The image file can come from a scanner, digital camera or screenshot. The numbers can be read on the screen, and written or copied to a spreadsheet.

graph1p5

Download Engauge Digitizer

Categories: Physics Tags:

Texmaker

May 18th, 2009 admin 2 comments

Texmaker is a free LaTeX editor, that integrates many tools needed to develop documents with LaTeX, in just one application.
Texmaker runs on unix, macosx and windows systems and is released under the GPL license .

top

You can download Texmaker in the following link

http://www.xm1math.net/texmaker/download.html

Categories: Latex Tags: