Pages

Thursday, December 17, 2015

[SOLVED] A Common Bug / Feature in Angular JS UI-Select

Recently I got into a bug which is related to Angular-UI-Select 

which is Ng-model is not updating while using ui-select

which is also reported at following links


http://stackoverflow.com/questions/25937098/ng-model-is-not-getting-changed-in-ui-select

http://stackoverflow.com/questions/27142553/angular-ui-select-ui-not-updating-model-on-select


the simple solution I came accross is to use $parent in ng-model stuff

so instead of using
ng-model="myModelVariable"
you should use
ng-model="$parent.myModelVariable"


Sunday, August 2, 2015

How to Install LAMP

Are you fan of PHP? Want to use it MySQL within Linux OS ? 

MEAN Stack is the best thing out there for you.

What does LAMP Means ?

L = Linux

A = Apache (Web Server)

M = MySql

P = PHP

Similarly in Windows WAMP Exists.

Moving Forward,

You need to Install Apache

sudo apt-get update
sudo apt-get install apache2

Step Two - Install MySQL

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

It will ask you for MySQL Server Password, Set one for you.

Now activate it with this command

sudo mysql_install_db
Now run the script
sudo /usr/bin/mysql_secure_installation
Enter password for root
Enter current password for root (enter for none):
OK, successfully used password, moving on... 

Step 3 - Install PHP

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
It may also be useful to add php to the directory index, to serve the relevant php index files:

sudo nano /etc/apache2/mods-enabled/dir.conf

Well Now PHP Is installed, if you want to install its modules use this command

sudo apt-get install {name of the module}

Congratulations !!

To Restart Apache, Use

sudo service apache2 restart

Saturday, August 1, 2015

How to Add Skype Icon in Ubuntu

So now you are in a state where you have installed Skype (Through apt-get / dkpg) method, and now you want to have it in your ubuntu task bar right here

and you are able to use skype.

Simply Install
sudo apt-get install sni-qt:i386
From your terminal


Now Check your Skype settings

Go on your Skype Window.

Skype (From the taskbar)  > Options > General 

Now Select Start Skype minimized in the System tray.



and Don't forget to Restart Skype / Ubuntu.

P.S. We haven't tested it in different OS, If you do so, share it with us :-)