
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 create custom post type in WordPress
Custom posts type is used when we are making a new theme from html or want to add some extra feild in the made theme.Suppose we want to have a separate section for Trending News. By using Custom Post Types we can create a new custom news type of ...
Multiple Image Uploads in Cakephp
Hello Readers.! Here is a small blog on how to upload multiple images in database using cakephp.File uploading, nowadays is a very basic and common functionality. Here in this blog we will be uploading an image which will be stored on t...
Select DISTINCT records based on specified field from DataTable
This blog will help you when you need to select distinct records from a datatable on basis of selected columns.
Suppose we have a datatable which holds the employee records. This datatable has following columns
Name
FatherName
City
...
How to change the background of a html randomly and dynamically
We can change the color of the background of the body and of any part let the part be header or div. It can be anything.
We can change the background color of the html using the jquery in our html.
For that first of all we have to include t...
Blend Image in IOS
if you want add the custom frame on image like a border then
1- Add the GPU image Third party library to your project .
2- Use the image with imagename that you want to use as border image of originanl Image.
3- Framed image will the out...
How to upload multiple images in cakephp
For uploading multiple files first we have to download multipartfile master plugin file from http://www.fyneworks.com/jquery/multifile/ then we have to include its file into our code as shown below.
<script src="path/to/your/jquery....
Difference between $uses and $this->loadModel() in CakePHP
$uses:
$uses is used to load model in a controller. It defines which models the controller has access to by default. We can load multiple models easily using $uses. But it is not a good practice to load all models at once. Bes...
Waterfall Model: Advantages And Disadvantages
Waterfall Model:-
Waterfall model is the oldest model in the software development models. This model was the very first initiated between all the development models. This model is also applied as a consequent life cycle model. Waterfall model ...
What Are Some Faults In Pythons Language Design?
None of the language / software / framework is 100% efficient. It indicates that the features are prone to changes to carry improvement over the existing one. As like any other languages, Python has some of the faulty language designs...
AppData folder i.e. %appdata%
In Windows Application programming, many developers create the log file in the app directory which is not always available to a regular user and its not a good idea.
The log file should probably go in the AppData folder i.e. %appdata% as ...
Resolve LOAD DATA INFILE Error : "The used command is not allowed with this MySQL version"
This article provides the solution for the issue with LOAD DATA INFILE statement. PHP provides a lots of options to import data from text files. I faced this issue while I was trying to import data from a text file (data.txt) into mysql table usi...
Getting newest file from specific directory
If you want to get newest file from any specific directory, you can use the following source code:
C# code
FileInfo GetNewestFile(DirectoryInfo directoryInfo)
{
return directoryInfo.GetFiles()
.Union(directoryInfo.GetDirectorie...
Bind method
Bind method is used for attaching an event handler to a document.As shown below click,double click,mouse enter, mouse leave are event handlers directly attached to the document.
<!doctype html>
<html lang="en">
<head>
...
Methods in REST approach
REST (Representational State Transfer) is based on resources and actions. A resource can be an URL referencing a object or any entity on which we want to perform action for example: /listUser or /searchUser. Action can be one of the following:
...
Possible days in a date range using Javascript
Possible days in Date Range using Javascript
Hi friends,
In some cases we try to build a logic where for a case where we need to find all the possible days that are possible inside a date range for any use case like scheduling a meetin...
How to make ListView fragment in android
In the below example code I have created a ListView fragment app. In first step, first I have created list_fragment.xml layout here I have added a ListView and TextView. In Step second, I have added a fragment in actvity_main.xml layout and then ...
Background Color Change Randomly in javascript
In javascript you can change the background color of HTML page,It is very simple to understand.
Example:
HTML Code:
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body onload="backgroundcolor...
Node JS Installation and Create Your First Application Using Node JS
Here we are explaining about Nods Js features and how to create your first application using Node JS.
Node.js is a popular open source platform . It work in run-time enviornment for developing server-side web applications. Ryan...
Magic functions in PHP
Hello readers today we discussed about "Magic Functions in PHP".
Have you ever looked at the source code of open source PHP projects, you could have observed object methods that commence with a double underscore.
These are Magic F...
Convert Object to XML using JAXB
Hello Programmers,
A number of times, we need to cast our Java object into an XML or vice-versa. The turms are technically know as marshalling and un-marshalling. There are many different Java libraries to do the same in which Castor and ...
How to use Drush in Drupal
Drush stands for Drupal shell, which provide shell interface for managing Drupal sites. It is a useful command line tool to perform various admin tasks using just one or two commands in the terminal. It seems very complex for newbie but when you ...
Rails Scopes
Rails: Scopes
Rails is made for building applications rapidly. Scope is an another example that truly admires this feature. Its use can be explained by taking an example. Suppose you have a blogging site and you want to show everywhere only thos...
What Are The Different Types Of Software Development Models ?
Software Development Models
Software development models are the dissimilar approaches or techniques which are normally chosen for the development or evolution of any project according to the project’s objectives and goals. In the softwar...
How To Install and Use PostgreSQL on Ubuntu 14.04 ?
About PostgreSQL
PostgreSQL is a relational database management system. It is having advanced features so it is used in many small and large projects.
I am writing this blog which will let you know how to install Postgres on an Ubuntu 14.04...
Autoplay the Youtube video in UIWebview in iOS
if you are using the UIWebview and want to autoplay the video from url then just add the "autoplay=1" at the end of the url.
Here is the code:
NSString *url=@"https://www.youtube.com/watch?v=vs3sVrm_W4o&autoplay=1";
[se...
Creating contact form using HTML/BOOTSTRAP and CSS
If you want to create simple contact form using html/bootstrap and css, below example will helps you.
Firstly we will create the HTML form which will display basic form fields. It will ask users to submit their Name, Email Address an...
Static Keyword in object oriented programming in php
Static variables and methods is very useful feature in Php oops. We can access static method and variable outside and within class, without creating object of these class. Often, we hear about static class, but there are no class is static, actua...
Making a draggable element using jQuery UI
Earlier using javascript code to make an element draggable was very hard and moreover cross-browser version working of code was very difficult.
The following code shows how to make an element draggable inside its parent element by using ...
Linking models in CakePhp
CakePHP provides one of the most important features. It is the ability of the model to link relational mapping. With the help of association we link between the models in CakePHP.
We can define relations between different objects in our own ap...
Model Association in Cakephp
Defining relations between different objects in our application, for instance, a state have many cities, and belongs to a country , is termed as associations. Association establish a way to represent the database table relationship inside Cakephp...
$scope vs $rootscope
Scope is an object which is used to access the properties and methods defined in a controller. Every application has single root scope.
Though the difference between scope and root scope the availabilit...
How to find Redis Logs on Ubuntu?
This blog will let you know how to do troubleshooting in Redis. Redis logs are stored at location /var/log/redis/redis-server.log
To view the last 10 lines:
sudo tail /var/log/redis/redis-server.log
On Ubuntu 14.04 Redis log f...
How to modify PHP settings in Ubuntu 14.04?
Modify PHP settings
PHP settings can be changed and configured using php.ini file. This blog will give you few common examples.
In PHP applications there are some case in which we might need to allow for larger upload files. Such as videos,...
Flexible Box
In CSS3, flexible boxes or flexbox is a new layout mode. It provides the adjustment of elements on a page as expected, when the page design holds different screen sizes and different display devices.
It makes lots of tasks much easi...
How to create Frame animation in android
In the below example code. I have created Frame animation in android. Here I have created a Textview in activity_main.xml layout. After then I have created a new framanim.xml layout in drawable folder, In framanim.xml layout I have added fo...
Few Qualities Of A Good Software Tester
Hello readers…
As we all know that nowadays each organization is utilizing different- different technologies. All companies has their individual needs or requirements for the software which they are using. When these companies developed...
What is REST?
REST stands for "Representational State Transfer". REST is the architectural pattern of the world wide web. In order to focus on the roles of components, REST ignores the details of component implementation and protocol syntax. The co...
delegate and undelegate method in jquerry
delegate() method attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. The undelegate() method is a way of removing event handlers that have been bound us...
Login Form and Authentication Application with Server Side Validation in cakephp
A Login Form that uses cakephp auth component to login and logout and access is denied if user is not authorized.
step 1: users database table.
First create users table in your database:
CREATE TABLE users (
`id` INT UNSIGNE...
Centering element Vertically and Horizontally using Flexbox
Now this is the issue that we were facing form a long time. To align an element center horizontally we have been using margin: 0 auto and to align an element center vertically is even more difficult. But with the use of flexbox it is very easy.
...
How to Upload Image in cake php
Image uploading in cake php is a common task for building application and making it more interesting by using many images to the screen, so here is some line of code used for uploading an image and resize it according to user's need...
Search in cakephp
We can put a search box in our project by using the cakephp component.
It is very useful and can provide highly functionality across the controller.
All you need to do is include component in your controller and call component function to f...
Attributes That Increases The Link-Ability Of Your Website
Four Minor Attributes That Will Increases The Link-Ability Of Your Webpage:-
Enhancing your site for web search tools and building links has changed radically in recent times. In the past, search engine bots were your hotspot for connections...
What is Swagger?
Swagger an open-source specification and a framework for describing, producing, consuming, and visualizing RESTful web services. Swagger was developed for Wordnik for their developer use in development.
Swagger framework simultaneo...
Adding 'Forgotten Password' and 'Reset' To CakePHP
When you Login to a page, Sometimes you forget your password and want to reset your password. For this you have to follow followings steps to create forget password and reset to your form.
Step 1 : Create a simple login form in log...
How to edit user information in cakephp
For editing user information in cake php by clicking on edit button we have to first pass user id in URL by using below code in our view.
<?php echo $this->Html->link('Edit',array('action'=>'edit/'.$user['User']['id']));
...
cakePHP remember me login using Auth
If you select the tick in the ‘remember me’ box when you login in any web page with your Username and password, your login credentials will be saved in a cookie on this computer. This means that whenever the next time you log on to th...
How to shuffle an array
Hi all,
Shuffling an array means randomly re-arranging the content of an array .Shuffling algorithm can be used in many places now days like in card games, music player , media player etc.
Shuffling of an array can be done in two ways.
...
How to add a new column to existing database table in Magento
Sometimes we are required to add a custom field in our database table for our extension in magento. For this purpose we will perform it with the installer. But before moving we must have concept of creating a new module in magento, considering th...
Magento: Fieldsets in Config File
In this blog, i will explain how to convert quote object to order object using Fieldsets tag in XML config file.
<fieldsets> tag is only found in config.xml files. This tag is used to define attributes (fields) that will be copied from one...