May 29

## MS Office: “Word could not create the work file. Check the temp environment variable”

The error message “Word could not create the work file. Check the temp environment variable” is  caused by incorrect registry values in the key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\Current Version\Explorer\User Shell Folders

Run regedit and go to the above path.

On the right hand pane, check the value data for Cache.

It has to be:

%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files

If it is different, double click on Cache and type:

%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files

under value data and click ok.

Close the registry (and restart the computer) and check if it works.

written by MG \\ tags: , ,

Apr 02

## PDF: Printing Multiple Pages per Sheet

To print multiple pages per sheet of paper:

2. Choose “Multiple pages per sheet” from the Page Scaling menu
3. Choose the number of pages per sheet you would like to print, and preview the layout in the Preview window

written by MG \\ tags: ,

Mar 29

## How to display Romanian characters with php/html

`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 `
`# 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

http://www.webdesignbox.ro/utf-8-in-paginile-web-diacritice-caractere-speciale-suport-multilingv

written by MG \\ tags: , , ,

Nov 21

## 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` `
 `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

written by MG \\ tags: ,

Nov 21

## BSD: How to recover from the Registry cannot load the hive

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```

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:

Nov 17

## arcconf: How to add a hotspare drive to a logical drive

If you have a IBM ServeRAID 8k controller and you have changed a defunct drive with new one,

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: , ,

Aug 31

## Linux: Starting the Installation in Text Mode

If you do not wish to perform a GUI installation, you can start a text  mode installation using the following boot command:

 `boot: text`

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:

 `boot: nofb`

This option allows you to use the graphical installation program without using a framebuffer.

written by MG \\ tags: , ,