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
CacheHelper In CakePHP
Cakephp cache used to store cache of entire layout and views. It store cache in tmp/cache/views/ folder. for use cache helper we need to use the below code in our controller
var $helpers = array('cache');
and we can also give cache time ...
Getting started with android
This Video Tutorial will guide you To Get Started With Android.
First Download the Android Studio from below link:
https://developer.android.com/sdk/index.html
Change the default database file location of mongodb
Follow the steps from mongodb official site for installation of mongodb .Here I will talk about mongodb 2.4 for ubuntu 12.04 and we will keep our database file in the Amazon EC2 EBS(Amazon Elastic Block Store) volume.
Create the data directory...
Passing a DataTable Parameter to Stored Procedure from C#
Some time we need to pass a tabular form data to our database.
one option is to using loop in Datatable and on every iteration we have to make a Database call.
But this approach is not too good and also it's a time taking and decrease our appli...
Draw Stroke Text on HTML Canvas
Draw Stroke Text in HTML : In this article i will show you how we can draw Stroke Text in HTML canvas. To draw Stroke Text in web page we will use Canvas API, we will draw the Stroke Text on canvas using the strokeText() method. Following is the...
Draw Text on HTML Canvas
Draw Text in HTML : In this article i will show you how we can draw Text in HTML canvas. To draw Text in web page we will use Canvas API, we will draw the Text on canvas using the fillText() method. Following is the simple example to draw Text on...
Draw Line in HTML
Draw line in HTML Canvas : In this article i will show you how we can draw line in HTML canvas. To draw line in HTML we will use Canvas API, we will draw the line on canvas using the lineTo() method. Following is the simple example to draw line ...
Draw Rectangle in HTML Canvas
Draw Rectangle in web page: We can now draw the graphics in web pages. Html provides the Canvas API for drawing graphics. Html5 has the <canvas> tag to draw the graphics using JavaScript. Using <canvas> element we can draw rectangle, ...
Google Map integration in PHP to Calculate Latitude and Longitude
This code will calculate the latitude and longitude of the place in background on entering the place name.
For integration of Google map to calculate Latitude and Longitude major script is :
<script src="https://maps.googleapis.com/maps/...
How to fetch data from server using AngularJS
To fetch the data from remote server we have to make the ajax request to the server which will return the data in our desired format, and to do that in AngularJS we can use $http service which helps us to communicate with remote server.
To imp...
Visibility Scope Of Variable And Functions
There are three type of visibility scope:
Public
Private
Protected
PUBLIC:
Variable or function of public scope can be accessed throughout the program.
PRIVATE :
Variable or function of private scope can be accessed only with...
How can I make a redirect page using jQuery?
To redirect page using jQuery we can use the various methods such as
In JQuery we can use location object which as multiple attribute such as host, hostname, href, origin, protocol etc, and we can set the href attribute to our custom URL, w...
Add prefix to urls in CakePHP
CakePHP has power to do a lot with conventions by using routes. Its additionally possible to utilize custom prefixes adjacent to your admin routes for extra flexibility. Prefix routing can be enabled from within the core configuration file by set...
How to make Numbered and bulleted list in HTML Editor with JavaScript
Hello all,
Working with HTML Editor we wanted to give a functionality to user where he can select any element from the html editor and can convert it into Numbered and Bulleted list.
We added this functionality by following these steps : -
...
How to validate dynamically genetrated form using javascript
If you want to validate the dynamically generated form using javascript:
You can use this code :
HTML :
<div id="example">
<form id="newForm">
<input type="text" name="email" id="email" value="mail" /&g...
Formatting the date from JSON and working with it on client side
"Asp.net formatting a date from JSON and working with it on clinet side"
While dealing with JSON I got an issue that dates in the JSON are serialized as plain strings.
The solution which I go...
How to delete file in Java
Hello readers,
To Delete a File in Java is not a big issue, you don't need to do any rocket science for this.
So if you want to delete the file in java here below is the method.
To delete the file, you just have to issue the File.delete(...
User Acceptance Testing
What is user acceptance testing:-
It is the final step of testing before hand over of the application to the user. It is done by the end users or customers who will use the application. Its goal is to achieve confidence in the system. Before per...
CSS filters
Hi all,
This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an expe...
Asp.Net Webforms vs ASP.Net MVC
Asp.Net MVC is currently used and much embraced architecture in software development. It offers a layered approach to development by it's default configuration, and facilitates unit testing...
Design Patterns In .net
Design Patterns:-
Design Patterns provide generic, reusable designs that solve problems at the design level. A design pattern does not define code and is not specific to a given programming domain. Instead, it provides a proven, tested solutio...
Warning of Saving Changes in not permitted in SQL
Warning: "Saving Changes in not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that cant be re-created or enabled the option Prevent saving changes that r...
Liferay: How to configure MySQL in Liferay?
We can configure MySQL in Liferay very easily. The configuration for MySQL is done in the properties file named as "portal-ext.properties".
You just need to follow the below steps:
If portal-ext.properties is not available then you can m...
Liferay: Disabling Reset password screen after Registration
You can disable Reset password screen that comes on first login after Registration. Use the below steps to hide the Reset password screen:
If portal-ext.properties is not available then you can manually create portal-ext.properties file into...
Difference between shift(), unshift() and push(),pop() methods
Writing a JavaScript code in correct approach can be fun instead of terrifying. In this tutorial we will see shift(), unshift() and push(), pop() are the methods of JavaScript that allows us to add remove elements.
Lets discuss all these m...
Convert JSON to Java Object
How to convert JSON to a Java object: In many application we use web services and those web services deals with the JSON object, so when those web services need to communicate with our web application we need to convert those JSON objects to Java...
How to use new fonts in iPhone SDK
Following are the steps to add new fonts which not available in iOS sdk.
1) Download the font file and add that file in resource folder
2) go to App- info.plist and add key "Fonts provided by application" and in value add the name in that fon...
Get Instant Solutions to PHP Programming Problems
Hi Guys,
Do you have any PHP Programming Problems? Or Stuck in a PHP Language Issue? Just visit FindNerd Community Forum and get answers to all your PHP Language Queries on PHP Developer Forum. In this video blog, I am going to explain, how ...
optionally using iPhone OS 3.0 features in a 2.0 compatible app?
We can check if that specific method available in this version of sdk or not.
For example there is method AVCaptureAutoFocusRangeRestriction of class AVCaptureDevice which is available in iOS 7 but not in iOS 6. So to check we can do the follo...
Get Instant Solutions to Java Programming Problems
Hi Geeks,
I am feeling excited to create this video blog about the FindNerd Community Forum and its special features. In this video blog, you will learn how you can handle Java Programming Queries & Language Issues. There are many pro...
C++ Interview Questions and Answers Part 3
In the previous part, C++ Interview Questions and Answers Part 1 and Part 2, we have explained some basic questions of C++. This part is in continuation with the previous C++ Interview Questions and Answers tutorial. In this part of the tutorial ...
Is Go a solid choice over Ruby on Rails or Django?
GoLang referred as Go programming language developed at Google in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson.
It is a statically-typed language with syntax loosely derived from that of C, adding garbage collection, type safety, some dy...
C++ Interview Questions and Answers Part 2
In the previous part C++ Interview Questions and Answers Part 1 I have explained some basic questions of C++.This part is in continuation with the previous C++ Interview Questions and Answers tutorial. In this part of the tutorial we are proceed...
Installation of PHP and Apache on Ubuntu-Tutorial 1
This video tutorial gives the introduction of what PHP does, why it is used and some basic advantages of PHP.
This Video will also gives you an introduction to setting up the development environment for PHP and Apache on Ubuntu.
Below are s...
Woocommerce Or Magento - What to use and when?
Magento and WooCommerce are currently the top two frameworks in use for e-commerce websites over the web. Both are backed by strong open-source communities developing plugins for various functio...
Solution for java.lang.UnsupportedClassVersionError bad major version at offset=6
If you are deploying application on Tomcat, JBOSS, or IBM and following error is displayed when you call the application:
SEVERE: Error deploying web application archive MyApplication.war
java.lang.UnsupportedClassVersionError: (com/siperian/...
Liferay: How to create Custom Action By Hook?
We can modify Liferay JSP, services, properties by using Hooks. One of the main use of Hook is we can implement our Custom Action.
So what is Custom Action?
When you see portal.properties in your liferay source code. You will see there...
How to Get Request URL and other details
Following JavaServlet will give you Request URL and other details. You can choose which method suits your coding:
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.Htt...
Get Instant Solutions to C Programming Problems
Hello Nerds,
In this video blog, you will get to know how you can get rid of C Programming Problems & Language issues. I have seen many programmers who get stuck in C Programming queries during the Web Development Projects and wasted t...
How to open big text files in Windows
Text editors like Notepad++, Jujuedit, and TextPad generally have 2 GB limit. If you have big files to open like 5GB file, they will hang and you won't be able to view them.
Hence if you have requirement to open text file (for example log file...
External Dependencies in Maven Project
Dear programmers,
There may many chances when you try to add external dependencies in your Maven project. Let's learn this how we can add our own jars or external jars in a project with an example.
There are many Maven plugins available, A...
Liferay: Hiding the dockbar
You can hide Dockbar from you site by creating Theme. Use the below steps to hide the dockbar:
1. Create Liferay Plugin Project of type Theme.
2. Copy and paste template folder from docroot/ to docroot/_diff/ folder.
3. Now comment the b...
How to use parallax scrolling?
HI all,
Parallax scrolling is very popular now days in website making. it is not very difficult you just have to understand some basic method to use it.
Below is an example which will shows you how it works.
HTML:-
<section class="...
Explain portlet.xml, liferay-portlet.xml and liferay-display.xml
When we create a new portlet in Liferay, the folder structure is created as below:
/PORTLET-NAME/
build.xml
/docroot/
/css/
/js/
/WEB-INF/
/src/ (not created by default)
liferay-di...
How to give background color to superview only with alpha less than 1.0
Hi,
In many cases we have to give a background color to a superview with alpha less than 1.0. If we give color from XIB/storyboard to a superview with alpha 0.4 then it assigns the alpha 0.4 to its subviews also.
What if we need to give al...
How to create a custom error page
In Cakephp we have some default error pages but we can create our own error page. Here we will create a custom error page to show error if controller not found. If controller not found then we will show 404 error page. Below are few steps for cr...
Using multiple database connections in CakePHP model
Hello Readers,
Till now we may develop our appication with single database . Is their any ways to integrate our application with multiple databases ? . Yes we have.
There are methods to use multiple databases for development and for produc...
How to extract HttpServletRequest object from Portlet ActionRequest object?
When we submit a form or make an AJAX call we need to extract HttpServletRequest object from Portlet ActionRequest object to get the parameter values in action method.
By writing the below lines you can easily extract HttpServletRequest object...