Ron McLeod

Marshal
+ Follow
since Feb 12, 2013
Ron likes ...
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
Merit badge: grant badges
Richmond, BC, Canada
Cows and Likes
Cows
Total received
549
In last 30 days
2
Total given
316
Likes
Total received
1118
Received in last 30 days
8
Total given
2236
Given in last 30 days
14
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt Green check
expand Greenhorn Scavenger Hunt

Recent posts by Ron McLeod

I just gave it a quick try and it worked for me:
  - saved my java code
  - ran Tools/Compile Java
  - ran Tools/Run Java Application



I'm not sure what the difference might be.  I am using Windows 10.

Edit: I just tried your code as-is: ran as expected.
2 days ago
Did you save your work first?  I haven't used TextPad, but a star usually indicates unsaved changes.

2 days ago
I don't think anyone is going to be able to help you unless you share some details like:
  - where are you trying to connect from? - browser, Node.js, etc.
  - how are you trying to connect? - source code would be helpful
  - what error messages or unexpected behaviour are you seeing?
  - what are the versions of the various software components (mongodb, mongoose library, node.js, etc.)
2 days ago
I think your problem was just that you were referring to the wrong element.  Just changing this:to this:should have fixed things.


If you filter based on the string representation of the full path, then you will need to consider the path separator character in your pattern (/ for Linux, \ for Windows).

Take a look at Files#find.  Here's an example of what I had done before:
I shortend the paths with ...

Tim Holloway wrote:... You can have hyphens in a package name component


I'm not sure if that is permitted or not, but when creating a package name based on an Internet domain name, the JLS suggests using an underscore where a hyphen is found:

The first component of a unique package name is always written in all-lowercase ASCII letters and should be one of the top level domain names, such as com, edu, gov, mil, net, or org, or one of the English two-letter codes identifying countries as specified in ISO Standard 3166.

In some cases, the Internet domain name may not be a valid package name. Here are some suggested conventions for dealing with these situations:

  - If the domain name contains a hyphen, or any other special character not allowed in an identifier (§3.8), convert it into an underscore.

  - If any of the resulting package name components are keywords (§3.9), append an underscore to them.

  - If any of the resulting package name components start with a digit, or any other character that is not allowed as an initial character of an identifier, have an underscore prefixed to the component.

4 days ago

Jimmy Tommy wrote:01-Dec-2022 12:37:26.257 SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.WebXmlParser.parseWebXml Parse error in application web.xml file at [file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%208.5/webapps/bdmsimulationservice/WEB-INF/web.xml]


Was there more included in the error message, like a line number or hints as to what caused the parse error?
4 days ago
jshell is useful for doing these types of tests
5 days ago
I was catching-up on watching Adam Bien's collection of video and I found out that there is an option with jshell to have it import all JavaSE packages using jshell -startup JAVASE.

Here's a very short video demonstration for anyone (like me) that didn't know this existed:

1 week ago
I merged your stuff with the following thread. I hope that is okay by you.

Sami radwan wrote:you mean to use shortcuts?


Yes - if in a graphical environment I use keyboard shortcuts.

Sami radwan wrote:How can I move and open folders for example and files?


I use the command-line whenever possible/practical.

My mouse is a $20 Logitech M525.
3 weeks ago
My opinion - the best way to increase productivity is to to keep your hands on the keyboard and don't use the mouse.  What kind of operations/tasks require you to use a mouse?
3 weeks ago