top-image

OLDER ARTICLES

Hello again,

Here, I expose a simple solution to backup your developments in the remote directory \\YOUR_SERVER_or_EXTERNALDISK\backupWorkspaces\.

To do this:
– Create file “backup.dat” in your Eclipse workspace ie “R:\java\dev\eclipse_workspaces\default-3.3”:

echo off
set fileDate=DEV_%date:~0,2%%date:~3,2%%date:~8,2%.zip

move %1*.zip %1backup.old

echo.
echo Backup of sources on %1
echo.
C:\PROGRA~1\7-Zip\7z.exe a -tzip -r -xr!.metadata %1%fileDate% @backup_listfile.txt

IF %ERRORLEVEL% == 0 ( GOTO SUCCESS ) ELSE ( GOTO ERROR )
 
:SUCCESS
del %1backup.old
GOTO END
 
:ERROR
echo.
echo Error: %ERRORLEVEL%
echo.

:END

– Create file “backup_listfile.txt” in your Eclipse workspace ie “R:\java\dev \eclipse_workspaces\default-3.3”:

R:\java\dev\eclipse_workspaces\default-3.3

– Create a Windows scheduled task (“Scheduled Task”) that runs the daily BATCH.

Notes:
–  This batch uses 7zip compressor to be installed in C:\Program Files\7-Zip.
– You could add more resources to backup in the “backup_listfile.txt” file.

Sincerely,

backup.zip

Hello!

In my experience with Sencha/ExtJS4.0.2 framework, i am faced with a problem with the garbage collector which is run automatically every 30s stops JS execution in my IE8 / WINXP.

The following JS error apprears randomly:
Error occured:
Message: ‘events’ is null or not an object
Line: 10708
Char: 9
Code: 0
URI: http://localhost:8080/qe2web/extjs/ext-all-debug.js

The solution is to disable the Ext garbage collection by:
Ext.enableGarbageCollector = false;

Note: I have placed this code in:

Ext.application({
	name: 'qe2web',
	appFolder: '/',
	controllers: getControllers(),
	launch: function() {
		Ext.create('Ext.Viewport', {....} );
		initScreen();
		Ext.enableGarbageCollector = false;
	}
});
Page 53 of 53:« First« 50 51 52 53
bottom-img
Copyright ® 2012 Huseyin Ozveren. No reproduction, even partial, can be used from this site and all its contents including text, documents, images, etc.. without the express permission of the author.