> What development tool do you use to help on daily coding?
pico :)
dstn.
> Pico? Pah! Try vi. Grr! :)
vi schmi :)
dstn.
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,
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
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
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().
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
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?
> 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
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
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
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
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]
do!),
since it never normally exits.
Thanks,
dstn.
---------
Dustin Lang, [EMAIL PROTECTED]
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
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
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]
eers,
dstn.
-----
Dustin Lang, [EMAIL PROTECTED]
.getParent()).dispose();
System.exit(0);
}
});
pack();
setResizable(false);
show();
// This will make it be drawn correctly.
//setLocation(10,10);
}
}
-
Dustin Lang, [EMAIL PROTECTED]
gest) version?
Thanks,
dstn.
-----
Dustin Lang, [EMAIL PROTECTED]
.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]
> 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.
-
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
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.
--
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)
--
-
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
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
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]
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
Hi again,
I ran Test on NT and it does the same thing.
Weird...
dstn.
-
Dustin Lang, [EMAIL PROTECTED]
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 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]
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
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]
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]
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] --
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:
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
6,6,6);
}
};
}
}
-
Dustin Lang, [EMAIL PROTECTED]
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] --
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.
--
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.
-
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
; 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.
---
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
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
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
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
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
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
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
,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 -
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
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,
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
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
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
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.
-----
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
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
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
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
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
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
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
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
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
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.
82 matches
Mail list logo