In Joomla admin when we creating Menu and give the menu alias name it's working fine.
But sometimes, the case when we change the alias name of one menu.
For example: we change example.com/mymenualias1 to example.com/mymenualias2
We are r...
Hi Friends,
Hope you are doing well with your work. Today I am here with one of the most common topics in Rails that is format validators in rails. Lets start with defining validation.
"Validations are used to avoid the invalid data to get sto...
If we have has_one relation between two models then we need to declare belongs_to relation in one model and has_one relation in another model. belongs_to will be declared in the model where we will have the foreign_key and has_one in the other mo...
When we Install Joomla on our machine and we Log into Joomla administrator, after that when we enter the username and password, it will not taken us to the admin page, instead of landing to the admin page we get redirected to the same login page ...
We follow few steps before giving release of the application:
1. Test Strategy:
A Test Strategy document is a high level document which are prepared by a Test Lead or project manager. This document can be explain about Software Testing Approa...
Hi all,
Below is an example how to make half color on text using css. In this example we are using custom-attribute.
If you are looking for custom-attribute, In one my previous blog I have explained about it click custom-attribute to know m...
If you want to import the customer data through csv file in OpenERP(Odoo) follow the below mentioned steps:-
Step-1 Go to Settings Menu and Click it.
Step-2 Go to Modules -> Update Modules List and Click it.
Step-3 Click o...
Introduction of Struts2 Framework:
Struts2 is one of the mostly used framework for the Java application development. The struts2 framework is developed by the Craig McClanahan and later he handed it over to the Apache Foundation. Struts2 is ba...
With the help of this javascript prompt() function, I have created a dialog box that will be used for taking user input. The prompt() method displays a dialog box that prompts the user to input data
<!DOCTYPE html>
<html>
<h...
Hi Friends,
We have talked about few Rails topics earlier like validates associated and overriding naming convention of table names. Here I am again with one more topic Virtual Attributes in Rails. Before discussing that lets look into a situati...
I came across a requirement where i had to find the current domain address of the app as i had to send an email to users with a public page url. I knew the virtual address of page but it would not work as in order to open a page from my website u...
Sometimes the method definition is not displayed hovering over the method name.
On hovering the desired method, following message is displayed:
"Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be...
If you want to set the Alarms in OpenERP(Odoo) follow the below mentioned steps:-
Step-1 Go to Sales Menu and Click it
Step-2 Go to Configuration ->Calendar->Alarms
Step-3 Click on Create Button
Step-4 Go ...
In pessimistic locking a particular row in the database is exclusively locked so that other updates on the same record are blocked . This mechanism has the advantage that when a certain operation is going on the selected row other user cannot rea...
Optimistic locking is used to restrict updation of a record by multiple user at the same time . For example we have two user u1 and u2 and both of them is trying to edit the same record from a model City . While u1 is editing the record u2 c...
This tutorial is about sending the Email from your android code using implicit intents.
Following is the code to send an Email-
Intent emailIntent = new Intent(Intent.ACTION_SENDTO
, Uri.fromParts("mail...
Prototype in JavaScript
A prototype is nothing but an object from which other objects inherit their properties and every object in JavaScript has a prototype by default.
Objects in JavaScript is primitive data type which may be Nul...
Log4j in Java
Log4j is a logging tool made only for Java
Generally we Use System. Out console to print our Output, but they are all temporary messages and whenever new program run or when console is closed, our Output messages automatically...
HI all,
We can't add the margin between row in table but we can add space using an alternative method.
for this you have to add some property in your style.
table {
border-spacing: 0 5px ;
border-collapse: separate...
If defect report is productive then there are higher chances that it will get fixed as soon as possible. So it depends on how energetically you report the bug. Reporting a bug is nothing but an art or skill. In this topic will discuss "How to mai...
File uploading is the basic requirement of web development. Many times we have to upload single or multiple files on our server then we can not upload big files using form submit. We have to use the in-build jquery plugins for the file upload. Th...
AngularJs provides a very useful and time saving feature,i.e,Two-way Data binding. Two-way Data binding in AngularJs is a way to synchronize data between model and view. If we change something in the model, it gets updated in the view component a...
Sometime we a have a situation in which we use android app in our web application.In that situation you can use this.
For opening the android app first we have to check 2 conditions .
1. If the device is android or not.
2. In the android dev...
In Ubuntu system, first check for the PHP. For checking open the terminal, using command
**Ctrl +Alt +T**
and type whereis php
If PHP present in system, above command display the path of PHP
Make a PHP file from where you can acce...
UI Testing:- UI Testing means (User Interface Testing). In UI testing tester basically check, how the application look & feel at the time of testing. In this time testing includes in application like- fonts, colors, images, buttons, layouts, ...
Following Points should be remembered during Testing process:
1.Always start with positive testing i.e, test for all the positive values according to requirements.
2.Continue with negative Testing i.e, test for all the possible negative val...
Hello Readers,
If you want to add the new module position in Joomla admin and show the text or Html on the front end side of this add new position.
You have to follow the some certain steps to do so:
1> Log into the Joomla admin Secti...
Hi Friends,
I am here again with one more topic in rails that is validates_associated.
So as we all know that associations are a major part in every kind of Relation Databases. So what happens if we have one model with some associated objects ...
Hi friends,
Today we are going to talk about overriding the default naming conventions for table name and primary key in rails model. Before switching directly to the topic lets take a look to the summary of default naming conventions for dat...
If you want to import the customer data through csv file in OpenERP(Odoo) follow the below mentioned steps:-
Step-1 Go to purchases Menu and Click it.
Step-2 Go to products button and Click it.
Step-3 Click on Import Butt...
QA Server and its advantages:- QA stands for Quality Assurance. QA server is used for testing software where all types of tests are performed/done to measuring the quality of the software/product. Software is installed from development server to ...
To create stages of project in openerp follow these step given below
Step1 Install project module in openerp
Step2 - Go to Project -> Configuration -> Stages -> Task Stages -> Stages -> New
As shown in below given figure, one...
If you want to import the customer data through csv file in OpenERP(Odoo) follow the below mentioned steps:-
Step-1 Go to Sales Menu and Click it.
Step-2 Go to Customer button and Click it.
Step-3 Click on Import Button and file will be up...
Method Name: selectByVisibleText
Syntax: select.selectByVisibleText(Text);
Purpose: To Select the options based on text, matching with the argument given by user., it will try to match the VisibleText which will display in dropdown.
The bel...
Hello readres today we will discuss about "How to Rename files during upload within Wordpress backend".
There are many hook function to remane file in uploading time in wordpress. We will use the sanitize_file_name hopok function.
Suppose use...
has_and_belongs_to_many association is used in rails where we dont need a third joining model to establish the relation between the two model. There will be no additional columns (except the foreign keys) of the third joining table.
For exampl...
With the help of jQuery we can delete link for any record. On below code we have add a click event to triggers the ajax request. when the ajax request returns get success response.
$(document).ready(function() {
$('a.delete').click(fu...
We can read and inject the property from property file in spring. The below code will show you how you can read the property from property file and inject that properties to the List Object by using spring-config.xml file.
Customer.java
pac...
Locators in Selenium Webdriver:
In Selenium WebDriver, everything is related to web elements. All the objects in a web page is called web elements like input box, buttons, etc. To do any action with these web elements, we need to first locate ...
Slide-Out Side Bar Menu/ Hamburger Menu
One of the useful implementations of menu views has been the slide out side bar often known as basement,side drawer or side menu it is vastly used & is popular in Facebook app and Path.When the us...
Below is the step-wise process for integrating a Podfile easily in your Application.
Open Terminal
Change the directory in Terminal to the location where your Xcode project resides.
When you reach to the desired project location in which ...
Method Name: selectByValue
Syntax: select.selectByValue(Value);
Purpose: To Select the options based on value, matching with the argument given by user.
The below is the sample html code Example:
HTML Code:
<title>Select Example b...
What is Test Case?
Test case is an in-detail document that consists of step by step procedure to test the application.
It consists of navigation steps,all the possible scenarios and all the possible inputs that needs to be tested for applicat...
Function Templates:-Templates are used to achieve the generic programming. By using function template the code will be independent to any data type.
A template is used to create generic class or a function. By using function templates we have ...
Here is the code for UIImagePickerController Delegate. In this Code when we select an image from UIImagePickerController then we call this delegate function which upload the selected image to your local application folder. You have to first find ...
Robots is useful to prevent your website from search engines indexing. You can simply add robots.txt in your website as well as set the default robots settings from admin.
Go to configuration->system->design section to set the value for ro...
Which ORM is better is terms of performance and ease of use between these two. In some benchmarks I have read ORMLite is faster and in some, I read GreenDao. I like the way automatic code generation works in GreenDao. Also it does not use any ann...
"How to show multiple items in a textbox, using auto completion in Javascript"
In this article we will make a project that will select multiple items from the autocomplete list and display them in the textbox as tags using Javascript.
For ...
Pre Conditions:
1. Install the Jmeter in system
2. Mobile & installed Jmeter system should be in same network
Follow the Steps to Connect the Android Mobile to Jmeter:
Step 1: Open the JMETER in system
Step 2: ...