Android provide many ways to store or save data of an application, like Shared Preferences, internal storage,external storage, SQLite database and storage on network.
Here we will learn how to save data in the internal memory of the android de...
Panel control is works as a container for static text and other controls or we can say that it acts as a parent for other controls in a web page. It displays or hides the other controls as per the need of the program.
Uses of panel control:-
1...
The :nth-child selector in CSS code is here it will allow you to select one or more elements according to the formula. It is used to style content based on parent and child relationship.
:nth-child iterates throughs elements from the top ...
To set the maximum date of date picker in ios to today.
for example , if we want to pick the date of birth of a user then the date is can not be greater then today date .
So we can use following step to set the maximum date of datePicker
...
Overriding method is different than overloading, as in overloading of a method, their are more than one method with same name but different parameter with in same class unlike this, In overriding of a method, a method in child class(sub class) ha...
Below are the php sort functions use for sorting an array in php.
sort() - This sort function is used for sorting an array in ascending order in php.
rsort() - This sort function is used for sorting an array in descending order in php.
as...
CONCEPT OF EVEN AND ODD RULE USED IN A ROW-
Readability of rows in a large table is hard to read and understand but it can be easily verified by using even odd concept.
FOR EXAMPLE
Following Table have 7 row and 6 columns. The number of eve...
We have textfield of 150px and we have a string that is too long to fit into this 150px container, How can we make a textfield multiline if needed?
For this:-
There is property of textfield 'TextFieldAutoSize'.
var tf:TextField = new Te...
In JavaScript onerror is a Document Object Model event handler. It occurs when error occur during object loading. In JavaScript window.onerror is used as an event handler, there is no error event being triggered: Alternatively, when the exceptio...
Android provide many ways to store or save data of an application, one of the method is using Shared Preferences. Shared Preferences are used to store and retrieve primitive data information(such as int, boolean, and String). The data is stored i...
Sort a stack using recursion in C
Sort a stack means inserting elements in Stack in sorted order.The sorting is to be implemented using recursion. In this first a stack is created by pushing elements into it then by popping elements from it,so...
Abstraction is a concept which shows only important(essential) feature and hide background details. In other way, abstraction shows only those things to user which are important and hides the background details. In java we can achieve abstractio...
i want to run an swf (flash file) in android using webview.i used the code at the following link but was not able to find teh resolution.Please help me in this:
https://forums.xamarin.com/discussion/13304/how-to-play-swf-from-assets-folder
Minification in Javascript:
Minification means removing/clearing. In javacript, Minification is the process of removing all characters(i.e extra whitespace, comments, new line characters, etc.) from the javascript source code that are not ne...
For those who are new & trying to use AVplayer in their iphone apps,i would like to share that AVplayer has in built functions for only PLAY & PAUSE as "[self.myAvPlayer play]; & [self.myAvPlayer pause];",which are handy to use,where...
Try to understand it with an Example:consider the image below.
Here the problem is that whenever I'll click on Login button, only textboxes of the Login section(UserName and Password) needs to be validated. And whenever I'll click on the "...
LITERAL IN JAVA
A literal is a value that may be
assigned to a primitive or string
variable or passed as an argument to
a method call.
Literals can be any thing like
number, text or other information
who represents a value.
Literals a...
While using AVplayer in iOS sumtimes the video frames are not proportionate to the iphone screen that can led to distortion in UI of your app,therefore to overcome this problem we have to use a simple piece of code..
Go to the function
-(v...
An activity represents a single screen with user interface(UI) i.e.,a window with which you interact with your android phone.
It is a pre-defined class in Android and every android application which has a UI must inherit it to create a window.Us...
In java we can define more than one method inside one class(same class), whose names are same until their parameters or signature are different. This process or method of having more than one method within same class with different parameters or ...
UpdatePanel Control
1)UpdatePanel Control is available in ASP.NET AJAX package.
2)This control allows partial rendering of the page i.e.it AJAX'ify controls contained within it. This control allows to refresh selected parts of the page inst...
RWD:RESPONSIVE WEB DESIGNED is making the elements and pages responsive for all devices.
A responsive website consist of CSS3, ,media queries and @media rule, flexible images, flexible videos, and fluid type, all of which allow responsive websi...
In JavaScript try/catch/finally are called exception handling statements. In JavaScript try/catch/finally statement manage some or all of the errors that might occur in a block of code. Try/catch/finally in JavaScript lets you deal with exception...
So Friends,
There are such a variety of decisions out there nowadays with regards to composing PHP code. Here are only a couple of prevalent IDE:
Notepad++
NetBeans
Superb Text
Dreamweaver
jEdit
Eclipse
What's more, there are...
Has_one and Belongs_to relationship sometime become confusing so the main difference can be explained with the help of example:
1>Has_one :-
class Department < ActiveRecord::Base
has_one: employee
end
this means that employee tab...
First of all see the following program::
public class Hello{
static{
System.out.print("Hello! Running Java program without main method.")
System.exit(0);
}
}
The output of above program will be::
Hello! Run...
Odoo store time in UTC timezone how it can be change to GMT timezone default thanks in advance for help.
Description:
System time is different then the time in log and if time is selected and 1am it save time 5 hours before and so the date al...
What happens when you use a printf() function inside another printf() function.
To understand this lets see the following example:
#include<stdio.h>
int main() {
int number = 1234;
printf("%d", printf("%d", printf("%d", number)))...
The MySql provides us with various for wide use for handling the database. The AVG() function is also one of the important function used in MySql. The AVG() is used to calculate the average value of the columns.
Syntax:
SELECT AVG(column-n...
We know that in JavaScript functions have parameters
function(parameter1, parameter2, parameter3) {
code to be executed
} // here function is the name of the function
Rules for the parameters
We do not specify data types fo...
In this c program we are reversing a string without using library function( Strrev). we are using a temporary variable store for reversing the string.
#include<stdio.h>
#include<string.h>
int main() {
char str[100], s...
In C++ program the compiler converts every statement in machine language of one or more lines, during compiled time. Every line is provided with the unique address. So each function of the program is provided with the unique machine language addr...
Arrow functions are the functions that have a shorter syntax compared to function expressions and arrow function lexically bind the this value. Arrow functions effectively turn function (arguments) { expression } into arguments => expression a...
SELECT TOP clause:
TOP clause is used to fetch specific
number of records from a table.
This clause is very handy when we
have huge table of thousands of
record in it . And fetching data
from these tables are quite
time-consuming , in ...
This program is all about finding how many times a character comes in a string. In the program there is a count variable which will be incremented if the same character appears again and then that count variable will be printed.
#include &l...
Steps to connect to the database in java using JDBC for Oracle database
1) Driver class is registered
The driver class is registered first with the help of the forName() method.
e.g.
Class.forName("oracle.jdbc.driver.OracleDriver"); ...
Abstraction
Abstraction is a concept which shows only important(essential) feature and hide background details.
In other way, abstraction shows only those things to user which are important and hides the background details.
for eg :- examp...
Interface:
Interface is similar to class and
represented by interface keyword. It
contain only pure abstract methods
means only declaration of methods is
given inside interface and the class
which implements it write the body
for that ...
Validation is an essential part of any web application. It is used to validate user input data. Before sending the user's input to different layers it must be validated.
Validation is of two types:-
1. CLIENT SIDE- client side validation is c...
1) Call by value:
When you are passing values of primitive data types as arguments to the function , then a copy of the values is created and the changes which are done are reflected in the duplicate values and hence, the original values rem...
Inheritance is a process where sub class have same properties then its super class. In this process sub class acquire all the characteristics of its super class.
By using inheritance we can manage information in hierarchical manner.
The c...
Dual table:
DUAL table is a dummy table which
contains one row and one column and
by default it is present in
database.It contains a single
VARCHAR2(1) column known as DUMMY
with a value "X".
It can be accessed by all users but
the ...
In html we use list attribute for arranging data in the form of list.
Their are two types of list in html.
Ordered List
Unordered List
ORDER LIST
If we want to put our data in numbered form rather than bullets then ordered list wil...
Hello Guys/Gals,
I went to a 4 day C programming course in which I learned using windows. Now I'm using Xcode on my own MAC. I'm trying to practice some of the things I learned but having some small issues with Xcode. I wrote this C program t...
When we want to take(collect) information from user or those who are visiting site, for this purpose html forms are use.
for eg:- for user registration in any social site, we want to collect his personal information like his name,last name, ema...
Hello Friend,
Many times we need to find and remove duplicate data in the spreadsheet and may of us do this task manually.
But what if one have a large data containing thousand of columns will you then do this one by one, for me it will be ...
Polymorphism:
Polymorphism is one of the OOPs pillars. Polymorphism is the ability of a method to behave differently as per the object. Polymorphism allows programmer to declare a method and use it differently based on the instance.
In Java...
Testing: Testing is the process of executing a program with the intent of finding errors. Manual testing is a testing process to find defects manually.
White box testing:
1.White Box Testing is a software testing method in which the int...
If we want to print data in the form of table in html we use TABLE tag. Table contain rows and columns.
For creating rows in table we use
tr tag with in table tag.
For creating columns in table we use
td tag with in tr tag.
Syntax
...