User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 397,820 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,556 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 100
Search took 0.01 seconds.
Posts Made By: PoovenM
Forum: Java 25 Days Ago
Replies: 7
Views: 4,698
Posted By PoovenM
Re: Adding images to JAR file (Netbean 5.0)

sabithpocker, so that's how you'd access an image? I agree that the image can be included in the generated jar file. However, my feeling is that the file will not be accessible via the Java code...
Forum: Python Jul 25th, 2008
Replies: 5
Views: 419
Posted By PoovenM
Re: psycopg2: database connectivity to PostgreSQL

Hi guys, thank you so much. Jlm699 was correct, I needed to commit the changes to the database. I knew that there was a commit call that has to be used but I was calling it on the cursor (cur)...
Forum: Python Jul 24th, 2008
Replies: 5
Views: 419
Posted By PoovenM
psycopg2: database connectivity to PostgreSQL

Hi there, I'm trying to connect to a PostGIS database (which is basically an enriched PostgreSQL database) and I'm having trouble with the INSERT statement. Here's my code:

import psycopg2

try:
...
Forum: Legacy and Other Languages Jul 21st, 2008
Replies: 4
Views: 526
Posted By PoovenM
Re: Perl to Python

hehe considering the file extension I think you're you're right! I'd like the original algorithm instead of translating from one language to anther. Anyway, thank you for your assistance!
Forum: Legacy and Other Languages Jul 20th, 2008
Replies: 4
Views: 526
Posted By PoovenM
Re: Perl to Python

Oh my I did not realize that. I was told that it was Perl and that I should convert it to Python. Can someone please tell me what programming language it is? It had the file extension .m
Forum: Legacy and Other Languages Jul 19th, 2008
Replies: 4
Views: 526
Posted By PoovenM
Perl to Python

Hi guys, I'm trying to make sense of some Perl code. I haven't actually programmed in Perl before but I do image the functions/methods are similar to other languages. Here's the code:

function [dir,...
Forum: Java Jun 9th, 2008
Replies: 11
Views: 448
Posted By PoovenM
Re: Ok im getting there only need a little more help

Hi there, just curious, why do you want to use a char array and not a String object? Possibly using a char array would save memory or be faster, but if you used strings, then there are methods that...
Forum: Java Jun 6th, 2008
Replies: 2
Views: 123
Posted By PoovenM
Re: this is what i want it to fo ...

Alex is correct:


There is already a LayoutManager that will allow you to achieve your goal. It's called the GridLayout and you should certainly check the Java Docs on that one. Here is code from...
Forum: Java Jun 6th, 2008
Replies: 3
Views: 332
Posted By PoovenM
Re: Problem using exceptions and looping

I think I might have made the same mistake. The way Scanner works, is by matching patterns in some stream. When you use nextInt() it will attempt to find an integer value in the input stream. If it...
Forum: Java Jun 6th, 2008
Replies: 13
Views: 1,160
Posted By PoovenM
Re: How to draw a graph in Java applet

Alex said:

Well that's not exactly true; the gradient (i.e. rate of change) of a Sin curve depends on the input. Though I did misread the part about the circle, my bad :icon_redface:

Good work...
Forum: Java Jun 4th, 2008
Replies: 1
Views: 315
Posted By PoovenM
Re: Problem during executing Command Prompt through java

I think it's because you're using the start command. This command actually asks Windows to execute the command and since you're using dir this will result in Windows opening up a command prompt. I...
Forum: Java Jun 4th, 2008
Replies: 5
Views: 460
Posted By PoovenM
Re: Need help with the java code!

I've not checked if Alex is correct, but as per your question regarding the storage of your array information. It can so easily be done by writing the entire array object to a file.

The is a...
Forum: Java Jun 4th, 2008
Replies: 13
Views: 1,160
Posted By PoovenM
Re: How to draw a graph in Java applet

Hi guys, drawLine() doesn't require the points to vary. In fact drawLine(10,10,10,10) would simply result in a point being drawn.

It's Math.PI because all constants, as per the Java convention, are...
Forum: Java Feb 1st, 2008
Replies: 10
Views: 1,110
Posted By PoovenM
Re: New to Java

aww yeah I'm sorry, I should have said in my personal opinion! My bad :icon_mrgreen:
Forum: Java Feb 1st, 2008
Replies: 8
Views: 1,808
Posted By PoovenM
Re: To check java installation (jdk /jre) on computer

hehe yeah that's what I said! but it was suppose to work. For example, instead of cmd /C java -version try using cmd /C dir and you'd get the output from the command prompt. Does anyone have any...
Forum: Java Feb 1st, 2008
Replies: 10
Views: 1,110
Posted By PoovenM
Re: New to Java

hehe yeah we hadn't done a bit of Visual Basic, because it really shouldn't be used for enterprise application development since it is not a strongly type checked language.
Forum: Java Jan 31st, 2008
Replies: 8
Views: 1,808
Posted By PoovenM
Troubleshooting Re: To check java installation (jdk /jre) on computer

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Test
{
public static void main(String args[]) throws IOException
{
Process java =...
Forum: Java Jan 31st, 2008
Replies: 6
Views: 934
Posted By PoovenM
Re: ArrayIndexOutofBoundException

That is rather interesting... ah such is life that a new day brings new knowledge. P.S. don't forget to mark your post as solved :icon_wink:
Forum: Java Jan 30th, 2008
Replies: 6
Views: 934
Posted By PoovenM
Re: ArrayIndexOutofBoundException

hehe Indeed he does have his indices mixed up! But I would like to check up on the instantiation of the array outside the constructor. I think that the new value of no_of_attributes would be updated...
Forum: Java Jan 30th, 2008
Replies: 8
Views: 1,808
Posted By PoovenM
Troubleshooting Re: To check java installation (jdk /jre) on computer

Interesting, well on the command line one would type java -version but you want to execute code within your program to determine the runtime version. Well I think this should work:

Process java =...
Forum: Java Jan 30th, 2008
Replies: 6
Views: 934
Posted By PoovenM
Re: ArrayIndexOutofBoundException

I just noticed, you shouldn't have if(br.readLine().equals("Y") || br.readLine().equals("y")) as you're requesting data from the input stream twice if the user actually presses a y the first time....
Forum: Java Jan 30th, 2008
Replies: 6
Views: 934
Posted By PoovenM
Troubleshooting Re: ArrayIndexOutofBoundException

Oh gosh, that's a large post! First, I don't think you require throws IOException in the constructor of ENTITY. Second, please use the Java convention ...
Forum: Java Jan 30th, 2008
Replies: 10
Views: 1,110
Posted By PoovenM
Re: New to Java

I agree with Jwenting, once you've learned how to do Object Oriented Programming, you should be okay doing any. Though Java tends to be the easiest to use (hehe and in my opinion, more...
Forum: Java Jan 22nd, 2008
Replies: 5
Views: 613
Posted By PoovenM
Re: installing tomcat server

One would have to restart Tomcat whenever a Java file (usually a servlet) is recompiled. This is because Tomcat uses a cache. Changes to JSP files do not require a restart. I recommend that you use...
Forum: Java Jan 22nd, 2008
Replies: 4
Views: 523
Posted By PoovenM
Solution Re: Help with removeElement() in vectors

Well you'd have to search through the Vector; once you've found the code, you'd have access to the Object you need to remove and thus v.remove(empData); will work. The easiest way to iterate over the...
Forum: Java Jan 22nd, 2008
Replies: 5
Views: 613
Posted By PoovenM
Re: installing tomcat server

Well the first step is to identify that indeed Apache Tomcat is up and running. If you go to localhost:8080 it should display a Tomcat page. If that doesn't work then the Tomcat service is not...
Forum: Java Jan 19th, 2008
Replies: 23
Views: 2,633
Posted By PoovenM
Re: OS Detection Tool Like Nmap

I agree with Paul; Plus it seems like the easiest way (plus I'm not really sure of any other way to test if a port is open!). But what extra information would you want from the packet? There is...
Forum: Java Jan 19th, 2008
Replies: 23
Views: 2,633
Posted By PoovenM
Troubleshooting Re: OS Detection Tool Like Nmap

Very interesting project. I think your first step is to test open ports and then assume the service running on that port. Windows NT for example, have alota open ports and if enough of them are open...
Forum: Java Jan 16th, 2008
Replies: 1
Views: 517
Posted By PoovenM
Troubleshooting Re: request.getParameter()

Perhaps try the JSP forum under Web Development? I don't have that much experience with JSP but of course if you're using a text box in the form then the data would be received as a String object and...
Forum: Java Jan 16th, 2008
Replies: 5
Views: 413
Posted By PoovenM
Re: Java Questions

I actually believed the guy :icon_redface: Regardless I hope he learnt something.
Forum: Java Jan 11th, 2008
Replies: 5
Views: 413
Posted By PoovenM
Re: Java Questions

6) Let’s try an elimination process. I'm not really sure what's meant by field. Most likely it refers to the attributes of a class, then most certainly option A is not valid. To me there is a...
Forum: Java Jan 9th, 2008
Replies: 1
Views: 576
Posted By PoovenM
Troubleshooting Re: Help needed for saving high scores

I have a few suggestions for you:

1) It would be advisable to use the .length attribute of the array object. So instead of for(i=0;i<10;i++) please uses for (i=0; i < ns.length; i++) Btw, why do you...
Forum: Java Jan 9th, 2008
Replies: 2
Views: 1,076
Posted By PoovenM
Troubleshooting Re: adding a JFrame component to JTabbedPane

I agree with Masijade, and I think you could probably just change the JFrame inheritance to JPanel, well depending on your actual coding hehe Anyway, what I wanted to recommend is NetBeans. It’s a...
Forum: RSS, Web Services and SOAP Jan 9th, 2008
Replies: 7
Views: 1,641
Posted By PoovenM
Solution Re: Accessing a Web Service

JSP is really a cool extension of HTML. I think the most common way to interact with a servlet via a JSP is to use the HTML <form> tag. I have managed to successfully create a connection to the...
Forum: Java Jan 8th, 2008
Replies: 4
Views: 1,067
Posted By PoovenM
Re: Bubble Sort a txt file

I agree with javaAddict (To err is human, to write java code is divine - I like that!), you should read the data into a Vector<String> object. There are many ways the Bubble sort can be done, I would...
Forum: Java Jan 8th, 2008
Replies: 1
Views: 1,267
Posted By PoovenM
Solution Re: limit input only two decimal

I'm a bit confused as to what you're saying :icon_confused: But I do understand that you want to only allow real input with two decimal places. If you have a GUI then JFormattedTextField is the class...
Forum: RSS, Web Services and SOAP Jan 8th, 2008
Replies: 7
Views: 1,641
Posted By PoovenM
Re: Accessing a Web Service

I understand that the wsdl file is written in xml and describes what remote methods (which could be regarded as services) are accessible and what their parameters are. I noticed that in Eclipse one...
Forum: RSS, Web Services and SOAP Jan 8th, 2008
Replies: 7
Views: 1,641
Posted By PoovenM
Re: Accessing a Web Service

Thanks for replying! So I should find a .wsdl file somewhere within the application if I was indeed working with a web service? Then I most definitely do not have a Web Service. That's one doubt...
Forum: Java Jan 8th, 2008
Replies: 6
Views: 408
Posted By PoovenM
Re: Problem with line of source code,help please?

I think that you've added private System.out.printIn; in attempt to fix the error you would have gotten with System.out.printIn("wear some shorts and sandals"); I agree with Masijade, you meant...
Forum: RSS, Web Services and SOAP Jan 8th, 2008
Replies: 7
Views: 1,641
Posted By PoovenM
Re: Accessing a Web Service

I think that a Web Service offers remote procedure calls (methods that can be called over the internet). The application I'm working with is really a servlet that accepts xml requests so I guess it...
Showing results 1 to 40 of 100

 
All times are GMT -4. The time now is 6:51 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC