Add the following to your application’s WorkbenchAdvisor to remove the “Help” preference page:
@Override
public void postStartup() {
PreferenceManager pm = PlatformUI.getWorkbench().getPreferenceManager( );
pm.remove( "org.eclipse.help.ui.browsersPreferencePage" );
}
PreferencePage.noDefaultAndApplyButton();
- Had to install the following prerequisites, while using a Ubuntu box. Some might have already been installed. Check the list of prerequisites.
$> sudo apt-get install libmpc-dev libgmp3-dev libmpfr-dev
- Select a mirror and download the required version through http://gcc.gnu.org/releases.html.
$> wget http://mirrors-us.seosue.com/gcc/releases/gcc-4.6.2/gcc-4.6.2.tar.gz
Extract the downloaded package archive into a temporary source directory (SRC_DIR).
- Prepare the object directory (OBJ_DIR) and configure the build. Consider setting the PREFIX_DIR (e.g. /opt/gcc-4.6.2) in configure conmmand.
$> mkdir $OBJ_DIR
$> cd $OBJ_DIR
$> $SRC_DIR/configure --prefix=$PREFIX_DIR --enable-languages=c,c++,fortran
--disable-bootstrap --disable-multilib
- Compile
$> make
- Install
$> make install
The following works with Firefox 9.0.1 (installed in a Ubuntu Linux PC):
- Install keyconfig extension, available at mozillazine foruns.
- Go to Tools -> Keyconfig…, add a new key binding for (Ctrl+Alt+B) named “Bookmarks Toolbar”
- Setup the key binding code to
var E=document.getElementById('PersonalToolbar');
if(E.collapsed){E.removeAttribute('collapsed')}
else{E.setAttribute('collapsed',true)}
- Restart firefox.
std::string systime_getPrecise()
{
static std::string final("YYYY-MM-DDThh:mm:ssZ.xxx");
timeval tTimeValue;
if ( gettimeofday( &tTimeValue, NULL) ) {
return "";
}
std::string format("%Y-%m-%dT%H:%M:%SZ");
size_t buffer_size = final.size() + 1;
char *buffer = new char[buffer_size];
// Format the time
struct tm *ts = localtime(&tTimeValue.tv_sec);
strftime(buffer, buffer_size, format.c_str(), ts);
std::string result(buffer);
delete [] buffer;
return result + "." + convertToString(tTimeValue.tv_usec).substr(0, 3);
}
std::string systime_get()
{
// define format YYYY-MM-DDThh:mm:ssZ, for buffer size calculation (could be done by hand, obviously)
static std::string final("YYYY-MM-DDThh:mm:ssZ");
std::string format("%04d-%02d-%02dT%02d:%02d:%02dZ");
char *buffer = new char[final.size() + 1];
// Date and Time variables initialization
time_t t = time(0);
struct tm* lt = localtime(&t);
sprintf(buffer, format.c_str(), lt->tm_year + 1900,
lt->tm_mon + 1,
lt->tm_mday,
lt->tm_hour,
lt->tm_min,
lt->tm_sec );
std::string result(buffer);
delete [] buffer;
return result;
};
The issue is reported by svn with the folliwng error message:
svn: Checksum mismatch while updating '/path/to/.svn/text-base/foobar.svn-base'; expected: '8d3574d8e02d0a176bc708760f3a258c', actual: '9a5842d3b088ed2b7757fcc743fb4eb1'
To solve this issue, you must edit the entries file in the .svn folder. Look for something like the following:
.
.
.
^L
foobar
file
2007-08-22T12:26:44.000000Z
5e1bdc7a206840b14c984e95c9c95c39
2007-08-21T22:28:44.968799Z
410
hans
^L
anotherfile
.
.
.
Remove the section related to file (from line 4 to 12). Then delete the actual file (remember to store changes if necessary) and update from repository.
diff -qr directory1 directory
-q to activate quiet mode; don’t show file differences, only list of different files
-r to go into subdirectories recursively