Step by step instructions for solving tech problems.

Formula for splitting apart First name and Last name in OpenOffice

Assuming you have a spreadsheet with column A with header "Full Name" instead of "First name" and "Last name"

You can usually split these apart by searching for a space. Names with 3 parts or only 1 will not work and may require you to get a bit more fancy but this will work in most cases:

Formula for splitting out the First Name in OpenOffice

Find a space then take that many characters from the left minus 1 to remove the trailing space itself.

=LEFT(A2;FIND(" ";A2)-1)

Formula for splitting out the Last Name in OpenOffice

How to remove a stubborn item from your Mac OSX sidebar

If you've tried right clicking and dragging and dropping the item out but it just won't be removed from your Mac sidebar:

Hold the "Command" key
Drag and drop it from the sidebar
A cloud will appear
The item will disappear and be removed from your Mac sidebar.

Bothered me for a bit so i thought i'd share

enjoy

-Dave Shaw

How to include full names when sending email with PHP Pear Send function

According to the PHP Pear Send function manual:
http://pear.php.net/manual/en/package.mail.mail.send.php

You can send to and from a raw email address.
But how do you include the person's first and last name using the PHP Pear Send function?

From header format to include names

    $from_header = "Firstname Lastname <from@daveshaw.net>";

Dynamic email to header format

    $to_header = "\"$to_name\" <$to_email>";

How to playback and edit AVI movies on your mac for free

Play edit and export quicktime to any format

MPEG Streamclip is A great free editor and video player for mac osx.
Simply hit 'i' and 'o' to set in and out points then export 'command + e'

Download MPEG Streamclip

AVI Codec Support

Perian is another amazing bit of mac osx freeware.

How to reconnect OSX Cisco VPN after Error 51

Cisco VPN Client Error 51

Error 51: Unable to communicate with the VPN subsystem.
Please make sure that you have at least one network interface that is currently active and has an IP address and start this application again.

Fix Cisco VPN by restarting CiscoVPN.kext

Open a terminal:
Applications -> Utilities -> Terminal

switch to your super user admin account and enter your password when promted

su
Password: ****

Next restart CiscoVPN.kect

sudo kextload /System/Library/Extensions/CiscoVPN.kext

How to run cron manually in Drupal 6

Go to the Drupal Admin Status Reports page.

Admin > Status report > Cron maintenance tasks

Run the manual cron link

Click the link titled "You can run cron manually."
which should link to

/admin/logs/status/run-cron

For this site click here:
http://daveshaw.net/admin/logs/status/run-cron

Dave Shaw

How to adjust strings from lowercase, uppercase, and proper nouns using php

lowercase

Its simple to make lowercase words string to lower strtolower() function

UPPERCASE

Its also simple to make UPPERCASE words with the string to upper strtoupper() function

Proper Nouns

So what if you want Mixed Case? Is there a proper() function like in open office? What about strtomixed() or strtoproper()? No!
You need the uppercase words function ucwords().

How to create google map info windows with scrollbars

If you plan to have long text shown in an info window of your google maps you will need to allow your content to overflow.

This is not set using any special google API tricks.

Set your content to overflow using css

The CSS overflow property for your div should be set to auto or scroll.


#map-content {
padding: 20px;
margin: 0 auto;
border: none;
width: 300px;
Height: 400px;
overflow: auto;
}

How to learn the difference between any 2 words on WikiDiff

Look up the difference between two words on wikidiff.com

WikiDiff is a great mashup using primarily the definitions from Wiktionary. You can quickly compare any 2 words by entering them into the search fields.
But even better is that you can enter your search directly into the address bar!

Use short URLs to compare words on wikidiff.com

Simply enter wikdiff.com followed by the two words you want to compare seperated by forward slashes:

How to enable relative dates for CiviCRM Smart Groups using Search Builder

Smart Groups can now use Relative Dates!

I haven't tested this for knock-on effects but i have been able to build a smart group with relative dates for Contribution 'Recieve Date' using the Search Builder.

First Change how CiviCRM defines a Date

I did this by modifying what is an acceptable 'Date' input type.
I added a few lines to

civicrm/CRM/Utils/Type.php

Syndicate content