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

Aug 06

<?php
//get current month for example
$beginday=date(“Y-m-01”);
$lastday=date(“Y-m-t”);

$nr_work_days = getWorkingDays($beginday,$lastday);
echo $nr_work_days;

function getWorkingDays($startDate, $endDate){ Continue reading »

written by MG \\ tags: , ,

Jun 21

Run:

dumpe2fs -h /dev/sda1

or

tune2fs -l /dev/sda1

where /dev/sda1 is you partition, and search for Block size:

written by MG \\ tags: ,

Apr 16

1.  Type about:config in Firefox location bar and press Enter

2.  Double-click on Preference.Name and change the value.

written by MG \\ tags: , , ,

Mar 10

I have qmailtoaster installation so my users are in:

/home/vpopmail/domains/DOMAIN.XXX/USER

you need two create two file:

first called “mailfilter” can be put wherever you want (this file will be in .qmail file), me  I choose:

/home/vpopmail/domains/

so now I have:

/home/vpopmail/domains/mailfilter

second called “.qmail” must be pun in user folder in the same dir with Maildir folder, like this:

/home/vpopmail/domains/MYDOMAIN.XXX/USER/.qmail

File contents are:

.qmail

|preline /usr/bin/maildrop /home/vpopmail/domains/mailfilter

mailfilter

SHELL=”/bin/bash”
import EXT
import HOST
logfile “/var/log/maildrop/mailfilter.log”
USERHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`
if (/^Subject:.*\[SPAM\]/:h)
{
log “WE got a SPAM, moving mail to spam directory $USERHOME/Maildir/.Junk”
DUMMY=`test -d $USERHOME/Maildir/.Junk`
#if .Junk folder exists
if ( $RETURNCODE == 0 )
{
to “$USERHOME/Maildir/.Junk”
}
else
{
log “No Junk directory in $USERHOME/Maildir”
to “$USERHOME/Maildir/”
}
}
else
{
to “$USERHOME/Maildir/”
}

This works for users in witch dirs you put .qmail file. If you want for whole domain you must use :

/home/vpopmail/domains/MYDOMAIN.XXX/.qmail-default file instead of .qmail in user directory.

written by MG \\ tags: , , ,