How to detect browser, engine, OS, CPU, and device using JavaScript?

How to detect browser, engine, OS, CPU, and device using JavaScript?

In this tutorial, I’ll be talking about a JavaScript-based User-Agent string parser to detect browser, engine, OS, CPU, and device using JavaScript. UAParser.js is a JavaScript Plugin that can be used either in browser (client-side) or in NodeJS (server-side) environment. UAParser is also available as jQuery/Zepto Pluging, Bower/Meteor Package and RequireJS/AMD module. This library aims to identify detailed type of web browser, layout engine, operating system, cpu architecture, and device type/model, entirely from user-agent string with a relatively small footprint (~11KB when minified / ~4KB gzipped).

Read more

Top 5 Best Free Code Editors for Web Developers

PHPStrom - Best Code Editor for Web Developers

Code editors are the go-to tool for anyone looking to make more profound development and customization in Web Design and Development. They can make the work much easier than standard text editors.Welcome to my list of Top 5 Best Free Code Editors for Web Developers. This list is prepared from my experience of working as full-stack web developer, if you think I have missed any code editor that you think is the best, please do not hesitate to mention it on comments.

Read more

How to remove “public/index.php” from URL generated in Laravel

Option 1: Use .htaccess

If it isn’t already there, create an .htaccess file in the Laravel root directory. Create a .htaccess file your Laravel root directory if it does not exists already. (Normally it is under your public_html folder)

Edit the .htaccess file so that it contains the following code:

<IfModule mod_rewrite.c>
RewriteEngine On 
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

Now you should be able to access the website without the “/public/index.php/” part.

Read more