Non Semantic Elements:- Traditionally, developers have implemented non-semantic elements with a class attribute to define the structure and express the meaning of content. It tells nothing about its content. The element has no special meaning at ...
1)AUTOCOMPLETE:- AUTOCOMPLETE attributes is having two features either on or off. If autocomplete is on then the browser automatically complete the values based on values that the user has entered before. This attribute works with form and the fo...
Hello Readers
Below are some points to differentiate between the Joomla and Drupal:-
Joomla uses plugins components and modules while Drupal has a module only.
Joomla has lower technical curve while Drupal has high technical curve.
...
Hello Readers
A component is an independent piece of code written for specific task in cakephp that can be used for Emails, RequestHandling etc.
Components is basically a package of logics that are shared between controllers. User also crea...
Hello Readers,
By this blog, I am sharing some common functional test scenarios for the mobile devices. I hope these will help in the time of functional testing on the devices.
Some of these scenarios are mentioned below:-
Verify that all ...
Hi Readers!
This blog will help you in displaying hidden files and folders in MAC OS X Finder.
Please write below 2 commands one by one in terminal, and then open Finder again
defaults write com.apple.finder AppleShowAllFiles YES
kill...
Hello friends,
To add blur effect in swift you may use the following code:
IBAction func blurImage(sender: AnyObject) {
// 1 Create an object of UIBlurEffect,you may change the value of style as per your requirement
var darkBlur = UIB...
Hello Readers,
Below are some of the features of CakePhp:
CakePhp is basically a framework which is based on MVC pattern i.e(model view controller).
Cakephp is compatible with php version 4 and 5 plus.
Cakephp have built in validati...
There are many challenges for the QAs when any software development go through the agile methodologies. Below are mentioned few challenges which are taken by the QAs :-
Probability of errors or mistakes are more in the agile methodology for ...
First you need make a directive for this.
mainApp.directive("loadMoreData", [function() {
return {
restrict: 'ACE',
link: function($scope, element, attrs, ctrl) {
// alert("check");
...
If you want to compare two dates, the Date object will do the following purpose. This describes the JavaScript Date Object including properties, constructors, and methods.
Here is the code example :-
var d1 = new Date();
var d2 = new Dat...
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...
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'...
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...
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);...
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); ?...
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 :-
....
Here is my query code, How can write same code in the prepare statement php.
<?php
header('Content-type : bitmap; charset=utf-8');
if($_SERVER['REQUEST_METHOD']=='POST'){
$encoded_string = $&#...
Hello Everyone, I have been testing BLE on android. I have observed a significant delay between received packets which appears randomly. I am receiving 24 bytes and the delay between certain packets is random and high. The delay is between 20 to ...
I want to add a boolean field in account.tax and then in purchase.order.line i want to create a new field in which those taxes which are marked as true are calculated . Thanks for help in advance.
Guys im trying to join a comments table to posts table using the following query in a method.
public function feedView($session,$friend,$updateid) {
$sql2=" select u.update_body,u.author,u.time,u.title,u.account_na...
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...
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...
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...
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:-
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...
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...
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:-
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...
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 ...
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...
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...
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...
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...
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...
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...
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...
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...
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
...
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...
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...
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 ...
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...
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...
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:...
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...
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 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
$...
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...