Showing posts with label diy. Show all posts
Showing posts with label diy. Show all posts

August 02, 2010

Google Font Preview

I’m sure most of you would have heard about the Google Font Directory. Google hosts a collection of web fonts that can be used by you in your site or blog. They operate on open source licensing and are not necessary to be downloaded before use!

How does it work?
All you would have to do is select the font from the list and hit the tab “Get the code”. You are now given an HTML <link> tag that you can include within the <head> tag.
         
          <link href='http://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>

You can reference to it as any other normal font in your styling. Something like

        p {font-family: ‘Inconsolata’}

It removes the hassle of making your font available as .ttf and to make users download it, if necessary. The ease of changing the font is the most useful power of these web fonts.

And Font Preview?

 

Google is cool
Google had gone one step further to help the Web developers to frame the CSS with these fonts in the way that they want to. Hit
http://code.google.com/webfonts/preview and take a note at their chic interface of font formatting. You can, here, select the font, size, and other formatting details. You can observe the CSS code beneath the display being updated for your selection. All you have to do, then, is just copy paste this code on to your CSS for the desired element. They also include the link that you need to provide in your <head> tag.

Moving your wordpress blog to another domain

This is a quick sum up of steps-to-do for moving / copying your wordpress blog/site from one domain to another.
When there is always a possibility to do it more properly or elaborately, what I'm going to brush up here is a quick method of doing it.

1. Start copying your theme files to your destination host. (Let me tell you… this is the only lengthy process of the whole move). Do the following in the meantime.

2. Take a backup of your wordpress database. You can either use phpMyAdmin or backup utility from your hosting service or a direct mysqldump to do this.

             -> phpMyAdmin: Can be launched from the control panel of your hosting site.

             ->
Backup utility: Can also be run from the control panel of your hosting site.

            
-> mysqldump: Here is the command to do that from the command line (make sure that you are pointing to the correct MySql server while running this)

                         >
mysqldump -u <username> -p <database_name> --result-file=<dumpfile_path_and_name>

                        
This command would ask for your password.

3. Create a new empty database on your destination host.

4. Run the backup. Again, this could be done via either of the three options told before.

5. You would need to update two values on your wordpress options table. Though you can use a direct SQL, I would suggest phpMyAdmin for this. Login to the phpMyAdmin screen.
             Search for a table called Options in the list of all tables. Edit the following two values:
                        > o
ption_id=1 (siteurl) & option_id=39 (homeurl): You would observe that both of these contain the URL of your previous domain. Change them to the new one.

And that’s all about it!. Your blog/website is ready to be launched.