Hello all !
For adding Gradient effect to the UIButton we can implement the following code :-
CAGradientLayer *gradientLayer = [CAGradientLayer layer];
gradientLayer.frame = _customButton.layer.bounds; // _customButton is the outlet ...
Hi,
To Create a extension class in swift Please follow the steps below.
1- Add a new Swift file in your project and add the following code
import Foundation
//MySingltonClassSwift is a singletonClass or you can use any class for which...
Hello Friends,
Initially when we are new in Magento after successful installation in local system, some time we forgot the admin password. With the reason the project setup is local, you can't call forgot password to retrieve your password...
Hi,
To Create a Singleton class in swift follow steps below:
1- Add a Cocoa Class file subclass of NSObject named it as MySingleton and now write down the code as .
import UIKit
class MySingleton: NSObject {
static let ...
We often use rake db:reset command for recreating the database, instead of conventional 3-steps for doing the same.
rake db:drop (dropping the Database, wipe away all your data)
rake db:create (Create the Database)
rake db:migrate (Runs...
My listbox2 items are the items needed to be added as columns. i am using a button to add items from listbox1 to listbox 2. so lets say if listbox1 item x,y coordinate is added to listbox2 item then i need to add column x,y coordinate to the grid...
In programming our program must act according to our control structure, it must follow the rules and conditions which are supposed to be follow, for this we use some conditions that is known as conditional flow, by this our program do what we wan...
Object Methods:
Object Methods are thode methods which we have to explicitly define in the class.
First we have to create an object of the class and then we call the object methods.
Example:
class Object
d...
JavaScript is extremely helpful when you require information elucidation and control on the customer side. JQuery is a standout amongst the most prominent and valuable JavaScript libraries. Web designers adoration to utilize JQuery and we use the...
MVC Architecture
MVC architecture is a software constructing or designing pattern which is widely used these days to build software applications or web based applications. MVC breaks an application into three main parts namely Model ,View a...
Hi friends,
Sometimes we want to read the content from a file and save into our database. So we can achieve this in rails we do following:
1) First you need to add a column in your model where you want to save the content ...
Both form_for and form-tag are Rails helper methods. Whenever we want to build a form containing various elements like text-fields,text-areas,labels etc, we simply need a form builder object.
form_for rails helper method just do that, it provi...
To Use Unwind Segues in swift please follow the steps:-
1- Create two ViewController using storyBoard
2- Create a segue from FirstViewControleller to secondViewController
3- Write a function in FirstViewController like this
@IBAction func...
Here is a simple Jquery code to make a slider.
HTML CODE:
<div class="container">
<ul class="clearfix slider">
<li class="active">
<img src="img/img1.jpg">
</li>
<li>
<...
Sometime we require a condition where we need to add html tags in <appSettings> value.
If we directly add html tags in value then it gives the syntax error. To resolve this we need to add html tags in encoded form.
Here, below is th...
By using below code you can give bottom border to your text fields
-(void)giveBottomBorderToTheTextField:(UITextField *)textField{
CALayer *border = [CALayer layer];
CGFloat borderWidth = 2;
border.borderColor = [UIColor...
Integration of dompdf library is available online,just download it and save this library to vendor folder, this file is able to convert a html document in pdf format, by using this library the content of the page should look more appropriate and ...
On viewing the responsive website in our mobile device, the responsiveness of the website can be maintained via @media queries but on double click to the web page it will make a zoom effect in the device and than the horizontal scroll will appear...
To Integrate paypal in iOS App use the steps below:
1- Install Pod for paypal
platform :ios, '6.0'
pod 'PayPal-iOS-SDK'
2- #import <PayPalMobile.h> to your viewController.h and also set the delegate in .h @interf...
The query language which is used to locate elements in XML document is "xpath".
XML is the context in which xpath exist. One or more elements exists inside the XML document. Every element must have a start and end tag if it contains so...
Hi,
This blog is to help you to get Facebook Authentication through OAuth using Java. As Facebook is not offering any SDK for Java clients so with the use of a Json parser we are going to develop a small web application in order to u...
Hello friends, my previous article "MySQLi - An improved and enhanced MySQL extension" provides an introduction about the MySQLi extension and its features. This article demonstrates how to create connection with a MySQL database using ...
Hello Readers,
This tutorial will guide you about how to create custom admin module in magento to print simple text Hello World in the backend. To accomplish this, follow the below steps:
Step 1: Create folder Evon/Helloworld inside app/cod...
In Javascript framework like AngularJS there is a bootstrapping process involved and there are certain flow that is involved in it.
There are two types bootstrapping involved in AngularJS:
Automatic bootstrapping
Manual Bootstrapping
...
In magento sometimes we are required to change the attribute values of the products.
To do so we can work upon the event catalog_product_load_after.
Lets see how we can do it:
1. Create a module with namespace as Custom and module as...
To make a build of ANE i.e Adobe native extension first you have to download FlashRuntimeExtension.jar that comes along with Adobe AIR sdk.
you can download from here :
http://www.adobe.com/devnet/air/air-sdk-download.html
We k...
Hi,
This is a short demo of how to use Facebook Graph API explorer tool. In order to use this feature you have to get registered with Facebook developer account. I have provide step and underneath an image example:
...
Laravel 4.x provide n number of sending email library such as mandrill,sendgrid etc. These all library are used to send bulk email. To use Sendgrid in our Laravel project we have to follow few steps. By this way we can implement Sendgrid in our L...
i have this database which contain table for questions and other for answers
how can i display each questions with the answers that belong to this question
my problem is when i try to display the questions i get duplicated rows or all the answe...
Validation
There must be something twirling inside your mind after seeing validations in ruby, validation
are basically used to check whether you are sending right parameters or not. i will explain you
by brief code
class School <...
In this tutorial we will see how we can use pluck and select in rails active record queries.
Select is used to fetch records with specific attributes. It returns ActiveRecord::Relation object.
Project.select(:id)
Project...
1.Global Variables
2.Instance Variables
1.Global Variables:
They start with a $ sign.
If we do not initialize values to global variables , they take a default value of nil.
Examp...
Skeleton is a lightweight framework for CSS . It specifically has two CSS files: the popular normalize.css file and the skeleton.css file.
The grid system of Skeleton is used create responsive website hence it's a most important part if Sk...
A unanimous definition of a scope in rails can be termed as a succinct way of creating database queries. We define a scope in a Model class in the purview of MVC architecture.
It's syntax goes like: scope(name, body, &block) .
...
Enumerable Methods in Ruby
Ruby has a list of enumerable methods or we can say enumerators that have specific functionalities which can be applied on various collections like array ,hashes etc
Map
Select
Each
Collect
Map
...
Hello friends, I am writing this blog which will help you to export data to excel sheet or you can say that it will write data into excel sheet with the help of 'php-export-data-class' library.
Lets start by creating function...
Realm is substitute of SQLite and ORM libraries in your Android application. It is a lightweight database that can replace both SQLite and ORM libraries.
Installation:-
Step 1: Add the following class path dependency to the project ...
hii,
We can insert mutliple value in an array using different method as per requirements.
Here is the list of method we can use to insert values in an array.
Array fill() Method :fill() method is used when we want to fills eithe...
Hi friends,
Today I am going to tell you how we can upload images in rails using carrierwave gem. It automatically creates folder inside public folder and uploads images there. You can also customize the upload location. Here is the step-by-st...
This blog will help you to setup a navigation bar at the bottom side of screen in which you can define maximum three to five top level view of an app. These all view can be directly accessed from any where in the app. If we are putting maximum fi...
Hi Reader's,
Welcome to FindNerd, today we are going to discuss how to use focus() Method in Jquery.
Basically focus() Method event when an element gets focus with selected by mouse to it.
So we can say that ...
There are different types security risks for web application:
Some of them are:
1. SQL Injection
2. Broken authentication and Session management.
3. Cross site scripting
4. Insecure Direct Object References
5. Security Misconfiguration
...
If you want to implement SMS gateway using php.It's now very easy. Use clickatell SMS Gateway.
To implement clickatell SMS Gateway you have to follow below simple steps.
Step 1: Just go to the clickatell website.The url of clickatell si...
Hello readers, In this tutorial I will guide you to "Disable cache for particular section in W3totalcache Plugin in WordPress".
W3 Total Cache, also called W3TC, It is a very famous plugin of wordpress as with this we do not need to ...
Sometimes we need to validate an email address using regex in our script in automation.
In the below code I have used "^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@" + "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$" pattern whic...
Push notification plugin supports receiving notification in your phonegap application. It can also handle the notifications received. It supports multiple platforms like android, iOS, windows.
Installing the Plugin:
You have to run the foll...
I have written a python script b making use of trie data structure to show the longest concatenated word and second longest concatenated word from a words list attached. However, I am getting a wrong count of concatenated words. Can anyone please...
The “Same Origin Policy” is an essential theory in web application and introduced for security reason, It ensures that scripts contained in a first web page to access data in a second web page, but only if both web pages have th...
Hi friends,
Few days back I was facing difficulty in integrating recaptcha with rails so once after integrated it and I though it would be helpful for you guyz, if I mention it step-by-step as I did.
1. Open your Gemfile and add this code:
&...
Matcher object can be created after invoking the matcher methods which interprets the given pattern and perform the match operation. Matcher class implements MatchResult interface. Matcher class do not have public constructor.
Below are the me...