Win a copy of High Performance Python for Data Analytics this week in the Python forum!

thomas wilson

Greenhorn
+ Follow
since Sep 21, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by thomas wilson

Some schools offer M.S. in Technology Management program and state that graduates will work as CIO or CTO in businesses or government agencies. Does anyone have experience with this program? For someone with 8-9 yrs in software development, is it worth it as the next step toward management? Thank you in advance.
15 years ago
How about Computer Information System, or CIS? It deals with databases a bit too and I think you can apply almost all of what you learn in CIS in most IT jobs
15 years ago
Does anyone know where I can get web services interface for locating units in the EMS? ie. the user input the address of certain location and the search radius as parameters, the response is the addresses (street addresses or geospatial coordinates) of all the EMS units located within that radius from that location? Thank you in advance
15 years ago

What having tough monetary times during a time like bubble has to do with national security??? Really beats me.



I think they are afraid of someone becoming a spy out of financial necessity. It seems most US spies for foreign states have not been driven by ideologies but by $$$
15 years ago
Does anyone know any developer/programmer who is at or older than 50 years of age? How about 45+? Jacquie, what would you say about the common saying that no software engineer does software engineering for 20yrs? If that is true, what do you think the reasons are? Assuming a fresh college grad at 21, he/she is most likely to stop at 41? Thank you very much.
[ February 09, 2005: Message edited by: thomas wilson ]
15 years ago
my experience is that web services jobs are short-term 3-6 months of duration, so they are mostly contract positions
15 years ago
I downloaded Oracle9i server and client separately from Oracle. Does it matter if I install both to the same or different directory?
16 years ago
If I am not mistaken, MVC pattern states that it's good to have only 1 servlet as the controller. Does Struts violate this? Thank you
16 years ago
I am new to Struts, so this is a rather simple question. I see that some action have formbean stated inside the action tag and some do not, even though the data also seem buffered somewhere for the latter. Please explain.

1) <action
path="/xxx"
parameter="method"
name="xxx"
input="xxx.xxx.xxx"
scope="request"
validate="false"
type="xxx.xxx.xxx">
<forward name="success" path="xxx.xxx.xxx" redirect="true"/>
</action>

2) <action
path="/xxx"
parameter="xx"
type="xxx.xxx.xxx">
<forward name="success" path="xxx.xxx.xxx" redirect="true"/>
</action>
16 years ago
How can one highlight the last pre-selection in a dynamic list? Thank you


<%
for( int i = 0 ; i < arraylist.size() ; i++ ) {
%>
<option value="<%= arraylist.get( i ).toString() %>"><%= arraylist.get( i ).toString() %></option>
<%
}
%>
Madhav,

You can do this by using DOM which can not only parse an xml document but also create one from data retrieved from the database.

http://www.ibiblio.org/xml/books/xmljava/chapters/ch13s03.html
[ November 11, 2004: Message edited by: thomas wilson ]
Thanks Madhav and Jayesh. I store the graph as a tree as one of the ways to backtrack the path. Like I mentioned, another way might be simply to store the positions with session variables (ID, timestamp)
Madhav,

Thank you for answering. Here is the situation. There are n layers (less than 10) in a 'tree' and each layer corresponds to a table in an Oracle database. When a user traverses the tree by clicking on nodes on a GUI, he/she should be able to go backtrack if needed. Assume that the user cannot backtrack more than n times, I can always use n session variables (perhaps in an array) to store the position (with timestamp to keep the chronological order of traversing). My other thought is to map the database tables to an internal XML tree and use DOM to store the traverse path. The twist of the latter solution is because each entry in the tables (except the root table) can have more than 1 parent (from the preceding upper layer/table), one might have to duplicate those entries as new elements in the XML tree. I assume that there are better ways to keep track of the path. If you or anyone know, please educate me. Thanks again. The apps is in J2EE.
Is is possible to use DOM or SAX to parse a graph instead of a tree? (an element in a graph can have more than 1 parent). Thank you.
In the following codes, could someone tell me why I got error when trying to cast Object back to Orange or Apple? How can one cast the object back to its original type? Thank you

========================

import java.util.*;
import java.lang.reflect.*;


public class test1 {


public static void main(String args[]) {
List fruits = new ArrayList();
Orange orange = new Orange();
orange.setIt("ORANGE");
Apple apple = new Apple();
apple.setIt("APPLE");

fruits.add(orange);
fruits.add(apple);

ListIterator itefruits = fruits.listIterator();

while (itefruits.hasNext()) {
Object obj = itefruits.next();
Class c = obj.getClass();
String classname = obj.getClass().getName();
//this statement below gave me error message "cannot find symbol class c"
System.out.println("orange or apple? : "+((c)obj).getIt());

}


}

}

class Orange {
private String o;

public void setIt(String o1) {
o = o1;
}

public String getIt() {
return o;
}
}

class Apple {
private String a;

public void setIt(String a1) {
a = a1;
}

public String getIt() {
return a;
}
}
16 years ago