How to apply conditional operators in JSTL?

In JSP file sometimes we need to put conditional operators through JSTL. Example: In the below example I am applying && and || operators. <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <html> <head&g...

How to use WPDB in standalone script?

Hello readers, today we discuss about "" Q. What is Standalone script? Ans. Standalone is also consider a new software program, it does not involve almost any computer software in addition to this OS to operate. Consequently nearly all softwa...

Get contact name and phone number

Hi all, If you want to get contact name and contact number from your iphone contact list then below two methods can help you to get contact name and contact phone number . Note: In this you will only get those contacts,which contain phone ...

Setting minutes to a negative value

What happens if we set the minutes value to -80? Here is the example for setting a minutes in negative. var dt= new Date(); document.write( dt + "<br><br>"); dt.setMinutes(-80); document.write( "<br><br>" + dt ); ...

How to find the size of a file while uploading in JSP?

Sometimes we need to find the size of a file at the time of uploading to prevent the file that is greater than a particular size. We can achieve this by handling "change" event of a input-file. Examlpe: Suppose I want to upload a file less tha...

Make Textview underline

Sample code to make a textview underline - tvPrivacy3.setPaintFlags(tvPrivacy3.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG); And sample code to make textview strike line tvPrivacy3.setPaintFlags(tvPrivacy3.getPaintFlags() | Paint.ST...

How to find the extension of a file to be uploaded in JSP?

Sometimes we need to find the extension (file-type) of a file at the time of uploading to apply some validation on it. We can do this by handling "change" event of input-file. Example: In the below example I want to upload the file having exte...

How to put validation on a file at the the time of selection in Jquery?

Sometimes we need to apply validations on file-size and file-type of a file while uploading. We can check this by attaching a function to the "change" event. Examlpe: <input type="file" name="uploadFile" id="uploadFile" class="upload" t...

Sorting an array containing mantle model as object

Hi all, To sort an mantle array containing mantle model as object ,You can easily sort by multiple keys by adding more than one to the array. Using custom comparator-methods is possible as well. NSSortDescriptor *sortDescriptor; s...

Bounds and Frames in iOS

Hi Readers, This Post is to tell about the BOUND and FRAME in ios. BOUND: The bounds property of a view defines the size of the view and its position in the view's own coordinate system. This means that in most cases the origin of...

jQuery clone ( ) Method

This method is used to make a copy of matched elements. Using this method we can also makes a copies of their child nodes, texts, and attributes. In another words it makes the duplicate of the matched elements. Syntax : $(selector).clone(true...

Ajax call in wp-oauth plugin

Hello readers, today we discuss about "How to call Ajax in wp-oauth Plugin". "wp_ajax_your_function_name" its a pre define method for loged in users. You can put the below code into plugin.php file. "getMinorCatList" is a function where aja...

How to use angular.foreach with ng-repeat?

We use ng-repeat to iterate over the properties of an object. It instantiates or clones a template once for each item in a collection. Similarly,angular.foreach invokes a function that is an iterator function once for each item in an obj colle...

Static method in PHP

When we declare a function as static then we generally get confused about what to use like '->', '::', 'this' or 'self'. There are something we need to take care of when declaring a function as static: 1: If the variable or method being...

How to configure memory argument and server mode for Liferay in Tomacat server?

To increase memory and change server mode you just need to write below arguments in setenv.sh file. Example: path: /bundles/tomcat-7.0.42/bin/setenv.sh CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -...

jQuery after ( ) Method

This method is used to insert the data after some specified tag or content . It is just same as jQuery append( ) method. If you want to insert the data before some specified tag or content then you should use before ( ) method. Syntax : $(se...

Multidex with Gradle

APK uses executable bytecode i.e Dalvik Executable (DEX) files to run an app. The dex file limits the total number of methods in a single dex file to 65,536, including Android sdk methods, library methods, and methods in our code. But sometimes i...

jQuery append( ) Method

This method is used to insert the data at the end of the selected elements . It is just opposite of the prepend( ) method . Prepend ( ) method is used to insert the data at the beginning of selected elements . Syntax : $(selector).append(cont...

jQuery prepend ( ) Method

This method is used to insert the data at the beginning of the selected elements . It is just opposite of the append( ) method . Append ( ) method is used to insert the data at the end of selected elements . Syntax : $(selector).prepend(conte...

Get Cookies from Php Curl into a variable?

Hello readres, today we discuss about "Get Cookies from Php Curl into a variable?". CURL provides an option (CURLOPT_RETURNTRANSFER) to set a callback that will be called for each response header line. The function will receive the curl object...

Convert Currency code to symbol Android

Hello Friends, Here is simple code to convert currency code to symbol in android. public String getCurrencySymbol(String currencyCode) { try { Currency currency = Currency.getInstance(currencyCode); return currency...

Why do we use Subnetting

Subnetting is the process of dividing a single network into multiple small networks. Converting host bits into network bits i.e. converting 0s into 1s Subnetting helps in minimizing the wastage of IP address. For Example ...

each, collect and map in ruby

1> 'each' will loop through each element of the array and evaluate whatever is return inside the block, but it returns the original array without any change. a = [5,10,15,20] => [5, 10, 15, 20] a.each {|t| t+2} => [5, 10, 15, 20...

How to check if cookie is enable or not

Hi. If you are looking for code to alert user if his cookies are enable or not, Then look the code as below:- paste the code in you file <?php if (isset($_COOKIE['cookieCheck'])) { echo 'Your cookie is Enable'; } else { if ...

How to make blur overlay effect using CSS

Hello Reader's, If you have to make the beautiful overlay of blur effect of image on the screen then you can learn it from the code below. This is done by using CSS 3 Put the css as #myDiv { width:280px; height:200px; ...

Various options of ls command in Linux

Output of most of the commands in Linux can be modified by using options/switches. ls command is also not an exception. ls command is used to list the contents of a directory. It has lots and lots of switches to customize its output. Switches...

Order confirmation mail not sending in magento 1.9+ versions

From magento 1.9+ versions , emails are not being sent directly , they were queued and queued mails were being processed by magento cronjob. You need to set the cron job correctly to send the mail. If you want to send mail forcefully after pla...

How to rename a table in MySQL?

To rename a table in MySQL you need to execute the following command: RENAME TABLE old_table_name TO new_table_name; The old_table_name must exist n the database and the new_table_name must not. For example, we have a table name demo and ...

How to Animate the Table cells

Hi Readers, To make the tableView cell animate from a particular point to its position, you just have to add the lines below in the willDisplayCell: delegate function of the table view as shown below. -(void)tableView:(UITableView *)table...

Use amount booked in the company currency for conversion into voucher currency in Odoo

To Use amount booked in the company currency in openerp Follow these step to given below Step-1 Install the account_voucher module. Step-2 After that custmozie account_voucher module. In below example, I have custmozied account_voucher modu...

How to change the context root of dynamic web application in eclipse?

To change the default url of the dynamic web project, say, the default url of a project is http://localhost:8080/DemoApp through which we can access the project using brower but we need a url like http://localhost:8080/xyz, then there is need ...

Integreriting solarium in cakephp2.4

I have problem with start Solarium Client, I downloaded it by Composer. I install it in Vendor When i want getting document from solr i have to creet a Client instance $client = new Solarium\Client($config); I Get this ERROR Error: Class '...

What is the Domain in the Software Testing

What Is The Domain In The Software Testing:- Normally domain is not anything but it denoted to the enterprise wherefore the software or application testing project is constructed. This name is frequently related when we conversation about the...

Windows 8 File History: How to takes Backups automatically?

This one is relay interesting, If you want your windows machine should take all your files backup automatically than please readout the full article by visiting the below source. What is File History on Windows 8? Is it like shadow copy? Fi...

jQuery before( ) method

This method is used to insert the data before some specified tag or content . It is able to add the content at specified position by the parameter after matching the elements . insertBefore( ) and before( ) methods are same, they perform same tas...

How to access call logs in android.

Easiest way to get the call duration of last call in android device is by using CallLog.Calls. Content Provider CallLog.Calls is used to provide access to the call logs data. CallLog.Calls provides interface between data and the code, also it con...

jQuery Text()

This method is used to set the content of selected elements even we can get the text content also .When this method is return the text content ,it returns the all matched elements without the HTML markup. And when this method is used to set the c...

Better way for this

I am creating an app in phonegap for daily news, I am storing my news details to amozon s3 server. So in my app home page i am displaying all news list. User can read news in both offline and online mode. I stored amozon s3 file link in my data...

Types, Tools and Advantages of Back-end Testing or Database Testing

Types, Tools and Advantages of Back-end Testing or Database Testing:- Types of Back-end Testing or Database Testing:- There are several types of back-end testing or data base testing. Back-end testing contains the following testings:- Fu...

Object Relational Mapping(ORM)

if we want to access and manipulate objects without considering much about its data resources, we use ORM. ORM allows programmers to maintain a consistent view of objects over time.Mapping details between a set of objects is managed by ORM. OR...

HOW TO CHECK IF AN INTERNET CONNECTION EXISTS ON iOS DEVICE

Hi Readers, The most simple way to know that the device is connected to the internet is : NSURL *scriptUrl = [NSURL URLWithString:@"http://apps.wegenerlabs.com/hi.html"]; NSData *data = [NSData dataWithContentsOfURL:scriptUrl]; if (data) ...

Update without touching timestamps (Laravel)

I want to update my data but I dont want to update my timestamps. Laravel 4.x provide us the facility to update our data without updating our timestamps. The example to Update without touching timestamps using Laravel 4.x is: $user = User::...

Set Minutes method Js

We can set the minutes part of the date object by using setMinutes function Sets the minutes value in the Date object using local time. Set methods take optional arguments using the value returned from corresponding get methods, if you do not spe...

Laravel Creating Dynamic Routes to controllers from Mysql database

I want to create dynamic routes to controller from mysql database.We have the available following table for this. id name route -------------------- 0 About about 1 Contact contact 2 Blog b...

What is Backend Testing ?

What is Back-end Testing ? Back-end testing is also known as data base testing. This testing performed at server side. The entries or data which are inserted in the front end or forepart will be collected in the back-end or backside. There are...

An active access token must be used to query information about the current user

Hello Guys, While working on FB APP you might encounter with this error "An active access token must be used to query information about the current user". I have faced the same problem and during R&D I got to know FB.init works async mode so...

Parsing the Date in javascript

The Date.parse() method takes a date string, and returns the number of milliseconds since midnight of "November 1, 1997 10:15 AM". if the string is unrecognised or contains illegal date values (e.g. 2015-02-31) Syntax Date.parse(dateVal) ...

Difference between id and class attribute

1) There are many different kind of CSS selector which we can use to apply CSS style to an element in html. ID and Class are one of them. Using Class attribute are easier as compared to id because of the negative effects of an ID selec...

Associations in Rails

Associations makes common operations simpler and easy in code and removes unnecessary complexities.It ties objects together using foreign keys. Associations creates a connection between two models. here is the code which shows Association exampl...

How to delete data in Liferay

Hello I am looking best way of deleting the selective data from liferay database. Thanks in advance
1 198 292