AngularJS $apply comes into play when it invokes digest cycle to watch the scope model changes. Angular wraps the function call within the $scope.$apply. It means it executes a complete new life cycle. If the execution of the function is normal, ...
The include() and require() function takes all the text in a specified file and copies it into the file that uses the these function respectively.
include will only produce a warning (E_WARNING) and the script will continue
require w...
In the below example I have created Circular Reveal Animation like chat app(Whatsapp). First I have created activity_main.xml layout, here I have added FrameLayout, all layout and attributes like LinearLayout, ImageButton, TextView, Vie...
Hello Reader's!,If you want to add forgot password field in your login page and send the forgot password link through mail Then I wrote this blog for you.
// first create a forgot password link in your login page and allow forgot password ...
Login controls are in-built controls which provides a user interface in ASP.NET for managing the verification of users for a website. The verification is done according to username and password.
Following are the controls in login control:-
...
Since AngularJS has a popular concept of two way data binding. But how does it comes to know that a value has changed? Here comes the role of $digest.
AngularJS executes in cycles which is called as $digest cycle. Suppose we ch...
Inserting data to a database would be possible by using SQL statements, specifically the INSERT command. Data can be entered into the database using insert query into the function, here is simple line of code that will create a database usi...
SQL wildcards are used within a table to search for data. Usage of wildcard characters in SQL call for SQL LIKE operator, which enables to hold a comparison between a value and similar values.
Following are the two types of wildcard oper...
Hello Reader's!,If you want to Resize Image While Uploading in directory using cakephp ,then this blog going to help you to do this easily.
You need to Download Qimage plugin for resize your image (Download file attached Below)
after down...
In dijango-1.4 to create project in under django framwork use the below commands step by step :-
Step1- First you have to check your dijango framework in proparly worked or not.
Step2- Than Go to the django framwork location:
...
Hello guys, i am trying to develop one p.o.c with functionality like office lens, when i focus camera on document it should auto adjust(focus, mode) , detect document edge, draw border rectangle(real time) in Android .
Have tried OpenCv but no...
The foreach function in php will be used for a easy way to iterate over the loop and it is only used in array and objects or It will give you an error when you try to use it on a variable with different data type.
Syntax:
foreach(array_e...
The logic of the program is to use a boolean array named presentseen of size 100, the size is defined by macro LIMIT. The boolean array is used to keep track of array elements that lie in range 0 to 99, which is initially initializ...
Use these step to install the django-1.4 in ubuntu
Step1- First check the python-2.7 version by use this commond
python -V
Step2- than use below link and install django-1.4 version
https://pypi.python.org/pypi/Django/1.4 ...
An algorithm to convert infix expression into a postfix expression using “Stack”. The purpose of stack is to reverse the order of the operators in the expression as it is used to hold operators rather than numbers.
POST...
jQuery has Basically three methods for CSS manipulation Following methods is explained using below example:
1.addClass() - Adds one or more classes to the selected elements
2.removeClass() - Removes one o...
Create:
- Create method use for creating new record with given values of the record.
- Create method return created newly record with given values.
Syntax:
create(cr, uid, values, context=None)
Ex: Here method override for versio...
In php we have predefine function for sorting the array according to the need of the user. Functions are defined below.
sort() - It is used to sort arrays in ascending order
rsort() - It is used to sort arrays in descending order
...
Session is used in php to store information with the help of session variable. By creating session we can use that information across multiple pages. When we create an application we write the code, do some changes and then we close it our s...
What is being "trapped"? You've heard people describe this frequently as how they feel when they are either stuck or when they have made an undesirable turn in their expert/professional and personal journey excursion.
Are you exa...
AngularJS has a concept of powerful data binding. It accomplishes this by keeping a watch on its scope variables. When we change the the variable on $scope object, the $scope object gets automatically changed and vice-versa. Most of the time angu...
Below is a form which contain id field, name field, phone number filed, gender radio button and we are sending these data by using post method.
<form name="user_registration" method="post" >
Name: <input type="text" name...
Different ways to create object:
We can create objects in java in four different ways.
Using new keyword
Using Class.forName()
Using clone()
Using object deserialization
Creating an object with the help of new keyword:
...
UIApplicationDelegate-> UIApplicationDelegate is a protocol which consists some predefine methods. These methods are called by singleton UIApplication object.
UIApplication Object-> UiApplication Object is the object of UIApplication...
Hello Readers..
By this blog i am trying to explain the few important tips for the bug analysis. Before creating any new bug we have to analysis in well manner. Here i am mentioning few points and i hope these points will very helpful for all ...
The include() function
The include() function is used to include the whole text of a specific file to another file where we want to include that file. While including the file if there will be any error in loading the file, it will only produc...
Animations are the effects that makes the visualization attractive and illusionary moving. In AngularJS we can use animations with the following directives :-
Directive
Animation Type
ngRepeat
enter, leave and m...
First you have to add an extension (named.. SQLite Manager) in the Mozilla Firefox browser. (It is simply for managing database in some cases).
Then you need three .dll files (known as ASSEMBLIES)..., (these files are simply PLUGINS for SQLite...
In the below example I have created a Bounce Text animation function. Here I have added Button and TextView in activity_main.xml layout then I have created new directory (anim). In anim directory I have created bounce.xml layout and in MainActivi...
THESE ARE THE APPSTATES IN IOS
AppState tell that whether the app is running in foreground or background or when the state changes..
In early versions of iOS three states were supported : n...
In the below layout example, I have created a dialog box with RecyclerView. Here I have added first RecyclerView dependency to Grandle file. Now in next step I have Created a Main RelativeLayout. All layout added in Main RelativeLayout then creat...
AppDelegate-> AppDelegate is a class which inherit from UIAppDelegate and contains basics launching methods of any applications .
It contains many methods but five basic methods are given below.
- (BOOL)application:(UIApplication *...
For changing the image on swipe can be done by implementing the ViewPager in your android app.
For implementation of ViewPager we need to follow the steps mentioned below:-
1) Create ViewPager tag in your xml file .
activity_main.xml
...
$timeout and $interval are two AngularJS timer services. We use these services to call functions and these are similar to javascript’s setTimeout and setInterval functions.
$timeout- This is used to call a function and schedules a single c...
In this tutorial following points are covered:
1. Getting started with Android application development
2. Installing Java JDK
3. Installing Android studio
4. Creating android studio project
A President is a leader of a nation. A Father is a leader of a family. You are a leader of yourself. It is truly genuine that you are the leader. Need proof? All things considered, who controls your hands? Who controls your feet? Who controls you...
To replace any character from a String, we generally use replaceAll() method of String.
Below is the example
String Str = new String("Hello + world +");
System.out.print("Output Value :" );
System.out.println(Str.replaceAl...
Position: Software Developer
Roles and Responsibilities:
Requirement gathering, design, development, testing of web applications using ASP .net
Maintain existing websites by identifying and correcting software defe...
What is a BroadcastReceiver: Application component
Its usage: Notify the receiver for an event
How we can register broadcast: Static & dynamic
Lifecycle of a BroadcastReceiver
Key points while implementi...
Being a visionary in whatever you do whether as a CEO, a chief, a group leader, a manager, an entrepreneur, a representative, an expert specialist, a specialist, a dental practitioner, a designer, a legal counselor, a group volunteer, a mentor, a...
Marker Interface in java:
Marker Interface is an interface in which there are no members. i.e we don't define any methods or data members inside the marker interface. It is also called tag interface. A very obvious question comes in m...
I was integrating solr with java using maven dependencies
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-solrj</artifactId>
<version>5.5.0</version>
...
To get the list of all the font that is available in xCode you can use this code.
for (NSString *name in fontnamesArray) {
NSLog(@"Font Family: %@",name);
NSArray *fontFaces = [UIFont fontNamesForFamilyName:name];
...
In the below example I have created Toolbar text animation function. Here In activity_main.xml layout first I have created Toolbar and added a TextView, then In MainActivity I have used ObjectAnimator class. You can see below program it will clea...
Executive leadership development is the need of great importance. Leadership advancement programs adjusted to your authoritative goals offer you some assistance with staying at the highest point of your business development activities. These prog...
I am writing code to copy specific content on any event.
Android provides clipboard-based framework to do this task.
Clipboard is represented by ClipboardManager class. To instantiate it, we need to call getSystemService(CLIPBOARD_SERVICE)
T...
While working for an autocomplete funtionality in angularJS encountered a problem where instead of the JSON we need to iterate each element and have to make an Array of string.
For iterating the JSON data(from server side), we used:
$scop...
display:none:
An element can be hidden by setting the display property to none.
This property hides element in such a way that when the page will be displayed it is displayed as if the element is not there.
The layout is as there w...
In the below example I have created Business details screen layout. Here, first I have created LinearLayout and added all layouts in this Main(Parent) LinearLayout, After this I have added ScrollView for page scrolling. I have also used Tex...