2013
An Introduction to D3.js: A Powerful JavaScript Library for Data Visualization
D3.js, short for Data-Driven Documents, is a JavaScript library that has revolutionized the way developers and analysts create data visualizations for the web. Released in 2011 by Mike Bostock, D3 js provides a highly flexible and efficient framework for binding data to Document Object Model (DOM) elements and applying data-driven transformations to them. This makes […]
Tutorial Angular ng-controller replaced by Angular components
In Angular, there is no ng-controller directive. The concept of controllers was used in AngularJS, the predecessor of Angular. In the Angular, ng-controllers have been replaced by components. In Angular, components are the building blocks of your application. They encapsulate the view (HTML), logic, and data associated with a particular part of your application’s user […]
MySQL ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’
Somehow the MySQL server process did not create the socket, or the client is looking for the socket in the wrong place that is why MySQL is generate ERROR 2002 (HY000): Can’t connect to local MySQL server through socket To prevent “MySQL Error 2002 Can’t connect to local MySQL server through socket“, we have to […]
Introduction to AngularJS: A Comprehensive Guide
AngularJS is a popular open-source JavaScript framework developed by Google. Designed to make front-end web development more efficient, AngularJS allows developers to create dynamic, single-page web applications (SPAs) with ease. By extending HTML with additional attributes and binding data directly to the DOM, Angular JS revolutionizes the way developers build and manage web applications. What […]
MyISAM vs InnoDB: Discover well-informed MySQL Storage Engines
The storage engine that is used with MySQL databases can have a big impact on features, dependability, and performance for developers. MyISAM and InnoDB are two of the most used engines. This article explain difference between MyISAM vs InnoDB and advantages and disadvantages of each database engines. MyISAM Overview MyISAM, which was originally MySQL’s default […]
Joomla – You are not permitted to use that link
I am going to change my joomla articles, when i changed article and tried to save that articles. I found Error Like You are not permitted to use that link. This is how I have resolve issue of “You are not permitted to use that link” I just refresh it and after that it never […]
How to convert JSON string to Array
Here I an showing convert JSON string to php Array 1. I have taken php Variable, I have assign JSON in that php Variable 2. Here is My JSON Array $jsonArray = ‘{“person_id”:”BC21903E-9D4B-40E9-9DAD-00038273508F”, “last_seen_by”:”8A40E73A-8228-4225-B980-A84D7148925A”, “last_name”:”Last 175759″, “first_name”:”First 175759″, “date_of_birth”:”19710222″, “zip”:”190133306″, “sex”:”F”, “race”:null, “other_id_number”:”NEW502828″, “language”:”English”, “religion”:null, “ethnicity”:”Black Or African American”, “last_appt_date”:”20120726″, “allergies”:[], “diagnoses”:[{ “person_id”:”BC21903E-9D4B-40E9-9DAD-00038273508F”, “provider_id”:”88E6E79C-9627-48C0-A2A2-9C1570396F5B”, “enterprise_id”:”1″, […]
How to lock the orientation to portrait mode in a iPhone/Andorid Web Application?
You can specify CSS styles based on viewport orientation: Target the browser with body[orient=”landscape”] or body[orient=”portrait”] Try this via the CSS @viewport rule @viewport { orientation: portrait; } Or $(document).ready(function () { $(window) .bind(‘orientationchange’, function(){ if (window.orientation % 180 == 0){ $(document.body).css(“-webkit-transform-origin”, “”) .css(“-webkit-transform”, “”); } else { if ( window.orientation > 0) { //clockwise […]
How to display image with javascript?
You could make use of the Javascript DOM API. In particular, look at the createElement() method. You could create a re-usable function that will create an image like so… function show_image(src, width, height, alt) { var img = document.createElement(“img”); img.src = src; img.width = width; img.height = height; img.alt = alt; // This next line […]
How to print content of JavaScript object?
Print content of object you can use console.log(obj_str); you can see the result in console like below. Object {description: “test”} For open console press F12 in chrome browser, you will found console tab in debug mode.