Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Socket.io event handlers.

Hello Readers! If you are creating any real time web application then node.js with socket.io is very worth for it. It connects client to server very easily with no time. Perfect example of node.js and socket.io is a Chat application or online ...

FIle Upload Code

Make sure that the shape employs method="post" The shape also desires the subsequent feature: enctype="multipart/form-data". This specifies which in turn content-type to utilize as soon as posting the form. Without worrying about demands abov...

Forcing File System Check on next boot in case of disk errors

When on Linux you may see that file system may behave strangely sometimes which is generally due to corrupt inodes or in all the complete file system. To overcome this you may want to run a file system check using fsck command. But ...

How to save my Offline Data in web applications

Since introduction of Offline storage in HTML5 many new trends have been started by storing persistent data locally on users system for future use. This leverages browsers and users system's capability to store data locally for offline usage. ...

WooCommerce- how to redirect product add to cart?

Hello Readers! If you want to redirect users after adding a specific product to their cart. Below is the example, just pasted this code into into your themes functions.php file <?php add_filter( 'woocommerce_add_to_cart_redirect',...

How to resolve 'Creating default object from empty value' warning in CodeIgniter

Coder missed a very simple fix and general good practice that you should always initialize your object before you try to set a property. It is very simple fix for this is simply to add a new StdClass; call right before the error with the variable...

How to create a custom Function for JSTL

JSTL Custom Function : In this article I am going to teach you how to create custom JSTL function. We had used many JSTL functions which are already in the lib.But if you want to create a custom function for JSTL you need to follow some easy ste...

Diffrence between echo and print in PHP

Hello Readers! You might have heard these "echo" and "print" statement in PHP many times. So here we will understand now what is the exact difference of these two words. Both echo and print are used to output a statement. Below are the some...

Inspecting a Repository

Inspecting a Repository : Git provides the way to track changes in repository.In this article I will tell you how you can track the changes of your repository before and after committing the changes. git status : The git status command will...

Commit Changes to git

Commit Changes to git : As we know git is a popular version control system for projects.Here I will guide you how to do changes in repository files and save those changes in repository. When we save or commit our changes then the git creates a ne...

Difference Between $a and $$a in PHP

$$a uses the value of the variable whose name is the value of $a. It means $$a is known as reference variable where as $a is normal variable. It allows you to have a variable of variable This program can create the variable name the same way i...

What is the difference between == and === in php

When comparing values in PHP for equality we can use either the == operator or the === operator. The == operator just checks to see if the left and right both values are equal. But, the === operator actually checks to see if the left and right va...

Social Media Marketing and its benefits

With each passing day Social Media Marketing is becoming more popular and broader. Its not only contributing in the growth but also in the success of the company. Entrepreneurs have analyzed social media efforts are providing more exposure to the...

Post JSON object in server

To send JSON object in server you have to do the following steps:- 1) Create JSON object 2) Set the header of HttpPost to "Content-Type", "application/json" 3) Now call postJsonObjectToServer method(define below) :- public static String p...

How To Change Total Count Of Items Displayed Per Page in WordPress

Hello readers! In my previous blog I have explained you how you can change number of products displayed per row in WordPress. So here I will guide you how you can change total count of items displayed per page in WordPress. Lets take an exam...

Connection string for connecting Android(java) app to MariaDB

Here is the simple connection string to connect the android with Maria DB on linux. you need to have MariaDB configured to the default port:3306 try { Class.forName("org.mariadb.jdbc.Driver"); Connection cntn = DriverManager.getConne...

Find your lost android device using android device manager

if your android device is lost, and you use another android device, you can locate it using Android device manager app, what all you need to do is to follow the simple steps. Step 1:On your device that you have, open the Android Device Manager ...

Exporting table from Amazon RDS into a csv file

A simple command to export tables from Amazon RDS into a csv file mysql -uroot -ptest123 --database=test -e "select concat(id,',',login) FROM users" > userdata.csv This command will simply connect to mysql from terminal using root as u...

Identifying the browser with the help of Javascript.

We can easily identify the name of the browser, with the help of "JS navigator".Here we have used the "window.navigator" object that contains information about the visitor's browser.We can write "window.navigator" object without the "window" pref...

Stopping MySQL injection using Core PHP

What is SQL Injection? According to WIKIPEDIA: SQL injection is a code injection technique that exploits a security vulnerability occurring in the database layer of an application. A SQL injection attack exploits security vulner...

Create Horizontal Accordion Using CSS3 and HTML

It is a simple horizontal accordion built in CSS3 and HTML. Copy CSS3 code and paste it between style tag. CSS body, button, input, select, textarea { font-family: sans-serif;} /*Define Accordion box*/ .accordion { width:830px; overflow...

10 Useful Plugins in CakePhp

CakePHP allows us to set up a combination of models,views ,controllers and release them as a packaged application called Plugins which can be used in the CakePHP applications. Some of the useful Plugins in CakePhp web application are as foll...

Difference between addEventListener and onclick

Both onclick and addEventListener javascript function will work but sometimes it creates problem for developers to understand what the exact difference of these two's are. var h = document.getElementById('a'); h.onclick = function1; h.onclic...

How to trigger an event using Javascript "addEventListener()" method.

Hello Readers, Their are many ways in javascript and jquery where we can trigger an event using Id or Class. Here's the example of how we can trigger the event using "addEventListener()" method. Let's suppose we have have button having id="...

10 Javascript features you would love to know

Every language has some features which are known to or are used by less number of people but that does not mean they are not of any use. They can come handy in certain situations. Below is a list of some such features of the most widely used lang...

Write a file Using Php

Write a file Using Php In PHP, there are many functions available which is used to write a file. The functions are... fwrite(), fputs(), file_put_contents Syntax: fputs- fputs($file,$string,$length); fwrite- fwrite($file,$st...

Implement Pagination Using Cakephp

This tutorial will help you to learn how to implement pagination using cakephp framework Requisite: Create a database Insert some data in the table Controller say UsersController to write the logic. Model for the Users table View...

Getting a Git Repository

Importing the GIT Repository : Getting the Git repository is very easy. A git repository is a place where the copy of a project is tacked.We can import the git repository or project from local or remote machine. We can get the git repository in ...

Swap two variables value without using third variable in php

Here is a method. How to swap two variables value without using third variable and temp variable. $a = 3; $b = 2; $a = $a + $b; // 3 + 2 = 5 $b = $a - $b; // 5 - 2 = 3 $a = $a - $b; // 5 - 3 = 2 print $a; print $b; Output: 2 3

Styling the ActionBar with Search field in Material Theme

In this blog we use Toolbar, it is more generalization form of ActionBar. It support more feature than ActionBar. Toolbar is added in API level 21 but the good thing is we can use it in the below version by using supporting library. First you ...

git Installation on Ubuntu

git Installation on Ubuntu Installing GIT on locally : Git is a open source project version control system. Before you start using Git, you have to make it available on your computer. Even if its already installed, its probably a good idea to ...

Delete a file Using Php

Delete a file Using Php In PHP, we can use unlink() function to delete a file from given folder/path. unlink() returns boolean value. It returns TRUE on success and FALSE on failure. Syntax: unlink($targetFilename); Arg: 1. $t...

How to show another website's page into your own website, Live!

Say you are developing a website for a hotel which is already on Tripadvisor.(example). Now you know it's not good idea to fill reviews from hotel guests in your own page since it's better to rate hotel on Tripadvisor. I'm coming with a excelle...

Connecting to database other than joomla database

Joomla provides two methods to access database: 1. The below method is used to access the Joomla database. JFactory-&gt;getDBO() (Internal database access) 2. This method is used to access the database other than joomla database i...

How to get selected drop box text

Normally when we select a value from drop bax then we get the value of option. Here when we will select a value of option then we will getting text of option. SO to get selected drop box text use below code example- Javascript function get...

Disable slider from ratchet

If u are using ratchet.js to slider many images and you want to destroy browser method when we drag/touch page to left .It will turn to next tab . If you want to click an element button than trigger the 'slider' method.. so it is best if you u...

changing the joomla site favicon

Changing favicon icon in joomla is very simple and easy. A favicon is a small size image display on browser tab when you open your joomla site.It always have extension .ico file. Below are the steps of changing favicon icon:- 1 ...

How to change number of products displayed per row in WordPress

WooCommerce- CHANGING THE NUMBER OF PRODUCTS DISPLAYED PER ROW Hello Readers ! There is no rocket science used for changing the number of products displayed per row below I am providing simple and short method. Here, I am using loop_shop_c...

Creating RESTful API in cakephp

This tutorial will help you to learn how to create rest api in cakephp. For this we need to follow the following steps: Step1: Create a database and a table say "users" Step2: Now we will create the Users Model, Veiw and Controller...

Save the other Object in array using for loop

To add the object in array in for Loop we have several methods: first we can have to simply add those objects to the array then we can add them using for loop in array..... **IN example:** we have a simple object *object that we added 3 tim...

How to install own cloud on Ubuntu 12.04

Pre requisites-->you need to have the lamp server running on your ubuntu. Downloading pakages sudo sh -c "echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_12.04/ /' >> /etc/apt/sources.list.d...

How to disable previous dates in datepicker using JS?

Here the problem is you want to show the passed dates but make them disabled. jQuery(document).ready(function() { $('#sandbox-container').datepicker({ format: "dd/mm/yyyy", clearBtn: true, minDate: 0, maxDate: "+1M +10D", da...

How to substitute one variable on another in Angular JS?

Let's say I'm using 2 arrays $scope.city = []; $scope.state = []; now you need to swap the two array, I'm using (angular.copy). Here's the logic, first copy one variable into temp and put value of second variable into first. now put ...

Autostart service after device reboot in android

Sometime you need to register your own android application or service to start automatically when the device has been Rebooted to perform particular task. Here we will learn the simplest way to start an Android service or an application at dev...

How to get HTML structure using document.getElementById

Hello Readers! In almost every web application their will be a need of javascript function "document.getElementById" , lets understand this how it work. Say suppose We have this HTML structure <div id="scores" style="display:none;">...

Create a Custom Post Type in WordPress manually

Creating a Custom Post Type Manually You can create any custom post type in wordpress any name which you want like- If you are creating a movie review site then you can create a custom post type with the name 'movie'. Wordpress have some d...

How to upload data/file to a website uisng command prompt

You need to connect your Site FTP first. Open the DOS Command Prompt then type: ftp It will shown like this C:>ftp www.yourshite.com 220 yoursite.abc.net FTP server ready. User (yoursite.abc.net:(none)): username 331 Password...

Solution of EditText font in password mode

When an EditText is in password mode, It looks that its font is different. When we change typeface in xml , It dosent work. There is a solution : We should change it from java like this <EditText android:id...

How to configure database in Codeigniter

Hello Readers, In order to create any web application using Codeigniter framework or any other PHP framework we need to configure database . We have the database file inside application folder of a Codeigniter framework , inside application...

How to implement C.R.U.D operations using Ajax and Simple PHP

This tutorial will help user to learn, how to implement create, retrieve, update, and delete operations without refreshing the web page using Ajax and simple php. This is the html file named view.php Ajax | CRUD ...
1 235 269
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: