Friday, December 02, 2011

Uninstalling .apk file from Emulator for refresh issue

In the SDK's main directory (i.e. "C:/Programming/Android/SDK") there is the folder called "tools" --> Get into that folder. You need to start a console terminal/shell ("Start -> Run... -> type 'cmd'" for Windows PCs). Type-in sth. like the following command:
CODE: SELECT ALL
adb shell rm data/app/{myFile.apk}

For example if you want to uninstall "HelloAndroid.apk" you should type this:
CODE: SELECT ALL
adb shell rm data/app/HelloAndroid.apk

Thursday, December 03, 2009

The bright future of software (my personal views)

Just for a momemt think of what software application you have used for the maximum time in the last few months.
I can bet in 99% of the cases it will be a browser.Sometimes when i or my wife we use the PC at home, i had been
observing that i had been using the OS mainly for login/logout and opening the browser.The OS is becoming less
relevant.This is what is leading to the google microsoft tussle.
The near future for the software lies on the browser.Why i am saying the near future, because may be in 10-15 years
there might be something much better then that, and thats the way the technology runs.If you start observing the
bigger companies you will see that most of them are becoming Service Oriented (in terms of providing services to client and not in terms of SOA) and they have started buying smaller
companies that create products.For the web the near future lies in the

1) Cloud - much hyped but useful, infact for a lot of startups its a boon.

2) SAAS - profitable business model if it picks up, you get a regular cashflow.

3) Web 2.0 - whatever it is one thing i am sure a good look and feel will always be important, whether
buying new pair of shoes from a store or a website, a good look and feel and a good user experience is
needed in both.

4) SOA - bigger companies have to follow this model now or then, the only thing they have to be sure of is
how much money they spend on it.

5) Marketing/Advertising - whether on the web or anywhere else, will always be important.Rarely anything sells
without marketing.Word of mouth creates a viral effect, if you are able to get in that phase your product has picked up.

6) Video - is one of the chief drivers of net, will always remain.

7) Porn - yes, and will always exist on the web, because of ease of use of access everywhere, because of the web.

8) Right Information - not sure how else to term it.There is plethora of info on the web, what is relevant and what is not is important.
Right now to buy a product you read 10-15 reviews on amazon/walmart to make a decision, but are you sure that, that review was written
by some genuine buyer and not by some sales person.I am not sure who has the time to write 1000 words of review for a small toothbrush
that they buy on the net.

Friday, September 25, 2009

Debugging JSPs Using Eclipse

JSPs are compiled into java classes (servlets) before they are run on the server.For our application we are using Weblogic.
By default weblogic deletes the source files after compiling.
To enable weblogic to keep the source file of the jsps enter these details in the weblogic.xml of the web application
jsp-descriptor
jsp-param
param-name
keepgenerated
param-name
param-value
true
param-value
jsp-param
jsp-descriptor

Also Note that weblogic keeps the compiles jsp classes and source in the same folder.

Now goto Eclipse

  1. Open your web project
  2. Right click and create a Folder inside the project.Name this folder as 'JSP'
  3. In the window that opens click on 'Advanced' and link this folder to that folder where weblogic keeps the compiled jsps/source.
  4. Add this folder to the project build path as Source Folder.
  5. Now run weblogic and include a debug point in the compiled source generated
Note : You might have to manually refresh the folder to see the source.

Tuesday, August 04, 2009

Learning Ruby on Rails - Part 1

Steps for creating a new application:
1. Use the rails command to create the application skeleton.
2. Create a database on the database server.
3. Edit database.yml file to tell location of this database
4. Start your webserver.
5. Build your application and test.

Thursday, June 04, 2009

Configuring WGET to work with PROXY server

These are the steps on Windows

1. set http_proxy=http ://:
2. wget --proxy-user= --proxy-password= http://www.yahoo.com

and it would fetch the first page of yahoo.com.....

Wednesday, May 06, 2009

Hibernate - 1

Starting with s articles on Hibernate dealing with What/Why and How

1. What is Hibernate ?
Hibernate is an object relational mapping tool for Java Applications. Instead of writing sql code in java, the developer can use Hibernate to persist and retrieve POJOs to the database.

A POJO maps to a database table.On the java side the developer deals with the POJO and populates its instance with data.Its the job of Hibernate to persist the state of this POJO to the database.Basically behind the scene one row of the database is mapped to one instance of the POJO.

2. Why use Hibernate ?

* Its one of the best ORMS available.

* JDBC gets out of hand if the number of screens is very large.

* If the development team is not well aquainted with SQL then using Hibernate will solve that
problem as it optimizes the query before firing them to the database.

* Simple to use only one configuration file

* Supports many databases

* Supports Caching. Can be integrated with many opensource and commercial caches so that
the POJO's can be caches with the data readily available from cache.

* Support Lazy loading i.e to say if we a Person is related to Department.If we need info for
person only we can state that and info for Department is not fetched along with Person.

* Supports outer-join whereby we can fetch multiple object at one shot.

Series on Hibernate

I am going to post a Series of Articles on Hibernate.

Wednesday, April 29, 2009

Ajaxifying existing J2EE projects

Introduction :
This document gives the steps for extending an existing J2EE application using the Spring MVC/ Spring Portlet MVC (JSR 168 compliant) / Hibernate or any other ORM stack.

There are basically 2 types of JavaScript libraries.
1.Client Side Libraries : e.g. Sciptaculous / Dojo / YUI Library, provide ready to use Widgets or client side javascript affects.
2.Server Side JavaScript libraries : Which compile javascript code on the server side. Normally these types of libraries handle ajax call from the client side and connect to the code on the server and fetch back the result in javascript. E.g DWR, JSON.

DWR is a natural choice for Java Web Projects, Simply because it was created with the mindset of having Java on the Server Side.