This is not a blog, but my notes and tips for research. Feel free to take any information and leave any comments or questions.
Search This Blog
Monday, August 29, 2011
Friday, August 26, 2011
Tuesday, August 23, 2011
How to increase upload file size of wordpress in Ubuntu
- Login as a root
- Go to /etc/php5/apache2
- Open php.ini and add the following two lines
- upload_max_filesize = 64M;
- post_max_size = 32M;
Make sure that you added semi-colon at the end of each line.
How to includepdf files to SmartNotebook
I have landscape pdf files for teaching. Here is steps to include the pdf file into SmartNotbook software.
1. Open a pdf file (landscape)
2. Rotate all the pages 180 degrees, so upside down.
3. Print the pdf to "SmartNotebook Document Writer" printer driver.
4. Once the pdf file is converted, it will be automatically loaded to SmartNotebook software in a correct way. Otherwise you have to rotate each page after loading.
1. Open a pdf file (landscape)
2. Rotate all the pages 180 degrees, so upside down.
3. Print the pdf to "SmartNotebook Document Writer" printer driver.
4. Once the pdf file is converted, it will be automatically loaded to SmartNotebook software in a correct way. Otherwise you have to rotate each page after loading.
Monday, August 22, 2011
The simplest way to print text and pdf files through ssh
If you want to print "b.pdf" to a remote Linux box connected to a printer, then
$ cat b.pdf | ssh username@myserver.domain.com "lp -"
A script can be easier to use
#!/bin/bash
cat $1 | ssh username@myserver.domain.com "lp -"
Here is a better guide: http://docs.ocf.berkeley.edu/wiki/How_to_print_through_SSH
$ cat b.pdf | ssh username@myserver.domain.com "lp -"
A script can be easier to use
#!/bin/bash
cat $1 | ssh username@myserver.domain.com "lp -"
Here is a better guide: http://docs.ocf.berkeley.edu/wiki/How_to_print_through_SSH
Saturday, August 20, 2011
Your PHP installation appears to be missing the MySQL extension which is required.
Here is how to solve the message:
"Your PHP installation appears to be missing the MySQL extension which is required."
prompt> sudo apt-get install php5-mysql
http://www.webtechquery.com/index.php/2010/03/php-installation-appears-to-be-missing-the-mysql-extension/
"Your PHP installation appears to be missing the MySQL extension which is required."
prompt> sudo apt-get install php5-mysql
http://www.webtechquery.com/index.php/2010/03/php-installation-appears-to-be-missing-the-mysql-extension/
Wednesday, August 17, 2011
Monday, August 15, 2011
Useful pbs tutorial
In a pbs script for qsub,
echo ${JOB_ID}
http://cac.engin.umich.edu/resources/systems/nyxV2/pbs.html
echo ${JOB_ID}
http://cac.engin.umich.edu/resources/systems/nyxV2/pbs.html
How to disable blinking cursor of gnome terminal of Ubuntu 11.04
gconftool-2 -s /apps/gnome-terminal/profiles/Default/cursor_blink_mode -t string off
from http://www.jurta.org/en/prog/noblink
Saturday, August 13, 2011
splitting vim editor windows horizontally
from http://bloggerdigest.blogspot.com/2006/09/vi-editor-quick-reference.html
Subscribe to:
Posts (Atom)
Labels
- Academic Notes (4)
- BLAS (1)
- CEE618 (2)
- CentOS (1)
- Computation (1)
- Conferences (1)
- Cross compiling (1)
- Graphics (1)
- Hawaii Tour (2)
- Intel compiler (1)
- Just (1)
- Laptop (1)
- LaTex (22)
- Life and Humanity (8)
- Linux and Computing (107)
- LSF (1)
- Lyx (3)
- Macintosh (5)
- MPI (1)
- News (11)
- OpenFoam (1)
- OpenMPI (1)
- PBS (2)
- Software (4)
- SSH (2)
- torque (1)
- Touchpad (1)
- VMD (1)
- yum (1)
Blog Archive
-
▼
2011
(59)
-
▼
August
(11)
- How to put a background image only on one beamer s...
- remove color after word search in vi editor
- How to increase upload file size of wordpress in U...
- How to includepdf files to SmartNotebook
- The simplest way to print text and pdf files throu...
- Your PHP installation appears to be missing the My...
- How to add US Holidays to iPad
- how to sync more than one google calendar to iPhone
- Useful pbs tutorial
- How to disable blinking cursor of gnome terminal o...
- splitting vim editor windows horizontally
-
▼
August
(11)