utsav gupta

Ranch Hand
+ Follow
since Mar 19, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by utsav gupta

What an answer!

Thanks Steve!
Regs.
12 years ago
Hi

I am new to android programming.
I wish to know as to which is a better way create ui elements like a button. We can do it by wither defingthem in the layout.xml or by adding them at runtime through java like:
public void onCreate(Bundle icicle) {
super.onCreate(icicle);

LinearLayout ll = new LinearLayout(this);
mRecordButton = new RecordButton(this);
ll.addView(mRecordButton,
new LinearLayout.LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT,
0));

Can some one explain its pros and cons ?

Thsnks
Utsav.
12 years ago

Hi

I would rather like to continue to discuss on this topic than to create a new post. I hope that is allowed. Because this was precisely the problem that I was facing.
I wish to know as to why is it that If i run the application as a simple Java application then I am able to run the application through eclipse but If I wish to run the same code as a web application I have to copy all the required jar files into the Tomcat container. Is it not the task of eclipse or Tomcat to pick up the dependent libraries from the classpath rather than for us to manually put it there??
Or Am I missing some configuration in eclipse.

Kindly Reply
Regards
Utsav.
12 years ago

Hi Bear

Thanks for the information and also for the suggestion . I'll keep that in mind!

Regards
Utsav.
Hi

Firstly shocked to find there are no forums for MySql.
I was looking for a good Java Based GUI Client for MySql Database. I found MYSQl Workbech from mySql website and was shocked to see that it wanted me install .net framework. Is it not an open source product?
So should it not be endorsing an open source technology instead of .net??
Neways can ne please sugggest a nice Java based Guit tool for MySQL version 5.5.

Thanks
Utsav.
Thanks Jeanne.

I guess that is the only solution.
Hi

I have a simple query which does not seem to be having a solution.

I was working on a Java project, which I had exported as a jar file to work on it in future. Now the future has come and I wanted to work on it back again. But If I import the jar file back in eclipse its folder structure is changed. There is no src folder, which is also pointed out by the eclipse. How am I supposed fix this. Do I manually have create a src folder and then copy each of the java file in the same package structure into it?

Please reply. Thanks in advance.
Utsav.
Can You please explain what you mean by 'on the web' ?

Regards
12 years ago
JSP
Hi

Is there a method to change the encoding format for RandomAccessFile Class? I think by default it is set to UTF-8 format which is causing me a lot of trouble.

Please suggest.
Thanks
Utsav.
12 years ago
HI
I am a conventional website developer and use plain html/javascript+servlets+JDBC to develop my site. But I am getting bored of ui designing.
I wish to know if there a good freeware to develop ui . I mean with where I can develop forms and attach actions to it jut by click and drag.


Thanks
Utsav
wow!

I wonder how did i miss that in google!

Thank You William!
12 years ago
Hi

I have an audio file which I want to insert into a database using plain sql command. How do I do that?
I know its not a good idea to do that but the audio files are very small (hardly few kbs)
I understand that the files have to be converted into a binary stream and inserted in the form of BLOB but how do i do that is there an inbuilt function in MySQL to convert the file into BLOB?
I cannot use java or any other programming language just sql and windows batch commands.

Please reply.

Thanks
Utsav.
12 years ago
Hi

I have an enterprise application running in jboss. It picks up pdf document s from a folder in ear and renders it on the browser. I created a static html page and put it at the same location as the pdfs but on pointing the url to that I get a 404 error (resource not available ) . Can anyone please explain as to why could this be happening. The html is correctly gettng published in the ear and is also available in the tmp folder.

i also cleared the browser cache.
13 years ago
Hi

I wish to automate the process of importing psf files in sclipse workspace. Please let me know how to start with. Any leads on how to go about it. Or even website where I can check for it.


thanks
utsav.
13 years ago
Hi

I was just going through the two design patterns namely factory method and dependencey injection and they both appear to be the same to me. In both the cases we take an external input based on which we decice as to what type of object is returned . Can someone explain me the difference between them and also with smiple java example.
Also I would request to explain the dependency injection out side the scope of spring. as i am not good at it

Thanks vey much!

Regards
Utsav.
13 years ago