Sunday, March 30, 2014

How to auto login CentOS 6.5

I was using CentOS 5.9 previously and recently updated to CentOS 6.5 as i am single user on my PC wanted to auto start the desktop and have auto login facility available. Hence i googled a lot and found solution below with the warning.

To make CentOS Desktop version auto login with GUI follow the instructions as given below.

You need to login using administrator right.

Step: Login from Terminal screen using the Application >> System >> Terminal

$ su
$ [[Enter Password set for root user]]

Go to the folder /etc/gdm

$cd /etc/gdm

To edit the file you can use gedit or vi I have tried using both with tell you the easiest way also the developer way.

$ gedit

It will open the gedit text editor. Open the custom.conf file. Under  the [deamon] section insert following lines.

[deamon]
AutomaticLoginEnable=true
AutomaticLogin=[[user name]]

[[user name]] with which auto login shall be done.

Save the file and you are done.

Close the gedit and reboot. It is now auto login enable.

Note: Don't make mistake in entering the user name else system might not login at all and it will show you annoying black processing window endlessly.

I hope you might get benefited with information.

 








Friday, December 6, 2013

Document Template for Police Verification can be used by People who stay on RENT premises.

Police Verification Form

Word File

Police Verification Form Download WORD Format (*.docx)

Pdf File for printing.

Pdf File Police Verification Form.


Use it as per your requirement. It is provided as-is purpose only. This may vary state to state police requirement. 

Wednesday, December 4, 2013


I was trying to search for this options and found it Oracle Conversion for Hex functions.

Decimal to Hex function

CREATE OR REPLACE FUNCTION dec2hex (N IN NUMBER) RETURN VARCHAR2 IS
  H  VARCHAR2(64) :='';
  N2 INTEGER      := N;
BEGIN
  LOOP
     SELECT RAWTOHEX(CHR(N2))||H
     INTO   H
     FROM   dual;

     N2 := TRUNC(N2 / 256);
     EXIT WHEN N2=0;
  END LOOP;
  RETURN H;
END dec2hex ;

Hex to Decimal function in Oracle

CREATE OR REPLACE FUNCTION hex2dec (hexnum IN CHAR) RETURN NUMBER IS
  i                 NUMBER;
  digits            NUMBER;
  result            NUMBER := 0;
  current_digit     CHAR(1);
  current_digit_dec NUMBER;
BEGIN
  digits := LENGTH(hexnum);
  FOR i IN 1..digits LOOP
     current_digit := SUBSTR(hexnum, i, 1);
     IF current_digit IN ('A','B','C','D','E','F') THEN
        current_digit_dec := ASCII(current_digit) - ASCII('A') + 10;
     ELSE
        current_digit_dec := TO_NUMBER(current_digit);
     END IF;
     result := (result * 16) + current_digit_dec;
  END LOOP;
  RETURN result;
END hex2dec;


And to convert simple ASCII String to Hex String you can use.

sql>select rawtohex('0123456789') from dual;

output

RAWTOHEX
----------------
30313233343536373839

Very useful for developer want to encode string of ASCII value to Hex

It internally first converts ASCII String Value of '0' to 48 in decimal value later converts 48 decimal value to hex value as 0x30

Friday, April 20, 2012

EMI CALCULATOR


What is an EMI?

EMI is a short version for Equated Monthly Installments.    Thus, EMI is what you pay every month towards repayment of your loan.  EMI for a given loan amount depends on number of factors including the loan amount, the rate of interest and the tenure of the loan. For a given loan amount and interest rate, your EMI can be lower if you increase the loan tenure.  Your EMI comprises an interest component and a principal component. Different types of  retail loans  are offered by all major banks in India  (Retail Loan schemes of SBI, PNB, ICICI Bank, HDFC Bank, IDBI Bank, Bank of India, Bank of Baroda, Corporation Bank are available at respective websites.  However, these banks use the same EMI formula for arriving at the monthly installments.  There can be minor variations owing to the method adopted for the initial payments or the timing of the installment during the month).


Formula for Calculation of EMI :
 We have already mentioned elsewhere that this formula is a bit complex.  A person with not much background of mathematics will find difficult to understand or make use of the same.  However, the mathematical  formula for calculation of EMI is as under :
EMI =    (p*r) (1+r)^n
            ___________
              (1+r)^n - 1
  • p = principal (amount of loan)
  •  r = rate of interest per instalment period, i.e., if interest is 12% p.a. r = 1,
  •  n = no. of installments in the tenure,
  •  ^ denotes whole to the power.


You can find more information on http://allbankingsolutions.com/emi-calculator.htm

Monday, April 16, 2012

how to configure android phone APN settings

APN SETTINGS For Android Mobiles
Go to Settings & Wireless>> Mobile networks
>> APN SETTINGS


APN name:  loop (mobile operator)
APN :www

Authentication type:  PAP (select from the list)


APN TYPE: default (Type default)


Thursday, January 19, 2012

Interest Calculators

Highest Simple Offered By Banks



S.No. Name Under Rs. 1 lakh Over Rs. 1 lakh
1 Yes Bank* 6.0% 7.0%
2 Indus Ind Bank 5.5% 6.0%
3 Kotak 5.5% 6.0%
4 Karnataka Bank 5.0% 5.0%
*Yes Bank’s press release on their website.