Many times when we have an existing database with existing multiple records with set password, encrypted with a specific encrypt technique and then we try to immigrate to Laravel 5.0 and try to use Laravel Auth, it clashes.
Since, Lara...
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 ...
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...
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)
...
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...
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 ...
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...
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...
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: 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...
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 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:...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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 ...
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...
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...
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...
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...
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...
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...
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...
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/...
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...
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',
...
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...
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...
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...
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 ...
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...
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...
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...
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
...
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...
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...
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"...
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...
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...