Before talking about Natural Link Building, let me explain some basic information about link building process. It is an off-site Internet Marketing Technique. Link Building is the proces...
In PHP, we can list files with no sub-directories. To understand this we will take a example. Suppose we have a directory demo whose files we want to list inside a drop down box. We will take a form then open the directory whose files we want to ...
In python socket Module create socket and also use the function name socket.socket() function. This function is also available in socket module. There are many type of socket method in python like- Server Socket Methods and Client Socket Methods...
In python match Function is a function witch attempts to match RE pattern to string with optional flags and re.match function returns a match object on success, None on failure.
Here is the syntax for this function:
re.match(pattern, string, ...
WAN stands for Wide Area Network. It is often used to cover a large geographical distance.
Wan connection can be established in many ways. The commonly used WAN Connection Types are:
Leased Line
Dedicated Line
Permanent c...
The application layer provides an interface between software running on a computer and network itself.
There are various application layer protocols, majorly used ones are listed below :
HTTP
Allows to access web page.
80 port...
Router is an inter-networking device which is used to connect two or more networks.
Cisco Hierarchy Design Model:
Access layer Router
(Low cost/ Low processing/ Less
port)
Routers which are used by small
organization and a...
Here we will learn with the help of an example that how we can set the time for session cache expire in php. We use a function session_cache_expire() which returns the current setting of session.cache_expire.
Example
<?php
/*Here ...
In MySQL, MIN() function is used to return the smallest value of the specified column in a table.
MIN() Syntax
SELECT MIN(column_name) FROM table_name;
We have a table "employee" as below:
employee
id first_name ...
This article demonstrates a PHP function which can be used for swapping of keys with values in an array. array_flip() is the function which accepts an array as parameter and exchange the keys with their associated values in an array. This functio...
What is the use of AVG() function in MySQL?
The AVG() function is used to return the average of the numeric column in a table.
AVG() Syntax
SELECT AVG(column_name) FROM table_name;
We have a table "employee" as below:
employe...
In MySQL, the MAX() function used to return the largest value of the specified column in a table.
MAX() Syntax
SELECT MAX(column_name) FROM table_name;
We have a table "employee" as below:
employee
id first_name l...
array_reverse() function reset the order of elements in an array in reverse order. The function takes an array as argument and return an array containing all values in reverse order. The function also reset the index of elements. To keep the inde...
There is a popular time module available in Python which provides functions for working with times and for converting between representations. Here is the list of all available methods
1-time.altzone
The offset of the local DST ti...
In python class statement creates a new class definition and The class has a documentation string which can be accessed via ClassName.__doc__. The class_suite consists of all the component statements defining class members, data attributes and fu...
If you want to getting calendar for a month then we can set calendar module as it gives a wide range of methods to play with yearly and monthly calendars. Here, we print a calendar for a given month ( Jan 2008 ) and for example you can see below...
If you want to getting formatted time then we can format any time as per your requirement, but simple method to get time in readable format is asctime() and for example you can see below code
#!/shiva/bin/python
import time;
localtime = time...
In openerp register the given presence of the current user, and trigger a im_status change if necessary. The status will not be written or sent if not necessary and param user_presence : True, if the user (self._uid) is still detected using its b...
In openerp to disconnect user and show the massage that user is disconnected and users having to old last_pool and search the limit date and write the status presences when presences is offline.
use this function .py file show in given below,
...
If you want to getting current time instant from a seconds since the epoch floating-point value into a time-tuple, pass the floating-point value to a function .For example you can see below code.
#!/siva/bin/python
import time;
loc...
In Python time functions handle time as a tuple of 9 numbers, given below example
0
4-digit year
2008
1
Month
1 to 12
2
Day
1 to 31
3
Hour
0 to 23
4
Minute
0 to 59
5
Second
0 to 61 (60 or 61 are leap-seconds)
6
Day of Week
...
The floating-point numbers in units of seconds for time interval are indicated by Tick in python.
Particular instants in time are expressed in seconds since 12:00am, January 1, 1970(epoch). And there is a popular time module available...
Hello Reader's if you are developing the portal where you want to show user the coundown time. Then this blog is usefull to your. Let's see how to make an auto counter in Javascript:-
first create a html file and name it count.html and code will...
Hello Reader's if you want to store some data on user local system so that even he turn off or refresh the webpage the data will still remains the same then you can use the Javascript for that.
Let's consider an example where you have an coun...
In MySQL, COUNT() function used to return the number of rows that matches with a specified criteria.
Syntax:
COUNT(column_name)
When we use COUNT(column_name) function in select query it returns the number of rows for the specified colum...
Hello User if want to show user's lat and long to screen then you can use the code as below:-
First you have to create a html page and named it file.html and paste the following code in it.
<!DOCTYPE html>
<html>
<body>
...
Hello Reader's if you want to use drag and drop feature in website then you can use the code as below:-
First create file drag.html and paste the following code in it.
<img id="source" src="../files/images/yourimage.jpg...
Hello Reader's if you want to integrate the audio player which play mp3 music from your server, Then this blog is helpful to you.
Now html5 offers you very convenient way to use multimedia in web page. You just have to use the <audio co...
Hello Reader's! in this blog you will learn how to draw the shapes and figure using just html5 tags.
In html 5 you can draw some basic shape like square and rectangle and circles. Let's see some of them no
<svg width="300" height="100">...
The array_intersect() is a built-in function in PHP used for computing the intersection of two or more arrays. The function takes two or more arrays as arguments, after comparing values of arrays the function returns an array containing all valu...
Hello Reader's if you want to write special heading in the custom way in web page then you can use the custom html function as below:-
This function will take the font face and size from user and generate the given text into a picture.
&l...
Hello Reader's if you want to integrate vedio from your own server to your webpage then you can use HTML5.
Now HTML5 offers you to use <vedio> tag. Lets see the example as below to show vedio
<!DOCTYPE html>
<html>
<...
Hello Reader! If you are new to web desingning and you need to insert some special symbols in your web page then this blog is very helpful for you.
You might have seen copyright symbol , This type of symbol will only generate if you insert their...
Hello Friends
If you are looking to update records in Codelgniter. Please follow the code for the same:
// Define the array with your db attribute as key and your updated data as value
$data = array(
'country_name' => $country...
Hello Friends,
If you are looking to create crop functionality in Codelgniter. This very simple in this framework, please follow the below code for the same:
$cropConfig['image_library'] = 'imagemagick';
$cropConfig['library_path'] = '/def...
Hello Friends,
If you are looking to add aggregate functions(MAX, MIN, AVG, SUM) in Codelgniter. Please use the below code for the same:
// Use Max function to get maximum salary in employee table
$this->db->select_max('salary');
$q...
If you want to create handler , here is the code snippet that can help you out.
Step :-1 Create the object for Handler.
private Handler myHandler = new Handler();
Step :-2 Create the Runnable Thread.
private Runnable myRunnableThr...
number_format() is one of the most popular PHP function which is used to format numbers with grouped thousands.
Syntax : number_format(number, decimal_values, decimal_point, thousand_separator)
number : The number which has to be formatted.
de...
Hi Guy,
In this Blog, We will discuss about how to make a SEO friendly web page with the help of HTML5 and CSS. Note that for making this tutorial simple, we only consider the aspect of making a web page not whole website.
...
Hi All,
Recently I came across new features in HTML5 that was quite impressive and one such is the new download attribute. This new feature allows you to set a separate download file name than the actual file name available in the link itself....
Hello Guys
Liferay provide functionality to create user without email address.
Here, we need to set user email rquired property to false in portal-ext.properties file.
users.email.address.required=false
You need to set the suffix of...
A good posture is always considered as the basic requirement for the development of Fine Personality. People who work in a professional environment usually forget to maintain their posture, ...
Hello Readers,
toArray() is the jquery method which is used to convert the elements to array. This method returns the jquery elements matched by the jquery selector as an array.
Syntax :
$(selector).toArray()
Code Example :
<...
Hello Readers,
slice() is the jquery method which is used to select the subset part of all the part of the element or it is used to select the element from start to end position having indexing zero. Both start and end are integer value and st...
Hello Readers,
scrollLeft() is the jquery method which is used to return the scrollbar position to horizontally for the selected or matched elements in jquery. If the scrollbar is at the end of Left side it returns the position zero. It is als...
Hello Readers,
.not() is the jquery method and it is the opposite of filter() method and this method used for return elements that do not match or do not select the certain criteria and those not matched the certain criteria they will be remov...
Hello Friends,
If you are looking to add watermark in the images under Codelgniter framework. Please follow the below code for the same:
// Set your source image path
$watermark_config['source_image'] = '/define/path/of/your/image';
// ...
Hello Readers,
nextUntil() is the jquery method which is used to return all the siblings of the next siblings elements of the same parent between the selector and stop and returns the new jquery object as a result.
Syntax :
$(selector)....
If you want to extract only the date, we can use the strftime method of Time/Date class, as
2.1.5 :055 > DateTime.now.strftime('%d/%m/%Y')
=> "12/30/2015"
(Here d is used to display date, m displays month and Y display the ye...