Copy macOS Sierra Installer for installing in multiple systems

If you have multiple systems and wanted to install macOS Sierra, please find this guide to backup the installer.

After downloading from the App Store, Simply quit the installer (Install macOS Sierra) and navigate to Applications folder via Finder.

Copy the file called “Install macOS Sierra” and paste it in any of your backup folders.

You can trigger the installation by just clicking the copied installer.

Google Chrome didn’t shut down properly – Fix

Looking at the title, you might be wondering why I would post an article about a basic error message shown by the Google Chrome Browser. “Google Chrome didn’t shut down properly” was a normal error that you see when the browser or system crashed during the usage. But for some, it is a daily welcome message. There is this on-going issue which some users experience with Google Chrome browser. Every time you open Chrome, you see this error message appearing on your browser, in spite of closing properly.To me, this is annoying issue – completely, I don’t want to see it at all. Although there is no official fix or answer from Google, a deep search for solution in several forums resolved my problem. I have consolidated the steps for you.

Fixing the error message:
1. Open Google Chrome, Go to Settings, click Show advanced settings, and scroll down to the bottom.
2. Under System, uncheck “Continue running background apps when Google Chrome is closed” and close the settings tab.
3. Go to About Google Chrome (Below Settings), in About Chrome Page, click the Chromium Link. The Chromium site is opened in another tab.
4. Close the browser properly. Wait for 5 Minutes. Restart the computer.
These steps look completely idiotic, but who cares? My issue is resolved.

Another Alternative Solution:
Delete the user account and disconnect the google account. If you don’t really need a Google user account linked to your browser. (I personally don’t prefer this option because I wanted all my plugins and settings to be synced across different devices).

Activate Airtel Voicemail service for free on your Prepaid Mobile

Airtel provides Free Voicemail service for all prepaid customers but unfortunately no one is aware of it. Even Airtel website or customer care representative is unaware of it.

Activation by Call Code:

  • Call *321*671# for Activation
  • Call *321*673# for Deactivation

Activation by SMS Code:

  • START VMS to 54321 for Activation
  • STOP VMS to 54321 for Deactivation

Voicemail Account Management:

To access your Voicemail Account Management, call Dial 52555 from your registered Airtel Prepaid Mobile. For the very first time, it will prompt you to set a 4 digit passord. Next time you need to enter the password to access your profile settings.

With your account Management, you can do the following things

  1. Change your language presence
  2. Set your Own Custom Voicemail Message
  3. Hear, Save and Delete the received voice mail messages
  4. Change Voice mail box name

You can press the following numbers to perform action on your current running Voicemails

  • Delete – 3
  • Reply – 4
  • Save – 5
  • Previous Voicemail – 6
  • Replay Again – 7
  • Next Voicemail – 8
  • Settings – 9

Settings Page:

  • When you login to setting, Press 2 to change language presence
  • Rename Mailbox Name – 3
  • Change Password – 4
  • Hear or Change current welcome message – 7
  • Remove current Welcome Message – 8

Let me know if you have any issues in activating the services. Enjoy ignoring those unwanted calls 🙂

 

Enable and Allow Remote Access to MySQL Server

By default your MySQL Server has default configuration to allow only local connection. So if your application connects MySQL in localhost, then the basic configuration can be left untouched.

If you are planning to allow and enable remote access to MySQL server, then follow the steps below :

Find the MySQL configuration file which mostly is located at /etc/my.cnf. Using a shell editor like vim or nano, find the following line and comment it

bind-address = x.x.x.x (x.x.x.x points to the ip address you wanted to access from remotely, incase multiple servers, just comment it like below)

#bind-address = x.x.x.x

Also for people using old MySQL server, make sure you also comment the following line

# skip-networking

Restart your MySQL server

service mysqld restart

and try to connect your application with database present in remote server.
Note: You also need to give GRANT access to the db user on that particular DB.

Moving multiple files from current folder to parent folder in Linux

People who use shell to install packages or application in their Linux servers usually need to keep this command handy. Every time they download and unzip a folder, they are in a position to move all those files to a parent directory they already created.

For example you download wordpress application and extract it, but those files are extracted in another folder that comes up with the zip package. What you need to do at this point is to move all those files from that particular folder to your parent directory which you usually created and planned to host. In most cases it will be your Application root folder.

Consider a scenario where you are in folderX, you download a package file and extract it but instead of extracting it directly in folderX, it creates another native folder that comes up with package like folderY. So all those extracted files are in path /folderX/folderY/ 🙁 thats bad !!!

Run this simple move file command outside the folderY, you need to be in folderX when you run !

mv folderY/* .

The above command will move all the files and folders inside folderY to folderX 🙂 That works like a charm! Yeah try it. Always ensure to be careful while running commands like mv, rm. If you don’t give the correct part, things will mess up and you end up doing the operation at wrong place.

Configuring Amazon SES with Mantis Bug Tracker for Email Notifications

So you deployed one of best bug tracker system in your ec2 instance and was wondering how to configure its email setting with SES ? After Amazon Introduced SMTP accounts, things that were so complicated become so easier.  Every application that supports SMTP connection method made it possible and compatible to be used with Amazon SES.

But things are not simple with Mantis Bug Tracker Configuration because the basic configuration file does not contain the necessary attributes needed for configuring Amazon SES SMTP email or Google SMTP Accounts. They are just enough for an ordinary SMTP settings.  So after doing some research over a couple of forums and user tryouts, the following configuration listed below works

# — Email Configuration —
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;  #For SMTP Method
$g_smtp_host = ’email-smtp.us-east-1.amazonaws.com’; #Your SES SMTP Host
$g_smtp_connection_mode = ‘tls’; #It is mandatory for SES and Gmail SMTP
$g_smtp_port = 587; #For some Reason only this port was working in SES
$g_smtp_username = ‘SMTP Username’; # Your SES SMTP Username
$g_smtp_password = ‘SMTP Password’; # Your SES SMTP Password
$g_administrator_email = ’[email protected]’; #Email displayed at footer (Must be an approved sender list in SES)
$g_webmaster_email = ’[email protected]’; #Verified SES Sender Email
$g_from_email = ’[email protected]’; # From Address (Verified SES Sender Email)
$g_return_path_email = ’[email protected]’; # the return address for bounced mail
$g_from_name = ‘From Name’;
$g_enable_email_notification = ON;

The above configuration will do the trick and you can start receiving emails from Mantis Bug Tracker 🙂 Fire up the comments section if you had any doubts in it !!!

Increase phpMyAdmin upload / import size

By default you get a 2mb limit of upload / import size in phpmyadmin. That makes it odd and highly impossible to import larger files. You can increase the allowed upload size of phpmyadmin by editing your server’s php.ini configuration file. Usually in servers like CentOs it is located at /etc/php.ini.

Step 1: Go to php.ini and find the following and change their values to something more higher than your database size. (In this example i have used 20mb).

upload_max_filesize = 20M

post_max_size = 20M

Step2 : Restart your apache service for this new change to take effect. Usually the command to restart apache would be

service httpd restart (CentOs) / service apache2 restart (ubuntu)

You can also restart directly from their path like

/etc/init.d/apache2 restart or /etc/init.d/httpd restart

If you are in a shared hosting and do not have root access or access to your php.ini configuration file, then the other way is to create a .htaccess file in your application root and add the following line

php_value upload_max_filesize 10M
php_value post_max_size 10M

If you were still not able to increase it, please send me an email for more detailed assistance.

 

 

How to Unsubscribe from FutureBazaar.com Daily Sms Alerts

If you are one of those frustrated customers of FutureBazaar.com like me who get Daily Deals SMS Alerts and wanted to turn it off ? Then you have come to the right place. For some reason the Account settings in FutureBazaar.com under the My Subscriptions tab won’t work. You can see two options, one to subscribe the Email Alerts and the other for Mobile Alerts. Unfortunately only the email alerts will be turned off and you still keep getting those annoyed sms from them.

The only solution to turn of Daily Sms Alerts is to Send the following message from your registered cell number.

“DEALZ NO” to 575758

You will be charged Rs.3 for sending the above SMS. To turn the Alerts Again in the future, you have to send “DEALZ YES”.

Resolving DNS Issues with Airtel Broadband

If you are an Airtel broadband user and face DNS Error Redirection or DNS Resolving Error like the one below then most probably your network adapter is configured to automatically obtain DNS server from your service provider. The Modem acts as a DNS Server and sometimes in most circumstance the DNS Error Redirection of your ISP may cause some problem and you end-up with the screen below. I too had this problem for a very long time and tried even other third party DNS Service like Open DNS and Google Public DNS but still i face those issues. After using the ISP’s own DNS Server address in my network adapter i could resolve the issue and browse without any flaws.

By default the problem should be resolved using any third party DNS Server but unfortunately the thing doesn’t work for me and force me to use their own DNS Server. At home i use OPEN DNS which works like a charm. Anyways try to change your DNS Server using these steps with the DNS Address of Airtel Below:

Airtel Broadband

 Preferred DNS Server: 202.56.215.28

Alternative DNS Server: 202.56.215.29

Hope this resolves the DNS Issue with Airtel. If you are still not able to resolve it, then the next step would be to ring up the Customer Care @ 121 from your Airtel Landline. Alternatively if you would like to try third party DNS Service like Open DNS and Google DNS, then use the ip address below

Open DNS

Preferred DNS Address :  208.67.222.222

Secondary DNS Address: 208.67.220.220

Google Public DNS

Preferred DNS Address : 8.8.8.8

Secondary DNS Address: 8.8.4.4

If you live in India then i would suggest using Open DNS which have faster results than Google Public DNS.

 

Creating a basic Zend project using CLI Tool in Windows

Zend Framework is an object oriented web application framework that uses the MVC (Model-View-Controller) Architecture.  I have been using Zend Framework  for the past one year to build php based web applications. Out of this period i found many freshers who wanted to start with Zend Framework, struck at the first point of creating  tree structured directories for Zend Framework project and their configuration files. Although the Zend Documentation provides step by step instruction for creating your own basic project, it failed to give a detailed instruction for Windows Users to create a directory structure automatically using the CLI Tool for Windows.

If you don’t understand what it is about, well then i am referring this point of Zend Framework Documentation.  Ok this article explains how easy and simple it is to use a ZF Tool to create Zend Projects automatically from command console.

The First Basic step is to download the Zend Framework Package itself. You can Download the Package from here.

After Downloading, Extract the folder and note the path of it. In my case i have extracted at  C:\Zend so i will be using this all over my instruction. (Note in this example i am taking Xampp for Windows as example).

The next part is including the Zend Library in php.ini file. You can find the php.ini file in C:\xampp\php\php.ini.  Open it with the code editor and find this line which is usually at line no 794.

include_path = “.;C:\xampp\php\PEAR”

Now include the path where you have extracted the Zend Framework, so the above line changes like below

include_path = “.;C:\xampp\php\PEAR\;C:\xampp\php\ZendFramework-1.11.7\library”

and Close the php.ini file.

You have successfully included the Zend library with php. The next step is to create an environment path for php as well as Zend Framework.  Try to find three files inside the \bin directory of zend framework package you just extracted. The bin folder contains a zf.php, zf.sh, and zf.bat.

According to Zend Documentation, these files are client wrappers which are responsible for finding the proper php.exe, finding the zf.php, and passing on the client request. The zf.php is the responsible for handling and understanding your environment, constructing the proper include_path, and passing what is provided on the command line to the proper library component for dispatching. Since we are in Windows environment we shall be playing with zf.bat file.

The next part is to help zf.bat script to locate the directory of Zend Library. By creating an environment variable called ZEND_TOOL_INCLUDE_PATH, the ZF tool can identify the location of Zend Library. If you have no idea how to create an environment variable in Windows, then please check this MS Knowledge Base.

Create either a System or User Environment Variable with the following

Variable Name: ZEND_TOOL_INCLUDE_PATH

Variable Value: C:\xampp\htdocs\ZF\library

Additionally you can also create a PATH Environment variable for PHP Complier and Zf.bat File. To do so create a system or user variable called PATH.

Variable Name: PATH

Variable Value: C:\Zend\bin;C:\xampp\php

If you can find a variable called PATH already then you can append values by using a semicolon like above.

Finally Restart your System for changes to take effect. Now test if you have correctly configured the Environment variable by opening a command window (Start->Run, Type Cmd).

In the cmd window, type php -v to check the php version or zf show version to check the Zend Framework Version.

The next step is to Create a Zend Project. Navigate to the htdocs folder in Command Console or cmd and type the following command.

zf create project <projecttitle>

Thats it, you can start using the basic zend project by accessing http://localhost/<projecttitle>. With this predefined configuration, you can start creating modules, controllers and add actions in it.

Learn the basic structure and try to modify the code. That’s it. Happy Programming! If you have any queries feel free to drop your comments. I would try to assist in possible time.