May 29

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

To print multiple pages per sheet of paper:

  1. Click the Print icon in the Adobe Reader toolbar
  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

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:

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

Nov 21

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:

Nov 17

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 :


disk is 0,5

and logical drive is 1

./arcconf setstate 1 device 0 5 hsp logicaldrive 1

written by MG \\ tags: , ,

Aug 31

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