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

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

May 03

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

Feb 17

Click on the page that you want to change the orentation of, and then go to the

Page Layout Tab, Page Setup Group, and look in the Breaks menu .

You will see four-five different section breaks you can choose. If you have an existing document, it is best to use the “Continuous” section break.

Try to change the orentation again… you will notice it will change it for the current section (section 2).

Now all the pages after that page are landscape..We just repeat the process to create a third section using the Continuous Section Break, then change the orentation back to where we wanted it to be.

It works in Office Word 2007  and 2010.

Source:

http://thenewpaperclip.com/2007/04/22/change-your-page-orientation-portrait-vs-landscape-in-word-2007/

written by MG \\ tags: , , ,

Jan 05

A good tutorial:

http://www.howtogeek.com/howto/windows-7/add-the-quick-launch-bar-to-the-taskbar-in-windows-7/

written by MG \\ tags: ,