To print multiple pages per sheet of paper:
- Click the Print icon in the Adobe Reader toolbar
- Choose “Multiple pages per sheet” from the Page Scaling menu
- Choose the number of pages per sheet you would like to print, and preview the layout in the Preview window
source: http://www.stanford.edu/group/cubberley/services/printing/multiple_pages_per_sheet
written by MG
\\ tags: pdf, print
First you need to specify character set for HTML output.. in your page header add:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
in PHP you can use (this line must be first in your code):
<?php header("Content-type: text/html; charset=utf-8");?>
then you need to write a .htaccess in your root dir of your website:
# Set httpd charset to utf-8
AddDefaultCharset On
AddDefaultCharset utf-8
# Set php charset to utf-8 and setup mbstring (you may need to install mbstring module)
php_value default_charset utf-8
php_value mbstring.internal_encoding utf-8
php_value mbstring.func_overload 7
more info for romanian users at:
http://www.webdesignbox.ro/utf-8-in-paginile-web-diacritice-caractere-speciale-suport-multilingv
written by MG
\\ tags: characters, html, Linux, php
Use query_posts() and pagination
These two lines of code basically use the WordPress query_posts()
function to exclude posts in a certain category. The first line of code
fixes the pagination issue of all posts being displayed on all pages.
Again, let’s say that we want to exclude all posts from the category
with an ID of 8 from our index page. Simply place the following code in
your index.php file before this line <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
1 |
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; |
2 |
query_posts("cat=-8&paged=$paged"); ?> |
Issues with this method:
This method will remove posts that are ONLY in the
excluded category. If a post is in the excluded category as well as
another category they will still show up on the home page.
written by MG
\\ tags: php, wordpress
Stop: C0000218 {Registry File Failure} Registry cannot load the hive (file): \SystemRoot\System32\Config\SOFTWARE
Nothing is more frustrating than a Windows Blue Screen of Death. The Blue Screen of Death will keep your PC from booting and the messages are usually pretty cryptic. This message is no different. What it means is that the SOFTWARE registry key is corrupt.
Fortunately, the fix for this error is not as painful as the message would lead you to believe. The following steps must be taken to fix this error:
-Boot your PC from the Windows 2000 or Windows XP CD and go into the recovery console by choosing “R”
-Type the following at the command prompt to replace your current SOFTWARE registry key with a repair copy.
ren c:\windows\system32\config\software software.old
copy c:\windows\repair\software c:\windows\system32\config
-Then reboot your PC.
If your computer is just part of a workgroup, you should be back in business. However, if you computer is part of a Domain, you may have to reinstall some applications and run:
gpupdate /force
This will refresh group policy. In any case the steps in outlined above should let you log back in to your PC.
written by MG
\\ tags: Windows
If you have a IBM ServeRAID 8k controller and you have changed a defunct drive with new one,
and rebuilding is not starting, you must add your new READY drive to your logical drive.
Usage: SETSTATE <Controller#> DEVICE <Channel# ID#> <State> [LOGICALDRIVE <LD#> [LD#] … ] [noprompt]
if you are in this particular situation :
DEVICE is 1
disk is 0,5
and logical drive is 1
./arcconf setstate 1 device 0 5 hsp logicaldrive 1
written by MG
\\ tags: arcconf, Linux, raid
If you do not wish to perform a GUI installation, you can start a text mode installation using the following boot command:
If you are having trouble booting into the graphical installation program, you can try to boot using the no framebuffer (nofb) boot option.
At the boot command, enter the following:
This option allows you to use the graphical installation program without using a framebuffer.
written by MG
\\ tags: install, Linux, text
Open a registry editor (click Start, click Run, type: regedit and then press Enter).
Navigate to the following key: HKEY_CURRENT_USER \ Software \ Microsoft\ Windows \ CurrentVersion \ Internet Settings \ Zones
There should only be 5 items there, numbered 0 to 4. If you see a different one, especially if you see items that shows up as box, try deleting it.
written by MG
\\ tags: text, Windows, yahoo
Recent Comments