Nov 27

You can try HTML Tidy.
May not work depending on the quality of the HTML but worth a try.

written by objects \\ tags: , ,

Nov 26

The location to install Adobe CS4 brushes depends on the OS

  • Mac: /Library/Application Support/Adobe/Adobe Photoshop CS4/Presets.
  • Windows XP: [Drive]:\Document and Settings\\Application Data\Adobe\Adobe Photoshop CS4\Presets
  • Windows Vista: [Drive]:\Users\\AppData\Roaming\Adobe\Adobe Photoshop CS4\Presets.

Copy the brush set (.abr file) into the appropriate Presets directory and they will appear as presets in the Photoshop (you will need to restart Photoshop before they show up).

written by objects \\ tags: , , , , , , , , , ,

Nov 24

Often you need to read a file line by line. Alternatively sometimes you want to read text word by word (for example to count the occurrence of different words). The Scanner classes next() method can be used for this as shown in the following example.

		Scanner input = new Scanner(file);  
		while(input.hasNext()) {
			String word =;

written by objects \\ tags: , , , ,