Archive

Archive for March, 2009

Export and Backup Emails from Outlook to Gmail Online

March 21st, 2009 No comments

 

Source: http://www.labnol.org/internet/email/export-outlook-email-to-gmail-pst-backup/1938/

 

Sachin writes – “I have few thousand email messages inside Microsoft Outlook (a pst file) organized in various folders. I know it is possible to download emails from Gmail to Outlook using POP3 or IMAP but is the reverse path possible.”

Sachin is looking for a trick to archive all Outlook email messages (and folders) to his online Gmail account for two reasons – one is secure backup and two, he will be able to access his old emails from any computer.

gmailoutlookbackup

Solution: It is quite easy to transfer Outlook emails to your Gmail mailbox. Here’s a step by step guide:

Step 1: Enable IMAP in your Gmail account and then configure Outlook (or Outlook Express or Windows Live Mail) to sync with your Gmail address via IMAP. Read this guide.

archivepst Step 2: Import your Outlook PST file into a Personal folder that is different from your default Gmail Inbox.

To import, click File -> Import And Export -> Import from another program or file. -> Next -> Personal Folder File (.pst) -> Next.

Select the PST file that contains your email, then pick the email folders that you want to import in Outlook and click Finish.

Step 3: Select the Personal folders that you want to backup online and copy them your Gmail Folder in Outlook (see screenshot).

In the Folder List, right-click the folder you want to copy and click Copy Folder name. Click the Gmail Folder in Outlook to copy that folder in that location. You can repeat the steps as needed for other folders.

copyoutlookfolder That’s it. Your Outlook email will soon become available inside your online Gmail Inbox.

If your switching from Hotmail to Gmail, check this tutorial on moving emails from Hotmail to Gmail.

Caution: The migration from Outlook to Gmail can take a long time if you have very large Outlook pst file or if your internet connection speed is slow. Therefore, consider removing all large emails before moving them to your Gmail via IMAP.

Categories: How To Tags:

How To Manage Profiles

March 21st, 2009 No comments

 

Source: http://www.mozilla.org/support/thunderbird/profile

 

Mozilla Thunderbird stores all your personal settings, such as your mail, passwords and extensions, in a profile. The profile is stored on your hard drive in a profile folder.

If you run into problems using Thunderbird (e.g. problems starting after installing an extension, or other features not functioning properly), the first thing you’re usually asked to do in the tech support forum is to create a new profile. This tutorial will not only show you how to do that, but also how to create backups and move or restore existing profiles.

Contents

Locate your profile folder

Knowing where your profile folder is stored can be useful if, for example, you want to make a backup of your personal data.

  • On Windows Vista/XP/2000, the path is usually %AppData%\Thunderbird\Profiles\xxxxxxxx.default\, where xxxxxxxx is a random string of 8 characters. Just browse to C:\Documents and Settings\[User Name]\Application Data\Thunderbird\Profiles\ on Windows XP/2000 or C:\users\[User Name]\AppData\Roaming\Thunderbird\Profiles\ on Windows Vista, and the rest should be obvious.
  • On Windows 95/98/Me, the path is usually C:\WINDOWS\Application Data\Mozilla\Thunderbird\Profiles\xxxxxxxx.default\
  • On Linux, the path is usually ~/.thunderbird/xxxxxxxx.default/
  • On Mac OS X, the path is usually ~/Library/Thunderbird/Profiles/xxxxxxxx.default/

%AppData% is a shorthand for the Application Data path on Windows 2000/XP/Vista. To use it, click Start > Run… (use the search box on Vista), enter %AppData% and press Enter. You will be taken to the "real" folder, which is normally C:\Documents and Settings\[User Name]\Application Data on Windows XP/2000, C:\users\[User Name]\AppData\Roaming on Windows Vista.

Create a new profile

profilemanager1

The screenshots are from Firefox, but the appearance is the same in Thunderbird.

In order to create a new profile, you use the Profile Manager. To start the Profile Manager in Windows, follow these steps:

  1. Close Thunderbird completely (select File > Exit from the main menu of Thunderbird).
  2. Select Start > Run… from the Windows Start menu (use the search box on Vista).
  3. Enter thunderbird.exe -ProfileManager and press OK.

On Mac OS X, navigate to /Applications/Utilities, open the Terminal application, type /Applications/Thunderbird.app/Contents/MacOS/thunderbird -ProfileManager, and press Return.

On Linux, start Thunderbird with the -profilemanager switch, e.g. ./thunderbird -ProfileManager (this assumes that you’re in the Thunderbird directory).

You should now see the Profile Manager window, shown in the screenshot to the right.

From the Profile Manager you are also able to remove and rename profiles.

profilemanager2

Click on the Create Profile… button to start the Create Profile Wizard. Click Next and enter the name of the profile, e.g. your name or something descriptive.

You can also choose where on the disk you want the profile to be stored, which is useful if you plan on exporting your settings to another computer or setup in the future.

Finally, click Finish to have Thunderbird create the new profile.

profilemanager3

You should now be taken back to the Profile Manager and the newly created profile should be listed. Select it and click Start Thunderbird. That’s it!

You are now running Thunderbird with the new profile, which means all settings are reset to default. If you want to switch back to your old profile, just start the Profile Manager again (instructions above) and select the old profile.

You can also have Thunderbird start a selected profile automatically, so you don’t have to pick one each time the browser is launched. Do this by checking the Don’t ask at startup option.

Backing up your profile

Backing up your profile folder in Thunderbird is easy. Just follow these steps (which assumes you know how to manage files on your computer):

  1. Shut down Thunderbird completely (File > Exit).
  2. Make a copy of your profile folder to, for example, a CD-RW disc or a separate hard disk for backup purposes.

Move an existing profile or restore a backed up profile

It’s possible to move the location of a profile folder. This could be useful if you have a backed up profile folder somewhere on your hard drive and want to tell Thunderbird to use that as your profile. This section explains how to do this.

  1. Shut down Thunderbird completely (File > Exit).
  2. Move the profile folder to the desired location. For example, on Windows XP, move the profile from C:\Documents and Settings\[username]\Application Data\Thunderbird\Profiles\xxxxxxxx.default to D:\Stuff\MyMailProfile. If you are reading these instructions because you want to restore a previously backed up profile, this step isn’t necessary. Just note the current location of the profile you want to restore.
  3. Open up profiles.ini in a text editor. The file is located in the application data folder for Thunderbird:
    • On Windows Vista/XP/2000, the path is %AppData%\Thunderbird\
    • On Windows 95/98/Me, the path is usually C:\WINDOWS\Application Data\Thunderbird\
    • On Linux, the path is ~/.thunderbird/
    • On Mac OS X, the path is ~/Library/Application Support/Thunderbird/
  4. In profiles.ini, locate the entry for the profile you’ve just moved. Change the Path= line to the new location. IMPORTANT NOTICE: If you switch from a relative path to a non-relative one, the direction of the slashes may need to change (e.g. in Windows, non-relative paths use backslashes, whereas relative ones use forward slashes).
  5. Change IsRelative=1 to IsRelative=0.
  6. Save profiles.ini and restart Thunderbird.
Categories: How To Tags:

How to backup Windows Live Writer

March 21st, 2009 No comments

 

Source: http://www.backuphowto.info/how-backup-windows-live-writer

 

Windows Live Writer is a blog writing tool. It provides a powerful editing environment, like a simple MS Word. You can use it to write on your own computer and after finishing a post just click the publish button. The post will be published.

If you are a blogger, you may know this software. It is a powerful utility for writing blogs. It supports many popular blogs API, such as WordPress, Blogger.com, etc.Windows Live Writer supports plugins. You can download some plugins to extend its functions. For example, highlighting your program code with Syntax Highlighting plugin. As a blogger, the articles are his life. To avoid your articles’ losing, you should backup them regularly.

Backing up your Live Writer data with Windows Live Writer Backup

Step 1. First, download this utility and install it. Click to download

Step 2. Start it from the Program menu. The interface looks very simple.

130_84

Windows Live Writer Backup Utility

Step 3. Choose what you want to backup. Here, "Blog settings" means your blog information, such as your blog name, address, account name and password, etc. Draft blogs are your posts that haven’t been published. After you make your choice, click "Backup" button and choose a backup file name. A .wlwbackup file will be generated.

Restoring Windows Live Writer

Just click the "Restore" button in the picture above. An "open file" dialog will popup to let you choose the backup file. Note that restoring will overwrite your current blog settings. Your unpublished posts that haven’t been backup up will be lost. To avoid the unfortunate thing, a warning dialog will popup. So please think it over before clicking "OK".

Categories: How To Tags:

Using Custom Fields in Worpress

March 17th, 2009 No comments

 

Source: http://codex.wordpress.org/Using_Custom_Fields

 

WordPress has the ability to allow post authors to assign custom fields to a post. This arbitrary extra information is known as meta-data. This meta-data can include bits of information such as:

  • Mood: Happy
  • Currently Reading: Cinderella
  • Listening To: Rock Around the Clock
  • Weather: Hot and humid

With some extra coding, it is possible to achieve more complex actions, such as using the metadata to store an expiration date for a post.

Meta-data is handled with key/value pairs. The key is the name of the meta-data element. The value is the information that will appear in the meta-data list on each individual post that the information is associated with.

Keys can be used more than once per post. For example, if you were reading two different books (perhaps a technical book at work and a fiction at home), you could create a "reading" key and use it twice on the same post, once for each book.

Here is an example of what this information might look like on your post:

Currently Reading: Calvin and Hobbes

Today’s Mood: Jolly and Happy

Usage

Based upon our example above, let’s put this into action. We’ll add two custom fields, one called "Currently Reading" and the other "Today’s Mood". The following instructions will demonstrate how to add this information to a post using Custom Fields.

  1. After you have written your post, scroll down to the area titled Custom Fields.
  2. To create a new Custom Field called "Currently Reading", enter the text "Currently Reading" (without the quotes) in the text entry field titled Key.
  3. The newly created Key should now be assigned a Value, which in our case is the name of the book currently being read, "Calvin and Hobbes". Type "Calvin and Hobbes" in the Value field, again without the quotes.
  4. Click Add Custom Field button to save this custom information for that post.

To add your "Today’s Mood", repeat the process and add "Today’s Mood" to the key and a description of your mood in the value text boxes and click SAVE to save this information with the post.

On your next post, you can add a new book and mood to your meta-data. In the Custom Fields section, the Key will now feature a pull down list with the previously entered Custom Fields. Choose "Currently Reading" and then enter the new book you are reading in the value. Click Add Custom Field and then repeat the process to add "Today’s Mood".

You only need to create a new "KEY" once, after which you can assign a value to that key for every post, if you so desire. You can also assign more than one Value to a key, for a post. This will come in handy for people who read more than one book at a time.

Displaying Custom Fields

With a Custom Field added to the post, it’s time to display your books and mood to the world. To display the Custom Fields for each post, use the the_meta() template tag. The tag must be put within The Loop in order to work. Many people add the_meta() template tag to the end of their post or in their Post Meta Data Section. Here is a basic example of using the tag:

<?php the_meta(); ?>

It might look like this in the source code:

<ul class='post-meta'>
<li><span class='post-meta-key'>Curently Reading:</span> Calvin and Hobbes</li>
<li><span class='post-meta-key'>Today's Mood:</span> Jolly and Happy</li>
</ul>

The template tag automatically puts the entire meta-data into a CSS style called post-meta. The key is in a span called post-meta-key so you can style it in your style sheet. All of this is showcased in an unordered list.

To customize the look of the post-meta list, change the characteristics in your style sheet. For instance, let’s add some style to our example from the top. The style sheet elements would look like this:

.post-meta {font-variant: small-caps; color: maroon; }
.post-meta-key {color: green; font-weight: bold; font-size: 110%; }
  • Currently Reading: Calvin and Hobbes
  • Today’s Mood: Jolly and Happy

There are also many WordPress Plugins in the Official WordPress Plugin Directory that add some nice features to the job of displaying meta tags. A search for Custom Field plugins at Google should help you find even more.

Advanced Techniques for Custom Fields

The following are more advanced techniques for getting and customizing meta-data and custom fields.

Getting Custom Fields

To fetch meta values use the get_post_meta() function:

 get_post_meta($post_id, $key, $single);
  • $post_id is the ID of the post you want the meta values for. Use $post->ID to get a post’s ID.
  • $key is a string containing the name of the meta value you want.
  • $single can either be true or false. If set to true then the function will return a single result, as a string. If false, or not set, then the function returns an array of the custom fields.

Implementation Details

The PostMeta information is stored in a new table, $wpdb->postmeta. This table has four fields:

meta_id: A unique id for each entry
post_id: The ID of the post for this metadata
meta_key: The name of the ‘key’
meta_value: The value associated with the key

The values from this table are pulled into a structured multi-dimensional array called $post_meta_cache, just after the $posts array is fetched in wp-blog-header.php. This variable will only contain values for the list of posts fetched for the current page build. The structure of the array will look something like this:

 [
   postid1 => [
     [
       key1 => [val1, val2, ...],
       key2 => [val1, val2, ...],
       ...
     ],
   postid2 => [ ... ],
   ...
 ]

So, if you wanted to fetch the "reading" values from post number 256, you use this PHP code:

 // Fetch an array of values for what I'm reading:
 $readinglist = $post_meta_cache[256]['reading'];
Don’t forget that $readinglist will be an array, not a single value.
As of WordPress 2.1, $post_meta_cache isn’t populated anymore. Get the meta values through the functions mentioned below

PostMeta Functions

Internal Functions

These functions are intended for use inside The Loop, and all return arrays.

get_post_custom()
Get all key/value data for the current post.
get_post_custom_keys()
Get a list of all key names for the current post.
get_post_custom_values($key)
Get the list of values for a particular key on the current post.
get_post_meta($post_id, $key, $single = false)
In WP 1.5 and beyond, this function returns the meta information without cache problems. The function requires the post id, the key, and if $single is set to TRUE, it returns only the first result (NOT as an array) for PHP use.
This will output the resulting meta value (notice the addition of "echo"):
<?php $key="mykey"; echo get_post_meta($post->ID, $key, true); ?>

Template Functions

At the time of this writing, there is only one template function.

the_meta()
Echoes an unordered list containing the current post’s meta-data with a class for the UL as post-meta and the LI as post-meta-key.

We expect that independent developers will come up with many interesting uses for post meta-data in the form of plugins. The the_meta() template function is just an extremely basic example.

At this time, you can only add and delete entries. The ability to modify existing entries will be implemented later.

Categories: CMS Tags:

How to post to Joomla 1.5.3 using Windows Live Writer

March 3rd, 2009 No comments

 

Source:

http://carolinaregion.com/2008/07/23/how-to-post-to-joomla-153-using-windows-live-writer/

 

What you need to make WLW post to Joomla:

There are a few requirements to make this work. Of course you’ll need Joomla running on your server and WLW running on your PC. I’m assuming you know that much already. Here’s the rest:

  1. MetaWeblog API plugin for Joomla
    It’s available from: http://joomlacode.org/gf/project/metaweblogapi/frs/
    metaweblogapiplugin-thumb
    Right click on metaweblog.zip and download the zip file to your PC.
  2. RealSimpleDiscovery Plugin for Joomla (RSD)
    It’s available from: http://joomlacode.org/gf/project/rsd/frs/
    realsimplediscovery-thumb
    Right click on rsd.jpb and download the zip file to your PC.
Instructions for Installing the Plugins in your back-end Admin.

Log into your Joomla Admin panel and go to  Extensions –> Install/Uninstall.

adminmenu-thumb

Click “Browse” and then choose the zip files you just uploaded. It doesn’t matter which order you upload them in. You need to upload the MetaWeblog module and the RSD module.

installscreen-thumb

Go to your Plugin Manager and enable the MetaWeblog Plugin and disable the Blogger API that came with your Joomla installation. (Extensions –> Plugin Manager)

meta1-thumb

While you’re there, also enable the RSD plugin. (If it’s hard to find, that’s because it’s called System – Real Simple Discovery (RSD).

meta2-thumb

Enable Web Services

Go to your Global Configuration and choose “yes” to the “Enable Web Services option, which is defaulted to “no.”

This is located under Global Configuration –> System –>System Settings

enableweb-thumb

Now, you’ve finished the Joomla end of the instructions. Now go open Windows Live Writer and let’s create a new Weblog.

Setting up Windows Live Writer to Talk to Joomla
  1. Open WLW and create a new blog account.
  2. Choose “Another Weblog Service” and press next.
  3. Enter your joomla web site address, your username, and your password.

That’s it!

Now, maybe your auto-configuration didn’t work and you need to enter the variables manually. It’s ok, no problem. On the next screen, under type of blog, be sure you choose MetaWeblog API, then enter your XML-RPC url, which will be http://yoursite.com/xmlrpc/index.php.

Now it should work.

Things you should know
  • You MUST be an admin to post on the site automatically. If you are only a Registered User, Editor, or Publisher, the article will still be posted but will await approval by a moderator before being published publicly. If you ‘re not getting any errors, but aren’t seeing your posts, this might be why.
  • You must choose the category for your post, or else Joomla will assign is as “uncategorized” which means it gets treated as a static page. Choose the category from the lower left side of the WLW screen.
    set-thumb
  • If you can’t publish, check to make sure your plugins are enabled properly. If they ARE, and you type http://yoursite.com/xmlrpc/index.php into your browser, you should see something similar to this screen:
    shouldsee-thumb
Categories: CMS Tags:

Linux Commands: Move or rename files or directories

March 2nd, 2009 No comments

 

Source: http://webtools.live2support.com/linux/mv.php

 

mv-Linux Command

 

mv

Move or rename files or directories.

SYNTAX
      mv [options]... Source Dest

      mv [options]... Source... Directory

If the last argument names an existing directory, `mv’ moves each other given file into a file with the same name in that directory. Otherwise, if only two files are given, it renames the first as the second. It is an error if the last argument is not a directory and more than two files are given.

OPTIONS  

-b
--backup
     Make a backup of each file that would otherwise be overwritten or
     removed.

-f
--force
     Remove existing destination files and never prompt the user.

-i
--interactive
     Prompt whether to overwrite each existing destination file,
     regardless of its permissions.  If the response does not begin
     with `y' or `Y', the file is skipped.

-S SUFFIX
--suffix=SUFFIX
     Append SUFFIX to each backup file made with `-b'.
     The backup suffix is ~, unless set with SIMPLE_BACKUP_SUFFIX.

-u
--update
     Do not move a nondirectory that has an existing destination with
     the same or newer modification time.

-v
--verbose
     Print the name of each file before moving it.

-V METHOD
--version-control=METHOD'
     Change the type of backups made with `-b'. METHOD can be:

       t, numbered     make numbered backups
       nil, existing   numbered if numbered backups exist, simple otherwise
       never, simple   always make simple backups

 --help                   display help and exit
 --version                output version information and exit

Examples



Rename the file apple as orange.doc:
mv apple orange.doc

Move orange.doc to the Documents folder:
mv orange.doc ~/Documents/orange.doc

Rename a bunch of file extensions
e.g. change *.txt into *.htm
  for f in *.txt; do mv ./"$f" "${f%txt}htm"; done

`mv’ can move only regular files across filesystems.

If a destination file exists but is normally unwritable, standard input is a terminal, and the `-f’ or `–force’ option is not given, `mv’ prompts the user for whether to replace the file. (You might own the file, or have write permission on its directory.) If the response does not begin with `y’ or `Y’, the file is skipped.

Related Linux Bash commands:

cp – Copy one or more files to another location

Categories: Linux Commands Tags: