Oct
20
2008
11

How to ‘free’ the Mouse in Virtual PC 2007

Before you install the virtual PC tools in Windows XP when using the mouse it becomes locked into the virtual PC window.

To release it hold down the right Alt (often Alt Gr) and drag the mouse out of the Virtual PC window.

Written by Pete in: virtual pc |
Oct
17
2008
0

Removing Spam From a Drupal Website

For WordPress the integration with Akismet is an ideal solution for removing spam comments from your website. Until recently this tight integration was not available for Drupal. While Akismet was available for Drupal it lacked some of the abilities that WordPress included.

This was until Mollom became available for Drupal, designed by Dries Buytaert, the founder of Drupal. Mollom works in a similar way to Akismet however has tight integration with Drupal. A free version is available for smaller sites and a professional version for busier sites costing 30 Euros/month.

For more about Mollom visit:

www.mollom.com

For more about Drupal visit:

www.drupal.org

I have tested Mollom on a number of client sites and will be implementing it soon on our parent website, www.imafish.co.uk .

Written by Pete in: Drupal |
Oct
16
2008
0

Recreating Outlook Web Access Server 2003

Often when you have problems with Outlook Web Access they can be sorted by recreated the OWA directories. If virtual directories become corrupted they will not automatically recreate themselves.

This Microsoft support document details how to recreate OWA virtual directories

http://support.microsoft.com/kb/883380/en-us

Written by Pete in: Microsoft Exchange/Outlook |
Oct
15
2008
1

Recreate Outlook Web Access – Exchange 2007

Today I found the proper way to recreate the Virtual Directory.
Step one is to view all of the Virtual Directories on the server.
Get-OwaVirtualDirectory will display a list of all the Exchange Virtual Directories on that server. The one you are looking for
here is “OWA (Default Web Site)” on a default install.

Step two is to remove the default OWA Virtual Directory with:
Remove-OwaVirtualDirectory -identity “owa (Default Web Site)”

The next step is to recreate the OWA Virtual Directory with:
New-OWAVirtualDirectory -OWAVersion “Exchange2007″ -Name “owa (Default Web Site)”

Now go into the Exchange 2007 Management Console and setup the correct internal and external URLs and any other settings you may have
changed the first time around. One of the changes I recommend is on the “Authentication” tab the Logon Format for Forms based authentication to “User
name only” and then setting the domain. This will make it easier for your users to login by not having to remember the domain or typing domain\username.

Written by Pete in: Microsoft Exchange/Outlook |
Oct
14
2008
0

Spell Checker is not Working on Certain Microsoft Word Documents

On certain documents in Microsoft Word 2003 the spell checker might not be enabled:

1. Open the document

2. Click Tools > Language > Set Language

3. Click on English (U.K)

4. Make sure ‘Do not check spelling or grammar’ is un checked.

5. Click Default…

6. Click OK

Written by Pete in: Microsoft Office |
Oct
13
2008
0

Deleting Firefox Remembered Items on OS X

In windows you can simply highlight an option and click delete however on OS X you need to click shift+delete.

Written by Pete in: Firefox,OS X |
Oct
10
2008
0

USB Drive Overwrites Network Drive

If you have a number of network drives mapped and find that when you plug in your USB stick it hijacks one of these drives then you can either remap your network drive or change the drive letter of the USB stick:

To change the drive letter of the USB stick:

  1. Click Start
  2. Right click on my computer and select manage.
  3. Click on Disk Management (on the left)
  4. Right click on your USB stick and click Change Drive Letter
  5. Highlight the current drive letter and click Change.
  6. Select the new drive letter and click ok
  7. Click OK again and your drive letter will be changed.
Written by Pete in: Windows XP |
Oct
09
2008
0

Attach Icons to Links Automatically

This little CSS code snippet allows you to automatically attach an icon to file downloads. For instance if you had a file to download a pdf it would automatically add the icon to the right of the link.

<a href="news/issue12.pdf">View Latest Issue</a>
a[href $='.pdf'] {
padding-right: 18px;
background: transparent url(icon_pdf.gif) no-repeat center right;
}

Result

View Latest Issue

Written by Pete in: css |
Oct
08
2008
0

How to highlight sourcecode in WordPress

The SyntaxHighlighter Plus plugin allows you to highlight different types of code within your wordpress posts:

CSS example

pre {
white-space: pre-wrap;       /* css-3 */
white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
white-space: -pre-wrap;      /* Opera 4-6 */
white-space: -o-pre-wrap;    /* Opera 7 */
word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

PHP example

<?php
$block = module_invoke('block', 'block', 'view', 7);
print $block['content'];
?> 

The module states it works upto WordPress 2.5 however it is working without any problems on 2.6.

It supports the following languages (the alias for use in the post is listed next to the name):

  • Bash — bash, sh
  • C++ — cpp, c, c++
  • C# — c#, c-sharp, csharp
  • CSS — css
  • Delphi — delphi, pascal
  • Java — java
  • JavaScript — js, jscript, javascript
  • PHP — php
  • Python — py, python
  • Ruby — rb, ruby, rails, ror
  • SQL — sql
  • VB — vb, vb.net
  • XML/HTML — xml, html, xhtml, xslt
Written by Pete in: wordpress |
Oct
08
2008
0

Increase the memory available to PHP

If you get out of memory errors in PHP or if Drupal suggests you increase the memory available to PHP then you can do this with the following line of code:

ini_set('memory_limit','16M');

In Drupal the best place to put this is in the settings.php file found in sites/default/

Written by Pete in: Drupal,php |

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes