LEFEVRE Damien .net

< 1 2 3 4 5 6 7 8 >

Tuesday 6 April 2010, 12:51

Move SVN repository into another repository sub-folder

svnadmin dump /path/to/repository > repo_name.svn_dump
svnadmin load --parent-dir new/subdir/for/project  /path/to/new/repository < repo_name.svn_dump

Wednesday 13 January 2010, 12:43

One of the funniest gag ever :D

Check this video WITH the sound :D

http://www.riemurasia.net/jylppy/media.php?id=68397

Sunday 10 January 2010, 15:41

Icons on CMFCPropertySheet missing.

When recently trying to use the CMFCPropertySheet class with CMFCPropertySheet::PropSheetLook_Tree, I ran into the problem that the class does not give any options to customize the look the the tree control on the left side.

With CMFCPropertySheet, it is possible to set a list of icons or an empty list. In both cases there is no options to have the buttons (+ or - square) or the line in the tree.

Here is one way to fix this problem.

[view]

Friday 18 December 2009, 12:48

MFC - Get application directory from anywhere (main exe, DLLs)

[cpp]
BOOL GetApplicationDirectory(CString& _sApplicationDirectory)
{
	TCHAR szPathName[_MAX_PATH];
	if (FAILED(::GetModuleFileName(NULL, szPathName, _MAX_PATH)))
	{
		return FALSE;
	}

	TCHAR szDrive[_MAX_DRIVE];
	TCHAR szDirectory[_MAX_DIR];
	TCHAR szFileName[_MAX_FNAME];
	TCHAR szExtension[_MAX_EXT];

	// Split path
	_tsplitpath_s(szPathName, szDrive, _MAX_DRIVE, szDirectory, _MAX_DIR, 
		szFileName, _MAX_FNAME, szExtension, _MAX_EXT);

	// Make safe path
	_tmakepath_s(szPathName, _MAX_PATH, szDrive, szDirectory, _T(""), _T(""));

	_sApplicationDirectory = szPathName;

	return TRUE;
}

Monday 14 December 2009, 07:19

ZoomBrowser EX installer

Those smart asses from Canon won't ship the ZoomBrowser EX installer, only updaters.

I've got an XP laptop.

So the what you should do is:

Canon does not seem to know what is a multilanguage installer either. So choose carefully alternative downloads for the language you are looking for...

Thank you Canon for wasting my time!!

Wednesday 14 May 2008, 10:27

Create IIS FTP server with isolated user account (Windows Server 2003 R2)

  • Have IIS and FTP service installed from Add/Remove Windows components on Add/Remove programs
  • The default FTP site isn't isolated
  • Stop the default site
  • Right click On FTP sites > New site
  • The wizard opens > Next
  • Type you description (ex:"My FTP server")
  • Choose the IP address and port for this server (IIS FTP server does not rely on headers, IPs only)
  • Choose "Isolate Users"
  • Enter the FTP root for the home directory
  • Choose Read or Read+Write
  • Now you are with the wizard

If you stop here you will get a "Err Msg: 530 User <Username> Cannot Log In, Home Directory Inaccessible. Login Failed." Solution:

  • under the FTP site root directory, create a folder named "LocalUser"
  • Under the LocalUser directory create a directory for each of the users matching the username

Monday 14 January 2008, 20:24

Linux change shell keyboard layout/keymap

sudo dpkg-reconfigure console-setup

< 1 2 3 4 5 6 7 8 >