Don Campbell

Greenhorn
+ Follow
since Jan 18, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
4
In last 30 days
0
Total given
0
Likes
Total received
4
Received in last 30 days
0
Total given
16
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Don Campbell

Sounds good, thanks Paul.


paul wheaton wrote:Thanks Don!  I got it!

We've set up some fancy stuff with our PIE program - not sure if that is your sort of thing.  Giving you a bit of PIE just for fun.

https://coderanch.com/pie

1 year ago
Thanks, Ritchie.  Unfortunately, the donate button at https://javaranch.com/donate.jsp only allows you to send a minimum amount via Paypal, which is fine.  But I wanted to send a little more, for this first donation.

So I used the pennies... email instead.

All good, thanks.

Campbell Ritchie wrote:Moved to our Ranch Office where we usually discuss this sort of thing.
Thank you for that generous suggestion Try the tip jar. Search for pie on this forum (or here) and see if you can't buy a few slices.

1 year ago
How do I donate to a forum?  I know how to thank an individual user, but how can I help finance one of the forums themselves.
1 year ago
Mike, thanks.  You just saved me hours or days of time, trying to distill multiple demo modules into a few lines, in order to experiment with.

1 year ago
Carey/Ron,

Thanks, I'll continue tomorrow.  Starting to doze off, and will start making dumb mistakes.

T & R,
1 year ago
In the class that I'm using, I extend TWindow.

It looks like this is more complex than I thought.  It seems as if we can't call a TreeViewWindow in isolation, even though that's the only feature I'm trying to experiment with.

It appears that we need to create a TApplication first as a container, and set up the TreeView inside that.
1 year ago
Possibly.  Been searching, but so far have not seen it defined, other than in TWidget itself.  

And that's a final method, so I don't see that we would even have to implement it.  Since TWidget is imported, I would expect that the final method would be automatically recognized by the IDE.

https://gitlab.com/AutumnMeowMeow/jexer/-/tree/master/src/jexer

https://gitlab.com/AutumnMeowMeow/jexer/-/blob/master/src/jexer/TWidget.java

https://jexer.sourceforge.io/apidocs/api/jexer/ttree/TTreeViewWidget.html


Ron McLeod wrote:

Don Campbell wrote:But besides, in some of the source examples addTreeViewWidget is just called, without any explicit instantiated object reference.


Do the classes of those examples extend something which implement addTreeViewWidget?

1 year ago
Thanks Carey,

Unfortunately, TWidget is an abstract class.  I can't seem to find any examples in the source, where it's implemented in the way that I need.

But besides, in some of the source examples addTreeViewWidget is just called, without any explicit instantiated object reference.



But it looks like a derivative project, TJIde (a text-mode java IDE), has some demo code that calls some of the Treeview methods.

If you have any more suggestions, please let me know, thanks Carey.  Otherwise, thanks for the input, which was much sooner than I expected.



Carey Brown wrote:You have to give it a TWidget object in front of the method name

1 year ago
Hi,

I'm trying to generate a treeview, from a TreeViewWidge class, with these lines

...
...
...
...




, but the compiler keeps telling me that addTreeViewWidget isn't found ("No candidates found for method call")


This is inside a main method, called from Groovy.


The docs regarding the TTreeViewWidget widget are here:


https://jexer.sourceforge.io/apidocs/api/jexer/ttree/TTreeViewWidget.html



Constructors


TTreeViewWidget​(TWidget parent, int x, int y, int width, int height)
Public constructor.

TTreeViewWidget​(TWidget parent, int x, int y, int width, int height, TAction action)
Public constructor.


addTreeViewWidget is a public final method in the TWidget class:






1 year ago
Got it.  It works fine, from the normal command line.  But I was using JPSoft's Take command, outside of the Windows shell compability mode.

Everything's good.
1 year ago
Ok, thanks Paul.

Unknown command "1.8.0_301" in StartGroovy.bat

When I run Groovy.bat (version 4.07), it runs startGroovy.bat.  When it executes line 289,



for /f "useback tokens=*" %%a in ('%JAVA_VERSION%') do set JAVA_VERSION=%%~a
, it returns an error

startGroovy.bat [289]  Unknown command "1.8.0_301"

, which is obviously the java version.



Do I need to edit that line?  Is there an official Groovy forum to report this?





Paul Clapham wrote:I see you found the Ranch's Groovy forum already. It isn't an official forum, but you could try asking your question here.

1 year ago
Hi,

I'm having a problem with one of the batch files - startgroovy.bat - that comes standard with Groovy.  I'm using 4.07.

Is there an official groovy forum, to ask this kind of question?  It appears that the github doesn't have an Issues tab.
1 year ago
Tim, thanks for the detail.  I'll put this in the pim.


Tim Holloway wrote:

Ron McLeod wrote:
The -b option is used to specify the binding address.  -b 0.0.0.0 means bind to addresses for all interfaces.



If it's not defined, the default binding address is 127.0.0.1 or localhost, meaning that clients cannot talk to the JBoss server unless they are located on the same machine as the JBoss server itself. This is a security feature to ensure that the server doesn't get exposed to a cruel outside world until you've got everything properly configured and locked down.

3 years ago
This is still useful, thanks.

Ron McLeod wrote:I know that your post is from several weeks ago and you have already resolved your problem.  I'll reply anyway in case may help someone else in the future.

Don Campbell wrote:1.  What does the -b 0.0.0.0 mean?  Are these really necessary, if we're just trying to see if the server is running?


The -b option is used to specify the binding address.  -b 0.0.0.0 means bind to addresses for all interfaces.


Don Campbell wrote:2.  If these parameters seem necessary, is there an alternative way of doing the same thing, that we can try?


You should be able to set this in the appropriate configuration file (file name/location and other details depend on server version and installation decisions):

3 years ago
Hi,

I'm trying to debug a linux script that isn't reporting when JBoss is running, when it tries to run or stop the server.

This is the statement, and it's being used as a condition for echoing whether the server is active:

 pgrep -fn "org.jboss.Main -b 0.0.0.0



So for example, for stopping the server the script is


For starting the server, the script is



, and in both cases, the dot "." keeps getting echoed indefinitely, so that we have to break out.


What I'm asking, if anyone can help, is

1.  What does the -b 0.0.0.0 mean?  Are these really necessary, if we're just trying to see if the server is running?

2.  If these parameters seem necessary, is there an alternative way of doing the same thing, that we can try?



Thanks and regards,




3 years ago