All posts by Ehsan

Profession: Web Application Developer Employment: Technical Lead, Interactive Division, GANZ Location: Toronto, Canada

Lenovo Yoga 13 :: Turn off onscreen keyboard to show up automatically (Windows 8.1)

After upgrading my Lenovo Yoga 13 to Windows 8.1 I’ve had many issues. Starting from Touch Screen not working to onscreen keyboard automatically showing up frequently. In this article I will tell you how to control the onscreen keyboard.

  1. Press Windows Key + x
  2. Click on Control Panel
  3. Click on “Onscreen Keyboard (Lenovo Transition)”onscreenkb
  4. Uncheck the checkbox beside the text “Display the onscreen keyboard automatically” to turn off the featureonscreenkbtoggle

Thanks!

 

Facebook Privacy :: How to change privacy on your old photos with a button click?

You may have some photo albums on your Facebook account where many photos you uploaded can be viewed by public. Someone who’s not your friend or following you can view those photos, and can even share them. Albums like Mobile Uploads, iOS Photos or Profile Pictures only allow you to set privacy on individual photos, not the entire album. Changing privacy on the individual photos can be a tedious task when you’ve hundreds and hundreds of photos in those albums.

So, how do you set correct privacy setting on all your photos with one button click? Well, magically, there is a way!! Here’s how.

  1. Click on the Gear icon
  2. Click on Privacy Settings
    screen1

  3. Under “Who can see my stuff?” click on the section titled “Limit The Audience for Old Posts on Your Timeline”
  4. Read through (very important, so you know what is going to happen)
  5. Click on the button “Limit Old Posts”
    screen2

How to make sure it has done what you wanted it to do?

So, in order to make sure the steps above has done its job click on “Timeline and Tagging” on left hand menu. Then under “Who can see things on my timeline?” section click on the first item “Review what other people see on your timeline” where you can see what shows up on your timeline for public.

screen3

Please note that this process will also set privacy setting of the other contents you’ve posted on your timeline before. So, any shared links, status etc. which were visible to the public will now be hidden and only Friends can view them.

 

WordPress: Quick Steps to Setup a Child Theme

WordPress has this neat feature called “Child theme” for a while now. I’m a big fan of this feature. It is important to use this when you are using a theme that you like but want some changes to it. If you work on the theme files directly, chances are you will overwrite the changes when new updates are pushed. I’ve done it before and since the child theme came out I’ve not had any issue with it anymore.

So, here I would show how to setup a child theme quick and easy. Say you are using “twentytwelve” theme as your primary theme. Now you (like me) want to make a change to the header file to add your own code – for example, some Google code to show translation bar. Here are the steps:

1. under your-wp-root/wp-content/themes/ create the directory you want to place the child theme files in

2. now go into your-wp-root/wp-content/themes/your-child-theme/ and create a file named style.css

3. in style.css you will need to put the following piece of comment:

/*
* Theme Name: YOUR CHILD THEME NAME
* Description: Modified 2012 Theme
* Author: Your Name
* Template: twentytwelve
* */

Line 5 is very important here. It tells WP which parent theme directory to use.

4. After the comment you will need to import the parent theme’s stylesheet in. You can either copy paste the entire style.css from twentytwelve directory, or put the following import code:

@import url(../twentytwelve/style.css);

5. Now you can copy header.php from your-wp-root/wp-content/themes/twentytwelve to your-wp-root/wp-content/themes/your-child-theme/. Make necessary changes to the file and you are good to go.

6. Last step (which you could have done before changing header.php file) is to activate the child theme. In WP admin, under Appearance > Themes look for the theme you’ve just created. Click on “Activate” to use it.

Only the modified files (like header.php) will be used from your child theme’s directory. You can always do these on your local machine, upload the directory via FTP and activate the theme; the steps above are just the way I do it – i.e. login via SSH and do these from command line.

For further reading you can click here.