Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

Hiding "My Sites" Menu in Docbar in Liferay

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 Enumerables: (all, any, none, find)

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

A program to find out NCR factor of given number in C language

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

How do I debug this code of the 'TypeError: 'int' object is not callable' error in Python?

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

Script for email send with multiple attachments using PHP?

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

Dequeue remove from the tail using node

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 in C++

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

Php mail function if statement

  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

How to create a PDF file in android?

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

Array operations in ruby

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

prev 1 3 8
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: