Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

A simple function returning UIColor from HexaColor String in swift

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...

How to Check Password Strength using jQuery

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 ...

CSS jQuery

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...

Difference between yield and return statement in C#.

return statement in C# Example to demonstrate return statement: static int SimpleReturn() { return 1; return 2; return 3; } static void Main(string[] args) { Console.WriteLine(SimpleReturn()); Console.W...

IEnumerator in C#.

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?

  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...

Agile Methodology

  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?

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 ...

Waterfall Model

  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 ...

Do You Deserve Success?

  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...

Independent Testing

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

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...

Speed up the loading time of cakePHP website

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...

Parsing JSON objects using Mantle framework in Objective C

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...

Differece between ROW_NUMBER(), RANK() and DENSE_RANK() in SQL Server

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 in C#

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 ...

AVAudioPlayer implementation in Swift

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...

UI Objects not visible in storyboard when changing height and width specifications

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. &...

How to fetch data in Spinner from api code

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...

AJAX request

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...

AJAX XMLHttp

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...

How to Remove leading or trailing spaces in an entire column of data?

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 in solr

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

$.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...

How to create Custom Popup in android

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 ...

What Is Incremental Integration Testing ?

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...

New Feature in Php 7

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...

How to Create Magento Custom Admin Module

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/...

How to pass variables through the URL when using pagination?

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...

Display Breadcrumb without Plugin in WordPress

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...

Scalar Type in PHP7

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 in CakePHP

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 ...

magento/product-community-edition 2.0.2 requires ext-xsl * -> the requested PHP extension xsl is missing from your sy...

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...

Login CakePHP

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...

PHP: How to cache images in browser using php?

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 ...

CURL: How to download file from ftp using curl?

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...

cakePHP model side validation

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...

Adding option in angularjs ui-multiselect dynamically from http request

My code is: <ui-select multiple ng-model="multipleDemo.selectedPeople" theme="select2" ng-disabled="disabled" style="width: 800px;"> <ui-select-match placeholder="Select person...">{{$item.name}} &lt;{{$item.email}}&...

How does page redirection works in javascript?

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...

Pass data from one ViewController to another in iOS

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: ...

Magento 1.9.2: How to update Stock Item Quantity of product ?

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...

To Check if edit distance between two strings is one

 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

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 ...

mismatch in json while converting

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...

Building an Effective Team

  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 ...

How to serach php.ini location

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. ...

bash: /etc/php5/apache2/php.ini: Permission denied

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 1.9.2.1: How to get category description on product page from CMS block

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...

Associative array in PHP

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 : ...

Protocols in Swift

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...
1 126 292
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: