Search This Blog

Tuesday, August 23, 2011

How to increase upload file size of wordpress in Ubuntu


  1. Login as a root
  2. Go to /etc/php5/apache2
  3. 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.

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

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/

Labels