
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
Agile Test Plan
Dissimilar as waterfall model, in the agile model, test plan is designed and renovated for all release. There are many kinds of testing involved under the agile test plan, performed in that iterative as test data prerequisites, framework, test re...
Storing objects in local storage.
If you want to store Javascript objects in local storage, you can use HTML5 local storage.
Here is the code :-
var dashboard-data = { 'one': 1, 'two': 2, 'three': 3 };
// Put the object into storage
localStorage.setItem('dashboard-data'...
Parse JSON in JavaScript?
Suppose you have response somewhat like this:
var response = '{"result":true,"total-count":1}';
var getValues = JSON.parse(response);
document.write(getValues.result + ", " + getValues.total-count;
You can simple use JSON.parse() method to...
What is the scope of variables in JavaScript?
Scope is the set of variables, objects that you have access to.
Here are some examples that will explain you about scopes :-
1.A globally-scoped variable
var a = 1;
// global scope
function one() {
console.log(a);...
How to use PHP inside the Javascript
Hello Reader's!. If you having the JS file and you need to do some php coding inside the file, Then you can use the following coding standard:-
<script type="text/javascript">
var jsVvariable = <?php echo json_encode($phpVariable); ?...
Event binding on dynamically created elements?
Suppose your page is creating elements dynamically with the class name egSample, you need to bind the event to a parent which already exists.
You need to use the .on() method to implement this task. Here is the syntax of how to use it :-
....
What to pass as parameters to the Url class?
There are n number of situation where we want to pass parameter in URL and use that parameter in our controller.That can be easily explain by using example:
There are few steps which I have implemented that are:
Step 1:First we will define...
Laravel 4 Eloquent Query Builder - Complicated joins with variable
As we all know joins play an important role in any project . So Laravel 4.x also provide Eloquent Query Builder in which we are able to use Complicated joins with variable.This can be easily explain by using example
Example:
I managed to fi...
How to remove class in Jquery?
JQuery uses a built-in .removeClass() method to remove a class.
For example:
<div class="demo">Hello </div>
To remove demo class in JQuery you need to execute the following code:
<script>
$( "div" ).click(func...
laravel 4 artisan how to rollback to a specific migration state?
There are n number of command in laravel 4.x which can help us to perform any action . In laravel 4.x we can rollback our php artisan command. The command to rollback to a specific migration state is
You can:
1)Rollback The Last Migration ...
Tools For The Cloud Testing
Tools For The Cloud Testing:-
There are many tools which are using for the cloud testing. Many types of testing are executed by these tools. Please find the name of few tool related with the cloud performance testing and cloud security testing m...
Change name of Laravel's created_at and updated_at
As we all know when we create table using php artisan and migration. Laravel create 2 column in the end of the database that column are created_at and updated_at .
We have a situation when we want to override these two names created_at and upd...
7 Useful Tips to Draft Facebook Updates for Local Business
Promoting a business on Facebook helps a lot to make the presence of your business among the targeted audience, however the way of marketing differs with respect to the type of bus...
Different Types Of Challenges In Cloud Testing
Different Types Of Challenges In Cloud Testing:-
There are more challenges in the time of cloud testing. Few challenges are mentioned as below:-
Short notice period
Data Migration
Data Security and Privacy
Enterprise application Integrat...
Send Email with an attachment in Drupal 7
If you are confused and trying to figure out how to just simply send a mail with and attachment using drupal_mail(), with a given $body and $subject, this below code may help you.
/*hook_mail($key, &$message, $params);*/
//for detail ...
Can I Install Laravel without using Composer?
I am unable to figure out as to how I can install or use the Laravel PHP framework on any webserver without relying on the need of using Composer (PHP package/dependency manager) every time.
I am making efforts to gain insight into PHP and fra...
How to get the current URL inside @if statement (blade) in Laravel 4?
In Laravel 4.x we have many predefined function which will help us to solve basic requirement. For getting the current URL inside @if statement (blade) in Laravel 4? are very easy.Syntax and Example for getting the current URL is:
Syntax: Th...
How to Install LAMP in your Fedora 23 Workstation?
Installing LAMP (Linux, Apache, MariaDB and PHP) on Fedora 23 Server and Workstation
We all know that LAMP goes a long way in hosting a website and honing your PHP programming skills. LAMP is basically a package of Linux, Apache, Mysql/MariaDB...
Laravel form model binding
Form Model Binding is one the important feature in Laravel 4.x. I am reading about this feature from the below link.
http://laravel.com/docs/html#form-model-binding
I have a situation where " The model (User) I want to bind in my form has a s...
How to download a file with android.
Downloading in android devices i.e receiving data from remote system. In android devices Download manager is a system service that is used to download and manage any type and size of file. We have two nested classes first is DownloadManager.Query...
How can I get the session ID in Laravel?
In some situation we need session id. In Laravel 3 and Laravel 4.x we have predefined function by which we can get session id. In laravel 3 we will get session id:
Laravel 3:
$session_id =_COOKIE["laravel_session"];
Laravel 4.x:
$s...
How do I create a RESTful API in Laravel to use in my BackboneJS app
We have a situation where we want to create a RESTful API in Laravel 4.x and we have to BackBoneJS in my project .By using below step we can make RESTful API easily using BackboneJS.
This is an example for creating an API that stores bookmarks...
How to set a default attribute value for a Laravel / Eloquent model?
Laravel 4.x provide n number of services to solve basic issues. By using Laravel 4.x we will easily set a default attribute for a Laravel/Eloquent model.
To achieve this we have to define value like below example:
Example:
protected $def...
Ajax Call using Jquery
To call ajax you need to execute the following code:
$.ajax({
type: "POST",
url: 'pagename.php', //location of the server
data: varData, //data send to the server
...
Laravel Controller Subfolder routing
Before I have written blog how to add sub-folder in our controller but not mention that how we will do Controller sub-folder routing.As we all know that routing plays an important role in any project. In Laravel 4.x sub-folder routing can be don...
How to implement Drawable Animation in Android.
To implement Drawable Animation in Android follow the steps :-
1) Prepare a series of images with the individual frames of your animation. Add the images to your projects drawable folder.
2) Declare a XML file that defines the animation se...
Compare two Date object in Java
Sometime we need two compare two dates like which Date object's time coming first or last.
Here is the code to compare two dates.
Date date1;
Date date2;
if(date1.before(date2)){
System.out.println("Date 1 is before date ...
Save and retreive text from text file
Hi all,
If you want to save anything in text file or any kind of file than you can follow this code. This code will save text to textfile in your application directory.You can retrieve text from save file later on .
NSError *error;
NSStrin...
Make HTTP request in swift using ALMOFIRE
Hi all,
if you want to make a http request (GET or POST) using almofire. you can follow these steps. We can make http request like GET,POST,DELETE,PUT etc. but we use majorly get and post request.
Post request are more secure than get reque...
'Failed to open stream: Permission denied' error - Laravel
Some time in Laravel 4.x we will get the error "Failed to open stream: Permission denied" error .When we have no permission then this type of error will occur. So to overcome this problem by using php artisan
are:
Step:
php artisan cache:...
20 Keyboards Shortcuts of twitter everyone should Know
Twitter is Social networking site having 300+ million active user. Apart from this almost all the celebrities, Politicians, ,musicians, Poet, Businessmen nowadays has a valid twitter account and connect to their fans through Twitter website or Ap...
Differences between php artisan dump-autoload and composer dump-autoload
When we are working on Laravel then we should know the php artisan and composer and the differences between php artisan dump-autoload and composer dump-autoload are:
Laravel's Autoload is a bit different:
1) It will in fact use Compose...
Retrieving GET and POST data inside controller in Laravel 4
Retrieving GET and POST data inside controller in the basic requirement which should know everyone when we are working in any framework. In Laravel 4.x It is very easy to get "Get & Post" data.
Examples:
The Example for Get data is
$...
Get all routes, Laravel 4
This is one of the important point which is not available on even stackoverflow. I want that by using one controller we at the moment which will handle every request that comes to my laravel 4.x application.This is one of the question which we sh...
Naming Conventions in CakePHP- Model, View, and Controller
CakePHP model, view, and controller naming conventions
If we have a database with table named users, then following standard Cake PHP naming conventions should be used:
1. For Model
filename = User.php
classname = User
directory...
Global filtering - how to use global scope in Laravel Eloquent
I have a situation which will help us to understand the use of Global Filtering.
Situation:
I have a published filter that I use for my articles. Guests can only view published articles, logged in users can view and apply filter (?published...
Using Storyboard Reference
When multiple developers are working on the same project and we have a single storyboard, we might face conflicts in the storyboard file. And the conflicts of storyboard are difficult to resolve.
Xcode 7 provides a new feature of storyboard ref...
How to Install Fedora 23 Workstation?
Hello Friends,
In this tutorial I will guide you how you can install Fedora 23 workstation on your system.
If you have any previous version installed in your system then you can check the upgrade guide else follow the below steps....
Chaneg Textview height according to text
Hi All,
If you want to change height of textView according to content height than you can follow this code.
Use auto layout to set view in story board and make IBOutlet for textview . Assign delegate to textview and dont give height constra...
How to Upgrade Fedora 22 to Fedora 23?
To upgrade Fedora in your machine follow the below steps-
Take all your important files backup to any external media or hard drive.
Verify your current fedora version by executing following commands in terminal
$ cat /etc/fedora-release
...
MFMessageCompose ViewController in swift
Step1: Import the MessageUI using :- import MessageUI
Step 2: class ViewController: UIViewController, MFMessageComposeViewControllerDelegate
Step 3: when you tap on the button the list of contact will appear and you can choose the contact ...
Show flags using Unicode
Hi All,
If you want to show flags in using unicode hex coding (U+XXXX) than you can follow this code .
UNICODE:- Unicode is a computing industry standard for the consistent encoding, representation, and handling of text expressed in most of...
Different Types Of Testing In The Cloud
Different Types Of Testing In The Cloud:-
The entire cloud testing is divided into four primary groups. Which are mentioned as below:-
Testing of the whole cloud
Testing within a cloud
Testing across cloud
SaaS testing in cloud
T...
Drupal 7 database API
Drupal database abstraction layer allow's the use of different database servers using the same code base i.e it provides
with the ability to support multiple database servers easily. The system is built a top PHP's PHP Data Objects database AP...
Putting GIF images in your Android application
Put Your GIF image in /raw folder and put the below code in your project
public class CustomGifView extends ImageView {
Movie movie;
InputStream inputStream;
private long mMovieStart;
public CustomGifView(Context contex...
How to obtain the permission to external storage?
If you are looking to get the permission to access your external storage in android, here is the solution:-
you have to add these lines in your manifest file:
<uses-permission android:name="android.permission.STORAGE" />
To store s...
Different Types Of Cloud Computing Services
Different Types Of Cloud Computing Services:-
There are primarily three significant cloud computing services. These services are utilized by the distinct organizations as per there need. These cloud computing services name are mentioned as below...
How to return multiple variables using Javascript
Hello Reader's!, If you have a condition in which you need to return two or more variable from function like below:-
functions()
{
//you calculation for result
return $a, $b;
}
Now you will face the error. But you can use the arr...
Converting innerhtml javascript to jquery using $.append
Suppose you have an html code like this.
<input type="button" id="btn-press" value="Submit!">
<div id="egText></div>
If now you want to add some text into this div,you need to attach an event handler and You should mov...
Update dropdown values based on another dropdown using jQuery
If you want to update the values of the dropdown based on the values of other dropdown. Here is the example where If I choose Chicken as my where from.
My where to should display Baked potato, Mutton, fish.
<form class="foodorder hide">...