Monthly Archives: August 2012

Setting Page Margins in Latex

Simply use the fullpage package for somewhat standardized smaller margins (around an inch): \usepackage{fullpage} For an even greater effect give it the cm option (around 1.5cm): \usepackage[cm]{fullpage} Use the a4wide package for a page with A4 document size with smaller … Continue reading

Posted in Uncategorized | Leave a comment

How to see system logs?

Type the following command in the terminal: tail -f /var/log/syslog And its done!!

Posted in Uncategorized | Leave a comment

Installing phpLDAPadmin after setting up a LDAP Server

Before you install phpLDAPAdmin (also known as PLA), you will need to have your LDAP server up and running. Once that is achieved you can then proceed with your installation of this management tool. You will also need to have … Continue reading

Posted in Uncategorized | Leave a comment

Processing MySQL Dates in Java & Groovy according to requirement.

This program gets start and end date from MySQL database, List the dates inbetween two dates and match with the current date. If date matches, it will pick Dept_id and Person_id from the table in Mysql. Side by side, it … Continue reading

Posted in Uncategorized | Leave a comment

Calculating Working Days Between Two Dates in Java.

Here is the code: import java.util.*; import java.text.*; /*Author: Priyanka Kapoor Date: 6th August,2012 Description:This program calculates working days between two dates. */ public class getdays{ public static int getdays(Date startDate, Date endDate) {     Calendar startCal;     Calendar endCal; … Continue reading

Posted in Uncategorized | Leave a comment

Make Touchpad (of Dell )working in Ubuntu If it Stopped Working

I faced this problem. Touchpad of my Dell Laptop was working in Windows 7 but not in Ubuntu 12.04 . I gave the following commands and it started working. 1. Become root. $sudo -s 2. Give your laptop password. Then … Continue reading

Posted in Uncategorized | 1 Comment