Thursday, March 7, 2024

GIT : 


Error :  fatal: cannot create a directory at '': Filename too long


git config --global http.proxy http://proxy.****.com:80

git config --global core.longpaths true git clone *** URL***



Wednesday, November 6, 2019

How to increase CPU Performance ?

Run below commands & Sift+Delete

1. ccmcache
2. prefetch
3. %temp%

Download latest drive from laptop product & Install.

Thursday, July 16, 2015

javax.xml.bind.PropertyException:name: com.sun.xml.bind.xmlDeclaration value: false

javax.xml.bind.PropertyException: name: com.sun.xml.bind.xmlDeclaration value: false
at javax.xml.bind.helpers.AbstractMarshallerImpl.setProperty(AbstractMarshallerImpl.java:349)
at com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.setProperty(MarshallerImpl.java:544)
at com.cat.rr.tdmscdl.inf.ErrorMessageService.getErrorMsgXML(ErrorMessageService.java:65)
at com.cat.rr.tdmscdl.inf.ErrorMessageService.sendGrieftoTVS(ErrorMessageService.java:27)
at com.cat.rr.tdmscdl.inf.ErrorMessageService.main(ErrorMessageService.java:53)


The above error will be appears when we are using Java 1.6 and JAXB.
jm.setProperty("com.sun.xml.bind.xmlDeclaration", Boolean.FALSE);

Please include following Jars in libs


jaxb-core.jar
jaxb-api.jar
jaxb-impl.jar

Thursday, November 29, 2012

In windows 7 : The specified DSN Contains an architecture mismatch between the Driver and Application

ODBC Driver setup

The following steps show how to access a 32-bit ODBC driver from a 64-bit application on a 64-bit Windows machine. The ODBC driver used is the Microsoft Access ODBC driver. The application used is the SQL Server Integration Services (SSIS) Import and Export Wizard.
  1. In the 32-bit ODBC Data Source Administrator, configure a System data source for the Access ODBC driver. To access the 32-bit ODBC Data Source Administrator, run the following command in the Windows Run dialog box:
    %windir%\syswow64\odbcad32.exe

Sunday, August 26, 2012

Java : Getting no days between dates in java

private static double durationInDays(Date dateFrom, Date dateTo) {


TimeZone tz = Calendar.getInstance().getTimeZone();

/*TimeZone ltz = TimeZone.getTimeZone(tz.getID());

System.out.println(tz.getID());*/

double timeTo = dateTo.getTime();

double timeFrom = dateFrom.getTime();

double duration = timeTo - timeFrom;

if (tz.inDaylightTime(dateFrom)) {

if (!tz.inDaylightTime(dateTo)) {

System.out.println("in daylight saving from: " + dateFrom);

System.out.println("not in daylight saving to: " + dateTo);

duration -= 60 * 60 * 1000;

}

} else {

if (tz.inDaylightTime(dateTo)) {

System.out.println("not in daylight saving from: " + dateFrom);

System.out.println("in daylight saving to: " + dateTo);

duration += 60 * 60 * 1000;

}

}

return duration / (24 * 60 * 60 * 1000);

}

Monday, February 6, 2012

Content Assist (Ctrl + Space) Is Not Working in Eclipse IDE / RAD in Windows 7

In Windows7 the content assist is not working in Eclipse IDE /RAD 7.0. I have Google the same information at not able find right solution.

At last I have changed content assist key to other key settings.


Preference ---> General ---> keys--->

Scheme: Default
Name: Content Assist
binding : Shift+spacebar ( Previous its CTRL +SPACEBAR )



Now short cut changed its working fine.


Tuesday, April 19, 2011

Time Difference in Minute with Current Date / TIme

public class MinuteDiffrence {


public static void main(String[] args) {
String dbD = "04/19/2011-19:39:02";
System.out.println(" Diffirence in Minute"+timeDiff(dbD,"MM/dd/yyyy-HH:mm:ss"));
}
public static long timeDiff(String dbD,String pattern){
try {
DateFormat formatter;
Date dDB;
dDB = (Date) new SimpleDateFormat(pattern).parse(dbD);
Date dApp=new Date();
System.out.println("Given Date " + dDB+"\nToday Date "+dApp);
long time=dApp.getTime()-dDB.getTime();
return time/60000;

} catch (ParseException e) {
System.out.println("Exception :" + e);
}
return 0;
}
}


OutPut:

Given Date Tue Apr 19 19:39:02 IST 2011
Today Date Tue Apr 19 20:53:42 IST 2011
74