When you call Windows API function SetFileAttributes, it ignores FILE_ATTRIBUTE_COMPRESSED (0x800) and FILE_ATTRIBUTE_ENCRYPTED (0x4000) values passed as parameters. Most likely it is implemented in this way, because you can pass value from GetFileAttributes, FindFirstFile and FindNextFile without modifications to SetFileAttributes. This applies to Windows XP, Windows Server 2003 / 2008, Windows Vista.
Author Archives: Maris
Backup / restore PostgreSQL database
To backup / dump entire DB (database cluster), use the following command: pg_dumpall > outfileor with username and gzipped pg_dumpall -U postgres | gzip > db_backup.gz-U usename – connect as specified database user To restore from dump file “db_backup” use: psql -f db_backup postgres
STL breaks after installing Microsoft Security Advisory 973882
After installing through Microsoft Update Vulnerabilities in Microsoft Active Template Library (ATL) Could Allow Remote Code Execution STL broke with the following error: c:\program files\microsoft visual studio 9.0\vc\include\xutility(2764) : error C3861: ‘_Swap_adl’: identifier not found Most probably, this is caused by accidentally deleted the following function: template inline void _Swap_adl(_Ty& _Left, _Ty& _Right) { // …
Continue reading “STL breaks after installing Microsoft Security Advisory 973882”