Promises are logics that are executed after any function is completed. In AngularJS, promises are provided by the in-built $q service. It executes asynchronous functions by registering them with the promise object.
Deferred helps ...
varargs
varangs is variable arguments. varangs as name suggest allows a method to have 0 or mutiple argument.
Autoboxing
Autoboxing is converting primitive data type into it's equivalent wrapper type class automatically in Java....
In the below example I have created cycle animation function. Here I have added Button and ImageView in actvity_main.xml layout then I have created new directory (anim). In anim directory I have created cycle.xml layout and In MainActivity I have...
Hello Readers,
To sort an array in ios you may use the following code snippet:
// Name of the key on basis of which you want to sort
NSSortDescriptor *dateDescriptor = [NSSortDescriptor
sor...
Hellow Reader's ! In This Blog we are going to import excel file into MySql table using PHP. If you have Excel files that need to be imported into MySQL, you can import them easily with PHP. First you need to download Excel reader File. In th...
Widening
Widening in Java can be defined as converting a variable of a particular type into wider type. E.g: short is converted int primitive type.
varargs
varangs is variable arguments. varangs as name suggest allows a method ...
Autoboxing
Autoboxing is converts primitive data type into it's equivalent wrapper type class automatically in Java. E.g: int primitive type is converted to Integer Wrapper class in autoboxing.
Widening
Widening in Java can be define...
Autoboxing
Autoboxing is a feature introduced in Java 5 and can be defined as converting primitive data type into it's equivalent wrapper type automatically. In Java,for every primitive type there is a corresponding class of reference...
We can add, remove or check classes through our angular code:
The following is the syntax for adding a class and the corresponding CSS related to that class:
HTML:
<div ng-app="addRemove" ng-controller="myCtrl"&g...
Hey Guys!!
Here I want to talk about a new feature in Adobe Illustrator CC, which is new but a great & very much handy tool & its called the "Touch Type Tool".
Using this tool you can easily select a character from a lin...
In the below example I have created simple demo app used with volley library. First I have added volley support library in build.gradle file, Then I have added Button and Listview in activity_main.xml. I have created a new list_view.xml layout an...
Hi all !!!
I stuck into problem in 3ds Max. When i turn snapping on. my object is snapping with all orientations.
i am not able to snap an object or vertex in a single orientation.
another example:-
if i have two boxes in 3d world and...
String Functions
String functions are the part of core PHP. These are used to manipulate string data. Following are some commonly used string functions used in PHP. These are:
addslashes : Adds slashes to specified char...
In OpenERP for clicking the selection's icon in the web client, first create the users and check all rights of the users and than click the selection icon in web client and compose a default action for the model in the user's selecti...
In OpenERP when creating the wizard resource than the action of form is returned so agian we have to create the users and relate it to wizard resourse and also clicks the init icon in the web client than retrieve translated version of wizard'...
Captcha verification includes:
should be a combination of alphanumeric characters.
should be case-sensitive
fresh captcha is to be displayed whenever a webpage is refreshed.
should be refreshed when user enters incorrect value.
&...
I need an android app developer with java and native code experience using C or C++ to create a NoRootFirewall app. This app will support devices between API 15 and 23. The app will be able to filter data access to every system/installed applicat...
We often hear people talk about how they wanted to be ready to improve, be more innovative, or have certain abilities that another person has. Rather than envy the talents of others, it would be significantly more useful on the off chance that so...
Ever pondered what's that something unique that makes a leader stand out amongst thousands around? Why do people feel polarized by that spirit who you feel bound to call a leader? What's that moxy/charisma such an identity holds which kee...
The key to financial and self satisfaction in life is embedded in a seven lettered word: SUCCESS. This must be accomplished by consciously developing and fitting these seven principles of success. These components of success highlighted in this a...
To give border color to UIButton :-
1. Take UIButton as property .
2. Give corner radius and corner width to UIButton.
3. Now give border color to UIButton.
For Swift use :-
demoButton.backgroundColor = UIColor.clearColor()
demo...
Object Cloning:
Cloning means to create exact copy of an existing object. To clone a object we have to implement java.lang.Cloneable interface by that class whose object will be cloned. clone() method is defined in Object class.
Examp...
Whenever we create new site in SharePoint site collections its default settings is "SharePoint Permission Mode". But to create Groups, Categories, Security Templates,User Sync Settings,Delegates and so on we require "Project Permis...
In OpenERp we first create report of the client and apply mutations on the user's saved selection of the search domain to be processed. The domain is only processed if no ids are present. If both domain and ids are missing, this will lead to ...
$rootscope is the parent of all scopes. Values exposed there will be used in all controllers and templates. It acts as a parent object of all “$scope” angular objects created in a web page.
Now, let us understand how the “$ro...
Hello Reader's!Comments is very useful for your website where users can give there feedback suggestion and discuss problems with us so for that i have decided that to create a comments system in jQuery where page cannot reload but your commen...
In the below example I have created anticipate Image animation function. Here I have added Button and ImageView in actvity_main.xml layout then I have created new directory (anim). In anim directory I have created anticipate.xml layout and In Mai...
If your android app is dependent on internet then you need to check whether your device is having internet connection or not at the starting of your app, so to check the same copy the code below :-
To know the Network state in your app you nee...
There are many times we have to use some features in Jmeter that are not present in Jmeter, so we have to install some additional plugins to use those additional features. These features can be like JSON Path Extractor, AutoStop listener, etc.
...
Import
To access classes of one package in another package i.e use external classes without package qualification import feature is used.
The classes and interfaces of one package are accessible in another package using impo...
Hi Team,
Today I will explain Lazy Loading and Eager Loading.
Firstly we will explore Eager Loading.
Eager Loading is the process of loading the related data. We will use Include keyword to load the related data.
Let us take an exampl...
In the below example I have created Static JSON Parsing program in android. First I have added two TextView within RelativeLayout. In MainActivity I have used JSON object and JSON array JSON object within curly bracket ({) and J...
To convert variables of one type to another is known as type conversion. There are two types of type conversion:
Implicit type conversion
Explicit type conversion
Implicit type conversion : It automatically converts the da...
Here in this blog i have shown a simple example how to use AJAX to send and retrieve data from a PHP page and then populate the result from a PHP page in a HTML element.
The example here shows when I select a country a request is send to...
Static Import
Static import feature was introduced in Java 5. The functionality provided by static import is it allows a class to access static members of another external class directly without qualifying it with the class name as if it ...
OPEN FILE- fopen()
In php file is opened by the fopen() function. The fopen() contains two parameters. The first parameter of fopen() holds the name of the file to be opened and second parameter indicates the mode in which file is ...
The dynamically generated option in the select box with angularjs is done with the following code :
We can populate the options inside the select box and on selecting any value from the select box it reflect to some event. It will sh...
A new method is introduced in CSOM is CreateProjectSite()
When we try create to create Project Site using this method, sometimes we get this error "PJClientCallableException: WSSWebAlreadyExists" which means the project site we try to ...
Hello Reader's! In this blog i m going to show how you can convert currency using PHP, first u need to create index page where u can define field for conversion..
index.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://...
Here we are making two simple text box one for the name which is filled by the user and the other is the input box for the time which is automatically called with the help of jQuery-ajax. First of all we make a simple form with two input fields o...
Below code will gives us a table on which when we first time click the headers of column, it display data in ascending order. if we click the header second time than it display values in descending order.
<?php...
In OpenERP to create opens wiki page first you have to create the current row and than the current user’s ID for security checks. user ID find List of open wiki group’s IDs and also maps the dictionary of open wiki window on giv...
Covariant Return Type in Java
This feature of Java allows overridden methods to have different return types. Before Java 5.0, overriding a method a concept used in inheritance in which subclass can have same method as provided in sup...
Hi Team,
Today i will explain Boxing and Unboxing in C#.
C# Type system mainly divided into 3 parts:-
1. Value Type
2. Reference Type
3. Pointer Type
bool,byte,char,decimal,double,float,int,long,short are the value types
stru...
To show slides of images, we use ViewPager in android that provided by the support library.
First of all add images that we want to show in drawable folder.
Then create array of these images.
private int[] mResources = {
...
Microsoft has introduced a new blob type, CloudAppendBlob for appending data to an existing azure blob. It has the method AppendFromByteArray which appends data to the tail of existing blob.
We need to use CloudAppendBlob type ...
In my previous blog, I had explained how to add a message in queue. Now here is the sample code to read the message from a queue
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(RoleEnvironment.GetConfigur...
Printing hello without using main method:
We can use static block to print something without using main method as static block executes as soon as the class is loaded. To ignore exception "System.exit(0);" is used which termina...