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

Relationship with modals

Defining One to One Relationship To define a situation of one to one relationship in modals we think of a situation where we store information about authors and books. This means that book has only one author this is one to one relationship. T...

Namespace in C++.

Namespace In C++ two variables with the same name are not possible in the same scope i.e a name given to specific type or function represent one entity in a particluar scope but with namespaces, there is a possibility to create two variables o...

update data using get method

update and delete using get method i have this code to update data from my database i have no error reporting but he's not updating  any data can you help me with that   my database and my code -- -------------------...

How to get last query executed in Cakephp ?

Get last query run in Cakephp 2.x : There is a situation when we need to check what was the last query which was executed in Cakephp. My purpose for writing this blog is to provide you the solution for this as I was also stuck here. I wante...

CONVERTING DOC FILE TO PDF IN CAKE PHP

In order to convert .doc file to .pdf file in cake PHP I have used ZEND library here. Following steps are needed to be done: You need to make sure SOAP extension is enable on your server. Use ZEND library as third party. Put ZEND library ...

Qimage Component

In CakePhp we have a component called Quick Image Component or simply Qimage for uploading and manipulating images.   Some of common methods that are used : copy: to copy the uploaded images. resize: to resize an image. crop:...

How to apply image in the checkbox using CSS

Hello Readers, Here is simple line of code that will be useful for applying different color in checked or unchecked state or User can apply different icons to it, This will be only possible using HTML and CSS, User can see below how these line of...

Tree structure in cakephp

When you want to store a heirarchical data in the database table, then we use the tree structure in cakephp. For e.g : When you need to form a heirarchy of categories & subcategories like:- My Categories Fun Sport Sur...

Tier Price in Magento

The tier pricing allows us to apply discount from the product detail and catalog list pages. This discount can be applied to the specific type of customer group or store view. The calculated quantity discount in tier pricing on ...

Stylish tool tip display on hover of an element with the help of jquery

How to use stylish tool tip on hover of an element with jquery To use the jquery basic tool tip you have to first include the following basic jquery file with another two. One will be use for jquery tool tip effect and other for tool tip css...

add class event

add class( ) event is used to add class in a element during run time.It helps in animating designs.Through this we can change the property during run time.   <!doctype html> <html lang="en"> <head> <meta cha...

Autocomplete form feild using PHP and jQuery

As we see in many of the forms in different websited that we just type a letter then the form automatic start guessing the the test or word we want to write in the feild. In this tutorial we will learn how to do autocomplete functionality using a...

How to convert your html page to pdf using fpdf in cakephp

Some time we need to convert the html page to pdf dynamically. Like we are getting some form filled and then we want the data to be converted to a pdf file that is downloadable by the user. We use fpdf for that in cakephp. fpdf is basica...

Wordpress: Create custom fields for post type at admin end & fetch them at front end

Create custom fields for post type at admin end and fetch them at front end in Wordpress The below code will create custom meta box at post type at admin end. You have to put the following code in your theme's function.php file if you want...

Installation of cakephp

Easy way to install cakephp: Hello Readers. Here is small blog  on how to install cakephp. Cakephp is very fast and easy to install. The minimun requirements to install cakephp  are a web server and  a copy of cakephp.  ...

V-Model: Advantages And Disadvantages

V-Model stands for the ‘Verification’ and ‘Validation’ Model. Same as the waterfall model, V-Model also applied as a consequent life cycle model. In the V-model, every stage should be accomplished ahead the next stage star...

Scope Resolution Operator PHP

In Programming language we use the scope resolution operation in different ways. Here we are taking about the its uses in PHP. PHP is easy to use and manage. Scope resolutionary operator is also known as double colon. This is basically a operator...

Limit Keyword in SQL

By default, all results that satisfy the conditions specified in the SQL statement are returned. However, this may not always be what we want, as sometimes we only want to retrieve a subset of records.   In MySQL, this is accomplished ...

Installation of Yii 2.0 Framework

Hello Friends, My first blog on Yii Framework Yii : A Futurisitic Framework was about an introduction of Yii 2.0 framework and its features. To explore those marvellous features and to test them practically, Let's give a try to Yii 2.0 Framew...

Return multiple values with different datatype in Java

// A Java program to demonstrate that we can return multiple values of different types by making a class // and returning an object of class. // A class that stores and returns two members of different types class Test { int mul; // To ...

IFNULL Function

The IFNULL( ) function is available in MySQL, and not in SQL Server or Oracle. This function takes two arguments.     If the first argument is not NULL, the function returns the first argument. Otherwise, the second argument is...

How to set OR condition in Cakephp ?

Cakephp 2.*: OR condition I am writing this blog which will let you know how to set OR condition in Cakephp 2.*: Write following lines of code to use OR condition: 'User' => array ( 'conditions' => array ( 'OR' =&g...

Using unBindModel() in CakePHP

If we have to many tables in our project and we have many association between them. So whenever we use one of the model in our controller the other model which are associated with it , automatically get attached with user data . Sometime we do...

HashSet Class

HashSet Class: It extends AbstractList class and implements List interface. It uses hashing technique to store data. It contains only unique elements. We can use HashSet class by importing java.util package. Example: import java.util.*...

How can use Bitmap in android

  In the below exampl e I have added a image with the help of Bitmap. Bitmap is eventually created and displayed on the screen. By using simply bitmap a pixels of rectangle, each pixel can be set to a given color  but exactly what co...

Sidebar slider using javascript

On clicking a button a sidebar will be shown. This can be created by using javascript. Below is the simple code of displaying a contact form on click button. index.html <!DOCTYPE html> <html> <head> <title>Sl...

Gmail API C# code

hi , im working on a function that will save the attachment file in Email via Gmail using gmail API code(C#). but i keep getting an error that saying :  An unhandled exception of type 'Google.Apis.Auth.OAuth2.Responses.TokenResp...

How to use Sql Avg () Function ?

Hi Reader's,   Welcome to FindNerd, today we are going to discuss how to use  Sql Avg () Function in Sql  ? So, basically this function is used for returning the average of numeric column.If in a table there is null value t...

Hide ADD TO CART button from list page in magento

Hello Readers, Some times you need to Hide ‘Add to Cart’ button as per client requirement. So, in this blog i will show you 'how to hide ‘Add to Cart’ button from the List/Category Page. Go to /app/design/fronte...

Return multiple values in Java

Java doesn’t support multi-value returns but if all returned elements are of same type then an array can be returned which in turn is returning multiple values. // A Java program to demonstrate that a method // can return multipl...

php script help needed

using wamp server ive created a table called tbl_users which has columns user fname, lname, email and password. ive populated all these fields already. ii am currently using note++ and need php code that will create a login form that will accept ...

How to get IP Address in Cakephp?

How to get IP Address in Cakephp I am writing this blog which will let you know how to get client's IP Address in Cakephp. The simplest way for getting client's IP Address in core php is $_SERVER['REMOTE_ADDR']. Similarly it is...

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 hide a content on stacked Bar Chart below X - Axis

I have drawn a horizontal stacked bar chart using d3 js in a box frame on jsp page. But the stack bar chart is huge i.e. SVG content is so big that all the bars of the stacked bar chart does not fit in the box and I have to put auto overflow in t...

Create a Login Form With Validation

Hi All My Question is as follows. Create a login page for your project. The login page must:  a. Accept a user’s name, surname, email address and password. b. The password must be compared to a, e.g. hash “29ef52e7563626a...

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 (>) ...
1 117 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: