Javascript

What are the best websites a programmer should visit?

Here is the list of some finest resources available on the Internet, which a programmer should visit once. Blogs Coding Horror The Codist Martin Fowler Matt Might Me, Myself and Mathematics On Coding Peter Norvig Project Nayuki Stuff you need to Code Better! Coding Style Guides CS 106B: Programming Abstractions…

Read More

March 10th, 2017 Amazon EC2, Amazon Linux, Angular Js, Articles, CentOS, Codeigniter, Databases, Ejabberd, Facebook, FFmpeg, Google API, Interview, Javascript, jQuery, Linux, Magento 2, mod_rewrite, MySQL, Node.js, PHP, SEO, SolveIt, Tech News, Tutorials, Ubuntu, Uncategorized, Wordpress

How to pass data from PHP to JavaScript ?

There are actually several approaches to do this. They are as following : Use AJAX to get the data you need from the PHP server. Echo out the data inside the page , and use JavaScript to get the data from DOM. Echo out the data directly to JavaScript inside…

Read More

February 16th, 2017 Javascript, jQuery, PHP

The Art of Node – A short introduction to node.js

This document is intended for readers who know at least a little bit of a couple of things: a scripting language like JavaScript, Ruby, Python, Perl, etc. If you aren’t a programmer yet then it is probably easier to start by reading Easy Javascript. git and github. These are the…

Read More

December 31st, 2016 Angular Js, Articles, Javascript, jQuery, Node.js, Tutorials

Easy JavaScript – An introduction for new programmers

JavaScript is a programming language or, in other words, a means by which a computer is instructed to do things. Just the same as one controls humans with hisses and meows, one controls computers with statements written in a programming language. All web browsers understand JavaScript and you can take…

Read More

December 31st, 2016 Angular Js, Articles, Javascript, jQuery, Node.js, Tutorials

The most useful and bestseller courses on Udemy you should consider

The Complete Web Developer Course 2.0 Learn By Doing – build 25 websites and real mobile apps using HTML, CSS, Javascript, PHP, Python, MySQL and a lot more. It’s most current, in-depth and exciting coding course—to date. Designed for you—no matter where you are in your coding journey—this next-generation web…

Read More

November 29th, 2016 Articles, Interview, Javascript, jQuery, Linux, MySQL, Node.js, PHP, SEO, Wordpress

SolveIt – Detect the Domain Name

You will be provided with a fragment of HTML code. Your task is to identify unique potential domain names from the links or URLs which are present in that code fragment. For example, if the link http://www.phpdrill.com is present in the markup, you should detect the domain: phpdrill.com. If second-level…

Read More

February 27th, 2016 Javascript, PHP, SolveIt

SolveIt – K-subsequences ( Given a large list of n positive integers, count the number of k-subsequences.)

A k-subsequence is defined as follows: It is a subsequence of consecutive elements. The sum of its elements, s, is evenly divisible by k (i.e.: s % k = 0). Complete a function called kSub with two parameters: an integer, k, and an array of integers, nums, of size n.…

Read More

February 27th, 2016 Javascript, PHP, SolveIt

SolveIt – Find out Maximum Difference in an Array

The maximum difference for a pair of elements in some array a is defined as the largest difference between any a[i] and a[j] where i < j and a[i] < a[j]. Create a Function maxDifference to find the maximum difference from array a. Output Format Your maxDifference function should return…

Read More

February 27th, 2016 Javascript, PHP, SolveIt

Array vs Object when returning data

Prefer Using Objects when returning large amount of data When returning large data, it can be obvious to use Arrays. But Arrays make poor object-to-object data transfer mechanisms in object-oriented programming. Objects are main focus of  Object-oriented programming and it should be. This means that each array should be converted…

Read More

January 4th, 2016 Codeigniter, Javascript, jQuery, MySQL, PHP

Embed Photo Sphere in website

I have written in my blog ever thought about the possibility to include 360 ​​° images with JavaScript in a web site. At that time the whole thing was based on the Web viewer by Joe Simpson. Meanwhile, Google has published its own method. For this purpose, Google has published…

Read More

December 28th, 2015 Codeigniter, Google API, Javascript, jQuery, PHP, Uncategorized, Wordpress