The Kenyan billionaire
Thursday, April 26, 2012
Tuesday, March 27, 2012
Wednesday, October 19, 2011
How to recover postgres database from postgres data folder
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
Monday, June 6, 2011
Tuesday, May 17, 2011
photoshop Export layers to files
You can export and save layers as individual files using a variety of formats, including PSD, BMP, JPEG, PDF, Targa, and TIFF. Layers are named automatically as they are saved. You can set options to control the generation of names.
- Choose File > Scripts > Export Layers To Files.
- In the Export Layers To Files dialog box, under Destination, click Browse to select a destination for the exported files. By default, the generated files are saved in the sample folder as the source file.
- Enter a name in the File Name Prefix text box to specify a common name for the files.
- Select the Visible Layers Only option if you want to export only those layers that have visibility enabled in the Layers palette. Use this option if you don’t want all the layers exported. Turn off visibility for layers that you don’t want exported.
- Choose a file format from the File Type menu. Set options as necessary.
- Select the Include ICC Profile option if you want the working space profile embedded in the exported file. This is important for color-managed workflows.
- Click Run.
Tuesday, May 3, 2011
Subscribe to:
Posts (Atom)