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

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

How to configure opencart 2.2.0.0 in your localhost with Virtual host

Opencart is one of the most popular E-commerce Framework in PHP. Opencart is easy to develop high level E-commerce websites. It's follow nicely defined MVC structure. This tutorial is belong to who are looking for best E-commerce solution. ...

Difference between location.href and location.replace

There are several methods in javascript for redirecting a user to different page in the current browser window. Two of them are as follow location.href location.replace location.href:- If we use following script then the user will...

How to delete user by using cakephp

For deleting user information in cake php by clicking on delete button we have to first pass user id in URL by using below code in our view. <?php echo $this->Html->link('Delete',array('action'=>'del'.$user['User']['id'])); A...

How to create cron job in liferay

Cron job is a UNIX tool, its scheduling capabilities are powerful and proven. The CronTrigger class of cron is based on the scheduling capabilities.   CronTrigger uses “cron expressions”, which are able to create firing sch...

SLIM and basic implementation using SWAGGER Editor

Slim is a micro framework in PHP which is used to write powerful web applications and APIs. Slim is a simple framework that care for core necessities of a web application, receiving the HTTP request, dispatch the appropriate code and return ...

Improve flexibility of ASP.Net application with the help of AppSettings in Web.config file

In asp.net application, we Web.config file by default when we create an application. This file is used for keeping various configuration setting related to application i.e. Framework Version, Entity framework settings etc. Other than these config...

Export Selected Data into Excel Sheet or CSV file in CakePHP

Simple code to fetch selected data from database table in excelsheet in cakephp: Step 1: To achieve this we will use csvHelper class. Now make a file named as CsvHelper.php in your app/View/Helper directory, then add the following code written...

how to install wordpress on local server

To install the wordpress on the local server you need first a local server like xampp. XAMPP is a cross platform server for Apache, MySQL, PHP, Perl. It a ligh weigh server which can be used to install the wordpress. 1. First you need is...

Multiplelanguages Links in Top Up in Magento

Sometimes we are required to add Multiple languages to our magento site. To have different languages in our site we must include the language translation package from the magento site and follow the below steps : 1. To Create multi store ...

Lambdas (Anonymous functions)

The concept of lambda expression was introduced after coming the PHP version 5.3. We use generally any expression to make code cleaner and intuitive. and lambda expression helps to perform the same concept.   Lambdas (Anonymous functio...

How to remove "this email was sent using the cakephp framework"

I was facing issue when I was sending email, then I was getting message in the footer of the email. Message is "This email was sent using the cakephp framework".  In order to remove this message you need to make sure that you have ...

How to add new payment module in Magento

In this tutorial, I’m going to show you How to add a new payment module (Payment Gateway) to your existing Magento Installation which will accept credit cards when the order is placed and capture order ID in payment record. Lets start by...

Reading exception message while sending message using Twilio API

While using the Twilio APIs, we may get exceptions while sending the messages. i.e. If the phone number is not correct or twilio does not provide service in the recepient country or any other reason. In the case of exception, we must let the u...

Count the number of matching characters in two strings

There are different ways to compare two strings in PHP whether by using built-in functions like strcmp or strcasecmp of PHP or using equality operator(==). None of these methods return the number of matching characters in both the strings. Thi...

Transaction in Rails

To maintain the data integrity sometimes we need the changes to database to occur when all of the actions have successfully finished.  One of the examples is funds transfer from one account to another. One account should be debited and anoth...

Rails: Time ago in Words and its Customization

Rails: Customizing Time Ago in Words Hi friends, Whenever something is published to a site, we see in their posted time, it is written like about 2 minutes ago or about an hour ago. These kind of sentences displays how much time before the cont...
1 118 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: