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
Use of Transaction in Mysql
Transaction is very useful in large rich applications such as eCommerce, Real Estate etc etc. It is mostly used in Customer Relationship Management (CRM), Enterprise Resource Plan (ERP).
What is Transaction?
When we need to execute more than ...
C++ Interview Questions and Answers Part 4
In the previous parts C++ Interview Questions and Answers Part 1, Part2 and Part 3, 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 tut...
Tomcat Address already in use: JVM_Bind
If you are facing following issue while starting tomcat:
SEVERE: StandardServer.await: create[localhost:8005]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.TwoStacksPlainSocketImpl.socketBind(Native Method)
...
CSS Units
pre{padding:4px 8px;border-radius:1px;}
Hi all,
It is always challenge to manage the size (mainly font size) in css. usually we use media query to measure all that. But here is some other CSS Unit which helps to manage sizes, so I am goin...
How to store constants in laravel 5.0
In laravel 5.0 the way to define constants and use them through out the project. Following are the steps to accomplish it:-
Step 1st :- Creating a separate file under /config folder named as constants.php ( it can be any name) for storing all ...
How to use Relative Layout in Android
Hello again,
This video tutorial will guide you how to use Relative Layout in android.
The Relative Layout lets you define the position of each child views relative to the others and to the screen boundaries. It provides the great deal of f...
Add Input Accessory View above UIKeyBoard in iOS
If you come across a requirement where you want to add a custom view just above the UIKeyBoard, then you can use below code to do that.
If you want to show custom view on tapping inside any UITextField or UITextView, Write below line of code i...
Scaling of entities in ImpactJS
How to use Scale plugin in ImpactJS ?
In the lib folder create a new folder named Plugins and put the "scale.js" plugin in to this folder.
Include the plugin to the requires in any entity.
.requires('Plugins.scale')
Now if we want t...
Window Service
"Window Service: An Overview"
What is a Window Service ?
Windows service is a computer program that operates in the background and does not have any interface to the user.It helps to create a long-running executable ap...
Redirect not found page to home page in CakePHP
When we try a wrong URL in cakephp then it displays an error page with error message:
"Controller class could not be found".
We can override this message and also can handle this exception using Error.php of cake. We can override this func...
PHP File Functions
PHP Copying, Creating & Deleting files
Copy file using PHP:- In PHP when we want to copy our file from source to destination then we have to use following syntax.
Syntax:
Bool copy (string $source, string $destination);
Example:...
How to make the onchange function in OpenERP(Odoo) ?
In onchange function first we have to go in .py file (python file)
After that we have to decide where you want to give onchange function and then give attribute on_change to that field.
Like below python code in py file :
def oncha...
Singleton class in Swift
Hello reader's !
The singleton class ,which is responsible to instantiate itself, to make sure it creates not more than one instance, in the same time it provides a global point of access to that instance. In this case the same instance can b...
Approximative sibling
pre{border-radius:0;padding:5px;line-height:25px;}
Hi all,
The approximative sibling or adjacent sibling combines two selectors. + works as combinator.
For example:
p {color : green;}
p + p { color:red;}
HTML:-
<div&g...
Screen sliding using css
Hi all,
Below is an example of slide screen using css.
HTML:-
<input type="checkbox" id="opci" />
<div class="baseM">
<label for="opci" class="nombre"></label>
<div class="nextSlide "></div&g...
What is Stylus ?
Stylus is a dynamic style-sheet language, it's design influenced by Sass and LESS. It makes your development more faster, smarter and more powerful then ever before. you can change your all color scheme in just a single line of code.
Quick and...
Handle Sliding Tab layout properly
Hello guys, as we all have worked on Tabs widget and Tabs host but now Tab widget and host have been deprecated. Android lollipop provides a new interface to implement Tabs that are SlidingTabLayout.java & SlidingTabStrip.java classes. These...
Difference between Include Directive and Include Action tag in JSP
Hello reader's lets know the "Difference between include directive and include action tag in JSP(Java Server Page)".
Include directive and include action tag both are widely-used for including a file to the present JSP page. However you will f...
Bar Code Scanner using Zbar library in android
There are so many libraries like Zbar,Zxing Red-Scanner that are used for bar code scanning.
I am explaining here Zbar library integration for
bar code scanning. Zbar is open source. It is fast,simple as compared to Zxing.
First of all you h...
How to install OpenERP (Odoo) in windows server 2012 R2 ?
Step-1 Go to the link-> http://nightly.odoo.com/7.0/nightly/exe/
Step-2 Select->latest exe file like-> openerp_7.0.20150622.exe -> (Latest Date) 03:29->129251691
Step-3 click on Downloaded exe->select the languages->cl...
How to improve your vocabulary without improving your laziness?
Do you find yourself frequently picking up your jaw from the floor when someone comes and unleashes a barrage of awesome English vocabulary at you while you're still fumbling with "errrs..." and...
Form authetication in MVC
Here I will try to explain the form authentication in MVC.
Step-1 Let's start with a new MVC project, following steps:
File > New > Project, a dialog box appears, select "Web" from the "Template" option, then on right side select "ASP...
How to add mouseleave, mouseenter and click event using jQuery
Hello,
I want to change the image when entering and leaving mouse to it. But the image should stay there when clicked. I have an image attribute source that is replaced on mouse enter and mouse leave event. But image is also changing after ...
Difference between "Java Constructor" and "Php Constructor".
Hello reader's
Today we will discuss about "Difference between Java Constructor and Php Constructor".
Within Java we are able to override the constructors within one class. Constructor is recognized as function getting same label in particul...
How to access static variables in PHP and How to access static variables in Java
Hello reader's lets continue with static variable, today we will discuss about "how to access static variables in PHP and Java".
PHP is usually changing as a Object Oriented language. As being a java coder and PHP coder.
Java and PHP poss...
Static variable scope in PHP vs static variable scope in Java
Hello reader's today we will discuss about "static variable scope in PHP vs static variable scope in Java".
PHP is actually increasing to become a Object Orient Programing. Being a java coder in addition to PHP coder, php in addition to java w...
Difference between TextBoxFor and EditorFor in MVC
These two are strongly-typed HTML helper methods and uses lambda expressions when referencing models passed to a view template.
TextBoxFor will always show the textbox element no matter which kind of property we are binding it with. But Ed...
Datatypes in PHP and String Functions - Tutorial 3
Datatypes supported by PHP
String
Integer
Floating point
Boolean
Array
Object
NULL
Resource
String Functions
Strlen() : Returns the length of a string (number of characters).
<?php
echo strlen("Hello world!"); // output...
Liferay: Disabling the password reminder question after the first login
You can disable the password reminder question when user logs in portal for the first time after Registration. Use the below steps to hide the password reminder question screen:
If portal-ext.properties is not available then you can manually...
attr_accessible in Rails 4
Before going into the details of attr_accessible, the best thing would be to understand why it was needed.
It was basically needed to avoid the Mass-assignment Attack.
For that we need to know about Mass-assignment :-
Mass-assignmen...
Spring Security - UserDetailsService vs. AuthenticationProvider
We can use Custome UserDetailsService and custom AuthenticationProvider for user authentication in Spring Security. Here I'm taking example of custom UserDetailsService.
UserDetailsService is a Core interface which loads user-specific data. I...
Creating background Tasks with Appshell and CakePHP
Hello Friends,
Sometime we need to run some background tasks using cakephp without user interaction or delayed response to user from server.
For this we can use CAKEPHP AppShell utility.
Syntax:
/path/to/cake/console/cake -app /path/...
How to use SharedPreferences in Android to store, fetch and edit values
SharedPreferences are used to store primitive data types in Android such as int, long, float, string. SharedPreferences have an added advantage over storing data in singleton class as Singleton class can store data and available throughout the ap...
How to Fill Dropdown using jquery without using Ajax
Step 1=> Get all the countries data in an array and all states data corresponding to country wise.
<?php
$countries_Array = array(
'IN' => 'INDIA',
'BG' => 'Belgium',
'AU' => 'Australia',
...
How to fix TCPDF file opening issue on smart devices
Hello Friends,
If you are using TCPDF( A Plugin used to generate PDf files) then sometime you may face that this files are not opening in smart devices. You may see some garbage data instead of pdf file.
Then do not worry, just put a exit; af...
How to customize the table output of pdf files generated using jspdf?
I have a requirement where i need to customize the table column width of pdf file. This pdf file is generating using jspdf (a jquery plugin).
Difference between running a rails app in development or production mode
In this blog I am going to discuss difference between rails development and production mode. Often Rails app has so many different environments, each environment use different database which is mentioned in config/database.yml file, each environm...
How to invalidate a spring security session?
To invalidate spring security session you need to follow below steps:
1. Add Logout configuration in your applicationContext-security.xml file
Set logout-success-url attribute to /login.jsp. After logout user will be redirected to this pag...
UISearchBar with TableView in iOS
How to use UISearchBar with TableView in iOS
If we have a huge list of items and want to search a item from the list then we use the UISearchBar with TableView and the item will be displayed in the table which have the matching value with the ...
Convert array to string in php
We can convert array to string using php predefined function named as implode().
Syntax for implode is:
implode('separator',array);
Example -
$split_data [0] = 'This';
$split_data [1] = 'is';
$split_data [2] = 'a';
$split_data...
Convert a string to array in php
We can convert string to array using php predefined function named as explode().
Syntax for explode is:
explode('separator',string);
Example -
$string = "This is a text";
$split_data = explode('',$string); // splitting by space as a...
Getting the current absolute URL in Ruby on Rails
Recently I was working on rails 4 application and there was a need to get current absolute URL. So I noticed that as rails evolved, this is also getting changed and thought to pen down these ways for all the rails versions.
For Rails 3.2 or Ra...
How to implement underline textfield in Xcode
Hi,
The tutorial will help you to set underline textfield in Xcode.
#import <UIKit/UIKit.h>
@interface UnderlinedTextField : UITextField
@end
#import "UnderlinedTextField.h"
@implementation UnderlinedTextField
...
Top 5 ruby gems most helpful in application
Devise(https://github.com/plataformatec/devise): It represents authentication mechanism. Very powerful, flexible and also it allows to integrate Outh authentication system with minimal effort.
FriendlyId(https://github.com/norman/friendly_id...
How to play video on click of CollectionView Cell
Hi,
The tutorial will help you to set an image on collectionView Cell and when you click on any image play the video.
//
// ViewController.m
// YouTubeVideo
//
// Created by lalit on 4/7/15.
// Copyright (c) 2015 lalit. All rights re...
Google Map Integration in PHP- Display Latitude and Longitude On Google Map
This code will point the Latitude and Longitude On Google Map with a marker.
For this include a script:
Here is the code hope it may help you somewhere
<html>
<head>
<script type="text/javascript"...
How to rename php file
After discussing about open, read and copying PHP files we will be discussing about rename function.
rename ():
The rename() function is used for renaming a file or directory.It takes two parameters :
1.the original filename
2.the new...
Click animation on view
Hello Android folks,
We've been using selectors and xmls whenever we wanted to apply click effect to the views. Here is very simple and short way to achieve the same.
We can use Android's AnimationUtils class to load the animation on any vi...
Spring security 3: database authentication with hibernate
For authenticating the user via spring security we need to make our own custom authentication-provider. We can make our custom UserDetailService easily, here is the sample custom code
MyUserDetailsService.java
package com.users.serv...