Posts

Showing posts from June, 2014

PHP: Add number of days to a date

echo date('Y-m-d', strtotime("+14 days")); See the manual pages for http://www.php.net/manual/en/function.strtotime.php  http://www.php.net/manual/en/function.date.php

Android : Eclipse failed to create the java virtual machine

Open folder with Eclipse.exe and find eclipse.ini file Replace -vmargs with -vm "C:\Program Files\Java\jdk1.6.0_05\bin\javaw.exe" -startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807 -product com.android.ide.eclipse.adt.package.product --launcher.XXMaxPermSize 256M -showsplash com.android.ide.eclipse.adt.package.product --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -vm "C:\Program Files\Java\jdk1.6.0_05\bin\javaw.exe" -Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmx768m -Declipse.buildId=v22.3.0-887826 -XX:MaxPermSize=512M