Latest Post

How to push item to 0 index or first of $scope object in AngularJS?

you are working on angular JS and you wanted to add item on top of array, i mean you need to add 0 index of $scope array then you can do. in following example you can see how to do.if you want to push first then you have to use splice() instend of push(). <strong>Example:</strong> <pre class="code language-html"> <html> <head> <title>Angular JS</title> <script src=""></script> <script src=""></script> <script&.....

By Hardik Savani | February 2, 2016 | | 858 Viewer | Category : JSON AngularJS

How to increment or decrement a column value in laravel?

Whenever you need to increment or decrement value of column in database, then you do not need to first fetch that record and then update, so that way we will make long code and very hard code, so basically you can increment and decrement by using increment() and decrement() statment of laravel query builder. If you want to increment or decrement opration using update() method of laravel query builder then you also do that, in following example i am showing you how to increment and decrement value of column in table by using increment(), decrement() and update(). <pre class="language-php"> na.....

By Hardik Savani | February 2, 2016 | | 5547 Viewer | Category : Laravel

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Some time when you are open any link your website then browser display following massage <h2 style="margin:0px;padding:0px;">Not Found</h2> <span style="margin:0;padding:0;">The requested URL /test.html was not found on this server.</span> <span style="margin:0;padding:0;">Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</span><br /> this problem fix by .htaccess write following code in your .htaccess file <pre class="language-mysql"> RewriteEngine on <IfModule mod_rewrite.c> RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f Rewrit.....

By Hardik Savani | February 1, 2016 | | 827 Viewer | Category : .htaccess

How to fix and recover a “corrupt history file” in zsh?

Many user use ubuntu OS and many user face one of the common problem several time like “corrupt history file in zsh" most of time face this problem when reboot your OS so, How to fix this problem please follow this command and fix that. <pre class="language-mysql"> mv .zsh_history .zsh_history_bad strings .zsh_history_bad > .zsh_history fc -R .zsh_history </pre>

By Hardik Savani | January 31, 2016 | | 728 Viewer | Category : Ubuntu

How to check empty or null in Mysql Query?

If you want to check empty or null value with conditional statement like case when and if in table row with Mysql database. you like to check empty or null value form table then you have multiple way check that. first we check empty value with case when statement then following example. <strong>Empty Check:</strong> <pre class="language-mysql"> SELECT (CASE WHEN COALESCE(email,'')!='' THEN email ELSE '' END) as test FROM `customers` ---------------------OR---------------------- SELECT (CASE COALESCE(email,'') WHEN '' THEN '' ELSE email END) as test FR.....

By Hardik Savani | January 31, 2016 | | 802 Viewer | Category : PHP MySql

Timepicker Local Fetch POST Ajax Download MySql Trigger Particular helper Bootstrap Plugin Form Jquery Database Seeder Google Chart First GuzzleHttp Collapse roumen/sitemap Rewrite HTML Progress Bar DB::raw() MassAssignmentException orderBy slice() Service Provider MVC no-captcha Manual Protection Components & Slots strtolower Windows Stripe Chart.js GET Ajax Current Page Letter Accordion ID mysqld.sock Commit groupBy() word-wrap csv IP Dynamic Dependant Dropdown glob Connection API Generate Artisan yajra/laravel-datatables-oracle Blade inject Event DB Percentage gmaps.js FIND_IN_SET() filter_var away() auth() Folder Setup stevebauman/location composer package Multiple Site split Link Captcha code xoxco tags input jQuery CURL Language Server milon/barcode Carbon Amazon S3 REST setInterval() read more Directory lowercase Ubuntu 14.04 Dropzone.js Node JS FILTER_VALIDATE_URL Thumbnails file_exists() Ubuntu Behance API Pixel Linkedin API Where In Query Interfaces array_combine View tree view Bitbucket ACL Contact US Form Apache RSS Ip Address Mediafıre API dompdf Pagination public_path getQueryLog clipboard.js Module Array json() Bootstrap-lightbox Plugin clockface plugin Zoho mail Script Import HTML to PDF Laravel Route Object Bootstrap maxlength plugin Div Image Upload SUM() select2.js 404 error page Laravel Eloquent JWT Log Mail scrollTop Sublime text 2 Sortable Tracking Opencart Select Query CORS Draggable Example Localization Remote DB Statement Last Access is_null PayPal Highlight JS Key Constraint Switchery JS