Saturday, February 16, 2013

Glassfish setting's.

So a few days earlier, while working encountered a significant problem with Java heap memory issues on glassfish v3.1.2 . Couldnt figure out much until  finally was pointed that I needed to reconfigure glassfish jvm settings. So went to oracle and got some settings value's.

Apparently needed to configure class-loading, heap size and etc.

You can read about them here:
http://docs.oracle.com/cd/E18930_01/html/821-2431/toc.html

also at Nayef's blog's:
http://nayefreza.blogspot.com/search?updated-min=2012-01-01T00:00:00%2B06:00&updated-max=2013-01-01T00:00:00%2B06:00&max-results=4

Friday, February 15, 2013

How to do online bulk upload's for applications

A few things to know before hand

  • User thread bulk data processing is slow so use separate threads than usr
  • Oracle uses locking to for insert and updates. Using batch statements provide partial solutions


Steps:
1. Use http request to get the file and store it temporarily.(Prefer .txt/.csv in this case :) )
2. Initiate a server thread to process the file.
3. The thread read line by line and separate the data by the delimiters.
4. Then process data and validate it(Regular Expressions).
5. Use batch executes to store data in database. Do not use single Insert/updates as the locks will open too many statements and cause a system crash.
6. At end of processing execute the batch, clear memory.

Note more system memory required for more users and use user limits(waiting locks to manage memory) and updated garbage collection 

Thursday, February 14, 2013

Thesis video - Human online live Interaction emotion detection via reading posts. - video - Dec -2011



Using - Python, NLTK

Paper Link - http://dspace.bracu.ac.bd/handle/10361/1772

SSH and secure terminals in java

To use ssh and sftp etc. on java I found a few packages jsch being the main other's are available at
http://www.jcraft.com/

You can code this to browse directories as well as log in and run basic bash commands using java.

Check online for tutorials

You can use jsch to execute ssh commands from your java application.

HTC Buzz stuff

All info and settings are here on XDA
 Firmware (V)
http://forum.xda-developers.com/showthread.php?t=1029318

Friday, February 1, 2013

Stock 7.8 update for nokia Lumia (for users who didn't get pushed updates)

End of January'13 microsoft finally pushed the 7.8 update out . But apparently since I rooted my phone I couldnt update via zune so had to figure out a work around.



So here what I did:
1. Got the Lumia 710 ns flasher.
2. Got the firmware I wanted from navisoft 7.8 edition in my case.
3. Got the download file from there. Unpacked it. Renamed the .bin to nsflasher format and flashed it.



Note:
I am not responsible if you brick your phone doing this. Also Im not sending .cab updates, Im actually reflashing it to a stock rom.

You can find all the guides and everything else you want on XDA-developers.
besides that google for everything else.