Category: Uncategorized

  • How to install gradle.

    Gradle is a simple and yet strong build tool. It is similar to the Ant build tool. It manages the build well and also handles build dependencies. The best part of Gradle is that it is open source project. If you are thinking about installing and giving it a try, then you are at the…

  • Tutorial on Android Voice recognition Api

    You may have heard about the “Google Now project” where you give the voice command and Android fetches result for you. It recognizes your voice and converts it into the text or takes the appropriate action. Have you ever thought how is it done? If your answer is voice recognition API, then you are absolutly right. Recently while…

  • Monkey test on Android application

    You may be wondering about the test name or thinking that it may be a misnomer. Well, this is not a misnomer. It is a kind of stress test done on an application. Monkey Test: Monkey test is a kind of Unit test that runs with no specific test case in mind. Test cases are…

  • How to make jar file using jar command.

    This is a simple tutorial about making jar file and compiling the source code using command. As you may know that in java the class are packaged in jar file and provides as library. So it can be used in different module/project. First we are going to make some suitable directory structure. Run the following…

  • Python MySQLdb cursor error.

    I had used MySQLdb in past to interface with MySQL database. Most of the time I had used cursorclass=MySQLdb.cursors.DictCursor for getting the result as dictionary but today I wanted to get the results in tuples so I used cursorclass=MySQLdb.cursors.CursorTupleRowsMixIn. But when I execute it, it failed and complained about cursor() method call. The exception is…

  • Gradle build file for JMeter plugin development

    Recently I was working on JMeter test-plan. I had to write some custom functions which are not provided by JMeter. I somehow figured out implementation of custom-functions but soon faced the build problem. It took a little while to define the build.gradle to compile and generate jar file. Later I thought to share it here.…

  • Vim command history

    I have been using Vim for a long while but didn’t realized that it has command history which records previously executed commands. I use to write the same/similar command every time I had to execute the command(yaa, I know it was kindda lame). This command history really comes handy if you are executing long command…

  • Eclipse editor and formatter configuration

    In any company where coding standard is followed, it’s really necessary to configure your IDE. Most of the Java developer use Eclipse as an IDE and hardly know about configuring their Eclipse editor before start writing code. It is recommended to use spaces instead of tab because different editor show different number of space for…

  • Tutorial on Gradle standalone custom plugin

    This tutorial describes the way of creating Gradle standalone custom plugin. It covers the following topics Creating task, and using it in Custom plugin Stand alone Custom plugin Short plugin id Customize Gradle setting using settings.gradle Project info : Gradle version : 1.1 OS platform : Ubuntu 12.10 Prerequisite : Basic understanding of Gradle script.…

  • Enable and disable broadcast receiver during runtime

    Broadcast receiver is the one of the basic and important components of the Android application. There are two different ways of adding broadcast receiver in the Android application. It can be added either programmatically or in Android Manifest file. You should be careful while adding broadcast receiver because unnecessary broadcast receivers drain battery power. If…