AJAX in javascript

AJAX means Asynchronous JavaScript and XML and it is a group of inter-related technologies like javascript, dom, xml etc. AJAX is used to make site or page more interactive and fast. without reloading the web page, you can send and receive ...

Getting Two Mouse cursor in UBUNTU

Hello friends, When I clicked on an image and dragged it on UBUNTU I faced an issue that unfortunately there are two cursors on the screen. I searched for the problem and checked system settings--> mouse and touchpad settings but no solutio...

Laravel Libraries

The best programming to do a code is "To make common function". So that we can use that function again and again. For this laravel provide Libraries. We can make a file in libraries folder and define our common function in that library and use th...

How to include a javascript file in another javascript file?

We can include one js file in another js by the following ways:- jQuery.getScript( url [, success ]) This function basically loads a javascript file using a GET HTTP request from the server and then execute it. <./p> Here is an exa...

How to get current web page url in Laravel 4.x

To get the current page url in laravel 4.x is as follow $webpageURL=URL::to('/'); By using the above code it will automatically take the web page url. Example: Lets take a example of findnerd. **http://findnerd.com/acco...

Laravel Errors & Logging

Error logging handler is defined or registered in the app/start/global.php. We will define or configure logger to use a single log. In laravel we have MONOLOGY logging library. By using Monolog offers we will use n number of handlers. Example ...

Remove some particular character from a String

Sometime, we need to remove or replace some particular character from a String. Below is the method by which we can accomplish this. I am using replaceAll() method of the String. replaceAll() have two parameter as an arguments. First one is t...

Backup of MySQL Database Data

To take backup of MySQL database only you need to execute the following command: mysqldump -u [username] p[password] no-create-info [database_name] > [dump_file.sql] Here, we will use the no-create-info to take data backup only.

How to take backup of MySQL Database structure only

To take backup of structure only you need to execute the following command: mysqldump -u [username] p[password] no-data [database_name] > [dump_file.sql] Here, no-data tells the mysqldump to take the structure backup only.

Javascript - innerHTML

For writing dynamic html on the html document, we use innerHTML property of javascript. It is basically used in the web pages to create the dynamic html such as registration form, comment form etc. Example <html> <body> &l...

CUSTOM MUSIC WEBSITE

I need a PHP developer to develop for me a very custom music portal with features like audio, video, artiste profiles, lyrics, shows…with other custom functionality. It is a big project with somehow complex functionalities. The website mus...

How to reset the Auto increment in mysql

Hello Reader's! If you already using the Mysql then you have seen the ID with autoincrement always add up. Forevery new entery the ID will increase even if you drop the table. So if you want to reset this value you just have to run the mysql cod...

How to use IN statement using array in Mysql

Hello reader's! If you have an array with multiple values to match with database coloumn. Then you can use IN statement in mysql but you have to explode the array first. let's see the exampkle below:- $findIN= implode(',', $YourArray); // fir...

Capturing and Uploading Video to PHP Server in Cordova

Hi Friends, I want to capture a video and i want to upload to PHP server. How to achieve this in Cordova ?

Odoo/OpenERP : Advance Point of sale Software

Hello Guys, With advent of POS (point of sale) software, it has become quite easy & trouble-free for the hospitality business owners, especially hotel & restaurant owners to run their business in quite better & healthy way. A poin...

Make a Loading Screen

In app development their are many steps where we have to hang on for a while, like we are waiting for the server response, or the loading of assets or any other function to complete. Sometime to manage these such task we need a loading screen, wh...

Syntax error due to reserved names in Mysql

Hello Reader's!, On using Mysql with the some special resereved keywords the error :- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near <Keyword> It...

Save Image File on Parse.com Android

Here I am getting image path from Native data Here IMAGEPATH is the path of image from Camera. ByteArrayOutputStream stream1 = new ByteArrayOutputStream(); // Compress image to lower quality scale 1 - 100 bitmap1...

Retrieve Image file from parse.com and set on ImageView android

It is very easy to retrieve image file from parse.com. For example the image file name profilePicture is save on User class and I am going to retrieve the image below. ImageView profilePic = (ImageView)findViewById(R.id.image_profile); P...

Import Data from CSV file in Mysql Database

Hello friends, I am sharing that how we can save csv file data in mysql database. Csv Data consists of rows and columns with comma separated. for example we have a csv file which contains user first name, last name, age and designation. li...

Transparent Button with Border

Here I am writing code to create transparent button with border. First create xml file transparent_button.xml for selector where I am describing the properties of button like border width, color etc <!--?xml version="1.0" encoding="utf-8...

Polymorphism in php

Hello Readers If we break the word Polymorphism poly means many (Poly = many) and morph means change ( Morph = change or form). Its basically the concept of object oriented programming (OOPS) in which classes have differernt functionality ...

Insert and Remove value from begining of an array

This article demonstrate two predefined functions of PHP to add and remove values from begining of an array. 1.array_shift(): This function removes first element of an array and returns the removed value. The numeric keys of array are automat...

How to Import CSV File Data into Mysql

Hi,   In my previous post I have explained about How to Export MySQL table data to CSV File using PHP. Now in this tutorial I am going to explain how to import CSV data file into mysql. Suppose that we have a CSV file with 3-4 entry,...

How to Add SEO Meta Tags in Wordpress without Plugins

Hello Guys, There are number of click plugins available on internet for your seo needs but most of them have many complex function for simple needs. I am not saying that there is no good SEO plugins in the market but they are few like All ...

How to convert Javascript object into array

Let's see the example below:- We have a numb as JS object var numb = { 1: [22, 33, 44], 2: [11, 99, 66] }; var DefineArray = $.map(numb, function(value, index) { return [value]; }); console.log(DefineArray); Ou...

date picker in place of keyboard in UITextField

The date picker is used to pick date for textfield. It is placed in textFieldDidBeginEditing (a delegate method of UITextField), so that the keyboard is replaced with date picker as soon as you enter into textfield. updateTextField will set the ...

Sort alphanumeric string with awareness of number using Java comparator

The java by default sorting is based on either number or string. If we try to sort a alphaneumeric it will be treated as an string so the sorting will come something like: 1abc 11abc 2abc instead of 1abc 2abc 11abc So in such cases w...

How to load header and footer using Javascript

Hello Reader's. If you have developed the header and footer of the website separatly then it's very easy to make them render on a webpage. By using the JS you can call them with a single line of code as written below:- <html> <head&g...

How to make RatingBar in android ?

Here I have created RatingBar function in android. In android RatingBar can be used to get the rating from the user, it is also used for creating RatingBar. Below code example will described you how to make RatingBar function in Android. Step(...

How to detect the arrow key on press using Javascript

Hello reader's! If you are making the website based on user press key events. Then to detect the arrow key pressed by user we can code as below:- document.onkeydown = function(e) { switch (e.keyCode) { case 37: alert...

Why Mobile Commerce Is Rising In Popularity

  Smartphones and tablets are increasingly becoming the medium of entertainment, shopping, social media engagement, gaming and many more. As users can carry smartphones anywhere, they like the idea of buying an item on...

What is mean by +_ in JS

Hello Reader's Sometimes you might have seen " var = +_" syntax in JS. So this line is as simple as assiging the variable to another, Where + is transfering the value of _ to var and _ is just the variable. var _ = "D5200"; var newVar = +_;...

Hide Columns and Rows in Excel

Hiding columns and rows is useful to intensify the appearance of Excel Worksheet as the columns and rows which contains data which are not useful to keep displaying every time. So if you are looking to know how to hide the columns and rows i...

How to get the POST variable using Javascript

Hello Reader's! If you have desinged the html form in PHP and want to receive the POST variables in JS then there is a method below:- var PostVar = <?php echo $_POST['name'] ?>; Like the way above the var PostVar will get the val...

How to get the variable by it's name using Javascript

Hello Reader's, Suppose you having a variable and you want to find it by it's name, See the example below:- var MyVar = '12'; alert(window['MyVar']); Output:- 12 No if you have variable like this way var MyVar = {IND:'value12...

How to detect if web page is refreshed using Javascript

Hello Reader's! if you need to detect whether the webpage is being refreshed by using Javascript you can do this like the example below:- function CheckRefresh() { if(document.cookie.indexOf('mycookie')==-1) { // cookie doesn't exist, ...

how to convert string into date format using Javascript

If you have a sting in the format of dd-mm-yyyy and you need to convert it into date format then you can see the operation below:- var date1 = "07-11-2015"; var numbers = date1.match(/\d+/g); var date = new Date(numbers[2], numbers[0]-1, n...

To create database and insert data in SQLite, in android

If you are looking for the code in android to create database and insert data in SQLite then follow the steps mentioned below:- 1) Create a layout in which the data will be filled that will be inserted into database. activity_signup_form....

How to make CheckBox in android ?

Here I have created Checkbox function in android. In android CheckBox is a type of two state button either checked or unchecked. We can use checkbox to activate/deactivate the specific action. In the below code example, I have described how to ma...

How to make custom HTML 5 email validation

Hello Reader! If you have been working with HTML 5 validation then on incorrect email address web broser will show the default error message "please enter a valid email address". Now you can make it custom and write your own message. Lets see t...

How to sort alphanumeric string in JSONArray

Hello Guys Here, I write blog for sort JSONArray using alphanumeric string. Create JSONArray below : JSONObject jsonObjupdate = JSONFactoryUtil.createJSONObject(); JSONArray jsonArrayupdate=JSONFactoryUtil.createJSO...

How to get month name from given date using Javascript

Hello Reader's! On a date given like (03/25/2014) if you want to get the month name from it then by using JS you can do this as follow:- var objDate = new Date("12/12/2009"), locale = "en-us", month = objDate.toLocaleString(locale, { mo...

How to block enter button for submitting the form using Javascript

Hello Reader! If you want your html form that block the pressing action of enter button and accept only submit button then you can see how its working in the example below :- $("FormSubmit").bind("keypress", function (e) { if (e.keyCode =...

SQL Views

A view is a virtual table which is stored in database with an associated name .Using views query we can select specific data from a large table . Suppose there is large database of any college , so i want to view the records of any one branch fro...

SQL Between Operator

This operator is used to get the data from a combination of " greater than equal " and " less than equal " condition . Syntax : select column_name1.......column_nameN from table_name where column_name between value1 and value2 ; Example ...

How to show the create table statement of a table in MySQL

To display the create table statement of a table in MySQL you need to execute the following command: use dbname; show create table tablename; But to view this statement you must have the privilege to access the table.

End Editing From Textfield ,Textview by just clicking outside textfield or textview

Hi All, If you want to hide keyboard by touching outside of UITextfield or UITextViiew, just copy this function in your viewcontroller. -(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{ [self.view endEdi...

How to pass value from one Activity to Another through Bundle Intent?

1)Suppose need to pass value from MainActivity to SubActivity.We will first make xml of both Activity: activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android....

SQL Wildcards

This wildcards is used when we want to match a string pattern . And this can be do with the help of wildcards only . In SQL there are two types of wildcards : % : Percentage sign which represent 0 , 1 or more characters . _ : Underscore whi...
1 206 292