Skip to main content

Posts

Showing posts from May, 2010

Few Simple Steps to Setup TWiki

TWiki is a Perl based structured Wiki application which can be used as team portal to share documents, presentations, blogs and many more within an organization. Thus it acts as a complete knowledge base. I did the setup for my team (on a Ubuntu Linux Server) and thought probably I should share the installation process, so that more and more people can easily get the benefit from this application- Installation Steps- Install Apache Web Server: (httpd-2.2.15.tar.bz2)- http://httpd.apache.org/docs/2.0/install.html Make sure Perl (v5.10.0) is installed. Download Twiki- (TWiki-4.3.1.tgz)- http://sourceforge.net/projects/twiki/files/ Decompress using user account (not root), the uncompressed files automatically takes the access permission of the user account which uncompressed it. Place it inside of htdocs i.e. WEB_ROOT folder of Apache Installation e.g. for my setup I placed twiki inside of- /home/ppr

Android Custom TextView

Have you ever tried to add custom behavior to in-build Android Text View or create custom attributes? If yes, this article is going to help you. Here we'll create Single Custom TextView with support for custom attributes to display First and Last Name in different font and colors. During this process we'll learn following topics- 1. How to override default Views in Android 2. How to define custom Layout Attributes in Android So, Let's get started... Following sections explains necessary changes required in Java code and XML layout files. Create Custom Text View (MyTextView.java) 1. Override Android's default TextView   2. Implement Constructors. If you want custom attributes, override Constructor having Attributes in argument. 3. Override onMeasure(): Calculate required width and height, based on Text Size and selected Font. Once calculation is complete, set updated measure using setMeasuredDimension (reqWidth, reqHeight) Note: It’s really important to define the corr

My Day with Eclipse MAT and Dominator Tree

Eclipse MAT (Memory Analyzing Tool) is a feature rich Heap Dump analysis tool. This helps you to track down important pointers on MOB (Memory Out of Bound) Exception. Sun JVM (1.4.2 onwards) supports the feature of creating HPROF HeapDump. MAT parses heap dump file (i.e. .hprof) and gives graphics intuitive description of Memory Leak suspects. The most important information of Heap Dump is “ Dominator Tree ”, in simple word, it lists the objects and the amount of mem ory space that they are holding. Before understanding “ Dominator Tree ”, you need to know 3 important concepts of Java Objects- Shallow Size , Retain Size and Retain Set . Th ere is a nice article which explains this concept. How to find out the Biggest Retain Set ? The best possible approach to find out the biggest “ Retain Set ” and hence the maximum prospect of releasing heap storage on next Garbage Collection (GC), is “ Dominator Tree ” graph. Dominator Tree Algorithm converts the Obje

An effort to find out Angling spots in Delhi & NCR

Angling is the 2 nd of my most preferable thing to do during holidays, the 1 st one is of course cooking, the most favorite pass time of mine. Though NCR, Delhi seems not like an ideal spot for fishing (thanks to the contribution from all of us, which probably incl udes me as well to kill Yamuna….which now shows her existence only with dirty chemically populated water….), but still I was hopeful and thought probably here and there may be some lake is present which is hidden from common usage/knowledge. I had 3 continues holidays to cover (including 1 st Jan, Saturday and Sunday) and wanted to find out some lake within 50KM radius from my place (Noida). This would let me to reach the place riding my bike and come back by the evening without the need to stay over night. Well, as obvious I did a bit Google and found out some scattered information. I guess we need some revamp in this sector (Travel/Treking in India ), we need some more helpful web s