Saturday, October 31, 2015

Nodejs v5 on ubuntu 14.04




# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
node -v
v5.0.0

How to add column descriptions (comments) in Doctrine2

You can add a comment to a column name or entire table with the "options" argument to the annotation; eg:
/**
 * @ORM\Column(type="string", options={"comment":"The string to show in the dropdown "})
 */
for a column, or for a table:
/**
 * @ORM\Entity
 * @ORM\Table(name="application", options={"comment":"Funding applications"});
 */
Note however this will not add comments to an existing table or column, you have to delete the table from the DB and rebuild it. If it's just adding comments, you could rename the table, create the new table, and import data from the original.

Monday, October 26, 2015

Disable internet connection from terminal!

The following command works for me like a charm if I want to disable any internet connection from terminal:

nmcli nm enable false

To enable it again:

nmcli nm enable true

How to mount an ISO file in ubuntu?

Maybe, instead of installing additional software, you can use what the system has to this end: Create a directory to serve as the mount ...