Generating unique IDs

http://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getGeneratedKeys() http://stackoverflow.com/questions/1376218/is-ther-a-way-to-retrieve-the-autoincrement-id-from-a-prepared-statement String sql = "INSERT INTO table (column1, column2) values(?, ?)"; stmt = conn.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS); stmt.executeUpdate(); if(returnLastInsertId) { […]

Read More →

File Upload

Image Scale: http://www.thebuzzmedia.com/software/imgscalr-java-image-scaling-library/ Detect my browser: http://detectmybrowser.com/ JavaScript packer: http://dean.edwards.name/packer/ Trap File size: scroll down for JavaScript: http://stackoverflow.com/questions/307679/using-jquery-restricting-file-size-before-uploading https://github.com/blueimp/jQuery-File-Upload/wiki/How-to-implement-File-Limits […]

Read More →

multiple log4j files

http://www.google.com/#hl=en&sclient=psy-ab&q=log4j+multiple+log+files&oq=log4j+multi+file&gs_l=hp.1.2.0i30l2j0i22l2.8.8.6.7153.1.1.0.0.0.0.352.352.3-1.1.0…0.0…1c.7O3BcHSWmUc&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.&fp=229b9a9a7423cc9f&biw=1280&bih=843 http://stackoverflow.com/questions/4941574/multiple-unrelated-log-files-with-log4j-and-commons-logging http://stackoverflow.com/questions/9652032/how-can-i-create-2-separate-log-files-with-one-log4j-config-file http://www.dzone.com/tutorials/java/log4j/log4j-example-multiple-appender.html http://www.coderanch.com/t/63669/open-source/Getting-log-write-multiple-log

Read More →

Tag Cloud