
Search In
You can hide the "My Sites" menu from Liferay Docbar by creating hook. In my example i am hidding the menu option for all the users except those whose role is Administrator. You need to Hook the html/taglib/ui/my_sites/page.jsp
Add the following cod
Ruby provides a number of enumerable methods that we can pass on collections or array for performing searching, sorting etc operations.
Here I will be discussing with all, any, none and find methods:
a) all?
In this every member of the collection
ncr means : combination in terms of mathematics.We have to find out the perfect combination of given values.
In the mathematics nCr has defined as nCr = n! /((n-r)! * r!)
#include
int main(){
int n,r,ncr;
printf("Enter any two n
Hey guys! I want to write a program that finds the sum of cubed terms. i.e. 1**3 + 2**3 + n**3
I wrote down the following code:
// n = input('Give the value of n.')
n = int (n)
s = ((n(n+1))/2)**2
print ('Sum equals =', s
We can send mail by Using mail() function.This is a PHP predefined function for sending mail.
Also we can send multiple attachment at the same time using php mail function and using php code for multiple files.
For sending multiple attachment we
hey there! whenever i run my program it works well but when im at removeTail() it crashes at last value,it works to delete from the back when im at the last value it crashes,any help? hope it makes sense.
import java.util.Scanner;
public class deq
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 used t
I want to use another if statement in below mail function with failure message.
so when mail will not sent it can display failure message on the screen
<?php
if(isset($_POST['submit'])){
$to = "Test@gmail.com"; // this is your Emai
This tutorial will help you to generate a PDF file in Android. Follow below steps to generate PDF file.
Step 1 :- First download .jar files from following URL and put it into your application's libs folder.
Download URL:- https://www.dr
In our regular programming life, we always come in to situation where we need to pick few elements from array, remove them or insert some elements into them. In ruby there are methods available for such operations. Some of them are:
1) Select:
Sele
