How to remove page header and footer while printing in Firefox browser

When I printed some web pages in Firefox, I got these default header and footer information such as Page Title, Page URL on my print-out. In Firefox, there is not any interface for us to turn off or remove these page header and footer.

To remove, you need to change the settings in the its config page. Just follow the steps below:

  1. Type about:config in the address bar of Firefox;
  2. Click I am careful, I promise to enter into config page;
  3. Type “header” or “footer” in search field to filter all setting related to the page header and footer;For example, you will find something like “print.print_headerright” etc.
  4. Change the value of these print-header keys from something like “&T” to empty or “”; (remember these values in case you need to put back)

You are done, good luck.

A good WordPress plug-in recommended

bestwebsoftI should have written this post earlier since I have been using this plug-in for a while. But I didn’t realize its helpful result till recently I checked my comments section in my blogs.

As a lot of bloggers/WordPress Owners on the Internet, I put the comment spammers at the top of our hate list. I had to spend a lot of time to clean up these junk comments (with ads, links) even my WordPress installed the Akismet plug-in by default.

Things changed after I searched and installed a good CAPTCHA plugin from Bestwebsoft’s developer.  The following is what the plug-in description says about itself.

Plugin Captcha intended to prove that the visitor is a human being and not a spam robot. Plugin asks the visitor to answer a math question.

Well, I didn’t test and use other WordPress CAPTCHA plug-ins, so I couldn’t have a good comparison on it. And only thing here I have to say: it works, and works well for me. In the past month, I only had one or two junk comments on all my blogs compared to a few hundreds before without it.

If you are interested, and want to give it a try too. Search BWS CAPTCHA plugin in WordPress plug-in installation directory; or browse its website http://bestwebsoft.com/plugin/. Good luck.

How to get rid of newsletter required error in PrestaShop customer account registration

PrestaShopI used Prestashop for one of my friends e-commerce website. I tested, and everything was okay. But we didn’t like the Required message for the Newsletter checkbox while we tried to register a new account during the checkout.

So we tried to remove the required field. As usual, I searched the Internet for the solutions first. But a lot of search results talking about how to add new required fields for PrestaShop, like the phone number, etc. This needs to hack the Address.php class file. But I didn’t see any answers to my original question: just get rid of the Newsletter required message. Even I did, I would not have considered to do so by hacking the eCommerce system’s core files.

Then I looked up in the modules section, and I tried the different “newsletter” related modules. But unfortunately I still could not find a solution.

Finally, before I almost give up and decided to hack the core files, I found the place to make the change. Here is the how-to:

1, Log into the admin back-up.

2, select the Customers option from the Customers top navigation menu;

3, Click “+Set required fields for this section” button, and you will see “Newsletter” field overthere.

4, Un-check “newsletter” and click “Save” button below to apply your change.

And you are done, didn’t realize it was so easy and it was hidden there.

[Solved] Can not boot into Windows 7 Safe Mode by clicking F8 key

Windows 7I need to boot my Windows 7 into Safe mode to re-direct the Public folder to another partition (see my previous post). According to previous experience, I know that  booting into Windows Safe Mode requires holding down or repeatedly pressing the F8 key during the POST (before you see the Windows logo). But this time, however, pressing the F8 key in any way or at any time just won’t work (even F5 still works).

I tried a couple rebooting and clicking the F8 all the time, but Windows 7 just booted into the normal mode by ignoring my F8 efforts. Then I had to find another to boot the Windows 7 into safe mode without clicking F8. The following is the way to force Windows 7 into Safe Mode the next time your computer restarts. Continue reading

How to move Public folder to another partition in Windows 7

In my previous post, I showed how to move the existing users’ Document, Pictures, Videos etc to another partition by clicking the Properties and change the Location. But the Location of Public user folders could not be modified in the Windows 7 Normal Mode.

In this case, you can use another way to move your Public user folders from the C: drive to another one (like D: or E:).

First, copy your existing files from the Public user folder to another destination drive. Create a new directory (you can call it the same name Public) on your destination directory (in my case, D:). Then use robocopy command to copy all files from C:\Users\Public to it. The reason to use robocopy is that you can copy even the hidden files.

robocopy /MIR %SYSTEMDRIVE%\Users\Public D:\Users\Public

Now, let us redirect the Public user folder to the new directory.
Continue reading

[Solved] Windows 7 Not Recognizing SATA Hard Drive in Rosewill Enclosure

I used the Rosewill External Data Storage Enclosure to re-use all my old SATA hard disks. It ran well without any problems. But recently I popped in a Seagate Barracuda  internal hard drive into this Rosewill external enclosure, the computer could not recognize it. I tried on different computers with the Windows 7 Home Premium x32 and Windows 7 Professional x64 OS. I have unplugged the hard drive and restarted the computer many times. It uses external powernd is plugged in. I am currently using USB to connect to my computer. When the first time plugged in, I could see the computer installed the driver, but I still could not see it in the device list.

I first thought the internal harddisk was bad, then changed to another empty harddisk, the same problem.
Continue reading

How to create a Past Due task list view in SharePoint based on the Due Date

MOSS 2007I am using the SharePoint task list as the action register list for my team. I want to change the default view as Past Due Tasks. I created the view, and named it as “Past Due Tasks”. But I got problem with the filter, since I would like to set up two conditions to filter tasks for this view.

1, All tasks have not been completed yet;

2, The due date has passed today’s date.

First, I selected the column of Due Date, then set up the operator as is less than. And lastly when I tried to put “=Today()” and “=Date()” in the Date field, I got the error “Filter value is not in a supported date format“. Of course, if I put today’s date like 08/04/2012 in the field, everything is working. But I don’t want to change the date value every time I bring up this view.

Later on, I found out the SharePoint filter is taking CAML function. The correct way is to put [Today]  in that field. So my final view should look like the below figure.

How to change the HOST ONLY IP network in VM Fusion 4

Trying to build a RGNets rXg Wi-Fi gateway on my Mac Pro’s Virtual Machine. I am using the free trial version of VM Fusion 4. Everything went well, downloaded and installed the rXg iso file, and created the new rXg box on top of VM Fusion/Mac. Then I built another VM (this time, I used Windows XP as the guest OS). After I booted into the second VM, I found out its IP is 172.16.217.128, while the default LAN IP for the rXg gateway is 192.168.5.1.

To make sure the second VM be in the same private network of the LAN of rXg box, I would have to change its IP range.

Here is a simple how-to on make network configuration change on the VM Fusion application on Mac.

Continue reading

How to maintain multiple Outlook.com Hotmail.com Live.com email addresses in one mail box

logo_outlookmailMicrosoft just officially released its NEW brand of online mail service, http://www.outlook.com. I will not spend time here on writing how different, or great it is compared with Gmail or Yahoo! mail. You can google or find the details on ZDNet articles like this one http://www.zdnet.com/goodbye-hotmail-hello-outlook-com-7000001893/

Today I just wanted to introduce you one of its features I like: put multiple mail alias into one Outlook.com login. Here is how it works: you have a primary outlook.com account for example, myname@outlook.com. And you want other persons also send emails to your myothername@outlook.com and you will receive in your primary mail box myname@outlook.com.

Continue reading

How to connect to Windows 2003 server through VPN

windows2003You have a Windows server 2003 here, and you want your co-worker in the branch of China to access to the same shared folders on this Windows Server. You don’t have an expensive Cisco network, neither a RADIUS server. Still you can accomplish this by following the simple steps below  just like I did today.

There is a role in Windows 2003 called Routing and Remote Access which can be turned on to make the Windows Server 2003 accessible via VPN through the Internet.

Here are these simple 5 steps you need to follow.

Continue reading

How to change the new user default profile to another drive or partition in Windows 7

windows7Now you have a new PC with nice Windows 7 operation system and a great big space harddisk. Only thing you feel why we can’t create another drive and put all user information on that new drive separate from the Operation System drive. It makes sense if when you want to re-install the system and keep all user data in the future.

There are a lot of ways to do so and of course there are a lot of tutorials online to show you how to do. Here, I just want to walk you through with what I have done recently, and I feel it is the simplest way to accomplish what we need, if 1)you already configured and set up your new computer with a default administrator user; 2)but no new other users (include the domain users) have been created and logged onto your new computer yet. Then you can continue to use the default local administrator user to log onto your new PC and complete the following 2 simple steps.

Continue reading

How to display multiple count(*) values in one row with Group By based on different conditions

sql-injection-database

It has been a while for me to write SQL query due to the heavy involvement with budgetary meetings and other managerial errands. So when the developer asked me the help on the query today, it took me a longer period to finally figure out.

Challenge:
Let us assume this scenario : we have a table with all applications submitted, along with the approval status (“Approved”, “Denied” and “Pending”) and process date/time.  Now, we need to display a report with the requested company information and how many applications submitted, approved, and denied they had in a particular time period.

It simply starts with the Count(*) and Group By Requested Company ID in the SQL. Continue reading

Resolved: Office SharePoint Server Search not work

The search function on the MOSS 2007 sites didn’t work. I logged into the Central Administrative Site and click the Search Setting, but got the following error

Retrieving the COM class factory for component with CLSID {3D42CCB1-4665-4620-92A3-478F47389230} failed due to the following error: 8007042d.

And I checked the Administrative Tools –> Services, and found the Office SharePoint Server Service didn’t start. When I clicked Start Service, but another error dialog window appeared as the below.

Error 1069: The service did not start due to a logon failure

Error 1069

Continue reading

Resolved: Quickbooks 2012 msi install error 1620

QuickBooksToday I tried to install the Quickbooks Premium 2012 edition on one of the machines, but got a “msi installation error 1620” with the following error message:

…”This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package.”…

First thing I tried was to re-install the Windows Installer, but I still got the same error message. According to the Quickbooks support site, it seemed the installation file I had for Quickbooks was damaged.

Continue reading