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 :

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