Hi Readers,
I recently got my attention to new JavaScript framework that is AngularJS. I read lots of articles about it but I usually do not understand anything just by reading about it. I am more about the practical person and can not actuall...
Program for Bubble Sort elements in Ascending Order
Definition:- In Bubble sort each element compares with the other elements until finds its correct order place. This is repeated until all elements are in the order.
//Header Files...
To create a random string of x characters using defined string of possible characters we will first of all define a function which will return a random string of length that you have passed as a parameter to the function. The script is given belo...
In the below example code I have implemented a search functionality to the listview filters item like text or image. Here I have used addTextChangedListener method this will help in search sorting the result like if you type any alphabet in serac...
There are different methods to check two text strings are equal or not in PHP. This article defines the methods which can be used for comparing two text strings.
1. '==' : == operator is most commonly used operator for comparing two strings. I...
<-- Chapter 22: SQL Select Top
Chapter 23
SQL Wildcards
SQL Wildcard characters are used to substitute any characters in a string. As we have discussed LIKE operator in chapter 10. SQL supports two wildcard operators with LIKE opera...
When we don't define any data for a column then the column holds the NULL value. In MySQL, NULL values are used to represent data that is missing.
NULL Values
If you have created a table with optional columns then you can insert and update ...
We can set the cookies with function called setcookie() . This function requires six arguments to be pass.
Syntax:
setcookie(name, value, expire, path, domain, security);
Creating cookies:
<?php
setcookie("name", "John Watkin...
Hello Readers ,
If we have an array and we want to delete the last record in an array then their is a function called array_pop() .
The array_pop() function deletes the last element of an array.
Example :
<?php
$a=array("red","gre...
<-- Chapter 21: SQL Injection
Chapter 22
SQL Select Top
SQL Select Top clause is used to retrieve TOP N number of Records or X percent of Records from database table.
Note: All database systems does not support the SELECT TOP claus...
Hello Readers ,
If we want to insert more records at the end of an array then their is function called array_push() that we can use.
Example :
If we have an existing array array("red","green"); and we want to insert two more values at th...
Hello Readers ,
Most of the time in our application we need this function called in_array .
This function searches an array for a specific value.
Example :
<?php
$people = array("Peter", "Joe", "Glenn", "Cleveland");
if (in_ar...
Hello Readers ,
If we have the certain array in php and we want to suffle the values of an array then we have the function called shuffle().
This function randomize the vales in an array.
Example :
<?php
$my_array = array("red","g...
Image Courtesy : https://bloeise.nl/
Link building is an important technique to improve the keyword ranking for your targeted keywords. There are three different types of link building named one way, two way and 3 way link b...
Loop Testing :-
In the software testing, loop testing is a kind of white box testing approach. Loop testing is normally executed to authenticate the loops. Mainly there are four types of loops which are mentioned as below--
Simple Loops
...
ALIAS Keyword:
It is used to give temporary names to table and columns. It is very useful for situations where column or table names are too long.
Synatx:
SELECT columnname AS alias_name FROM tablename;
This syntax is used ...
print : It produces text output on the console.
Syntax:
print "Message"
print Expression
To print the given text message or expression value on the console, you have to moves the cursor down to the next line.
print Item1, Ite...
variable: A named piece of memory that can store a value.
Usage:
Compute an expression result,
store that result into a variable,
and use that variable later in the program.
assignment statement: Stores a value into a variable.
Syntax:
...
code or source code: The sequence of instructions in a program.
syntax: The set of legal structures and commands that can be used in a particular programming language.
output: The messages printed to the user by a program.
console: The t...
An error that occurs during the execution of a computer program is known as exception.
Exceptions are known to non-programmers as instances that do not conform to a general rule.
The code, which harbours or blink the risk of an exception, is fi...
An exception is an error that happens during the execution of a program. Exceptions are known to non-programmers as instances that do not conform to a general rule.
The code, which harbours the risk of an exception, is embedded in a try block
L...
statically typed language:
A language in which types are fixed at compile time. Most statically typed languages enforce this by requiring you to declare all variables with their data types before using them. Java and C are statically typed langu...
The quotes single ('), double (") and triple (''' or """) is used to denotes string literals are accepted by python but the same quotes should starts and ends the string.
Triple quotes signify a multi-line string. Everything between the start ...
Identifier is a name used to identify a variable,function, class, module or other object.Python does not allow punctuation characters such as @, $ and % within identifiers. Python is a case sensitive programming language.
Lines and Indentation: ...
Python scripts can:
1-Communicate over sockets.
2-Extract form information sent to server-side CGI scripts.
3-Transfer files by FTP.
4-Parse, generate, and analyze XML files.
5-Send, receive, compose, and parse email.
6-Fetch web pages by U...
Python have following integration which is given below:-
1. Python scripts can easily communicate with other application using variety of integration mechanisms.
2. simple object persistence system is provided by Python's standard pickle module...
Python is a general-purpose interpreted, interactive, object-oriented and high-level programming language
Python programs are portable, i.e. they can be ported to other operating systems like Windows, Linux, Unix and Mac OS X, and they can be ru...
When we use CKEditor for a text area it creates an instance of an editor for this text area. But in some case, if we remove this element the instance of CKEditor not removed and it show on our browser, so for removing it completely we use
&l...
If you want to get all those values which exist in an array and also exist in other array means intersect values between an array and the set of other arrays then you can use a predefined php function array_intersect. array_intersect() returns an...
If you want to get an array which contain all the entries of an array and have keys that are present in some other arrays for this you can use a predefined function array_intersect_key ( array $array1 , array $array2 [, array $... ] ).
array_i...
Hello friends,
This time I am here to explain a very common issue in php which if is someone want to exchange the array keys with values, for this you can use a predefined php array function "array_flip ( array $array )". array_flip ( $array )...
Hello Reader's. Array is a datastructure used to storing multiple elements inside it. But the declaring way to array is different in all the technologies.
For example if you want to declare array in JavaScript then you can use any one out of t...
Hello Reader's if you want to calculate the area of rectangle in your website. Then you have to choose Angular JS. Doing calculations in angular occur zero time delay. Lets see on example.
In the example below page have two text boxes for enteri...
Hello friends,
If you want to to fill a specific value as an array value then you can use a predefined PHP function "array_fill ( int $start_index , int $num , mixed $value )". This function returns an array filled by given values.
In this $...
Hello Readers If you want to hit the MySql queries from another page by your current page, The by using Angular js you can do this. Also angular js will offers you to show your records in a pre formated desing.
Let's see the example as below:-
...
Hello Readers if you want to upload files (images or music) then now Angular JS offers you a way lot more esier. Using angular give user a light and fast interface which is very useful for low internet speed connections.
Lets see the working e...
If you want to fill the values in array with specifying keys then you can use the pre-defined function "array_fill_keys()" means in this function you pass 2 array as parameter, the values of first array used as key of new array and second array u...
As a leader/manager, one of your key parts is to envision and roll out improvement so as to guarantee that your organization/association keeps on making supported progress. In the event that an organization is performing admirably, it is enticing...
In Laravel 5.0 we have in built functionality for forgot password or resetting password. Once the user reset his/her password he/she is logged-in and redirected to the specific URL. But what if the user is deactivated by the super admin temporari...
Employees often show worry about the quality and amount of communication at work. Some case that administration gives just lip service to open communication yet does little to truly speak with them. Others fight their associations trust that post...
When you are trying to upload a file . file get always uploaded using post. So you need to place @ before the file name which you want to send as a post. Using @before the file path in order to make sure that CURL sends the file in the form ...
LESS mixins can be extended into sort of functions in which they accept parameters more than once, it is being called Parametric Mixins. Through these parameters you are able to customize the mixin output in according to what you passed through t...
You can use YouTube video related information using YouTube API, using this API you can retrieve details such as video thumbnails, caption, description, statistics and more. You just need to obtain the YouTube key and create a videos: list reque...
Hello Friends,
If you want to compare two array with respect to keys not values then you can use a predefined PHP function "array_diff_key()". array_diff_key function compares the keys from array1 against the keys from array2 and returns the d...
Great managers and administrators are exceptionally key to an association. In today's business and legitimate environment, it is imperative to comprehend on the best way to handle workers adequately.
There are different laws and strategies wi...
JavaScript Array toString() method : The toString() method is used to cast the array object into a string object and return that string. The elements in the string is separated by comma.
Syntax of Array toString() method :
array.toStri...
This article explains the use and difference of DELETE, TRUNCATE and DROP statements of MySQL.
1. DELETE : DELETE command is used to delete all or specific records from MySQL table. The records delete using DELETE can be rollback. This command...
In business management the business manager has many roles but one of the most challenging is ensuring their team stay motivated. A manager that can keep his team motivated will be rewarded by staff that are happier, loyal and more productive.
...
In openerp first install the resource module and inherit the object of resource.calendar and If no calendar is provided, just return the previous day and day of a resource.calendar. If calendar resource is no given simply remove one day from the ...