Download mangareader.net manga to read offline by the entire chapter/series

I wanted to read comics off mangareader.net whilst offline so I wrote this code to grab off all the images and chapters of a particular comic. Just feed the chapter index URL by replacing the url variable.

This code uses Java and requires the Jsoup library as well as commons StringUtils both of which you can download by googling the respective libraries.

		
try {
	String url;
	url = "http://www.mangareader.net/94/bleach.html";
	Document doc =  Jsoup.connect(url).userAgent("Mozilla").timeout(0).get();
	String baseURL = "http://www.mangareader.net";
	int page = 1;
	
	try{
		Elements ee = doc.select("#chapterlist #listing tbody tr td a");
		for (Element e : ee){
			System.out.println(e.text());
			System.out.println(e.attr("href"));
			
			String chapterURL = baseURL+e.attr("href");
			Document chapter =  Jsoup.connect(chapterURL).userAgent("Mozilla").timeout(0).get();
			Elements ee2 = chapter.select("#topchapter #navi #selectpage #pageMenu option");
			
			
			for (Element e2 : ee2){
			
				String pageURL = baseURL+e2.attr("value");
				
				Document pageinchapter =  Jsoup.connect(pageURL).userAgent("Mozilla").timeout(0).get();
				
				String src = pageinchapter.select("#imgholder a img").first().attr("src");
				
				String imgName = StringUtils.substringAfterLast(src, "/");
				String fileType = StringUtils.substringAfterLast(src, ".");

				String folderPath = "C:/temp/mangareader/bleach/";
				URL url2 = new URL(src);
				InputStream in = url2.openStream();
				OutputStream out = new BufferedOutputStream(new FileOutputStream( folderPath+ String.valueOf(page) + "." + fileType));
				page++;
				for (int b; (b = in.read()) != -1;) {
					out.write(b);
				}
				out.close();
				in.close();
			}
		}
	}catch(Exception e){
		e.printStackTrace();
	}

} catch (Exception e) {
	e.printStackTrace();
}

How to change e-mail subject for order confirmations – magento

Some invoice details e-mailed to customers upon them purchasing an item come with subject titles that you may want to change, e.g. a default one may be:
store_name: Shipment # 100000001 for Order # 100000001

To change these, go to the relevant e-mail template at:
app/locale//template/email/sales
and locate the commented out @subject at the top of the e-mail and change this to whatever you want to