Saturday, March 31, 2012

http://www.openerp.com/forum/topic21443.html

Tuesday, March 27, 2012

Abstract-Class-Vs-Interface

http://www.codeproject.com/Articles/36870/Abstract-Class-Vs-Interface

Wednesday, October 19, 2011

How to recover postgres database from postgres data folder


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

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.
  1. Choose File > Scripts > Export Layers To Files.
  2. 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.
  3. Enter a name in the File Name Prefix text box to specify a common name for the files.
  4. 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.
  5. Choose a file format from the File Type menu. Set options as necessary.
  6. 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.
  7. Click Run.
!-- Load the Google AJAX API Loader -->