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

How to add Gradient effect to UIButton ?

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

Create a extension class in swift of singleton

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

How to reset admin password from database in Magento?

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

Create a Singleton class in swift

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

Difference between reset and drop in rails

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

Gridview is only adding one item. However i want it to add both items

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

control structure

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

Class Methods And Object Methods

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

Calculator using Html Css Jquery

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

Model View Controller Architecture (MVC)

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

Reading content from file and saving it to database in Rails

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

form_for method in rails

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

Unwind to ViewController in swift

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

Making a simple JQUERY slider

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

How to add html tags in appSettings of web.config file

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

How to give bottom border to your textField

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

How to integrate pdf/dompdf Export option with CakePHP

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

How to make the Zooming of the web page disabled?

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

Make Paypal Payment in iOS

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

Xpath in Selenium

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

Facebook OAuth Authentication using Java

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

How to connect MySQL database using MySQLi procedural function

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

Custom Admin Module Hello World in Magento

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

Manual and Automatic bootstrapping in AngularJS

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

How to change any attribute value of product in magento

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

How to generate native jar to build ANE ?

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

Facebook Graph API explorer Tool

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

Sendgrid using laravel 4.x

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

how to avoid duplicate data in php mysql ?

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

validations in ruby

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

Select Vs Pluck in Rails

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

Variable Types In Ruby

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

The Grid system in Skeleton Framework

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

Scopes in rails

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

Enumerators in Ruby

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

Export data into excel sheet using CakePHP

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

Introduction of Realm (A replacement of SQLite) for Android

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

javascript:How to insert values in an array

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

Image upload using carrierwave in rails

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

Android Material Design Bottom Navigation

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

How to use focus() Method Jquery ?

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

Types of Security risks for web application

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

Implement SMS Gateway just in 5 Minutes using php

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

Disable cache for particular section in W3totalcache plugin in WordPress

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

How to Find or Validate an Email Address using regular expression

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

How to implement push notification plugin in phonegap

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

Wrong count of concatenated words from the python script

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

Same Origin Policy

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

Integrating Recaptcha in Rails with Devise

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 class and Matcher object of Regular Expression

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