Facebook’s advices on creating a secure password

Below are Facebook’s suggestions on creating and maintaining a secure password. Follow these steps to create a secure password and to learn how to maintain it safely.

  • Creating the right password will help make sure you can log into your account – and help keep other people out.
  • Make sure your password is unique, but memorable enough that you don’t forget it.
  • Don’t use a password that you use on other sites – if one site gets hacked and your password is stolen, hackers will often try it on other sites.
  • Don’t share your password with anyone. If you think someone else has it, you should change it.
  • To do that, go to More.
  • Tap Settings.
  • Tap General.
  • Type your current password. Then, type your new password and reenter it one more time. Tap Change Password.
  • Learn more about logging in and passwords to help ensure your account is secure.

How to register a domain or website address (and get a bonus $5.00)

If you want to register a domain, I suggest register via name.com. Why I recommend name.com is because of their stability and often promotions.

And the big plus point is, when you register a domain via this link, you get a bonus $5.00 credit.

So go to this link and follow the instructions below.

  1. Type in a name you are interested in and click Search.
  2. Click the name you want and add it to your cart.
  3. Click the Shopping Cart icon in the upper right.
  4. Follow the instructions to complete the order.

Secondly, signup for a hosting package using one of the links given below.

HostGator: http://partners.hostgator.com/c/380038/177309/3094

BlueHost: www.bluehost.com/track/shareef301

DreamHost: http://mbsy.co/hqPfR


WordPress Site Title and Tagline

WordPress Site Title is the Title given to the website.

The tagline is something like a slogan, subtitle which tells the visitor what is on the website or article. It simply gives a better idea of what the visitor will see on that.

So be careful while giving a tagline as it reflects the SEO too.

Here’s how to echo or print a title or tagline in the template using PHP:

For the website name:

<?php echo get_bloginfo('name'); ?>

For the tagline:

<?php echo get_bloginfo('description'); ?>

How to embed font in CSS (from web server OR google fonts)

Replace FontName with font’s name. The FontName is what you will be calling throughout the CSS classes.

@font-face {
     font-family: FontName;
     src: url(FontName.woff);

That’s how you embed a font in your web server. Now let’s learn how to embed fonts from google fonts API.

Go to fonts.google.com and make a collection of your favorite fonts (or simply the fonts you want to be embedded in the website).

You can do so by clicking the sign near each font.

Now that you have selected some fonts, “Families Selected” box will appear in the bottom of the page. Click that box and you will find a code similar to the one below:

<link href="https://fonts.googleapis.com/css?family=Baloo|Love+Ya+Like+A+Sister|Oswald|Roboto|Roboto+Condensed|Slabo+27px" rel="stylesheet">

Copy that into the <head> of your HTML file.

Now there will be relative CSS rules given in the same window. Find something like this:

font-family: 'Roboto', sans-serif;

font-family: 'Baloo', cursive;

font-family: 'Love Ya Like A Sister', cursive;

font-family: 'Slabo 27px', serif;

font-family: 'Roboto Condensed', sans-serif;

font-family: 'Oswald', sans-serif;

Use the font-families to call specific font.

How to Create Symlink on Windows

A symlink is an acronym for a symbolic link. It is a shortcut to a targeted file/folder.


Here is how it works.

I was working on a project for which I have to work both at home and in office. One was a MacBook with MAMP and the other was a PC with XAMPP installed. So the files are in MAMP and XAMPP. With the help of symlink, I kept the files in my Dropbox although it seems if it’s in both MAMP and XAMPP. Meaning that all the files are synced through Dropbox. Thank God 🙂


Here’s how to do that on Windows.

Create a symlink to a file:

mklink Link Target

Use /D when you want to create a soft link pointing to a directory. like so:

mklink /D Link Target

Use /H when you want to create a hard link pointing to a file:

mklink /H Link Target

Use /J to create a hard link pointing to a directory, also known as a directory junction:

mklink /J Link Target

So, for example, if you wanted to create a hard link at C:\LinkToFolder that pointed to C:\Users\Name\OriginalFolder, you’d run the following command:

mklink /J C:\LinkToFolder C:\Users\Name\OriginalFolder

You’ll need to put quotation marks around paths with spaces. For example, if the folders are instead named C:\Link To Folder and C:\Users\Name\Original Folder, you’d use the following command instead:

mklink /J "C:\Link To Folder" "C:\Users\Name\Original Folder"

Translate month name in WordPress

In WordPress, you might want to rename posts’ month name from English to Dhivehi or whatever language. This is a very simple function which will help you change the posts’ month name.

Put this into your function.php

function mas($month) {
switch ($month) {
case 1:
    $mas = "ޖަނަވަރީ";
case 2:
    $mas = "ފެބުރުވަރީ";
case 3:
    $mas = "މާރިޗު";
case 4:
    $mas = "އެޕްރީލް";
case 5:
    $mas = "މެއި";
case 6:
    $mas = "ޖޫން";
case 7:
    $mas = "ޖުލައި";
case 8:
    $mas = "އޯގަސްޓު";
case 9:
    $mas = "ސެޕްޓެންބަރު";
case 10:
    $mas = "އޮކްޓޯބަރު";
case 11:
    $mas = "ނޮވެންބަރު";
case 12:
    $mas = "ޑިސެންބަރު";
return($mas); }


And use this wherever you want to view the date in Dhivehi.

<?php echo mas(get_the_date('n')); ?>

Create random text on MS Word

Sometimes you have to search the web to get some random text. Well not after you read this tip.

type =rand(3,6) and press enter.

That’s it, likewise, you create random text in a word document. Read below for further explanation on the function.


rand represents random.
P should be replaced with a number of paragraphs you want to create.
S should be replaced with a number of sentences in each paragraph.

So it is as

=rand(Number of Paragraphs, Number of Sentences in each paragraph)

This trick is usually handy for tutors who wants to type some random text to demonstrate something with some random text. Mostly used by web developers to show sample text in templates. Web developers or designers use something like “Lorem ipsum…” to fill and demonstrate their design.

For those who want to print something like “Lorem ipsum…” in their word document can use “lorem” instead of rand as shown below:


or you can use:


Also, you can skip the number of paragraph and number of sentences and use it as rand() or lorem() or rand.old()