Monthly Archives: February 2015

Ubuntu 14.04 adjust Brightness

First install backlight

Find which video card is installed in your system by typing the following command.

For me it’s intel.

card

Create a configuration file:

and copy the following into the the configuration file:

Save the configuration file.

Now logout and then log back into the system and the brightness control would be working through the function keys.

That’s it. Simple :).

 

SQL Queries: Select Query in Yii2

We have to add the following namespaces before using Query class:

 

Following is the list of methods used in SQL Queries:

Query Class
Example 1Example 2

findBySql

Example 1Example 2

queryAll
Example 1

queryOne
Example 1

queryColumn
Example 1

queryScalar
Example 1

Query With Prepared Statements
Example 1

Happy Coding!