Wednesday, May 5, 2010

View PDF in Chrome Ubuntu

Under the /usr/lib directory find all the "nppdf.so" files and delete them.

find /usr/lib | grep "nppdf\.so"

Then Chrome will download the PDF files when clicked, at least better than showing a grey tab.

Posted via email from Troy's posterous

做人、做事、做学问

快毕业了,老师站在讲台上:“探讨三个问题。”

1、“世界上第一高峰是哪座山?”大家哄堂大笑:“珠穆朗玛峰!”老师追问:“第二高峰呢?”同学们面面相觑,无人应声。老师在黑板上写:“屈居第二与默默无闻毫无区别。 ”

2、“有人要烧壶开水,等生好火发现柴不够,他该怎么办?”有的说赶快去找,有的说去借、去买。老师说:“为什么不把壶里的水倒掉一些?”大家一听,表示佩服。

3、“古代有一人,想学立身的本领。经过反复比较,决心去学屠龙之技。他拜名师,日夜苦练,终有所成。他会怎么样呢?“同学们兴致勃勃,说他能成为英雄、明星,受世人崇拜。老师摇头:“这个人一定会潦倒一生,因为世上根本就没有龙。”

这节课,这个老师要学生明白“如何做人、做事、做学问”:做人要力求出色,勇争第一,这样别人才能发现你、记住你;做事要敢于创新,方法灵活,千万不可墨守成规;做学问要学以致用,要懂得将知识转化为效益,闭门造车没有路

Posted via email from Troy's posterous

Friday, April 30, 2010

Latex Installation on Ubuntu

To install the latex on Ubuntu, following packages should be installed:

texlive-latex-base
texlive-latex-extra
texlive-fonts-recommended

Posted via email from Troy's posterous

Monday, April 26, 2010

Linear Dynamic Model for Automatic Speech Recognition

Download now or preview on posterous
Frankel_thesis2003.pdf (2105 KB)

Using Dynamic models for ASR.

Posted via email from Troy's posterous

Printing on Unix/Linux hosts

Printing on Unix/Linux hosts

This is a brief overview of how to print on Unix/Linux systems. For additional information on some of the commands mentioned, see the man page (i.e. run: man program) for that program. Many Unix programs will look for a "PRINTER" environment variable when determining a default printer, and you may wish to set this variable in your .login to a printer that is near you.

Historically, there have been two primary ways to print under Unix/Linux, the BSD and System V printing systems. Some commonly-used commands in each system:

  • BSD printing commands:
    • lpr to print.
    • lpq to check printer status.
    • lprm to remove a job from a print queue.
  • Kerberized equivalents to BSD printing commands:
    • klpr to print.
    • klpq to check printer status.
    • klprm to remove a job from a print queue.
  • System V printing commands:
    • lp to print.
    • lpstat to check printer status.
    • cancel to remove a job from a print queue.

The BSD commands are the default commands on Linux hosts, and are available in the directory /usr/ucb on Solaris hosts and /usr/bsd on IRIX hosts.

The System V commands are the default commands on Solaris and IRIX hosts.

There is also a set of Kerberized BSD printing commands available on every Facilitized Unix host.

Using BSD printing commands

See the Unix man entries for these commands for additional usage information.

To print a file to a printer

lpr -Pprinter file 

To check the status of a printer

lpq -Pprinter 

To remove a print job

lprm -Pprinter job-id 

Using System V printing commands

See the Unix man entries for these commands for additional usage information.

To print a file to a printer

lp -d printer file 

To check the status of a printer

lpstat -p printer 

To remove a print job

cancel job-id 

The cancel command also provides several other options for cancelling print jobs. The job-id is the one printed by lpstat, not the "request id" printed out by the lp command.

Kerberized BSD printing

The commands klprklpq, and klprm provide Kerberized equivalents to the BSD printing commands. These commands also support some additional options. For example, the command:

klpr -Pprinter@host file 

would print the given file to the given printer, where host is that printer's spooler host. This can be useful if the remote printer is not in your /etc/printcap.

Other printing commands

One can use the enscript command to print formatted output of ascii files. See the man page for the extensive argument list.

The psnup command can perform transformations on Postscript files, such as rotating pages and printing multiple pages of a document on a single sheet of paper. pslpr is another program that can perform some transformations on Postscript.

Related documentation

Unix/Linux support
About Unix/Linux support in the SCS environment.

Posted via email from Troy's posterous

Friday, April 16, 2010

Create Bar Charts

For paper writing, Matlab is preferred to create figures for data analysis. However, bar charts in Matlab have limited options and much effort is needed to create a desired one.

Another way found today is that using Open Office Spread Sheets. Put the data there and change the properties of the bar chart. 

Then select the chart only and from the Menu:  File->Export as PDF, save only the chart to pdf file.

Moreover, to convert it to vector graphics, i.e. EPS format,:
1) pdftops, convert the pdf file firstly to ps file;
2) ps2eps, convert the ps file to eps file.

Then it's done,

Posted via email from Troy's posterous

Google+