
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
Load view into another view in codeigniter
We can load view into another view in codeigniter by creating a helper function and place the following code.
function loadView($view,$data = null){
$CI = get_instance();
return $CI->load->view($view,$data);
}
Next in ...
Use of LIKE in MySQL
This article explains how to use LIKE operator to get data from MySQL table based on pattern matching. The LIKE operator used with WHERE clause of SELECT, UPDATE and DELETE statement which search for a specified pattern in a column.
In MySQL L...
ASCII(str) String Function MySQL
String-valued functions return NULL, if the the result's length would be greater than the value of the max_allowed_packet system variable.
The first position of a string (for those functions which operate on string), is numbered 1.
Noninteg...
how to create filter in openerp?
To create a filters in OpenErp,
First install product module and inherit view of product module and use filtering for particular fields and create filter in your own module. For example use this below code in .xml file
<record id="rent_p...
password encryption in joomla
Joomla password are stored in database in the form of hash and salt such as {hash}:{salt} where salt is a random string which contains 32 characters in length. Joomla password are salted before making password hashed.So we can create password i...
Drupal User Related Some Useful Links
Direct link to user login page
By default, the Login Page Form can always be found at:
http://www.mysite.com/?q=user.
Direct Link to User Registration Page
http://www.mysite.com/?q=user/register.
Direct link to Request Password Form
...
Kanban view in Odoo-9
Kanban view defined as A kanban view shows a set of cards possibly grouped in columns it is important for odoo module to describe xml functionality. For example you can see below code which is use in .xml file.
<record model="ir.ui.vi...
What is jquery before() method ?
Hello Readers,
jquery before() method is the opposite of jquery after() method and it is used to insert the given content before the specified of each selected content or elements in jquery.
Syntax :
$(selector).before(content,function(...
Waht is a functional field and how to calculate it's value
A functional field is a field whose value is calculated by a function in openerp, hence in openerp functional fields values is calculated by the function and its process of function given below,
Parameters:
fnct,
arg=None,
fnct_inv=None,...
jQuery clone() Method
The clone() method is used to make clone of the elements that are matching to the selected elements and select the clones.
It basically makes copies of the selected DOM element to some other place in the DOM.
Syntax:
selector.clone()
...
What is Webhosting & Domain Services?
Web Hosting services are the ones that provide the service that assists restore your website's files. There a number of them present out there, But here you'll find the only FEW & faith one with everything you need. Speed, Quality support. Re...
Create new helper in codeigniter
Helper in codeigniter is not a php class but it is a function which is existing in helper file. Create a file with the name of your helper in /application/helpers here name as myhelper.php and place the following code in that file.
function ...
Touch events in javascript
There are following Touch events in javascript:-
touchmove - this event triggers when the touch point is moved by the user across the touch surface.
touchstart - this event gets triggered when the user makes contact with the touch surface...
Use of TimeStamp while reset password
While resetting password there is a need to prevent links to reopen again. For doing that you need an expiration check to validate whether link is in used state or not
So you need to store the current date time while sending the link to the us...
What is jquery after() method ?
Hello Readers,
jquery after() method is used to insert the given content after the specified each selected content or elements.
Syntax :
$(selector).after(content,function(index))
content : this is required parameter which specifie...
Remove index.php from url in codeigniter
We can easily remove index.php from url in codeigniter with the help of htaccess file. We only need to place the below code in htaccess file.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Rewrite...
Separate a column value into 2 column in MySQL table
Hello friends,
I am here to share a issue which I faced once, That is I want to separate a columns values into 2 columns.
So if you are also looking to separate a columns value into 2 columns, You can use following syntax-
UPDATE your_tab...
CSRF with Spring and AngularJS
In this blog, We will see how to configure CSRF protection and how to make AngularJS allowed to send information with a CSRF token to the server.
In AngularJS, $http service reads a token from a cookie which is named by default XSRF-TOKEN and se...
snow fall effect using pure css
Hi all,
Below is an example of snow falling effect using pure css3. in this example I'm just using css animation and change the snow image position -
css
#snow{
background: none;
background-image: url('snow.png'),url('snow2.png'...
Create user friendly url using htaccess
WE can create user friendly url using url rewriting with the help of htaccess file. It helps to make URLs with duplicate content should have canonical URLs specified for them. Also beneficial for search engine optimization(SEO) for url crawlin...
push() method of JavaScript Array
JavaScript Array push() method : The push() method is used to add new element in the array. The push() method add the new element at the end of the array. The push() method returns the new length of the array.
Syntax of Array push() method...
what is jquery apppendTo() method?
Hello Readers,
appendTo() is the jquery method which is used to insert the any HTML elements at the end of the given selector as a parameter into the appendTo() method.
Syntax :
$(content).appendTo(selector)
Parameters :
content...
CSRF configuration in Spring
In this blog, I am going to explain how to implement Cross-Site Request Forgery protection in Spring. No need to worry to enable CSRF in Spring. Spring Security comes with CSRF enabled. And if required we can disable it as well. Although disablin...
die() function in PHP
die() function is error handling method in PHP which used to handle a error in web application. It's also used to check whether the function is work properly or not.
<?php
$file=fopen("myfile.txt","r");
?>
If myfile.txt file does ...
Manage menu items visibility in fragments
Creating menus in activities is a good choice but what would be if we are creating menus in each fragments ?
Basically a fragment depends on Activity life cycles and its parent activity features so if you want to create different different men...
Creating dynamic CSS styling
Basic ideas behind dynamic theming
In addition to creating templates that are displayed conditionally, the Drupal also provide us to apply CSS for specific conditions on any given page.
$classes this variable aid dynamic CSS styling. Cond...
How to set check-box with a certain value checked in jquery?
To set a checkbox checked with a certain value we use a function prop() with the attribute selector.
$('selector').prop('checked', true);
For example:
<input class="chkbox" name="ex[]" type="checkbox" value="0">0
<input clas...
What is $this->HTML->url and $this->HTML->link in cakephp
$this->HTML->url takes two arguments one is url containing routing array and other is boolean value which is either true or false.It returns a url which points to a combination of controller and action.It boolean value is true it prepend ...
Use of OFFSET in limiting data selections from MySQL
On selecting the data from MySQL if we are required to limit the data but also it is needed to start from some offset only not from the first record, then there we can add OFFSET in the clause of the query.
Lets take an example where we requir...
What is jquery prepend() method?
Hello Redaers,
jquery prepend() is the jquery method which is used to append or add the content or jquery elements at the BEGINING of the each selected or matched elements in jquery.
Syntax :
$(selector).prepend(content,function(index,ht...
Change Column data-type from VARCHAR to DATE
Hello friends,
I am here for share the solution of a MySQL problem.
If you want to change the data type of a column from varchar or any other one to date, you should need to use following query-
UPDATE `tbl` SET `date1` = STR_TO_DATE(`date...
How to limit data in selections from MySQL
In PHP if we are working on database and it is required to limit the data we want from the select query we can do it by appending a clause in the query. This can be helpful in pagination etc in our page.
Lets take an example in which we are re...
pop() method of JavaScript Array
JavaScript Array pop() method: The pop() method is used to remove the last element of the array. The pop() method returns the removed element. The pop() method changes the length of the array by decreasing one.
Syntax of Array pop() method...
How to fetch request variable in Zend Framework
Hello Friends,
If you are looking to fetch the request variable in Zend Framework like As a web-page get submit lots of variable posted through GET or POST method. If you want to fetch these variable in Zend Framework, please use the below cod...
How to send hashmap from one activity to another
HashMap is basically an implementation of map and this is not synchronized. HashMap basically contains key value pair data.
From sending activity we can create and send hashmap value like this :
HashMap<String, String> mHashMap= adapt...
Cakephp HTMLHelper
HTMLHelper is used to make html options easier and flexible.some are the HTMLhelper examples whciha re given below.
HtmlHelper::charset($charset=null) is used to create a meta tag.
echo $this->Html->charset();
HtmlHelper::css(mix...
Hide Soft keyboard in android
Below I am writing a method that will hide the soft keyboard in android.
I just use hideSoftInputFromWindow() method of InputMethodManager in this method.
public static void hideKeyboard(Activity activity) {
//start with an 'al...
Switch from one application to another application at runtime in Appium
There are many times we have to switch from one application to another while in the middle of execution. In this case we have to switch to the second application and then perform some action and then again return back to the previous application....
How to use page redirection in Zend Framework
Hello Friends,
If you are looking to use page redirection in zend framework. Like as you know we always need to redirect our web-page from one page to another webpage for example after successful record insertion in you always wants to redirec...
How to display all errors in php
To display all errors in php we need to add following lines of code in php file.
error_eporting(E_ALL);
ini_set('display_errors', 1);
We can Set display_errors = On in your php.ini file.
or we can try the following code in php file....
Xamarin in VisualStudio
Xamarin is a tool that can be integrated with visual studio for building mobile application using the language you are comfortable with like C#
With Xamarin you can build an Android application, IOS application using the C# code on your ba...
Services in android
Services in Android is a component that runs in the background without any user interaction or interface.
Services in android are used to interact with the hardware and software for providing interactions and accomplishing tasks.
Ser...
How to integrate time zone in jquery calender
Hello Reader's If you are making the html 5 form then you can integrate the user time zone in the date time calender also, Lets see the example below:-
first you have to downoad the JS an CSS file from here
Now you have to create an html pa...
Using Intent in android application
While building android apps you need to start and end activities in background or in foreground according to your need
Intent is the interface through which you can interact with the OS.
protected void onCreate(Bundle savedInstanceState) {...
Pasword Reset Link in .NET
While resetting password of users you need to email link to the registered user for changing their passwords
For doing that you have to perform the following line of codes
/* To send mail function is being c...
join() method of JavaScript Array
JavaScript Array join() method : The join() method of the array is used to combine all elements of the array and return as a string by separating elements using the given parameter. By default the elements are separated by comma (,), we can pass ...
Setting Div property from code behind
While programming we have used division tags many times and it is the best method to store and display data in an HTML page.
Setting up div values can be done from front page as well as from the code page
Ex: <div id="maindiv" runat...
fopen() & fwrite() function in PHP
fopen() function is used to open files. it contain 2 parameters, first parameter specify the name of file to be open & second one specifies in which mode file should be open. This function also used to create file.
Example
<?php
...
Add/Subtract number of days to specified date in PHP
This article explains how to add and subtract number of days from a specific date in PHP. In many cases we have to get date after or before a specified interval of days, months and years from current date or from any specified date.
Note : Wi...
Restore Android Activity state
We know about the common life cycle methods of Activity but what happens when user rotates screen :
Basically whenever user rotates the screen android save the states in onSaveInstanceState() and recreate the activity by getting all view state f...