Translate

Sunday, June 26, 2016

How to install Mysql on Ubuntu from command line




To install Mysql on Ubuntu what you have to  do is type  the following command:

sudo apt-get install mysql-client mysql-server

and then you will see something like this:


What you have to do there is type the  password for the root user.

and that's all.

Good luck!!!!!

Friday, June 17, 2016

Ruby on Rails Remove Blank elements from array





Sometimes, when you are working with arrays it is possible to have  empty elements,therefore you will need to clean it. In this section I will show you how to remove blank elements from a array using either Ruby on Rails or just Ruby.

Given the array called test
=> ["test", "", 1, 2, ""]

so, to remove the blank elements this is the syntax:

for Ruby on Rails:

test.reject &:blank? 

For Ruby:
  test.reject &:empty? 

Wednesday, April 13, 2016

How to install NetBeans On ubuntu




First of all, To Install NetBeans 8 in your computer go to [NetBeans Web Site] and download that version that you want in my case I am going to choose  the PHP version.



Secondly, Open your terminal and type the following command:

  

chmod +x /Downloads/netbeans-8.1-php-linux-x64.sh



Then, type this command in your terminal as well:


  

cd ~/Downloads && ./netbeans-8.1-php-linux-x64.sh



Finally, you should see a netbeans wizard installation.







Saturday, March 19, 2016

How to updgrade Google Chrome in Ubuntu

Upgrade google chrome



If you want to upgrade your current chrome you must  open your terminal and write these commands:


  

$ sudo apt-get update

$ sudo apt-get install google-chrome-stable

It is important to note that, these commands either upgrade or  install Google Chrome on your computer.

Friday, February 26, 2016

Sublime | How to change selected tab color





If you want to change sublime  selected tab color  in order to achieve this:


You must follow  these steps:
  1. Got to:  Preference->Browse Packages..
  2. In the  packages windows , go to the folder User/
  3. Create a new file called "Default.sublime-theme"
  4. Open the file Default.sublime-theme and add the following code:
      
    [{"class": "tab_control", "attributes": ["selected", "file_medium_dark"],"tint_modifier": [91,123,33]}]
    
    
  5. Save the changes and see the result immediately

Thursday, February 18, 2016

Linux Command Shell : how to make Apache owner of folder

If  you need to make Apache owner of a specific folder, you can  achieve it , by executing the following  Linux command:

  
     chown -R apache /var/www/symfony_app/My_Folder/
   
This command will cause Apache is the owner of the folder and the contents in it.




Wednesday, February 10, 2016