Here are step-by-step guide to obtain UIColor:
1- Firstly you need to do is to remove all spaces and new line character sets from the string and then covert the string to UPPER Case example AABBCC.
var cString:String = hexColorString.stri...
Hello Reader's! In this blog i will show you how to Check password strength and its very important for your website to have some password checking on signup pages to force your users to enter a strong password. If you want to make your ...
We can add css by jquery using css() method
To return the value of a specified css property
css("propertyname");
To set a css property
css({"propertyname":"value","propertyname":"value",...});
To set a background and the fontsi...
IEnumerator
A simple iteration over a collection is supported by IEnumerator. It is an interface and is the base interface for all enumerators. IEnumerator performs iteration but cannot be used with foreach loop ,it is only to ...
What is Extreme programming?
Extreme programming is a kind of agile methodology which has faith in short development cycles. A project is separated into simple engineering tasks. Developers code a basic piece of softwar...
What is Agile methodology?
Traditional software development methodologies work on the premise that software requirements stay consistent all through the project. But, with increment in complexity , the requirements unde...
What is Iterative development?
In this model , a major project is isolated into little parts , and every part is subjected to multiple iterations of the waterfall model. At the end of iteration/cycle, another module is developed ...
What is Waterfall model?
In the waterfall model ,programming development progress through different stages like Requirements Analysis , Design and so on - successively.
In this model, next stage starts just when the ...
Many people don't trust that they deserve success/achievement. They don't think that they are deserving of success. What's more, they might be correct. They long for success. They envision success. They battle for succes...
What Is Independent Testing ?
Independent testing acknowledges to a separate group or team. This group or team concern in the testing actions or activities apart from developers or programmers to take evasive action of author partial...
Validation in cakePHP is on the client side and on the server side.
Client side validation is on the js file that is in the webroot folder.
Server side validation is on the model which we are using.
Client side validation is important as...
Loading time of the website plays very important role in internet world.Slow loading time of website will cause uninterrupted services and the good loading speed website serves as an indicator of how well things are doing, it will help you to gai...
Hi Readers,
Mantle is latest and reliable framework which we can use while parsing JSON objects coming from server end. We can do this by simply initialize a class of type MTLModel.
We can understand framework working with following example...
ROW_NUMBER()
RANK()
DENSE_RANK()
All of these three functions are used to calculate the Id of row but in different way.
I am using the below script for examples
CREATE TABLE Marks
(
SubjectId INT,
Marks INT
)...
IEnumerable
IEnumerable is an interface which is implemented to support the ForEach semantics of Microsoft Visual Basic. It contains GetEnumerator method therefore exposes the enumerator, which in turn performs a simple iteration over a ...
An easy to implement simple swift class working on AVAudioPlayer depicting various features like play, pause and stop.
// creating single instance of class
static let sharedInstance = MyAudioPlayer()
var myAudi...
You may often come to a situation when your UIObject(say UIImageView) is not visible on storyboard.
It may be because you’ve dragged and dropped the UI Object for specification(say Regular Width - Regular Height) other than Any-Any.
&...
In the blelow code example I have clearly describe "how to fetch data from api server side"? for this first I have created activity_signup.xml layout here I have added TextView, ImageView, ScrollView, EditText, Spinner and Button. Now S...
To send the request on server open() and send() can be used in ajax.
These are the method of XMLHttpRequest object.
xhttp.open("GET", "ajax_info.txt", true);
xhttp.send();
open- specifies the type of request
open(method, url, async...
XMLHttpRequest object is used to exchange the data with the server without loading the whole page.
XMLHttpRequest is supported by all new browser.
Those who do not support, support ActiveXObject.
For declaring in the code
if...
Hello everyone,
Some times we need to remove the leading, trailing spaces or space in between the text in an entire column of data, one can might think to go manually but what if you have large set of data, the manual process wi...
Schema Configuration:
For performing indexing you have to create indexes first in the schema.xml file.
This is the file which you have to configure to perform any further operations. It the contains the fields which need...
$.each loop is the substitute of the age old for loop and for-in loop.
jquery provide an object iterator utitlity $.each() and collection iterator utitlity .each().
$.each is an generic iterator function for loop. It is used for both object...
In the below example code I have created a custom popup menu function. Here first I have added a Button in actvity_main.xml layout, Then in next step I have created a new popup.xml layout in menu folder, here I have added popup id and title, Now ...
Incremental Integration Testing:-
When unit testing is accomplished, computer programmer executes the integration testing. This is the procedure of confirming the interfaces and interaction among the components or modules. In the tim...
One of the New Feature of PHP 7 is Null coalescing operator :
Generally we use to check variable value existence and if it does not exist then we use a default value for that. Normally for these type of small checks we use Ternar...
In this blog tutorial, i am going to explain how to create magento custom admin module in backend admin panel.
Lets start by creating the following folders:
app/code/local/My/Pant/etc
app/code/local/My/Pant/controllers
app/code/local/My/Pant/...
First of all we should understand the pagination concept , so for this check the cakephp.org .
If we want to pass the custom variables in pagination so first of all pass the variables to the view . Lets suppose we want to pass $pass .
In th...
Breadcrumbs are navigation links that are used by all the sites by which user can understand the hierarchy of the pages. Breadcrumbs are used to display all the pages links leading from the homepage.
In WordPress, breadcrumbs plays an i...
In PHP files we have weak type-checked content (Weak type-checked means no way to check the variable is of what type). Now, in PHP7 we can check what type variable we are using in our code by using SCALAR TYPE.
Declare scalar type in the start...
Remember me is the functionality that people usually see in the sign in page of the website.
What it does it keep your session continue by saving the cookies.
We can save cookies and add the remember me functionality to sign in.
We have ...
Hello Friends,
If you are installing Magento with composer, you might face the issue "Your requirements could not be resolved to an installable set of packages" with the error "magento/product-community-edition 2.0.2 requires ex...
We can create a login function for logging in using cakePHP.
The login functionality can be added using the Auth component available in the cakePHP.
You do not need to create the session or check for encrypted password in the database as Au...
When there are multiple images loaded on the page, this may cause page to load slower. In order to increase the speed of the page we need to cache the images via .htaccess or php code. Now I am writing down the php code that will store images in ...
This blog will let you download files from ftp using curl. Ftp url is given below. From this url we need to download this file filename.gz
ftp://ftp.example.se/filename.gz
Following is the working example:
$curl = curl_init();
$file...
Data validation plays an important part in any of the application. It is very important to make ensure that user has input valid Fields or not. For example, passwords are at least eight characters long or more, User Names ,emails are unique...
Sometimes you want to notify your visitors of the change of the new domain name when your webpage is moved. At that time it is good way to place a “redirect page” at the old location which, after a timed delay, will forward visitors t...
I’ve just created second view controller class by extending from the UIViewController class. However, it doesn’t differ from the parent class until we add our own variables and methods. There are a couple of things we have to change:
...
I was having issues for updating stock quantity items of product in Magento. I was loading the product then setting the stock quantity and saving the product. But that does not work for me. Finally it was resolved, in order to update the stock qu...
Edit distance between two strings is said to be one when following changes occur:-
Adding a character.
Deleting a character
A character is changed
// C++ program to check if given two strings are
// at distance one.
#incl...
yield in python
The yield statement in python is similar to return statement, the only difference is that whenever yield statement is encountered in a function, the execution of function is suspended and a value is send back to the caller but ...
can help me to resolve this. Am trying to convert the xml to json but the json values is not same as xml there is a mismatch in the values. Here is the snippet
@SuppressWarnings("unused")
public static void main (String args[]) throws...
Each person who belongs to an association has an duty to be a contributor rather than a reactor. Here are the best tips how to become a more effective team player.
It's important for an association's leadership ...
Hello friends,
This is very important to search a file in Ubantu server like my location in the server is "var/www/html/myproject" and I want to make some changes in my php.ini file but I don't know the location of php.ini file. ...
Hello Friends,
If you are looking to update php.ini file in your server and getting permission issue with this like I was getting the issue "bash: /etc/php5/apache2/php.ini: Permission denied......" to resolve this problem, I have do...
Magento: Get Category description from block
I was facing issue for getting category description from cms block. After researching on google I found the solution for it. You just need to add this in the home page content:
{{block type="co...
The element of an Array in PHP by default are accessed by the index number i.e. the position in which the element or value is stored in the array.
For example :
<?php
$temperature = array(10, 20, 30, 25);
echo "Delhi temperature : ...
Hi All,
Protocol : - A protocol defines a representation of methods and properties that suit a particular task or piece of functionality. The protocol can then be adopted by a class, structure, or enumeration to provide an actual implementatio...