switch to room list switch to menu My folders
Go to page: First ... 40 41 42 43 [44] 45 46 47 48 ... Last
[#] Mon Nov 10 2008 15:13:39 EST from Ford II @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

what's sl

[#] Mon Nov 10 2008 19:25:02 EST from dothebart @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

check it out...

apt-get install sl


[#] Thu Nov 20 2008 17:19:07 EST from Ford II @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

here's a good one for you jokers...
How do I or is it even possible to add a symlink toa jar file?
I know you can do it with tar, and it's the same thing, but I think jar is a little more limited in functionality.
And if you can pull that off, is there a way to do it in ant without a cheese <exec> call?

[#] Thu Nov 20 2008 17:19:17 EST from Ford II @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

You'll never guess what I'm trying to do...

[#] Thu Nov 20 2008 18:11:04 EST from Bryon Roche @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

.JARS are zip-files, for the fail.

[#] Fri Nov 21 2008 07:28:29 EST from Ford II @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

yes, I know that, but I still need to get 'jar' to get a symlink into a jar file.

[#] Fri Nov 21 2008 13:18:50 EST from Bryon Roche @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

That's the blocker, you see. .zip does not support sym or hardlinks.

[#] Fri Nov 21 2008 13:19:57 EST from Bryon Roche @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

What are you trying to do, exactly?

[#] Fri Nov 21 2008 14:14:16 EST from Ford II @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I am trying to deploy a webapp in the traditional way so that it explodes into its own directory under <webserver>/webapps
The problem is I need the servlets in that web app to foward or include jsps that aren't in that application's context root.
So I want to make a symlink. I can do it after the unzip happens, but it would be neater (if I'm going to make a big bad kludge anyway) to put the symlink in the war file.
But it's not going to work and I have a simpler way anyway. I don't like it as much but it will work.

[#] Sat Nov 22 2008 01:25:09 EST from Bryon Roche @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

it's been forever since i've set up a jsp server.. isn't the canonical way to do that with some sort of verbose url-classname mapping file that's a part of .wars?

[#] Sat Nov 22 2008 01:48:05 EST from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


And not the canonical way, the ONLY way.

[#] Sat Nov 22 2008 03:21:23 EST from Peter Pulse @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Why bother with ant? What does it get ya exactly?

[#] Sat Nov 22 2008 09:52:33 EST from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

ant does better than Make at handling java dependencies.

[#] Sat Nov 22 2008 18:29:58 EST from Ford II @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Actually, it does do a few smart things and it's concise, it's not a lot of xml, although like
everybody else I wish I didn't have to use xml.
99% of the errors I get from the ant program are "you didn't clsoe this tag."
xml is for assholes.
But on the good side, you say this:
<war destfile="${warfile}.war" webxml="WebContent/WEB-INF/web.xml" update="true">
<classes dir="build/classes"/>
<classes dir="../servletutils/bin"/>
<classes dir="../utils"/>
<fileset dir="WebContent">
<exclude name="WEB-INF/web.xml"/>
And it pulls in all the classfiles, all of the html/jsp/js content and it's a lot less stuff than if
you did the jar commands yourself.
Also, the compile is smart, you give it a directory, and it hunts down all the subdirectories looking
for .java files newer than the equivalent class file and builds only what's neccesary:
<target name="compile">
<javac srcdir="src" debug="true" destdir="build/classes" classpath="${cp}" />
So you don't have to specify everything.
On the downside, it's java, so you have to wait for the vm to start up, but you only have to wait once, whereas multiple steps if you did it yourself would require multiple jvm loads.

And finally the thing that sucks most about ant is this:

Apache happens to know that their shit doesn't stink. I disagree. This sounds like the lamest "not written here" excuse I've ever read.

[#] Sat Nov 22 2008 18:44:15 EST from Peter Pulse @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Thanks no time to read it now, I have to get my stuff together and go pummel people's eardrums with 11,000 watts of sound system.. for which I will be vastly underpaid, but it will be fun ;) But I will read up later. Yea right now I am only really responsible for two ongoing java projects (as you know.. and I am using Make with a couple of perl scripts to generate difficult dependencies.
It works pretty well at this point but I guess I should try to do it the Rome way. Last time I tried Ant it seemed rather annoying and unclear but I should give it another shot. It took them 25 years to get C++ right, maybe there's hope for this java appserver crap.

[#] Sat Nov 22 2008 23:41:53 EST from Ford II @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

the java app server crap isn't so bad if you stay away from the j2ee stuff.
ant isn't the be all and end all, but it's what everybody else is doing.

[#] Sun Nov 23 2008 01:25:06 EST from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

yeah, we're moving to tomcat and it's working pretty well. tomcat is safe, sane, and consensual, unlike some other app servers I might mention, which are nothing of the sort. I don't think java can ever get as bad as C++. Unlike C++, they got the semantics right the first time, and haven't spent the last 20 years making incompatible changes at the grammar level. They would actually have to totally break the classfile format if they wanted to turn Java into C++. Thank Bob.

[#] Tue Feb 03 2009 17:28:25 EST from Ford II @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I had this brilliant fucking idea the other day. So brilliant, I figured I could finally get some real work done on my sandbox machine in VA from NY.
I thought... why can't I run a vnc server on my sandbox, and remote to the X display.
Straight X works, but it's sooooooooo slow it's unusable. But VNC works really well, so I've got to try this out.
So I first try to run X and realize that there's no physical display, so I'm kinda screwed, so I start looking around and sure enough somebody had my idea in *2003*!!!
This must be a brilliant idea if somebody thought of my idea FIVE YEARS AGO!

So sure enough vncserver is installed and theres a Xvnc and all is ready to go.
So I run it, and it fails:
Fatal server error:
could not open default font 'fixed'

I've found tons of articles on the problem and none of the supplied solutions work.
xfs is running, I ran mkfontdir and fc-cache and everything builds indexes all correctly, but no matter what I can't make it find the default font.
Any suggestions?

[#] Tue Feb 03 2009 17:30:52 EST from Ford II @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

oh, by the way, this is a solaris sparc machine with openwin and all the usuall X11 directorys symlink to the openwin install.

[#] Wed Feb 04 2009 07:40:42 EST from dothebart @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


18:00  Bipolar: dothebart: yes. The stuff NoMachine came up with.
18:01  Bipolar: dothebart: Now even remote windows users have a local Kubuntu desktop. No more "I'm trying to
                configure X to access Y at the office and I don't know how...."
18:03  dothebart: Bipolar: what do you run on the wintendos? and what on the *nix boxes?
18:04  dothebart: no more xming?
18:04  dothebart: cd ~
18:04  Bipolar: The NX clinet, served via a web page with the NX Web Companion.
18:04  dothebart: bbl
18:04  dothebart: oh, a java thingie?
18:04  Bipolar: no installation. no configuring. just works.
18:05  dothebart: but a commercial license?
18:05  Bipolar: Yeah. it's a little java applet that installs a native NX client.
18:05  dothebart: ah ;)
18:05  Bipolar: Not sure about the licence... it's free for all uses though.
18:05  dothebart: cool.
18:05  dothebart: i'll have to try that too.
18:06  dothebart: bbl.
18:06  Bipolar: I tested it on Kubuntu and XP. Works like a champ.
18:06  Bipolar: later!

nx aka narrow x is for low bandwith.

Go to page: First ... 40 41 42 43 [44] 45 46 47 48 ... Last