If Windows crashed by some reason you can't get into the system, then if you have to reinstall Windows or upgrade to a new hard drive. As long as the Postgres data folder still there then you are lucky to get your database back.
1) install the same version postgres you had on the old system before, say postgres8.3;
2) stop the postgres service from the service form or use the command below:
net stop pgsql-8.3
3) open a CMD, then type in:
runas /user:postgres cmd
The above command will open a command window as postgres role, it will ask for the postgres service password to get the access. Please note here that is not postgres user password;
4) cd into postgres folder:
c:\program files\postgres\
5) delete everything under the data folder;
6) then copy the old data folder(say from U drive) cross, type in the command:
xcopy /H /E /I U:\program files\postgres\data C:\program files\postgres\data
7) restart postgres services from the service form or use the command below:
net start pgsql-8.3
After that, you should be able to log in to use your postgres database as before
How to recover postgres database from postgres data folder
How to setup an email forward Exchange 2007
1) Open Exchange Management Console
2) Expand Recipient Configuration
3) Click Mailbox
4) A list of all mailboxes will be appear in the right hand pane. Right click the mailbox you wish to setup the mail forward on.
5) Click properties
6) Click the mailflow settings tab
7) Double click Delivery Options
8.) Click the check box forward to
9) Browse for the mailbox you wish to forward emails to
10) Click OK to apply settings
If you wish for a copy of each email to remain in the users mailbox, click the tick box labelled Deliver message to both forwarding address and mailbox
How to remove postgres user from Windows
open CMD by administrator mode, then type in:
net user postgres /delete
If you just want to change user postgres' password to 'postgres', then type in:
net user postgres postgres
Upgrade OpenOffice.org 2.4 to 3.0 on Debian
Downloading from OpenOffice.org
http://download.openoffice.org/other.html
OOo_3.0.1_LinuxIntel_install_en-US_deb.tar.gz
$ sudo mkdir /opt/OOo3
$ tar xvzf /path/to/tar/file/OOo_3.0.1_LinuxIntel_install_en-US_deb.tar.gz i.e. $ tar xvzf /home/your_user_name/Desktop/OOo_3.0.1_LinuxIntel_install_en-US_deb.tar.gz
OOO300_m15_native_packed-1_en-US.9379
$ sudo mv /home/your_user_name/OOO300_m15_native_packed-1_en-US.9379 /opt/OOo3/
$ cd /opt/OOo3/OOO300_m15_native_packed-1_en-US.9379/DEBS
$ sudo dpkg -i *.deb$ sudo apt-get remove openoffice.org-core
$ cd desktop-integration
$ sudo dpkg -i openoffice.org3.0-debian-menus_3.0-9376_all.debThe Office menus will thus be updated.
You may get a conflicting error message when installing the menu package, this is because while it is technically installed, the launchers (a link to the actual program) are not written to the applications menu. Now try to issue the command below:
If that fails you can also go to synaptic package manager search "openoffice.org-common" deselect the box there and click apply. This will remove your previous version's common directory and you should be good to go.
teamviewer for Linux
wget http://www.teamviewer.com/download/teamviewer_linux.tar.gz
tar xf teamviewer_linux.tar.gz
cd teamviewer6
./teamviewer
Userful Linux tools for windows
ssh & scp for Windows
PuTTY, (and its file transfer utility, pscp), are excellent Windows ssh/scp implementations, and are a piece of cake to get up and running. These programs are not zipped and do not require any installation.
Downloads:
putty: putty.exe
pscp: pscp.exe
nmap for Windows
Nmap ("Network Mapper") is a free and open source utility for network exploration or security auditing. Many systems and network administrators also find it useful for tasks such as network inventory, managing service upgrade schedules, and monitoring host or service uptime. Nmap uses raw IP packets in novel ways to determine what hosts are available on the network, what services (application name and version) those hosts are offering, what operating systems (and OS versions) they are running, what type of packet filters/firewalls are in use, and dozens of other characteristics. It was designed to rapidly scan large networks, but works fine against single hosts. Nmap runs on all major computer operating systems, and official binary packages are avalable for Linux, Windows, and Mac OS X.
Downloads
nmap 5.51 self-installer: nmap-5.51-setup.exe
nmap 5.51 command-line: nmap-5.51-win32.zip
rdesktop for Windows
rdesktop is a terminal services client for X windows by Matthew Chapman. This is a native Windows port of rdesktop.
Requirements
Windows 95 OSR2/98/Me/NT 4/2000/XP/2003/2008/Vista/7Download
rdesktop 1.6
Download: rdesktop-1.6.0-win32.zipRequirements:
X server for Windows (e.g. Xming or Cygwin X11)
You must have the X server running prior to using rdesktop.
Older versions: Note: this snapshot is not a complete port and requires Cygwin 1.5.12 to run.Binaries: rdesktop-bin-win32-20041201.zip
Source: rdesktop-src-win32-20041201.tar.bz2
Full native ports of rdesktop 1.2. Cygwin is not required.
Binaries: rdesktop-bin-win32-20030219.zip
Source: rdesktop-src-win32-20030219.tar.bz2
Binaries: rdesktop.zip
Source: rdesktop-src.tar.gz
Compiling rdesktop for Win32
http://www.soren.schimkat.dk/Blog/?p=69Licence
GNU General Public Licenserdesktop © Matthew Chapman 1999-2003 © Christopher January 2002-2003,2004
Related Links
www.rdesktop.orgHow to set Postgresql money type to use 3 decimal places in Windows
LINUX
=====
Under Linux, type command in postgres database:
set lc_monetary to 'ar_BH.utf8';
ar_BH represents Arabic (Bahrain) locale, the above command change the locale monetary setting on-the-fly in postgresql database, the let do a test:
select 34.888::text::money;
You will get 34.888 with 3 decimal places money type. Tested in Postgresql 8.4.6.
WINDOWS
=======
However the above set command will get an error message under Windows.
FATAL: invalid value for parameter “lc_monetary”
You will need to:
set lc_monetary to "Arabic, Bahrain";
This will set the lc_monetary to arabic locale but only display 2 decimal places by default, it seems everything right of the comma is ignored.
To workaround this, use an '_' in plase of ', ' like:
set lc_monetary to "Arabic_Bahrain";
Tested with Windows XP + PostgreSQL 9.0.3(this solution should work for PostgreSQL 8.3 or later version too)
Thanks Jasen who get this resolved, more information please see his post @ postgresql forum:
http://postgresql.1045698.n5.nabble.com/win-Locales-quot-Arabic-Gum-quot-td3369213.html
How to configure public folder in Exchange server 2007
1. Create a pulic folder
open Exchange Management Console
=> Public Folder Management Console
=> Default Public Folder
=> New Public Folder(from right-click menu)
then follow the wizard to create a public folder. Fox example give it a name Test, so the public folder path will be "\Test";
2. Use the Exchange Management Shell to add public folder permissions for a client user
open Exchange Management Shell
=> Run command
"Add-PublicFolderClientPermission -Identity "\Test" -AccessRights Owner -User TestUser"
This will give user "TestUser" the "Owner" accessRights which has full permission of the public folder;
More info please go to:
http://technet.microsoft.com/en-us/library/aa998834.aspx