Thomas Hansen

Greenhorn
+ Follow
since Jul 30, 2000
Merit badge: grant badges
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 Hansen

Many thanks!
Thank you all for useful input.
I looked into SyncML earlier, but then it was in its early draft stages.
I'll have the library send me a copy of the book also as it seems to have some interesting stuff.
Have a nice weekend,
Thomas
22 years ago
Hi,
I have just downloaded the Micro edition and installed it,
the utilities that came with it a little to basic to be of interest.
Maybe someone know if there is a way to make the java programs on the Palm hotsync with the desktop without to much hazzle.
Something which might have been a useful test application would be a database on the palm syncronizing with the desktop (or several desktops). Any chance of just adding some JDBC drivers and do it more or less like on a desktop model (except JDBC connection is not always available).
I'll be equally happy if someone could just point me in the right direction. Maybe it's in the book? (if so I guess I can get it in Norway...)
On beforehand thanks,
Thomas (wannabe Palm Java programmer
22 years ago
Ha,
Since I have this nasty habit of replying to my own postings with a solution I figured I'd might as well make this no exception.
Seems someone has allready made more or less what I was looking for, Java is great eh?
Well, if it works, I'll say Thanks Bret!
For the rest of you the link is:
http://www.stanford.edu/~bstaylor/cs/ftpconnection/
Amazing what you can do with a web browser and clever use of google eh...
Thomas
22 years ago
Hi Amer Seif el Dine,
Usually I turn to the Java tutorial at www.java.sun.com,
but as you maybe allready tried it doesn't quite cover this.
I have found great joy in a book called "Core Swing - Advanced programming" it discusses among other more advanced topics HTML editing using JEditorPane or parsing without displaying.
I suppose you can check the contents at amazon.co.uk or something and from that find out if it's worth it for you.
It's written by Kim Topley and has ISBN nummer 0-13-083292-8.
IF someone else reads this and has something to add, perhaps an online reference don't hesitate to reply.
Good luck with your work!
Thomas
22 years ago
Hi Amer Seif el Dine,
hmmm... this doesn't sound like something I would want to do voluntarily, but I asume you have a good reason ;-)
Since you are out for a simple solution I don't suppose you want to write an editor kit for the DOC and XLS filetypes as this would be VERY much work to get it correct.
Depending on how advanced your Excel/Word files are you could convert atleast your Word files to RTF and from that easily load the RTF reader and append whatever you want, for instance an image.
As far as I know there facilities within Word/Excel and Visual Basic that will let you do this relatively simply.
I suppose this might be a little easier with the OfficeXP as they were suppose to use XML as an open standard for saving documents. I heard some terrible things later though that it was Microsofts interpretation of XML and I haven't actually bothered to look so it might be fixed. This means it _might_ be easier if you can assume all documents are produced with OfficeXP or newer.
Good luck!
Thomas
22 years ago
Only one way to find out for real...
Email me all the files I need to run your program and I'll check how it works under Solaris and Linux.
Regards,
Thomas
(email address: thoh@ifi.uio.no)
22 years ago
Hi Wch Wyd (hmmm is that a real name?),
If you mean what I think you mean, namely that you want to run a Java application made in Visual Cafe, where you did not specify a LayoutManager under Solaris. Then I don't think you will have any problems except those already in the Java virtual machine for Solaris for whatever version the Solaris box is running. If you are using Swing then you might need to upgrade or install the Swing extension as Ultra 5 workstations tend to be shipped with Java pre-installed. This _might_ mean JDK 1.1, hopefully not...
If I remember right, not specifying a LayoutManager gives you FlowLayout as a default. I haven't used Visual Cafe so I don't know any specfic on that tool, but I suppose it will still give you FlowLayout. After what I heard Visual Cafe also lets you compile to Native Win32, if you did that things won't run on a Sun box...
BTW: if someone is in need of a free Java IDE then Forte for Java Community Edition 3.0 is available from www.sun.com. I haven't had time ot use it as I also try to learn Codewarrior from MetroWerks (not free), but it seems fairly good except it uses quite obscene amounts of mem on my Sun workstation, PC is a little better.
Regards,
Thomas
22 years ago
Hi Sharan,
I don't think you will have any problems with developing Swing applications under Solaris 2.5, there are however some minor bugs in the Solaris version of the JDK. None fatal to my knowledge only annoying
I think you will need to check which patches you have installed before you try to install the JDK. 'patchadd -p' gives me this information on Solaris 2.7 here, might be different for your system. If that doesn't work try 'man -k patch' and see if you find anything interesting. The list of which patches you need to have installed should be in a readme file on the Solaris tarball of the JDK.
Good luck!
Thomas
22 years ago
I found a solution to this problem which works well with my JEditorPane and that is using these actions:
cut-to-clipboard
copy-to-clipboard
paste-from-clipboard
Which is among the 83 actions I get when I asked my JEditorPane which actions it supported when I had contenttype set to "text/html".
A more general solution would be better so if anyone knows of another way, please speak out.
More details are available if someone needs it.
Regards,
Thomas
22 years ago
Seems this is a good day for questions, so here goes another one.
I need to give users some way to move files from their local machine running my Java client to a server (which I don't have root privilegies on). The files are mostly images and PDF files so what I basically need is some FTP or FTP-like functionality to push the data over the wire to the server, preferable something remotely secure like FTP with username and password (I have FTP access to the server).
I would sleep very well if there is some nice call that takes the file, username, password and server as parameters and just returns true if all went well... I don't suppose I'm _that_ lucky as I have not yet found an easy way.
If someone has any experience doing this kind of thing, and feels like sharing it will be really appreciated.
On beforehand thanks,
Thomas
22 years ago
Hi fellow programmers,
I'm trying to figure if there is an easy way to add copy & paste
with the system clipboard to my Java application, more concrete to a JEditorFrame in a JInternalFrame?
Typically users would copy text written in Word and paste it into my application for ease. From what I've read it's not possible to get simple markup along (like bold, italics etc), I don't suppose this have changed? (the JEditorFrame is used for HTML).
I'm grateful for all help and hints.
Thomas
22 years ago

Originally posted by Tad Takahashi:
I am doing a research about social impact in/of software development for one of the graduate college courses I am taking.
We have to ask people for their real work experience.
I chose eXtreme Programming as my topic.
I thought that it would be a good idea to start a new discussion
here about it.
The followings are the questions I would like to ask.
Any feedback will be greatly appreciated.

1. What were the benefits (in social context) you found when you implemented Extreme Programming?
(Did it change your relationships with your colleague or manager? Did it change the group dynamics of your team? How did that social aspect in return affect the quality of the software you developed?)
We used pair programming in some of our classes which were teaching introduction to OOP programming (Java) here at the Dept of Informatics, University of Oslo, Norway. I can't speak for XP as a whole since this was only done on a small population and only one time, so statistically I'd be careful about concluding to much.
The problem initially was that the fail percentage was fairly high after we switched from Simula (OO language since 1967 to Java. To remedy that several methods where looked at with the aim to make them better programmers at the end of the semester.
The result was that when the two programmers were at the same level and the chemistry was good, these people felt support by having one extra pair of eyes and also made code with better readability and less errors.

2. What were the disadvantages (in social context) you found when you implemented Extreme Programming?
(Did it change your relationships with your colleague or manager? Did it change the group dynamics of your team? How did that social aspect in return affect the quality of the software you developed?)
Ofcourse, in a introductory course when you most likely don't know anyone prior to attending the course there was ofcourse a few where maybe the ambitions differed or that the chemistry and differences was too big to overcome.
The result could be that one person did most of the coding while the other were inactive and did not manage to understand what all the code did.
3. Extreme Programming has some controversial pieces (e.g. Pair Programming). When you or your organization started using Extreme Programming, how was the reaction of your colleague, your manager, or the whole of your team?
I'd ve sceptical about working in a pair for all my programming, but it is certainly a good thing to discuss and share code. Its often that I have some code with an impossible to find bug, but upon showing it and explaining it to a friend which knows some about the inner workings and ask some questions I usually discover the code much quicker than if I were to fiddle around by myself.
4. Related to Question 3, how did you, your colleague, your manager, or the whole of your team deal with the reaction?

5. If you have anything else your found related to social aspect of implementing Extreme Programming, please describe it here.
Like it was said in another thread. eXtreme Programming is all in whole fairly extreme, but it does have some really good points which could be introduced without to much trouble. The more extreme parts could be introduced gradually on a long term and adapted to what does work in your company/situation.

Thank you


No problem
Regards,
Thomas
You wrote a fairly short question about exams, but I though I'd mention it anyways in case someone else is interested.
If you surf over to Rational (http://www.rational.com/uml/index.jsp) you can get a free UML seminar on CD. I have it and I found it usefull in the beginning to provide me with some scenarios. There are also several UML programs available for download in time or functional restricted versions.
Good luck with your exams!
Regards,
Thomas
Cand.scient student, Computer Science, University of Oslo, Norway
I'm looking for a good XML book. I don't want any "unleashed" or "all you need to know.." as these books are junk if you know how to program and know your ways around a computer.. I need something short and to the point. Is the O'reilly book any good?
(usually they are so..)
On beforehand thanks,
Thomas