
Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
How to check an Ajax request in Cakephp?
How to check an Ajax request:
I am writing this blog specially for beginners who are learning Cakephp. In order to check whether the request is through Ajax or not. This can be checked by enabling the RequestHandler component in AppController ...
How to check if record exists in Cakephp ?
Hello friends, welcome to findnerd. I am writing this blog which will let you know how to check if record exists in Cakephp 2.* . The best way to do is to use Model::hasAny
hasAny( array $conditions null ) : Returns true if a record that meets...
How to get the version numbers for Cakephp ?
I am writing this blog for beginners who are learning Cakephp. When you learn Cakephp then first thing that reminds is that which version are you installing Cakephp. To know the version of Cakephp let me tell you that there are two ways for getti...
What is block in magento?
In this blog, we are going to learn Magento blocks.
What Are Blocks in Magento?
Block is first class elements in the structure of Magento layouts, in Magento architecture. Blocks are powerful and flexible way to plug your content into alrea...
How to fork from Github to Bitbucket?
I was working on a project that was hosted on Github. My project was hosted on Bitbucket. Both of them uses git. Now I have to create a fork of project in my Bitbucket repository. In order to be able to get updates and without downloading and rep...
How to load models in CakePHP?
I am writing this blog for them who are new to Cakephp and learning it. In Cakephp there are three ways to load models:
First way is:
App::import(): It will find and require()s the file and in order to use it you need to be instantiate the ...
How to create module in Magento?
I am creating this blog which will let you understand how to create a module in Magento 1.*
There's two controllers you need to be concerned about. The module/frontName controller, and then the MVC controller.
Lets start and know how to...
How to install and setup SVN on Ubuntu 14.04 ?
Before installing SVN let us know what is SVN first. SVN (Subversion) is an opensource version control system. Subversion is used to store previous changes of your project like coding, documents, files. It is used to identify and track the change...
How to upgrade to Ubuntu 16.04 LTS ?
This blog will let you upgrade your system to Ubuntu 16.04. Follow the steps given below in order to upgrade your system:
Step 1: Backup your system
Before attempting any upgrade to your system, firstly backup your system
Step ...
Locators in Selenium
Use of Locator mostly depend on your application under test.
There are different type of locators in Selenium:
ID
Name
Link Text
LinkText
PartialLinkText
Xpath
CSS Selector
ID : This is most common and effic...
How to download the database dump from your live/test server
Sometimes our requirement is to export/download the latest database from live/test server.
We can easily create the dump on our server and then copy paste it from server to your local machine using Win-Scp.
But the issue comes when the...
Using super in ruby
With inheritance in ruby we can share parent class behavior to child classes. We can also override these methods in child classes.
A built-in function called super is provided by Ruby. This method allows us to call methods up the inheri...
Url.Action in MVC
While writing projects in MVC we need to sometimes send our URL to the action where the methods will be called.
So here we are about to discuss a property called Url.Action which is used to redirect and navigate the view to the parti...
Change the form action before submit
How to change the form action before submit on the basis of element/input field click.
The html sample code for form having radio button and submit button :
<form action="" id="myformID">
<input type="radio" name="ch...
Flexbox layout for Header Navigation
Here is another example of flexbox layout making Navigation bar responsive along the different sizes of the screen.
HTML CODE:
<ul class="navigation">
<li><a href="#">Home</a></li>
<li><a href=...
Combinators in CSS
Combinators, are ways to combine different selector into a new exact selector. A combinator explains the relationship between the selectors.
There are 4 types of combinators in CSS:-
descendant selector (space)
child selector (>)
...
How to rename a column of paginator sorting in cakephp?
This blog will help you to modify the column name of paginator sorting. I am writing this blog specially for beginners as I was also facing this small issue. If you want to rename the column then you need to pass second parameter as desired ...
Inheritance in Ruby
One of the fundamental aspects of Object-oriented programming is inheritance. Inheritance lets a class inherit properties from another class. Child class acquires behaviours from its parent class. This means the child classes will automatically h...
5 Useful jQuery Tricks for every Programmer
jQuery is a feature-rich JavaScript library. jQuery makes the things like animation,events handling, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
Here we are sharing some useful jQuery tricks that ca...
eq event
eq ( ) method in jquerry is used for indexing purpose.Given a jQuery object that represents a set of DOM elements, the .eq() method constructs a new jQuery object from one element within that set. The supplied index identifies the position of thi...
Export Into Excel in Rails
Export Data into Excel in Rails
Hi friends,
In my previous blog Import From Excel in Rails. I showed you how can we read excel records from excel sheet and store it into DB in rails. In this we will see how we can download the list in excel for...
How to toggle class dynamically using jquery
There are many times when we need to toggle the class dynamically.
Some time for changing the css.
Some time for adding html.
Some time to display html.
Some time to change dom.
That is all depend on your need. Now here I have trie...
Yii : A Futurisitic Framework
Hello Friends, As we know that PHP become one of the most popular web scripting language to develop dynamic web applications. With the advancements in technology, there are lots of frameworks introduced for PHP which provides different features. ...
Importing From Excel Files in Rails
Importing excel files in Rails
Hi friends,
Importing excel sheets and storing them into db is a very common usecase of applications. So here I am going to guide you to a step-by-step process of how to import records into db from an excel fi...
Functional Programming in Cakephp
CakePhp supports functional programming. Functional Programming in CakePhp is a criterion as are crucial, logical and Object Oreinted programming. In CakePhp everything resides inside a function, in the mathematical sense. The
conseque...
Multiple File Upload in cakephp
Multiple File Upload in cakephp by one user and save the images name in one column in database :
Hello readers, This is a small blog on how to upload multiple file in cakephp. This is very simple and useful code, hope this code...
How to create muliple fragment image display in common Frame
In the below example I have created a multiple fragment images use in common Frame .
In first step, First I have created a fragment_common.xml layout , here I have added four ImageView. After then I have created four new xml layout -...
CSV helper for exporting data in cakephp
We can use CSV helper for exporting data in excelsheet in cakephp.
For using CSV helper we have to follow simple steps.
Step 1:- Firstly we have to create a file naming CsvHelper.php and have to save it in our app/view/Helper directory.
...
Disabling Button click action using jquery and Html
Disabling Button click action and Enabling when checkbox is checked:
We can disable button click action easily using Html and can enable it using jQuery.
Html code to disable a button:
<h1 class="redeem-head">Redeem Portfolio<...
Simple Spring MVC project
Dear programmers,
Please follow the following steps to create a simple Spring MVC project in your favourite IDE.
1. Create a dynamic web application (maven-archetype-webapp) project.
2. Add Spring dependencies :
...
Overriding Magento Core Files
Hello Readers,
Sometimes you need to do some changes in magento core files. It is a good habit of every Magento programmer to override the core file instead of making change in core file.
In this tutorial, i will explain how to override magento...
How to declare pagination limit in cakephp global ?
This blog will let you know how to declare pagination limit in cakephp globally. For new beginners who are learning cakephp 2.X, I am writing this blog especially for them. If you have created multiple pages which contains pagination and at last ...
Delete an azure blob by blob Name
We can delete any blob from our storage by identifying it with its name.
Here is the sample code for deleting a blob from azure storage.
StorageCredentials creds = new StorageCredentials("StorageAcocuntName", "StorageAccountKey");
Cl...
PHP Magic function Construct and Destruct?
Hello Readers, today we discussed about PHP Magic function Construct and Destruct.
The most frequent of PHP's magic approach is __construct() method and __destruct(). When you've been following along with the Building Cribbb series I...
Magento Theme Structure
Magento theme designing is complicated unlike other cms wordpress. If we look into the magento theme structure we will notice that it contains two main folders app and skin.
The two primary elements of Magento Theme are :
&nbs...
Implementing CORS in NGINX
Allow CrossDomain Requests on NGINX Based Server
Hi friends,
At some point because of some requirement, we might want to hit one server's api from another server's javascript or so, and we get errors like:
http://somedomain.com is no...
Default copy constructor in c++
A copy constructor is a special type of constructor by using which we can initialize the data members of a newly created object by existing objects. The compiler provides a default copy constructor.
Syntax of calling a copy constructor is:...
TimelineLite in AS3
In starling we can easily used greensock library. Sometime we need to add two property at the same time on different objects, By using TimelineLite we can do this. here is the code which represents the following.
var timeline:TimelineLite = ...
How to export data in Excel sheet from database
Hello Readers!
Here is a simple line of code to generate an excel file of data fetched from database. Users benefits with the compact and secure form of saving data.
Firstly create a helper file in view/Helper folder and paste the...
To check a number is perfect square or not using addition operation only.
The problem is that a positive integer n is given and check if it is perfect square or not using only addition operation.
// C++ program to check if n is perfect square or not
#include<bits/stdc++.h>
using namespace ...
How to symlink a file in Ubuntu ?
First of all let us know what is symlink. Symlink creates a symbolic link to the existing target with the specified name link.
In PHP we passed Parameters in the following way:
target: Target of the link
link: The link name.
I want to...
Php late static binding
Hello Readers,
Today we will discuss about PHP 5.3 new feature that is "Late static binding".
PHP 5.3 has introduced a new feature called "late static binding". late static binding can be used to call a class i...
Data Consolidation Process in MDM hub console
MDM "The Master Data Management" as the name suggested MDM is set of tool and process which is much secure used by enterprises regularly maintain their data and information. It is helpful in maintaining data easily and keep track of data for easy...
Flexbox layout example
In the previous post i have shown how you can make element align horizontally and vertically using flaxbox layout.
In this post i will show you an simple example of html responsive page using flexbox.
Html Code:
<div class="wrapper"...
SELECT TOP Clause in MySQL
The SELECT TOP clause is used to return specific number of records with thousands of records. It is used to select top N number of records from a table. We can use number or percent to select record.
TOP clause is not supported by all the data...
How to export data in PDF file from database
Data fetch from database according to the user's entry in the database table in the pdf format, benefit of using this format for saving our data in compact and secure form, this will help to user to store the data in the file. Here is simple ...
Drupal 7: How to add multiple location to a single node with gmap and location?
For this you have to install these modules :-
views
geophp
geocoder
geofield
addressfield
libraries
&...
How to use SQL Max () Function ?
Hi Reader's,
Welcome to FindNerd, today we are going to discuss how to use SQL Max ( ) Function in Sql ?
Basically, SQL Max () Function is used to get the maximum value from the selected field.
&nb...
Modules
One of the most powerful feature in ruby is module. Modules are like classes but can not instantiated. Module is used for two purpose:
1. namespacing
2. mixin
Namespacing
A class per can be wrapped inside a module to...
How to implement SLIM APIs with Database connectivity?
To connect slim apis with database follow the below steps:
1) Setup the slim enviornment in you system using the below URL.
http://findnerd.com/account/#url=/list/publishnode/18162/
2) Create a database name "slim".
3) Creat...