Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!

Miroslav Lehotsky

Ranch Hand
+ Follow
since Jul 08, 2018
Miroslav likes ...
VI Editor Java Linux
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Miroslav Lehotsky

Hi, first of all congratulations for passing. It usually takes a few days for certification to be available, they should inform you about that in the email after exam.
Hi Ian,

book seems to target really wide range of topics, I'd like to ask if you're also covering WebSockets API in the book ?

Thank you.
3 weeks ago
Know that if you don't specify classpath value via argument (eg: -cp), or you don't have environment variable CLASSPATH defined, default value of classpath is '.', that is, current directory. So, if you run javac from outside of package folders, they are on the classpath by default.
1 month ago
About tags in feature files, see here. There is also example of usage, so I won't be putting it here again.
1 month ago
I was working with cucumber for Java quite some time. I was using eclipse with some cucumber plugin for development, to match gherkin steps with Java StepDef implementation, although it had some issues sometimes. For running only specific gherkin scenarios, you can add multiple tags to the top of gherking files and then specify tags to run. Then only gherkin scenarios containing those tags will be run.
1 month ago

John Losty wrote:
You said that there are 5 printouts but I would expect them to be 25. 5 for each thread and 5 for each counter (5x5=25) ?

You have wrong expectations. By calling newFixedThreadPool(5) you created thread pool consisting of 5 threads. In cycle (5 times) you're just submitting task for execution to ExecutorService, each of these submitted tasks can be executed by the same thread from thread pool (any thread from 5 created). So you don't have control over which threads will execute submitted tasks.
You're using proper class as well as proper methods, but you set only upper bound for decimal places, but for numbers like 0.5, second decimal place is redundant 0 and therefore no displayed. If you want to always display 2 decimal places (eg. 0.50 and not 0.5), you need to set minimal fraction digits as Paul says above.
2 months ago
Here is quite fine summary of JVM monitoring tools. I myself used basically only VisualVM so far, I found it not very easy to use for some deeper heap analysis, but for overall view its fine.
2 months ago
Installer will take you through the process of placing directories, files into Program Files (or whatever else you choose), it will add links for binaries (java) to environment variables, and maybe some other installation steps. Archive is simply compressed data (directories, files), you'll need to place them to desired location, add links of binaries to environment variables and all potential other steps that installer can help you with.
2 months ago

Hanna Roberts wrote:...and I attached a picture of the error

Do you even read what people are writing to you ? Try to go again over my previous post, if I mention that 'System.out.print()' method has version without argument, or is it the 'System.out.println()' ? And then look at your code, and hopefully you'll see that you did the exact opposite.
2 months ago

Hanna Roberts wrote:As I wrote before, it gave an error when I ran it when I changed it to that

Do not mistake 'System.out.println()' and 'System.out.print()', those are different. First one has version without argument, second one does not.
2 months ago

Rob Spoor wrote:Change the @RequestMapping on getAllSchools to @GetMapping. @RequestMapping by default has no method specified, so it won't listen to any request.

I wouldn't be so sure about that. I found regarding that this:

@RequestMapping – the HTTP Method
The HTTP method parameter has no default – so if we don't specify a value, it's going to map to any HTTP request.

I tried it out myself, seems to be true. So that's not a real problem.
2 months ago

I also took 1Z0-817 in January this year, I went for a test to testing center. For study I went through the 1Z0-808 topics, as a lot of topics on 1Z0-817 were just repeated topics from 1Z0-808 and I also went through Mikalai's guide, especially for the new stuff about modules. I scored 94%.

What was the last certification that you upgraded from ?

if you're not using any build tool (eg. gradle, maven), by which you could manage dependencies, you still can manually download apache-commons JAR (for example here: Maven central repository) and specify its location on classpath when compiling (javac) and running (java).
2 months ago
You don't need to change anything. Deployment location changes context path, but 'url-pattern' is independent and is appended after context path. So, if you deploy your app under ROOT directory, you can hit endpoint with url-pattern = '/' at http://ip_address:8080/, if you deploy your app under NEP_WF_CLIENT directory, you can hit endpoint with url-pattern = '/' at http://ip_address:8080/NEP_WF_CLIENT/. I speak from my experience with Tomcat, not sure if that generally applies to all web servers.
2 months ago