Short Courses: Develop Mobile Apps Using HTML & JavaScript

phonegap

Ever thought of depending Mobile Apps using Web Languages? Yes its possible using HTML & JavaScript. Phonegap from Adobe provides exactly what you will need to make such Apps for Android, iPhone etc. This course is totally practical and provides hands-on experience to the participants.

The fee for this course is PKR 2,800 and all the fee collected will be donated to Mishkat Welfare Trust
From: 20th Jan to 25th Jan 2014
Timings: 12:00 PM to 4:00 PM
Venue: Olives School, Judicial Colony, Rawalpindi.

Short Courses: Learn Advanced Object-Oriented PHP

PHP

Give yourself a chance to learn and experience the most popular Server-side scripting language on the Internet. PHP is powering Facebook, Wikipedia and many other popular sites visited by millions daily. This course is totally practical and provides hands-on experience to the participants. The following are the contents of this course:

  • A quick refresher of the PHP language
  • Advanced PHP concepts
  • Object Oriented PHP
  • Using PDO for Data Access
  • Implement MVC structure
  • Server communication using AJAX

The fee for this course is PKR 2,800 and all the fee collected will be donated to Mishkat Welfare Trust
From: 18th Jan to 2nd Feb Jan 2014 (Weekends only)
Timings: 10:00 AM to 1:00 PM
Venue: Olives School, Judicial Colony, Rawalpindi.

Fix the Missing Ubuntu One Nautilus Integration in Ubuntu 13.10

Ubuntu One Nautilus Integration

If you have made a fresh clean installation of Ubuntu 13.10, you would have noticed one announced missing feature. The Ubuntu One icons and context menu is missing from Nautilis (File Manager). Why is it missing?? Couldn’t find a valid reason even in Launchpad although Ubuntu One was supposed to be important to Ubuntu. Anyway…

To fix, you will need to install to packages from 13.04 and restart Nautilis. Follow these steps:

Download the required two packages:

wget https://launchpad.net/ubuntu/+source/ubuntuone-client-gnome/4.2.0-0ubuntu1/+build/4405128/+files/ubuntuone-client-gnome_4.2.0-0ubuntu1_amd64.deb -O ubuntuone-client-gnome_4.2.0-0ubuntu1_amd64.deb
wget https://launchpad.net/ubuntu/+source/ubuntuone-client/4.2.0-0ubuntu1/+build/4405191/+files/libsyncdaemon-1.0-1_4.2.0-0ubuntu1_amd64.deb -O libsyncdaemon-1.0-1_4.2.0-0ubuntu1_amd64.deb

Install them:

sudo dpkg -i ubuntuone-client-gnome_4.2.0-0ubuntu1_amd64.deb
sudo dpkg -i libsyncdaemon-1.0-1_4.2.0-0ubuntu1_amd64.deb

Restart Nautilus:

nautilus -q

Back to the day and satisfied days :-)

Short Courses: Graphics Designing Using Adobe Illustrator

Adobe Illustrator

Adobe Illustrator

Whether you want to design for banner, books, magazines and websites or just want to have some fun with graphics designing, this course will enable you to get going. Adobe Illustrator is the powerful tool to unleash the Graphics Designer in you. This crash course will cover the following topics and will provide hands-on learning experience.

  • Introduction to Graphics Designer
  • Understanding the Illustrator Interface
  • Tools and Palettes for the Object Oriented Design
  • Colour books and spot colours
  • Working with Type Objects
  • Typography and Styles
  • Print Design
  • Poster Design
  • Web Design
  • And much more …

This course is exclusively for females and will also be taught by a female instructor.

The fee for this course is PKR 2,000 and all the fee collected will be donated to Mishkat Welfare Trust
Dates: 2nd November (Saturday), 3rd November (Sunday) and 9th November (Saturday) and 10th November (Sunday) 2013
Timings: 9:00 AM to 11:30 AM
Venue: Olives School, Judicial Colony, Rawalpindi.
Participants are requested to bring their own Notebooks/Laptops

Registration Form

Turn Off Warning & Error Messages in Drupal

Drupal

Drupal

Drupal is a popular CMS built in PHP, which is flexible and powerful. Currently in version 7 and the next version 8 is due in some time. Drupal has a way to Log and Report Errors. Like almost all CMS, it also periodically checks for new updates to the core, as well as themes and modules. Once an update is detected, it will Log Report it. It will also report about other errors in your code.

This all helpful in making your there are no bugs and security holes left for your site to be hacked. However you would not like the visitors and viewers of your site to have warning messages shown at the top of every page. To solve this issue, Drupal has a way to Turn them Off for the visitors and let it remain On for the admin user.

Just login to your site as admin and navigate to Configuration (at the top), then under Development click on Logging and errors. You can directly go to it by pasting this URL segment at the end of your drupal home page URL: admin/config/development/logging

You will see a screen similar to the picture below. Just select None and click on Save configuration to make it effective.

Drupal Logging and Errors

Drupal Logging and Errors

Run root Commands in Linux (Ubuntu) Without Password

Terminal Windows

Terminal Windows

Recently a student of mine asked me about running sudo commands in a shell script without prompting for the password. I thought finding the solution would be as easy as typing the question in Google and reading the first result returned. But that was not the case.

The following steps will help you achieve the desired output:

  1. Create a new script file (replace create_dir.sh with your desired script name):
    vim ~/create_dir.sh

    The script will be created in the user’s home directory

  2. Add some commands that only a root or sudo user can execute like creating a folder at the root directory level:
    mkdir /abc

    Note:Don’t add sudo to these commands. Save and exit (using :wq!)

  3. Assign execute permissions to it using:
    sudo chmod u+x create_dir.sh
  4. Make changes so that this script doesn’t require a password.
    1. Open the sudoers file:
      sudo vim /etc/sudoers
    2. Add the following line at the end:
      ahmad ALL=(root) NOPASSWD: /home/ahmad/create_dir.sh

      Replace ahmad with whatever your username is. Also make sure this is the last line. Save and exit.

  5. Now when running the command add sudo before it like:
    sudo ./create_dir.sh

    This will run the commands inside the script file without asking for a password.

Note: Only the script file mentioned in the sudoers file is exempted from asking a password. The rest will behave as usual.

Short Courses: WordPress Advance Level

wordpress-logo

Expand your knowledge of WordPress by customizing it to meet all your needs. This crash course from the experienced trainer will cover the following topics and will provide hands-on learning experience.

  • Building different templates for Categories
  • Short Codes
  • Internal Settings like role assignment, comments etc.
  • Add Security to your site.
  • Build your own Plugins
  • Build your own Themes
  • Upgrading WordPress to the last version
  • Backup and Restore your site.
  • And much more …

The fee for this course is PKR 1,200 and all the fee collected will be donated to Mishkat Welfare Trust
Participants must have covered the first course on WordPress Fundamentals
Dates: 14th September (Saturday) and 15th September (Sunday)
Timings: 9:00 AM to 12:00 AM
Venue: Olives School, Judicial Colony, Rawalpindi.
Participants are welcome to bring their own Notebooks/Laptops.