Declaring Objects in javascript

Objects are another powerful way of handling and storing of data. In arrays the indexes are commonly numerical; objects give us a better way of assigning and retrieving data. <html> <script type="text/javascript">...

Spring Junit Test

Hello Guys! Testing is a very most important part of any project. Without good testing, a good product is uncertain. We have different frameworks available for testing the product functionality. We have a good framework JUnit available in Java....

Convert the amount in company currency using the currency rate and voucher conversion in openerp

To convert the amount in company currency using the currency rate and voucher conversion in openerp. use this function def _convert_amount in .py file in account voucher module in openerp def _convert_amount(self, cr, uid, amount, voucher_id,...

sort() & rsort() function in PHP

Sort() function is used to sort array in ascending order. Example: <?php $numbers = array(9, 6, 3, 22, 12); sort($numbers); $length = count($numbers); for($x = 0; $x < $length; $x++) { echo $numbers[...

Arrays and Objects in Javascript

variables are good and sufficient to hold the single values, But what if we want to store multiple values in a single variable in that case you have to use arrays or objects Values in arrays are saved index base. Remember that arrays i...

What is Zend Registry and how we can use this

Hello Friends, Zend Registry is temporary global storage area. In zend registry you can save values, object or array. With the reason this is global you can access this storage data in any page, controller etc. This is some this similar to sav...

return false vs event.preventdefault

Return false will perform three task when called 1 event.preventDefault(); 2 event.stopPropagation(); 3 Stops callback execution and returns immediately when called. The preventDefault() method cancels the event if it is cancellable, ...

What is User Exit and how to add User Exit in MDM Hub?

User Exit is a customize java code, that will help you to manipulate with the data before referring it as GOLDEN. There are many class provided by Informatica for User Exit such as postLoadUserExit, postMatchUserExit etc. Example: Suppose I h...

FORMAT(X,D[,locale]) function mysql

FORMAT(X,D[,locale]) In mysql FORMAT function is used for formats a number X to a format like '#,###,###.##' and rounded to decimal places, and it returns the result as a string. If D is 0, the result has no decimal point. The third optional ...

unlink() vs unset() Function

unlink() Function: This function is used for file system handling. It deletes the file used in context. For example: unlink('demo.txt'); The above line will delete the file unlink completely. It includes two parameters: filen...

Some Important Properties in Css

Properties are the most important features of the CSS as specify the visibility, size, and precise position of individual elements in a document. Other CSS properties allow you to specify stacking order, transparency, clipping region, margins, pa...

Useful Extensions/Modules for Themers

Please find the below listing of some very useful module that will make the theme developer life easier Sweaver Make themes editable by anyone Chaos Tool Suit Provides a collection of APIs and tools to assist developers for example aj...

What is contents() method in jquery?

Hello Readers, .contents() method is the jquery method which is used to get the child or children of each element in the set of matched elements including text and comment nodes and its return value is the new jquery objects. .contents() me...

What is .andSelf() method in jquery ?

Hello Readers, .andSelf() is the jquery method and it is the alias of .addBack() method because it is deprecated in jquery version 1.8. So, it's replacement is .addBack() method. .addSelf() method is used to add the previous selection to the c...

cshtml file in MVC

In MVC projects you have to create views inside controller class for performing tasks.   While creating views you also have to create their HTML designs for separate views in a single controller or in different controllers.   ...

Joomla Menu manager

Menu manager contains list of all menu items of website and allows options such as add,edit,rebuild menus. First you need to login on Joomla administrator panel and navigate to Menus> Menu Manager from the menu across the top of the Joomla adm...

Joomla 3.0 favicon

You can easily change favicon in Joomla using the following steps. First Create your Favicon with the dimensions 16x16 pixels, once you create it save it by using the name "favicon.ico". We can easily generate favicon using the free on...

How to get file name from full path with PHP?

To get the file name from full path in PHP function basename() is used. It contains two parameters one is path(the path to from which you rquired a filename) and suffix(it specify the file extension. If the filename has this extension then it dis...

MyISAM vs INNODB in mysql

Difference between MYISAM and INNODB are given below. MYISAM: 1 MyISAM does not support foreign keys. 2 MyISAM stores its indexes,data and tables in disk space using separate three different files 3 MYISAM not supports transaction ...

basename() Function

The basename() function is used to extract the filename from a path. In other words, the function returns the filename from a path. It contains two parameters: path(Required): it specify the path to check suffix(Optional): It is a optional ...

Custom HTML module in joomla

We can create custom HTML module in joomla using the administrative area. Go to Extensions -> Module Manager.Then click New icon and select Custom HTML as a module type. A new page will open where user need to enter the title of th...

FIND_IN_SET(str,strlist) function in mysql

FIND_IN_SET(str,strlist) FIND_IN_SET function returns a value between 1 to N if the string str is in the string list strlist consisting of N substrings. If the first argument is a constant string and the second is a column of type SET, the F...

joomla insert,update and delete

WE can easily manipulate our data from database in Joomla by using the below code. First need to call jfactory::getDBO$db = &JFactory::getDBO(); returns a reference for the database object in joomla. For INSERT query in Joomla structure ...

How to update an extension in Joomla?

To update an extensions in Joomla you need to follow the steps given below: Login to the back-end of the Joomla i.e., Admin section Now click Extensions-> Extension Manager Extension Manager page will appear. Now click Update. This pag...

Portability Testing And Few Checklist

Portability Testing:- Portability testing is an approach of the software testing in which we verify that the application or the software may be shifted from one atmosphere to other atmosphere or environment. It is calculated in form of maximu...

How to Concatenate two or more string in MySQL

This article explains the MySQL string functions which are used to concatenate two or more strings. 1. CONCAT : CONCAT() function is used to generate a string by concatenating two or more strings. The function take one or more strings as argu...

How to create User in MDM Hub?

Below are the steps to create a user in MDM Hub and assign ORS to user: Step 1: Launch the jnlp file. Step 2: Enter you credential, select the ORS. Step 3: Under Workbench, select Users. Step 4: Connect to Master Database. Step 5: Acquire Lo...

FIELD string function mysql

FIELD(str,str1,str2,str3,...) FIELD function is used to get the index (position) of str in the str1, str2, str3, ... list and it returns 0 if str is not found. In the field list if all arguments are strings then all arguments are compared as...

How to use Order By in Zend Framework

Hello Friends, If you are looking to use order by clause in Zend Framework. Please use the below code for the same:: $dbObj = Zend_Db_Table::getDefaultAdapter(); $selectObj = $this->select(); $selectObj->from(array('tbl_users'),arra...

How to count the number of words in any text?

We can count the number of words by using split method of javascript. What split method does: split() - Splits a string into an array of substrings Below is an example:- <form name=countingWords> <textarea rows="12" name...

SQL Tutorial -> Sql Where

<-- Chapter 4: SQL Distinct Chapter 5 SQL Where SQL Where : SQL Where clause extract or filters those records which matches the specified condition. Syntax for Where clause is used below SELECT * FROM tablename WHERE condition ...

Joomla 2.5 vs 3.0

1. Bootstrap: Joomla 3.0 is Bootstrap. With basic CSS already integrated into Joomla 3.0,while Joomla 2.5 is without bootstrap. 2. Less: LESS is a dynamic stylesheet language which has been integrated into Joomla 3.0. Template development has ...

How to find count and last element of array using Javascript

Hello Reader's If you are working on Javascript and want to get the count of array then you can use the syntax as below:- var car = ["mode1", "model2", "model4", "model5"]; car.length; output: 4 And if you want to get last elemen...

pathinfo() Function

pathinfo() function basically contains the information of the file path. It will take two parameters: path(required) : path whose information is needed. options(optional) :tells which elements to return. Values are PATHINFO_DIRNAME(returns ...

ELT function mysql

ELT(N,str1,str2,str3,...) The MySQL ELT function is used for get the Nth element of all listed arguments in the function. The first argument is used for which number of element you want to get. In the argument list the if N = 1 then return str...

How to print dates monthly between two given dates

Hello Reader's if you want to make ajax html form that takes two dates from user and print then daily or yearly or monthly then you can my code as below:- Lets say the html form, the code will go like this. <div class="form-group clearf...

Theming the views, Drupal 7

Views is the most popular module among the Drupal developer as it provides the visual query builder. views have lots of supportive module which enhance the functionality of views modules. Some basic works you can do by using views ...

Authentication Check each time the Page reloads using laravel 4.x

In every project we have minimum 2 sections. First is User Section and second is Admin Section and In our routes we want to put authentication check each time when page is loaded. I can easily explain this by using simple example. Route::gr...

CONCAT_WS function in MySQL

CONCAT_WS(separator,str1,str2,...) The full form of CONCAT_WS is concatenate with Separator which is a special form of CONCAT(). The first argument in CONCAT_WS is used as a separator for concatenate all other arguments. The separator is adde...

How to register an ORS in MDM Hub?

Below are the steps to register an ORS in MDM Hub: Step 1: Launch the jnlp file. Step 2: Enter you credential, select the ORS. Step 3: Under Workbench, select Database. Step 4: Connect to Master Database. Step 5: Acquire Lock, click on Regis...

Error Messages of File Array

Whenever you upload a file using PHP script it will return a error code with file array. This code you will find in the error section of the file array i.e., $_FILES['filename']['error']. Code are as follows: UPLOAD_ERR_OK: Value '0' Th...

How to insert data in Wordpress

Hello Friends, If you are looking to insert data in wordpress database. Please follow the below code for the same:: global $wpdb; //define db object in Wordpress $data['first_name'] = $_REQUEST['fname']; $data['last_name'] = $_REQUEST['l...

CONCAT string function mysql

CONCAT(str1,str2,...) CONCAT() string function in mysql returns the string that results from concatenating the all input arguments. CONCAT may have one or more arguments. If all arguments are nonbinary strings then their result will be a non...

Remove duplicate items from ArrayList.

I am removing duplication from arraylist. To do this, first add all the items of arraylist to a HashSet. HashSet takes only unique items. Finally, take HashSet items to the arraylist. List arrayList = new ArrayList<>(); arrayList.a...

Category List vs Category Blog in joomla

A Category List is used to show the articles which belongs to specific category. It is a menu items which links to a Specific page that is simply "lists" all of the articles belonging to that category. We can create a new list category menu item ...

How to assign an atricle to menu in joomla

We can easily add article menu type to menu in Joomla first Log into your Joomla administrator panel Dashboard. Go to Menus which is appearing at the top menus hover over the menu link and then click AddNewMenuItem. Then click select which is n...

How to check login status in Wordpress

Hello Friends, Generally in the website you can see lots pages are restricted to have access before login. If you want to add this feature in your Wordpress website. Please follow the below code in your in page. if(is_user_logged_in()) { /...

shift() method of the JavaScript Array

JavaScript Array shift() method : The shift() method is used to remove the first element of the array. The shift() method will return the first element which will be removed. The shift() method will change the length of the array. Syntax of th...

Helper function in codeigniter

Helpers in codeigniter According to the Name suggested "Helper" are the files which help us with tasks. Helpers are the collection of same category methods in a file. Each helper file is simply a collection of functions in a particular categor...

How to Promote the changes from one ORS to another in MDM Hub?

Below are the steps to promote the changes from one ORS to another: Step 1: Launch the jnlp file. Step 2: Enter you credential, select the ORS. Step 3: Under Workbench, select Repository Manager. Step 4: Connect to Master Database. Step 5: U...
1 163 292