CSS background property defines the background effects and changes on an element. There are 3 CSS background properties that affects the HTML elements:
1)background-color
2)background-image
3)background-repeat
1) CSS background-color
Th...
Regex for mobile number validation with prefix of '+'
^[+][0-9]{12,13}$
Regex for mobile number validation with optional '+'
^[+]?[0-9]{10,13}$
Use in Code:-
Pattern.matches("^[+][0-9]{12,13}$",mobilenumber);
Ha...
While making the calculation with float variable one should really careful since there can be three cases, It can < or > or =. So lets see the example below and learn how to get the comparative.
$varOne = round(0.250, 3);
varTwo = roun...
Php offers you to send data in various ways like get, post. Using php you can also use file_get_contents
to send data using url. Lets see an example below:-
$information = array('http' => array(
'method' => 'POST',
'content' ...
There are three commonly backup types.
1 Full Backup
It is also known as reference backup.whenever you do the backup type setting to full all the files and folder in the drive are backed up every time.So its a complete backup of all associ...
Using Auto installer in Joomla there is no requirement to create a database,upload files or configuration programs required. Using this it will reduce steps while installation and its fast to install and update. All will be done using auto instal...
While during Joomla installation default administrator account is created called "admin" as this name is well known due to which security is already exposed so anybody guess the password are able to access the admin account. As admin account is ...
Hi,
Here I am writing way to save object to the parse cloud.
Parse provides ParseObject to handle to saving object.
ParseObject has saveInBackground() method that need to invoke to save.
Let's consider you have to save EmployeeInfo.
...
Hi Guys,
In todays blog post , we are discussing the HTML meta tags as SEO propective.
What is this meta Tags ?
Meta tags are a great way for webmasters to provide search engines with information about their sites. (They) can be used to...
Media Manager manages the Joomla images. It uploads and deletes the files from [joomla root]/images/ directory. You can upload files, create directories and sub directories using this tool.
To access media manager click on Content -> Media ...
Hello Readers,
1. In php both die() and exit() are equivalent functions.
2. Basically die is used to throw an exception while exit is not, it is only used to exit the process.
3. The die() function is used to print the message and exit t...
There are lots of modules available for uploading multiple files and images in Drupal 7. Each of them have their own feature and might be suits on your specific requirement.
Here is a list of all available modules for multiple file upload opti...
Super Keyword
The super keyword in java is the one which is used to refer to the immediate base class members in the sub class.
Super Keyword can be used to invoke the constructor of the base class.
Whenever you create the object of th...
Hi Friends,
This is my first post in this website.
I am using magento platform for my store. In that i had create a custom invoice model and print automatically after a second. This works fine but my issue is Images and barcode are not able...
If you want to show a pdf file with the readable text from it on the page you can achieve it by seeing the code below
We will use a php library (pdfparser). This function will get the exact text as what you need
http://www.pdfparser.org/
...
If we forget administrator password in Drupal then it is very easy to recover it using Email or Drush. But situation get tougher when we don't have Drush and email notification enabled.
In this way only database update query is the best way but ...
Hello All,
I have used magento1.9.1 and oye checkout extension, Now I am facing this following issue from staring, I am not able to understand anything here.
If my billing address and shipping address is same
If my billing and shipping address...
Count ( ) In SQL Database this is a function which return no of rows from a table in Database . Generally this is used in SQL select statement and count the no. of records in a table .
Syntax ->
select count ( expression_name ) from table...
Basically Unique and Distinct both are same means both do the same work , Unique statement was used earlier by the oracle database but Now a days Distinct statement is using by the oracle ( Now it is the official keyword ) , Though Unique stateme...
To send email in PHP, we use mail() function. You can send text message, html message and attachment with message by the use of PHP mail() function.
Syntax
bool mail ( string $to , string $subject , string $message [, string $additional_hea...
If we want to create a list of contents which can be filtered by a taxonomy term the we can use Views 3 contextual filter. This will enable views to get filter from url or also from current node which is being viewed in content area.
Get comp...
Hi,
Here I am writing simple way to login after creating user in parse.
Tutorial for Sign Up
ParseUser handles all sign in and sign up functionality.
We login through logInInBackground() method of ParseUser. We need to pass username and...
In below example I have created a save data app code in android. In this save data we can save our data and then load the back-up. In this I have also described how to make save data.
public class MainActivity extends Activity {
EditTex...
Categories in Joomla manages the articles. Articles have exactly one category. To create a category you need to follow the steps given below:
Login to the back-end of Joomla Site.
Click Content -> Category Manager ->Add New Category.
...
Hi All,
Today we are going to discuss, how we can find application version in Ionic Framework App.
Let's start by creating new Ionic Framework project with Android and iOS platform.
To create a new Project follow below command:
ionic star...
Why we perform Penetration Testing ?
Hello Readers..
As we know that, What is Penetration Testing? But do we know why we perform this penetration testing. By this blog we are able to understand that why we do this testing.
Below are mentione...
Here, We are working on web application then facing issue in image loading and error, so we need to set alternate or default image in the web application.
Many ways to set default image in the web page :
Set default image using CSS
img
...
hey ci experts can you help me plz
where im making mistake....
my query is not roll backed although im setting the first parameter in the $this->db->trans_start(TRUE); as TRUE
the queries are only rollback when i remove the $this->db-...
SQL query is used to retrieve selected row or column from the database based on the given condition . It is also used to retrieve data from a table in database .
Syntax ->
Select expression from table_Name where clause ; // Expression in...
Hello Readers,
The below is the certain points which show the difference between echo and print in php:
Echo and print both are the statements in PHP.
Both are used to output data to the screen.
3. In php echo is faster than print b...
On the execution of exe file you must need the property of header like Description, Type and Disposition
For making the strict/force download of a file in PHP you have to use the code below:-
<?php
$FileName = "http://abc.com/exa...
when an object is loaded The onload attribute fires.
whenever a page is loaded, it executes a javascript.
The onload attribute can also be used with cookies
Example
<!DOCTYPE html>
<html>
<head>
<script>
functi...
Whenever an object is created using the new keyword in the memory, then a constructor is called to initialize the the object. Afterwards when the scope of the object comes to end the memory allocated required to be reclaimed at the runtime, then ...
To implement Search Engine Friendly URLs (SEF) follow the steps given below:
Login to the back-end of the Joomla site.
Click System -> Global Configuration
Now click in the Site tab you will see SEO settings inside it.
Set Yes to "Use ...
If you need something like all of your's html pages to be run like php files you can do the steps below:-
Step 1
Create a .htaccess file on your root.
Step 2
And add the line below
AddType application/x-httpd-php .html .htm
Or if...
What is Penetration Testing ?
Penetration Testing is a method to distinguish security vulnerabilities in a software or a product or an application by appraising the network or system with different approaches or techniques. The main intention of...
To restrict directory access by IP address you need to follow the steps given below:
Create a file or open a file .htaccess(started with a dot) inside the directory that you want to protect.
Add the code given below to the file:
Orde...
Here is a simple implementation of volley library in android ,
Create a calls and extend Application class, implements the volley request queue in it also initialize the static class object in it.
@Override
public void onCreate() {
su...
SQL Copy Table
If you want to copy a SQL table into another table in the same SQL database then you can do with the copy statement .
Syntax ->
select * into destinationTable from sourceTable ;
Example ->
**Student name** ...
SQL Alter Table
Using this query you can add , modify or delete columns in a existing table . It is also used to change the table name .
Syntax ->
Alter table table_Name Add column_Name column_Definition ;
If you want to add multip...
Changing default template for front-end:
Login to the back-end of Joomla site.
Click Extensions -> Template Manager.
Default template for site is marked with a star(yellow in color) which is protostar.
Select the template you want to s...
SQL Truncate Table
Using this statement you can remove all data of rows or column ( complete data ) not table. In this there is no where clause but where clause is available in Delete statement. Truncate table is faster than Delete statement
...
SQL SELECT DATE
if you want to retrieve a date from database,use this staement. For eg. you want to find a particular date from a database, this statement is the answer.
1)For example: let's see the query to get all the records after '201...
Java Class Constructor
It is special kind of function, but doesn't have a return type.
It has the same name as class name.
Constructor is used to initialized the variable of class.
we can't call the constructor with the help of object. If...
SQL rename statement is used to change the name of the table in database . Sometime we want to change our table name i.e we want to give some useful name of our table . SO by using this statement we can do the same .
Syntax
Rename oldTableNa...
In Joomla, Lock means that the item is currently opened by any user for editing. The lock automatically removes when user clicks on "Save", "Save and Close" and "Cancel" button. If user not click on "Save" or "Close" buttons and instead click on ...
Few Test Scenarios for the GUI and Usability Testing:-
Hello Readers..
By this blog i am sharing few important testing scenarios related to the GUI and Usability testing.
These are basic test scenarios. I hope these will help to all in time ...
Difference between ViewBag, ViewData, or TempData in MVC:-
In Asp.Net MVC you have three ways to pass data from controller to view and in the next request. They are ViewData, ViewBag and TempData.
ViewData:- Viewdata helps to maintains da...
This property describes what happens when content overflows an element's box.
In certain cases, a box may overflow and its content may goes partly or entirely outside the box.
CSS Syntax
overflow: visible|hidden|scroll|auto|initial|inheri...