Tag : Ubuntu


PHP - How to compress PNG image using pngquant?

Today, In this tutorial, we will learn how to reduce png image size while uploading in core PHP. You can simply use this script in other PHP framework like Laravel, codeigniter, cake PHP etc. compress file size is very important for our server. If you have 4MB image then you have take large memory space to store and another thing it take time to load when you display on web page or application. But If you reduce image size then it more better for it take lass memory space and it take lass time to load image or file on web. Here we are going to use "pngquant" command-line utility and library f.....

By Hardik Savani | March 19, 2017 | | 507 Viewer | Category : PHP
READ MORE

Solved Issue - "/usr/bin/env: ‘node’: No such file or directory"

<br/> In this post i want to share one issue that i fetch. When i started working on my react js project first time on my ubuntu 16.04, i installed npm and then after i run bellow command: <pre> npm install -g create-react-app </pre> this way i installed create-react-app then after i created new command using create-react-app commands, so i run bellow command for create new app of reactjs. <pre> create-react-app hello-world </pre> But when i run above command i found one error <strong>"/usr/bin/env: ‘node’: No such file or directory"</strong>. I thought what will be issue, i searched on go.....

By Hardik Savani | February 24, 2017 | | 331 Viewer | Category : Installation Ubuntu Node JS React JS
READ MORE

How to create quick apache virtual host in Ubuntu?

We always require to create virtualhost on each project because we don't want to run each project manually, so it is better way to create virtual host address for each project when you development like as bellow: <pre> http://blog.dev http://test.dev http://example.dev http://demo.dev </pre> It will best way to run our project on local system. But if you want to create virtual host on ubuntu, you have to follow several step like site enabled, site enabled config, site directory permission, hosts entry and etc. You have to follow several step on each virtual host create time. I think it take a.....

By Hardik Savani | December 7, 2016 | | 454 Viewer | Category : Installation Ubuntu Server Apache
READ MORE

How to install composer using command line in ubuntu ?

Composer through we can get packages from git and use it in our project. But you require to install composer in your system for getting packages. You can get packages for core PHP, Laravel, codeigniter etc. So, If you are working on ubuntu OS and you require to install composer then this post will help you quickly install composer using terminal command line in your ubuntu system. First Open your terminal and fire bellow three commands, i listed just three command to install composer, you have to just run one by one: <pre class="prettyprint lang-php"> curl -sS https://getcomposer.org/install.....

By Hardik Savani | November 18, 2016 | | 694 Viewer | Category : PHP Laravel Installation Ubuntu
READ MORE

Solve - Installation request for guzzle/guzzle in laravel

When i was working on my updated ubuntu version, i did fetch this problem. I had ubuntu 14.04 then i updated ubuntu 16.04, at that time i think PHP version also updated PHP 5 from PHP 7. Ubuntu 16 updated successfully but when i was trying to composer install or update on my project i was found guzzle package error and to enable extensions php 7 extensions as like bellow: <strong>Error</strong> <pre> Problem 1 - Installation request for guzzle/guzzle v3.8.1 -> satisfiable by guzzle/guzzle[v3.8.1]. - guzzle/guzzle v3.8.1 requires ext-curl * -> the requested PHP extension curl is missing from .....

By Hardik Savani | August 15, 2016 | | 1457 Viewer | Category : Laravel Ubuntu
READ MORE

How to create virtual host in ubuntu apache?

we always like to create virtual host and run our project that way we can debug properly and run as like our website. But if you are working on ubuntu then we have always follow several step to create virtual host and that very long process. So, i found one package that provide virtualhost command that way we can create new virtual host and also delete virtual host command. so just follow bellow step: <strong class="step">Create virtualhost command</strong> <pre> $ cd /usr/local/bin $ wget -O virtualhost https://raw.githubusercontent.com/RoverWire/virtualhost/master/virtualhost.sh $ chmod +x.....

By Hardik Savani | June 14, 2016 | | 557 Viewer | Category : Installation Ubuntu
READ MORE

Install Sublime Text 3 in Ubuntu 14.04 using Terminal

Nowdays, Sublime Text Editor is a most popular text editor in the world. Sublime Text Editor 3 are provide several packages like CodeFormatter, GitGutter, Git, Sidebar etc and that's why it is most popular and wide used in today. If you want to install sublime text editor 3 in your ubuntu operating system then you can install easily using bellow terminal command. So just run bellow command and install sublime text editor. <strong>Command:</strong> <pre class="prettyprint lang-php"> sudo add-apt-repository ppa:webupd8team/sublime-text-3 sudo apt-get update sudo apt-get install sublime-text-in.....

By Hardik Savani | May 18, 2016 | | 1935 Viewer | Category : Ubuntu Sublime
READ MORE

How to uninstall cordova and ionic in ubuntu

If you require to remove cordova and ionic from ubuntu then you uninstall using terminal command. you can uninstall cordova then you can just run bellow command. I added two command one for uninstall cordova and other uninstall ionic framework. <strong>Example:</strong> <pre class="prettyprint lang-php"> sudo npm uninstall -g cordova sudo npm uninstall -g ionic </pre>

By Hardik Savani | May 10, 2016 | | 3924 Viewer | Category : Installation Ubuntu Ionic Framework
READ MORE

How to Install Sublime Text Editor 3 in Ubuntu?

Sublime Text is a very popular text editor in nowdays. Most of the developer chooes Sublime Test for codding because it is very smooth and pretty easy. I think specially most of the PHP developer are chooes sublime for developing. If you are working on ubunu system then you can install very easily, so just run bellow command for install Sublime Text 3 in Ubuntu. <pre> sudo add-apt-repository ppa:webupd8team/sublime-text-3 sudo apt-get update sudo apt-get install sublime-text-installer </pre>

By Hardik Savani | April 29, 2016 | | 589 Viewer | Category : Ubuntu Sublime
READ MORE

How to quick run laravel project?

If you want to run laravel project without virtual host then you can run quickly using laravel artisan command. if you are beginner and you are confuse how to run laravel application then it is very simple to run so just run bellow command in your terminal: <strong>Run Project</strong> <pre>php artisan serve</pre> After this command you can copy this link and check on your browser: <pre>http://localhost:8000/</pre>

By Hardik Savani | April 24, 2016 | | 810 Viewer | Category : Laravel Installation
READ MORE

    AngularJS - update bind ng-model input value from Jquery Code

    AngularJS - update bind ng-model input value from Jquery Code

    Open Post

    Laravel 5.3 - How to create SEO friendly sluggable URL

    Laravel 5.3 - How to create SEO friendly sluggable URL

    Open Post

    How to copy to clipboard without flash in AngularJS ?

    How to copy to clipboard without flash in AngularJS ?

    Open Post

    How to get keys name from array using array helper in PHP Laravel ?

    How to get keys name from array using array helper in PHP Laravel ?

    Open Post

    iOS 7 style switches for checkboxes example using switchery JS

    iOS 7 style switches for checkboxes example using switchery JS

    Open Post

    PHP - autocomplete websites with domain and logo using clearbit API

    PHP - autocomplete websites with domain and logo using clearbit API

    Open Post