Laravel provide more routing features. In laravel we can fire mysql queries in 'Route' also without any controller or model. For example
Route::get('/getData', function()
{
$fetchData = DB::select('select * from users where id = ?', a...
Locating element is the basic activity to automate any web application or the mobile application. The action can only be performed on the element once we have located the element successfully. If the element is not located then we get NoSuchEleme...
Hello Readers,
FFmpeg is such a command line application tool which provides complete solution for recording, converting as well as streaming video and audio. It is a good command line application tool which convert a video file format in ...
How to get both text and value of selected option in a dropdown
in Asp.Net MVC?
While working in a MVC project, I got a requirement where I needed both Value as well as
Text of the selected option in the Dropdown.
The solution that ...
DROP Statement:
With the help of drop statement we can easily delete a table or a database and it is a DML(Data Manipulation Language) command.
Syntax to drop a table:
DROP table tablename;
Example:
DROP table Employee;
It ...
In the upcoming version of SQL 2016 a new component of COMPRESS and DECOMPRESS T-SQL functions is added. SQL Server 2016 provides built in functions for compression and decompression.The COMPRESS and DECOMPRESS functions can store and retrieve da...
Previous Git Blogs
Intialize git repostiory
First Commit
Two tree architecture and Three tree architecture
Best basic practices for writing commit messages
Viewing the commit logs
Git Basic WorkFlow
What is HEAD pointer in GIT
Git...
To generate password in joomla first need to import JUserHelper which defines in libraries/joomla/user/helper.php.
jimport( 'joomla.user.helper' );
$salt = JUserHelper::genRandomPassword(32);
$crypt = JUserHelper::getCryptedPassword("mypa...
Hello reader's, we discussed about "How to get a category in wordpress".
In the below code gallery is the custom post type. For this you can create a taxonomy-gallery-category.php file. You can put the below code into this file.
<?php...
The simplest and the easyest way to install anything on Linux is throught Terminal
1. Open terminal using ALT+CTRL+T
2. Type command shown below:
sudo apt-get install openjdk-7-jdk
Note: in : openjdk-7-jdk, 7 is for demonstration, you can c...
Hello reader's today we discussed about "How to get child of Category".
In Wordpress, if we create a category and their sub category and we want to call category and their sub-category. In Programming language we called it Parent Child relatio...
Username or email availability or any other types of availability check we can do in this way. When user type on a text box an ajax request has made and check what if its available or not. we only required jquery.js
HTML
<input type='te...
Previous Git Blogs
Intialize git repostiory
First Commit
Two tree architecture and Three tree architecture
Best basic practices for writing commit messages
Viewing the commit logs
Git Basic WorkFlow
What is HEAD pointer in GIT
Git...
An exception is any problem that occurs during the execution of a program and disrupts the normal flow of the programs instructions.In basic terms, when a condition occurs, in which it is not sure how to proceed in an ordinary way it creates an e...
With the help of HTML table, we can arrange the data in a proper format. HTML table consist of rows and columns.we use various tags for creating HTML table.
Tags used for creating HTML table:-
Table :- This is the very first tag for creati...
You can pass data from laravel controller to view by using 'with' keyword
$userDetails=array('name'=>'abc','mobile'=>'768576565');
return View::make('profile')->with('userDetails', $userDetails);
you can send multiple argument b...
How can you create image as a link in html.
You can make an image as an link as through following coding.This make your link more eye-catchy and you can also make logo as link thus making your page more effective.
<a href="default.asp"&g...
source: blog.externetworks.com
Internet of Things(IoT) means communication between everyday objects over the internet, allowing them to send and receive data. The term was coined by British entrepreneur Kevin Ashton in 1999 a...
html link styles.
We can change the style of link such as background color, color and text decoration on various event done by mouse such as hover,active and visited through style property.Customization can be done according to your requiremen...
html address.
html5 provides an inbuilt tag <address>.Through this tag you can define contact information of a document or article.The element between the address is displayed in italic and also most browsers will also add line break bef...
Previous Git Blogs
Intialize git repostiory
First Commit
Two tree architecture and Three tree architecture
Best basic practices for writing commit messages
Viewing the commit logs
Git Basic WorkFlow
What is HEAD pointer in GIT
...
How can we increase the left margin of a column in bootstrap.
In bootstrap we can increase the left margin of a column by adding class offset. for example by adding
.col-md-offset-4 moves .col-md-4 by four places.
<div class="row">
...
String.intern() has a great importance in java. We can use String.intern() to deal with String duplication problem in Java. A string is said to be duplicate if it contains the same content as another string but has a different memory location e.g...
C# is an object-oriented programming language which is developed by Microsoft.
Mr. Anders Helsberg developed C# with his team during the development of .Net Framework.
C# was approved by ECMA and ISO.
ECMA-"European Computer Manufacturers As...
Hello guys,
Most of time we need to bind model at runtime, So cakephp provides inbuilt function
bindModel(). Using this function we can associates model according to requirement .
Using this technique we dont need to association in Model. I...
Previous Git Blogs
Intialize git repostiory
First Commit
Two tree architecture and Three tree architecture
Best basic practices for writing commit messages
Viewing the commit logs
Git Basic WorkFlow
Git SHA-1
Git maintain...
Hello Readers,
Usually, we need to perform a different tasks/activities with audio/video like video/audio format conversion, resize the video Files, adding poster image to an audio file and so on.
Even then we need to knowledge of FFmpe...
For combine the result of two or more select query we use union in sql query.If you want to use union in yii query you can use the below code
$queryFirst = (new \yii\db\Query())
->select("id, name")
->from('tableA')
->l...
If you are looking to create BadgeCount view in android toolbar, here is the way to code it:-
Step 1:- Create badgeCount layout file say badgecount.xml :-
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
...
Swipe is one of the basic functionality in any mobile application and in order to automate the mobile application the swipe functionality should be successfully implemented.
Appium has a wide range of libraries and a method to swipe the screen...
What is grid system ?
Grid usage to guide design and page layout is in practice for around 100 years now
Rationalism and New Objectivity came into picture in 1910s and 1920s due to ornamental design
This shift in design was responsib...
If you are using validation.js to add validation in your page and want to add some custom validation on the same, like I want a user can only enter alphabetic character with comma, dashes and space on first name text box. Please follow below cod...
We use HTML helpers in a view to render HTML content. An HTML Helper is simply a method that returns a string. The string can represent any type of content that we want to
define.
The ASP.NET MVC framework includes the following set of stan...
You can authenticate user in your application using SIF (Service Integration Framework) Java API.
Following is the code you can use to authenticate the user:
Properties props = new Properties(); &...
JavaScript string search() method : The search() method is used to search a specific string within a given string. It returns the index of the searched string and if no string matched then it returns the -1.
Syntax of the search() method :...
In this tutorial we will see the how to avoid exposing the public properites of any class in oop as it is always a good practice to use encapsulation while coding.One of the main advantage of hide the public properties is that if we want to make...
Previous Git Blogs
Intialize git repostiory
First Commit
Two tree architecture and Three tree architecture
Best basic practices for writing commit messages
Viewing the commit logs
Git Basic WorkFlow
In the last Blog Git Basic ...
We already know that ASP.NET MVC framework includes separate folders for Model, View and Controller. However a large application can include a large number of controller, views and model which is difficult to manage. Areas help in splitting such ...
How to highlight a text in bootstrap
In bootstrap we can highlight the important text with the tag <mark>. Thus text can be easily highlighted and customization can be done as required.
As shown in example below name of country's get...
If your application has requirement to authenticate user using LDAP you can use following code for same:
LDAP: is Lightweight Directory Access Protocol. LDAP server will be having users information, and requirement could be to only authenticat...
How to create background of two colors.
In bootstrap we can create background of two colors with the help of gradient.You can also specify the angle os standard two color.
#gradient > .vertical(#333; #000);
#gradient > .horizontal(#...
JavaScript String replace() method : The replace() method is used to replace a string from new value. The replace() method has two parameters, first parameter is a string or regular expression which need to be replace by new value and the second ...
If you are looking how to create menuItem and make them visible or invisible on certain condition, here is way to create menuItems:-
Step 1:- Create items on menu.xml:-
<menu xmlns:android="http://schemas.android.com/apk/res/android"
...
Hi ,
This post will help you to use Video in background with bootstrap.
View Live Example :
http://107.20.120.5/HTML/fn/video.html
<style>
#background {
position: fixed;
top: 50%;
left: 50%;
min-width: 100%;...
In a MVC application the requests are routed to a special class called the Controller. The controller is responsible for generating the response and sending the content back to the browser.
When an MVC application receives request the action m...
Hello Guys
We can add multiple Pages Inside One Liferay Portlet from portlet class.
You can display any JSP page's you want via the PortletRequestDispatcher in your doView, doHelp, doEdit etc. method.
Below example help you to add multipl...
how to clear floats in bootstrap.
Bootstrap provides an predefined class .clearfix through which you can clear floats just by adding this class to the parent element.
.clearfix() {
&:before,
&:after {
content: " ";
...
JavaScript String match() method : We use match() method to match a string against a regular expression. It returns the array object of strings which matched if used with the /g modifier otherwise it returns the first matched string. It returns n...
Feedback with optional icons.
Bootstrap provides classes to add optional feedback icons which would required manual positioning for inputs. Thus, it save a lot of time for making it user friendly. This can be done by adding class .has-feedback...
Hi friends,
In this Blog, I am going to explain some Facebook limits that every social media expert should know.
Facebook is the largest social media Networking website in the world which has nearly 1.4 billion active users. If we go into ...