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

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

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

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

Lambda ,Block and Proc

About lambda: Lambda are just like objects. It is just like a regular function whose last statement is it's  returns value. Syntax for lambda :  lambda = lambda {} Example1: l = lambda{"hello"} puts l.call ...

Access Controls with examples in Ruby

Access controls refers to the methods which allow you to set the access to classes, methods and other members. They are used to encapsulate the components so that we can maintain security of these methods throughout the project. Ruby gives us ...

Difference between a Symbol and String in Ruby

A string is placed either within  single quotes i.e ('') or double quotes i.e ("") whereas on the other hand, a symbol is preceded by a colon i.e (:). A string has a variety of methods to use but contrary to that a symbo...

Rescue Exception

An exception is an instance of the class Exception or a descendant. In ruby to rescue exceptions we do something like this:   def process_request! #some code here rescue Rails.logger.error { "#{e.message} #{e.backtrace.join(...

array and hashes in ruby

Ruby array is a list of elements that can be of any type either string or integer. Hence, In ruby it can be integer or string.  we can declare array by placing the elements inside the brackets like;- arr = [1,"array",2,3,"h...

How to Get 250+ Free Retweets without using Twitter Ads Part 2

In my previous, we discussed about “How to get 250+ Retweets without using Twitter ads” and now I am shedding more light on deep secrets of getting 250+ retweets on your tweets.   Let’s Begin!   Use t...

Creating Parent Child theme in Wordpress

Hello readers, In this tutorial I will guide you to "Create Parent Child theme in Wordpress". The web that modifying a theme and even slightly prevents you from updating it to more recent version in the future, because in case you tr...

How to Get 250+ Free Retweets without using Twitter Ads Part 1

You login to your twitter account and check how many Retweets and likes you have got on your 5-day-old post. You are left scratching your head after seeing only 5+ odds or even less. Has this ever happened to you? If yes, then you have come to ...

How to add placeholder inside UITextView

To add placeholder UITextView first take outlet of UITextField ex- @property (weak, nonatomic) IBOutlet UITextView *yourTextView; Then follow these steps 1. In viewDidLoad add these line of code self.yourTextView.text = @Please type he...

Creating Cookie in cakephp

Hello Readers this is small blog on creating cookie in your cakephp application. Cookies are a mechanism for storing data in the web  browser and helps in  identifying  users. Cookies are files that contain information about the...

How to create your own helper in cakephp

In our application there are  situations, where we need presentational logic which will be shared between many views, elements, or layouts. For this  purpose cakephp provides view helpers. Some of them are: CacheHelper,  Form...
1 96 269
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: