Friday, November 27, 2009

Joomla: Redirect to same page after login

Here's some code to redirect Joomla to the page you want, after forcing a user to login first.

$uri =& JFactory::getURI();
$redirect = '&return='.base64_encode($uri->toString());
"Please login.");

Wednesday, November 25, 2009

A TAB is 4 Spaces

A TAB is 4 Spaces.

In .vimrc or _vimrc add these lines:

set autoindent
set smartindent
set tabstop=4 shiftwidth=4
set expandtab

Tuesday, November 10, 2009

Mac Quirks: Multiple From Emails with Apple Mail

Thanks to Michael Voong for this tip. There is bare minimal documentation from Apple on how to add multiple email addresses to a single account in their email program.

The solution, edit your email account settings using a comma separated list for all the email addresses or email aliases you want to be able to use in Apple Mail.