Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

Iarla O'Riada

Ranch Hand
+ Follow
since Oct 06, 2012
Iarla likes ...
Mac Ubuntu
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
4
Received in last 30 days
0
Total given
5
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Iarla O'Riada

When I select a database table in the Services browser in Netbeans IDE, the select statment takes far too long. Is it possible to have it paginate in some way like SQL Developer does so I can see some results sooner?
Thanks Peter Johnson. I am looking for a total of changes since the last release, but I guess I can tell from the Jenkins builds which were done after a given release by looking at the date? It looks like a pretty good solution actually.

The changes page is blank for some jobs - I'm guessing because builds are kicked off nightly regardless of whether there have been commits. Maybe I'll change that to poll SVN for changes.

That seems to do exactly what I want without needing any plugins - can't thank you enough for that!
5 years ago
I'd like to have the outcome of my Jenkins build include nicely formatted release notes. I'm happy for those to come from SCM commit messages for commits that took place during that release or even have annotations in the source code itself.

Search online for jenkins release notes plugin gets me - the release notes for existing plugins Can anyone suggest how I can manage this?

Thanks,
Ten
5 years ago
I've just examined the console output for these NetBeans context menu entries which I've executed on my maven project:

Build, Clean and Build, Build with Dependencies, Clean and Generate JavaDoc

The output is surprising and I'm surprised if there is even a difference between some of them, for example Build already includes a 'clean' arugument so Clean and Build should be no different. Here are the details:

Build
cd C:\Users\reidyja\NetBeansProjects\1502_DEV\oaas; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_40" M2_HOME=C:\\Users\\reidyja\\bin\\apache-maven-3.1.1 cmd /c "\"\"C:\\Users\\reidyja\\bin\\apache-maven-3.1.1\\bin\\mvn.bat\" -DskipTests=true -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.0\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 clean install install\""
Scanning for projects...

Clean and Build
cd C:\Users\reidyja\NetBeansProjects\1502_DEV\oaas; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_40" M2_HOME=C:\\Users\\reidyja\\bin\\apache-maven-3.1.1 cmd /c "\"\"C:\\Users\\reidyja\\bin\\apache-maven-3.1.1\\bin\\mvn.bat\" -DskipTests=true -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.0\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 clean install clean install\""
Scanning for projects...

Build with Dependencies
cd C:\Users\reidyja\NetBeansProjects\1502_DEV\oaas; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_40" M2_HOME=C:\\Users\\reidyja\\bin\\apache-maven-3.1.1 cmd /c "\"\"C:\\Users\\reidyja\\bin\\apache-maven-3.1.1\\bin\\mvn.bat\" -DskipTests=true -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.0\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 clean install install \""
Scanning for projects...

Clean
cd C:\Users\reidyja\NetBeansProjects\1502_DEV\oaas; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_40" M2_HOME=C:\\Users\\reidyja\\bin\\apache-maven-3.1.1 cmd /c "\"\"C:\\Users\\reidyja\\bin\\apache-maven-3.1.1\\bin\\mvn.bat\" -DskipTests=true -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.0\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 clean install clean\""
Scanning for projects...

Generate JavaDoc
cd C:\Users\reidyja\NetBeansProjects\1502_DEV\oaas; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_40" M2_HOME=C:\\Users\\reidyja\\bin\\apache-maven-3.1.1 cmd /c "\"\"C:\\Users\\reidyja\\bin\\apache-maven-3.1.1\\bin\\mvn.bat\" -DskipTests=true -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.0\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 clean install generate-sources javadoc:javadoc\""
Scanning for projects...


Needless to say, to a new user these arguments look pretty crazy (maybe with the exception of the javadoc). Are:
clean install install
clean install clean install
clean install install
clean install clean

legitimate argument lines?
6 years ago
Thanks Ulf Dittmer. So clicking a standard <a href.. or entering a URL in the address bar uses GET and POST needs to be implemented though some other explicit functionality.
6 years ago
I am running a test servlet on Tomcat and have implemented different behaviours for the doPost and doGet methods. When I access from the browser, only the doGet method gets called ultimately.

The Firefox developer tools show me a GET request from the browser to my Tomcat instance. Do browsers ever call the POST http method? How could I make this happen?

Thank you
6 years ago
Then I will do that Jayesh because I want to understand this well. Thank you so much for your guidance.
6 years ago
Thanks Jayesh, I see what you mean about implementation dependency. Initialization is also interesting but patterns like this are new to me.
6 years ago
I've been following this tutorial on Spring DI to this point: http://www.tutorialspoint.com/spring/spring_dependency_injection.htm

The article says that this code:


Creates a dependency and that this code removes it:


But in both instances, I can define an xml file that assigns values to the spring bean regardless of what happens in my constructor so what is the difference that I'm not seeing? I get the same result for both once I have an xml file injecting values.

6 years ago
This summarises overriding vs hiding quite well, "Because instance methods and class methods have this important difference in behavior, we use different terms - "overriding" for instance methods and "hiding" for class methods - to distinguish between the two cases."

Full text with code example here: https://coderanch.com/how-to/java/OverridingVsHiding
6 years ago
Yes, they are quite different. I haven't seen a mock exam yet but I do know from doing the OCA in December that it's first type of question is possible - and they are the ones I have most difficulty with
6 years ago

Campbell Ritchie wrote:You're welcome

Would that sort of thing come up in an exam anyway?


The book I'm reading/evaluating is for the OCP exam so yes, I think so.
6 years ago
I think I understand which method gets called and why, but I wasn't sure what aspect the 'hiding' referred to. I think it's equally important when it comes to passing an exam. Thanks for clearing it all up!
6 years ago
Thanks Campbell Ritchie, so my problem was that I thought that the 'hiding' was the behaviour of the static method getting executed (which didn't make sense).

Yes, it was a wording problem but I understand now. I do need to get the terms clear for the exam so I appreciate both of you helping me with this. Thanks!
6 years ago
Okay. The issue is that I will eventually be doing an exam and am unclear on what's implied by the statement Object b's method hides Object a's method. From what I'm reading, it looks as though the hidden method is the one that actually works and the one doing the hiding is the one that doesn't get called. This is totally backwards to me though and I have no confidence in this.

So in an exam situation, if I'm asked if the above statement is correct .. do I agree that a hidden object is the one that gets called and the one that is not hidden is the one that doesn't get called?
6 years ago