Re: Survey, what tool do you use?

1998-06-18 Thread Dustin Lang
> What development tool do you use to help on daily coding? pico :) dstn.

Re: Survey, what tool do you use?

1998-06-18 Thread Dustin Lang
> Pico? Pah! Try vi. Grr! :) vi schmi :) dstn.

Re: Transparent gif files

1998-06-18 Thread Dustin Lang
Hi, One alternative is to write your own GIF class like I did. :) That's a great solution if you like bit-twiddling :) Some things that may or may not be useful: -The GIF file format specifies the background index (palette entry) in the header. -The Color of the transparent pixels should be 0,

Re: Unidentified subject!

1998-07-13 Thread Dustin Lang
Hi, > Is it possible with Java to rotate a font (90 degree)? > I want to write from top to bottom in a canvas. > Perhaps you have another solution. I don't have an easy sorution, but I can tell you how I'd do it: -create an offscreen Image -get its Graphics and draw the text left-to-right on i

Re: migration to linux

1998-07-16 Thread Dustin Lang
Hi, > I want to instal Redhat linux to run in dual boot mode with win95 and > need the capacity to use the JDK with both. > I want the power of UNIX at home but am > afraid of switching without getting some more detailed knowledge first. > Unfortunately I have no experience in compiling and con

Re: Problems with the componentListener and JTextField.

1998-08-06 Thread Dustin Lang
Hi, I found the same thing with a non-Swing app: componentResized but no componentShown. > I have added the ComponentListener to the JTextField, but never reach > the componentShown() event. It makes componentResized() and > componentMoved() when it is shown, but no componentShown().

Re: sending image

1998-08-11 Thread Dustin Lang
Hi, > I'm writing a Java server application which sends (via socket) an image > to an applet. Good luck. Image objects are not serializable. In other words, they are not willing to be sent over a network. I encountered the same problem in my work. The reason, or so Sun claims: Image objects

Re: CMS Problem: Incorporate as a Nonprofit?

1998-08-31 Thread Dustin Lang
Hi, This may not be a concern at all, but you might want to consider a not-for-profit instead of nonprofit organization. Cheers, dstn. > Does a nonprofit > organization sound helpful for any other reasons? Would you feel > comfortable joining?

Re: Java 1.2 and Java3D for Linux...?

1998-08-31 Thread Dustin Lang
> Although a little unrelated it may be interesting to you: SUN is selling Solaris > 2.6 for both Sparc and x86 architectures at $ 10.00 + shipping. Now, does this make sense to anyone else: from sun's web site I can order solaris, for $10. My choices for shipping are: USPS Global Priority Mail

Re: libXpm.so, where can i get it?

1998-09-29 Thread Dustin Lang
Hi, > I'm running on slackware with kernel 2.0.3* and I downloaded the JDK 116 from >blackdown. when I try to run the java > or the javac program, I get an error that says that libXpm.so is not found. I read >somewhere else > where libXpm.a used to solve the problem. > Where can I get a copy

Hogging colours?

1998-10-08 Thread Dustin Lang
Hi, I was looking at some stuff I wrote a long time ago (before I had a sane operating system *grin*), that does something similar to 'xlock -mode swirl' (makes pretty wavy things). When I ran it in X, instead of hundreds of colour I got 4. It's not nearly so pretty in 4 colours. *pout* Does

Re: Java Awt/Swing is fatally flawed

1998-10-12 Thread Dustin Lang
Hi, Please excuse my few snarky remarks... :) > This bring up a basic problem with Linux. It's intel centric. Although > linux runs on a multitude of CPU's it is still centered around > the intel cpu. It's offered e quit a bit of freedom in choosing a free > OS. but try finding binaries for t

Profiler for Linux?

1998-06-14 Thread Dustin Lang
mation, but Metrowerks (makers of codewarrior), has a pretty good profiler... for Macintosh (ouch!). Can anyone point me to a good profiler for Linux? Thanks, dstn. ----- Dustin Lang, [EMAIL PROTECTED]

Profiling? (Part II)

1998-06-14 Thread Dustin Lang
do!), since it never normally exits. Thanks, dstn. --------- Dustin Lang, [EMAIL PROTECTED]

Re: Installing JDK on Linux Slackware

1998-11-17 Thread Dustin Lang
Hi, > I´m having a lot of problems installing JDK1.1.7 on Linux Slackware. Is it > really possible? If not, anybody know a version of JDK for Slackware. I've set it up on two slackware systems with version 1.1.6. In both cases they worked perfectly right out of the box. I think this is more a

Re: java/Netscape question

1998-11-24 Thread Dustin Lang
Hi, > Is it possible to remove the Save, Send page, Send and View Page Source > options from a browser when viewing a page so that the page is totaly > secure ? Are you trying to prevent a web page from being copied? One of us doesn't understand your question. Warning: silliness below this

JDK 1.1.6 + Kernel 2.2 = Happy

1999-01-27 Thread Dustin Lang
Hi, Just in case anyone was wondering, I installed the release kernel 2.2.0 and java (Blackdown JDK1.1.6, green threads, libc5) works flawlessly. Thanks for the great work, dstn. - Dustin Lang, [EMAIL PROTECTED]

JDK1.1.7 + kernel 2.2.0 = Happy (?)

1999-01-27 Thread Dustin Lang
eers, dstn. ----- Dustin Lang, [EMAIL PROTECTED]

Frames not showing up quite correctly?

1999-02-02 Thread Dustin Lang
.getParent()).dispose(); System.exit(0); } }); pack(); setResizable(false); show(); // This will make it be drawn correctly. //setLocation(10,10); } } - Dustin Lang, [EMAIL PROTECTED]

which JDK?

1998-07-02 Thread Dustin Lang
gest) version? Thanks, dstn. ----- Dustin Lang, [EMAIL PROTECTED]

Removing items from Choices...

1998-07-03 Thread Dustin Lang
.java) I've just upgraded to jdk1.1.6v2 (I was running 1.1.3 and thought that might have been fixed in 1.1.6). It would be easy enough to hack out a solution, but this same code segment works on NT. Thanks, dstn. - Dustin Lang, [EMAIL PROTECTED]

Re: Great!

1999-02-21 Thread Dustin Lang
> The unscubscribe header is a great improvement! > It was time the "unsubscribe" message traffic get wiped out! Maybe we could add a "Asking when 1.2 will be done will result in unsubscription from this list and subscription to as many AOL spam lists as possible. Don't ask!!" *grin* dstn. -

Uh oh...

1999-02-24 Thread Dustin Lang
2.2.1. Thanks very much, dstn. ------ Dustin Lang, [EMAIL PROTECTED] (java developer,linux guy, all-round goofball) -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a sub

Re: Linux jdk 1.,2 Jit

1999-02-24 Thread Dustin Lang
Hi, > Both TYA and the ShuJIT are free JIT's which work with Linux and JDK 1.1 ... > I am assuming that porting them to work with JDK 1.2 will not be (too) > difficult. I know nothing, but I've heard that the interface for JITs has changed a lot between 1.1 and 1.2. --

Re: calling compiler withing a program?

1999-02-25 Thread Dustin Lang
eck to make sure the JRE classes.zip actually contains the sun.tool.* hierarchy. I don't think it does. dstn. -- Dustin Lang, [EMAIL PROTECTED] (java developer,linux guy, all-round goofball) -- -

Re: problem with Installation

1999-02-28 Thread Dustin Lang
es> error in loading shared libraries libjava.so: cannot > qcharles> open shared object file: No such file or directory Could it be a permissions problem? *shrug* dstn. --- -- Dustin Lang, [EMAIL PROTECTED] -- (java deve

Way to go!

1999-03-01 Thread Dustin Lang
Hi, Sorry for adding to the noise, but there seems to be a lot of green on the JDK1.2 status page!! Way to go!! dstn. --- -- Dustin Lang, [EMAIL PROTECTED] -- (java developer, linux guy, green-haired freak

Emacs and java...

1998-07-21 Thread Dustin Lang
it's using two spaces as a tab. I'm a believer in the a-tab-is-a-tab axiom of indentation :) Help?! Thanks, dstn. ----- Dustin Lang, [EMAIL PROTECTED]

AWT Bug? Threading problem? Or am I losing my mind?

1998-08-07 Thread Dustin Lang
Hi, I'm building a versioning server-client pair using RMI and I thought it would be fun to have a little traffic light to indicate that something is happening: green means go ahead, red means it's busy doing something. I wrote Light.java, an excruciatingly simple traffic light. At the start o

AWT Bug?

1998-08-07 Thread Dustin Lang
Hi again, I ran Test on NT and it does the same thing. Weird... dstn. - Dustin Lang, [EMAIL PROTECTED]

More AWT Woes...

1998-08-10 Thread Dustin Lang
Hi again, I tried putting in a Toolkit.sync() in my traffic-light problem... in fact I loaded it down with many sync()s, but still with no luck. Is there something so wrong with traffic lights? Oh well, time to do some threading... Seeya, dstn. - Dustin Lang

Using sun.tools.javac.Main within a java app?

1998-08-17 Thread Dustin Lang
using the most naiive way: running it as a Process. Blah. Thanks, dstn. PS - I did actually look on the web for quite a while but without much success. ----- Dustin Lang, [EMAIL PROTECTED]

Re: Using sun.tools.javac.Main within a java app?

1998-08-17 Thread Dustin Lang
Hi, Let me pause for a moment and smack myself for being such a goof. *SMACK* I think I was just incorrectly interpreting the results of my initial tests on the compile() method; it works exactly as one might expect: takes args such as "-d", "-O", and the list of files to compile. Sorry for th

More sun.tools.javac craziness...

1998-08-18 Thread Dustin Lang
do Runtime(...) first, with no appreciable change (stddev swallows up the diffs) Process: avg 19800, stddev ~500 Main:avg 23800, stddev ~500 (this is the result of 6 tests) Hmmm Thanks, dstn. ----- Dustin Lang, [EMAIL PROTECTED]

compiler crashes

1998-08-20 Thread Dustin Lang
7;ve tried cranking up the stack size with java -ms32M sun.tools.javac.Main with the same result. Has anyone seen this (and hopefully found a way to fix it)? Thanks, dstn. ----- Dustin Lang, [EMAIL PROTECTED]

Re: multi JVM's mem usage in linux?

1999-03-22 Thread Dustin Lang
can create your own custom security manager that disallows System.exit() calls. By doing custom security you can do other neat stuff too, like keep track of which thread created a given window, and so on. dstn. ------- -- Dustin Lang, [EMAIL PROTECTED] --

Re: multi JVM's mem usage in linux?

1999-03-23 Thread Dustin Lang
hty naughty."); } } You could also use a special magic status number, such as 0xCAFEBABE :) dstn. ------- -- Dustin Lang, [EMAIL PROTECTED] -- (java developer, linux guy, green-haired freak) Why Linux is so cool: /usr/include/string.h:190:

Re: This works on Linux/ W95 not on NT. Why?

1999-03-31 Thread Dustin Lang
t my experience and $0.02. dstn. --- -- Dustin Lang, [EMAIL PROTECTED] -- (java developer, linux guy, green-haired freak) Why Linux is so cool: /usr/include/string.h:190: /* Sautee STRING briskly. */ extern c

Survey: does this crash your compiler?

1998-08-21 Thread Dustin Lang
6,6,6); } }; } } - Dustin Lang, [EMAIL PROTECTED]

Re: Big-Endians

1999-04-21 Thread Dustin Lang
the jvm is responsible for hiding the endianness of the platform 3. as a result of (2) there is nothing a 100% java app can do to determine the endianness of the platform it's being run on. *shrug* dstn. ------- -- Dustin Lang, [EMAIL PROTECTED] --

Re: Big-Endians

1999-04-21 Thread Dustin Lang
PI protocols. 4.No use of hardwired platform-specific constants. --- Of course, you could write a java app that communicated with a native server via sockets and determined endianness that way, but that would be cheating. :) Just adding to the noise, dstn. --

Re: newb: running Java service?

1999-05-04 Thread Dustin Lang
r-side java classes. I believe most of them keep a jvm resident so that handling each incoming request is fast. Look in the list archives or on the web for "Jserv" or "servlet". Jserv is just one that comes to mind. Good luck :) dstn. -

Ability to reload class files

1999-05-10 Thread Dustin Lang
or to do it more controllably, I have a feeling the JVM might not like that very much. Thanks, dstn. --- -- Dustin Lang, [EMAIL PROTECTED] -- (java developer, linux guy, green-haired freak) Why Linux is so cool: /usr/include/string.h:190: /* Sautee

SOCKS firewall piercing?

1999-07-14 Thread Dustin Lang
; turned up three matches - to record-breaking sex that will knock my _socks_ off. Gotta love the 'net. Check this out - from the javadoc at the top of PlainSocketImpl. Go Steve! * @author Steven B. Byrne Thanks for your help, dstn. ---

Re: SOCKS firewall piercing?

1999-07-14 Thread Dustin Lang
I'll just go ahead and answer my own question and save everyone else the trouble. Silly Dustin, all you have to do is set a system property. You can do that like this: java -DsocksProxyHost=socks.whatever.org -DsocksProxyPort=1080 MyClass Sorry for adding to the noise... at least this will sh

JNI header files

1999-07-19 Thread Dustin Lang
Hi, It says it can't find typedefs_md.h, and I'd guess that's exactly true. Take a look at the java/include directory. There are a few files and a few directories for machine-dependent code. That's what the _md means. What you need to do is somehow make sure that gcc looks in that directory

NoClassDefFoundError... argh!

1999-07-19 Thread Dustin Lang
y? Thanks for your help, dstn. -------- -- Dustin Lang, [EMAIL PROTECTED]-- (java developer, linux guy, freak with rainbow hair) User, n.: a particularly slow and unreliable input/ output device that is attached by default to the standard input and outpu

Re: NoClassDefFoundError... argh!

1999-07-19 Thread Dustin Lang
Hi, > Try to unpack all jars and put them in one tree. If you are using JRE > 1.1.x do the same to rt.jar. Then try to run the app. Jar access code > was not multithreaded at time and sometimes could cause similar effects > (I've experienced it while getting images and classes at same time from

Re: NoClassDefFoundError... argh!

1999-07-21 Thread Dustin Lang
Hi, The problem (actually slightly different but feels the same) is happening again. The magical trick of unpacking jars isn't going to work, this time, because my jars are already unpacked :( What's happening is basically that in the initialization of my app I read a config file that contains

Re: NoClassDefFoundError... argh!

1999-07-21 Thread Dustin Lang
Hi, An ammendment to my original post: The ClassNotFoundException is successfully caught and execution continues (same as it would if a really nonexistant class name was given in the config file), but immediately after it comes the error everyone loves, java.lang.NoClassDefFoundError: MyClass

Re: NoClassDefFoundError... argh!

1999-07-21 Thread Dustin Lang
Hi, > Umm I find that I will get htis error for a class when a class it derives on > is not present. [snip] > Are all the super classes accessible ??? Hmm... The class that's getting the ClassNotFoundException extends the one the NoClassDefFoundError is coming from. In case that was incompre

Bad file descriptors?

1999-07-22 Thread Dustin Lang
, dstn. -- Dustin Lang, [EMAIL PROTECTED]-- (java developer, linux guy, freak with rainbow hair) User, n.: a particularly slow and unreliable input/ output device that is attached by default to the standard input and output streams

Bad file descriptors and other nasty things.

1999-07-23 Thread Dustin Lang
9f7000) = 0x89f7000 ioctl(18, FIONREAD, [0])= 0 ioctl(18, FIONREAD, [0])= 0 # Exception is thrown here. # System.out.println the exception write(1, "Cache: Uh oh: java.io.IOException: Bad file descriptor") = 54

Drag'n'drop?

1999-07-26 Thread Dustin Lang
Thanks for any tips, dstn. ---- -- Dustin Lang, [EMAIL PROTECTED]-- (java developer, linux guy, freak with rainbow hair) User, n.: a particularly slow and unreliable input/ output device that is attached by default to the standard i

Cut-n-paste?

1999-07-28 Thread Dustin Lang
anks, dstn. ---- -- Dustin Lang, [EMAIL PROTECTED]-- User, n.: a particularly slow and unreliable input/ output device that is attached by default to the standard input and outp

Re: File or class transfer over tcpip

1999-08-03 Thread Dustin Lang
Hi, > needed. It works like a charm but, the typical but word my classes when > used by the JVM either through security exceptions or are unreadable. To > transfer the class file we are using the following: [snip] > DataInputStream di = new DataInputStream(new > FileInputStream

[Off-topic] Drag-n-drop applet?

1999-08-11 Thread Dustin Lang
events and uses some sort of static clipboard class to transfer stuff. I'm not sure how well this will work, though... Does anyone have suggestions/ideas/comments? Thanks, dstn. ---- -- Dustin Lang, [EMAIL PROTECTED]-- User, n.: a particu

Re: native/green

1999-08-11 Thread Dustin Lang
Hi, > I know I have seen this here before. What does it typically mean if my > java app runs with native threads, but not in green threads (117_v3)? Green threads follow the java threading specifications. In particular, they don't guarantee time-slicing, which a lot of threaded code incorrect

Re: [Off-topic] Drag-n-drop applet?

1999-08-12 Thread Dustin Lang
st have to figure out which component the drop happenend in. Easy. dstn. ---- -- Dustin Lang, [EMAIL PROTECTED]-- User, n.: a particularly slow and unreliable input/ output device that is attached by default to the standard input

Background processes?

1999-08-26 Thread Dustin Lang
Hi, Can anyone tell me if there is a way to Runtime.exec() a process that lives longer than the Java process that spawns it? How obvious is it that I'm not a (real) C/Unix programmer? ;) Thanks, dstn. -- Dustin Lang, [EMAIL PROT

Re: Jozilla?

1999-09-13 Thread Dustin Lang
Hi, > I downloaded the user version but since it runs on 1.1 I > decided to upgrade the lot to 1.2 myself. I've found that unless there's a good reason to use 1.2 (ie, one of Sun's 1001 APIs that is only in 1.2), there is no really good reason to "upgrade" from 1.1 to 1.2. It may not be a bad

Re: Drag and Drop

1999-09-27 Thread Dustin Lang
e; it's also possible to do without a visual development environment (that's what I do). Cheers, dstn. -------- -- Dustin Lang, [EMAIL PROTECTED]-- User, n.: a particularly slow and unreliable input/ output device that is attached

Re: Out of Memory Problem!!! Urgent!!!

1999-10-01 Thread Dustin Lang
I'm not surprised. You're allocating 20 megs for your program. This is not much. I'm not surprised you're running out of memory. I'd suggest using a higher value. > java -mx2k xxApplication -- To UNSUBSCRIBE, email

RE: Applet transparency?

1999-10-07 Thread Dustin Lang
Hi, > Try setting the background color to null. One might suppose that what should happen is that the browser would leave the background in its original pristine state, and then unless the applet painted itself, that background would stay the way it was. I think most (read: all) browsers paint

Re: Api Linux

1999-10-08 Thread Dustin Lang
dException { >Process p = Runtime.getRuntime().exec(cmdLine); >return p.waitFor(); // by convention '0' means normal termination > } -------- -- Dustin Lang, [EMAIL PROTECTED]-- User, n.: a particularly slow and unreliabl

Re: JNI link to disk space

1999-10-20 Thread Dustin Lang
Hi, > > > I am interesting in getting the disk space and partition > > > in a Java program by using JNI. What is the std UNIX API > > > call to do this? I have tried grepping the man pages > > > and got the source to kdf program but it didn't help > > > because it was executing `/usr/bin/df -k -

Re: Version snag

1999-10-25 Thread Dustin Lang
Hi, > I am just surprised that the software now states that the pre-release > 2 is not JAVA 2, can anyone make a suggestion as to why? I would suspect that your program is checking for a version number string in a particular format, and is not receiving an answer in precisely that format, and i

Re: A Java parser

1999-11-17 Thread Dustin Lang
write your parser in Java, then you'll either need to do some JNI, or maybe port their parsing code from C++ to Java. By the way, your .sig is way huge. Though impressive, it's kind of annoying. :) Cheers, dstn. ---- -- Dustin Lang,

Do we need an installer-chooser?

1999-01-16 Thread Dustin Lang
re getting crufty. Do people think this app would be useful? Any pointers/suggestions? Thanks, dstn. ---- -- Dustin Lang, [EMAIL PROTECTED]-- User, n.: a particularly slow and unreliable input/ output device that is attached by default

Re: Do we need an installer-chooser?

1999-01-16 Thread Dustin Lang
Hi, > perhaps if this could be embeded in a web page... an applet? that would > be cool. > and unless you plan to compile to all archs maybe a shell script > would be better? Hmm... I was thinking a smallish, statically-linked C program. I hadn't thought about multiple architectures (I'm a lit

Re: Do we need an installer-chooser?

1999-01-16 Thread Dustin Lang
essed if there was a way to find that out with javascript... and a little worried considering the filesystem access you'd need to find that out... Cheers, dstn. ---- -- Dustin Lang, [EMAIL PROTECTED]-- User, n.: a particularly slow a

Chooser

1999-01-16 Thread Dustin Lang
I see several references to an RPM that can be found in the contrib section, and a search of the Debian package listing shows it can be found in the non-free section. Do any other distributions have packages available? Thanks for your input, dstn. -----

Off-topic: OS/arch combinations

1999-01-17 Thread Dustin Lang
os.arch values I've encountered: x86 ppc PowerPC sparc Thanks very much for your help, dstn. -- Dustin Lang, [EMAIL PROTECTED]-- User, n.: a particularly

Installer chooser

1999-12-14 Thread Dustin Lang
Hi, A little while back I was talking about writing a program to check a user's system and from that information decide what JDK version they should get. I was being stubborn about writing it in C, but I got over that fairly quickly :) I'm now working on a shell script that looks at libc versi

Re: text field display bug

1999-12-16 Thread Dustin Lang
Hi, I assume you know how naughty absolute positioning is. Ten lashes with a wet noodle for you. It sounds as though you're assuming that the text is a certain size, and that it is actually a different size. If you're not using FontMetrics, you should be. Without more information, it's hard

Re: current directory

1999-12-27 Thread Dustin Lang
Hi, > how can I get current directory in servlet? This is not Linux-specific, or even servlet-specific, for that matter. There is a trick, though it feels like bad programming form: new File(".").getAbsolutePath(); In the future, you would do better by finding a more appropriate forum for que

Re: how to extract .tar.bz2 ?

1999-12-27 Thread Dustin Lang
Hi, > I download Blackdown jdk1.2.2: > > jdk-1.2.2-RC3-linux-i386.tar.bz2 > > I can not use "tar xvfI jdk-1.2.2-RC3-linux-i386.tar.bz2" > command in linux # prompt. Anyone help me ? If your tar program is older, it will not know about bunzip2, ie, it will not understand the "I" option. You a

Re: Y2K readiness.

1999-12-27 Thread Dustin Lang
Hi, > I've looked all over blackdown.org for a y2k statement, but > I've found none. Any of you know if there are any y2k issues with > the blackdown ports? (specifically jdk117_v1a). I'm not a member of the porting team, but I can tell you what I think they would tell you. The JDK, like almos

Re: Jar file with JDBC

1999-12-27 Thread Dustin Lang
Hi, > try > { > Class.forName("postgresql.Driver"); > db = DriverManager.getConnection(url, usr, pwd); > st = db.createStatement(); > } > st.executeUpdate(crt); > > //While executing this statement it gives nullpointer It looks as though the driver can

DatagramSocket and Thread problem

2001-09-23 Thread Dustin Lang
s, native threads/sunwjit and green threads. Thanks for your help! dstn. -------- -- Dustin Lang, [EMAIL PROTECTED]-- User, n.: a particularly slow and unreliable input/ output device that is attached by default to the standard

DatagramSocket and Thread problem (more)

2001-09-24 Thread Dustin Lang
eers, dstn. ---- -- Dustin Lang, [EMAIL PROTECTED]-- User, n.: a particularly slow and unreliable input/ output device that is attached by default to the standard input and outp

Re: DatagramSocket and Thread problem

2001-09-25 Thread Dustin Lang
Hi, > I have edited your code. It is working fine, except for few changes. Thanks. However, my original email was essentially a bug report, not a request for help with my code. I didn't actually say "bug report" because so many bug reports end up just being problems with people's code.