This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!

Tim Holloway

+ Follow
since Jun 25, 2001
Tim likes ...
Android Eclipse IDE Linux
Long-time moderator for the Tomcat and JavaServer Faces forums. Designer and manager for the enterprise server farm, which runs VMs, a private cloud and a whole raft of Docker containers.
These days, doing a lot of IoT stuff with Arduinos and Raspberry Pi's.
Jacksonville, Florida USA
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 Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tim Holloway

Have you tried it? It's quite possible that Spring will simply throw an Exception complaining about the conflict.
1 hour ago
Welcome to the Ranch, Peter!

It's best not to think of a JSF View Template (the xhtml file) as something programmable. The "commands" on a View Template should concern themselves only with page layout and not business logic. Not that what you're doing sounds like business logic, but if you're using ui:repeat, chances are that you're thinking about "programming" the View.

I try to avoid ui:repeat for the most part. If I need organized repetitive data, my first choice is to use the h:dataTable or one of its derivatives. However, dataTables are designed for vertical organization of rows, so for things like horizontal repetition, the ui:repeat comes in handy.

I'm afraid your description is too vague to offer more than general guidelines, though. If you could provide a short example, it would help a lot. And if you use the "Code" button to wrap format tags around the XML, it will make it nice and readable.
8 hours ago
You have two different document formats here: Word is a word processor, PDF is text layout.

They may look a lot alike, but there's a very big difference.

In a PDF, the page layout is fixed (mostly - there's a format called "reflowable PDF"). The sizes and positions of everything are quite firmly nailed down onto each page of the document.

In a Word document, the page layout is more fluid, as anyone who's taken a Word document and moved it to a different computer - or even opened it with a different word-processor such as LibreOffice - can attest.  Paragraphs slide around from page to page. Fonts don't always match (this used to be a major problem before FreeType).

So at a minimum, expect to lose some things when converting.

A PDF is a set of metadata combined with a series of PostScript commands. A Word document can be represented using Rich Text Format in a plain text file, or in traditional .doc format or in the XML-based .docx format. The command set is the same, regardless, so only the notation varies.

There are some websites that claim to be able to convert PDF's or PostScript to Word format. Personally, I prefer something I can run in-house, for security reasons. But I haven't been able to actually find anything like that.

Linux has a very rich set of document-processing tools, so it's possible I could pipe a few of them together to do what you want, but no immediate solution comes to mind.
You are still missing version elements for most of your dependencies. But the more immediate problem would appear to be that the three items indicated have not been stored in your Maven repository.
8 hours ago

Stephan van Hulst wrote:I would sooner compare JavaScript to Lua than to Java.

You could, but JavaScript is older than Lua, so perhaps better the other way around.

It's long been a bitter joke that there's precious little "java" in JavaScript, though.
1 day ago
They're not really categories in the formal sense. It's mostly a matter of what looks like what.

C# resembles C. The various BASIC dialects resemble Fortran - to the point that in school, BASIC was taught at the end of my Fortran class. BASIC was originally sort of a simplified interactive dialect of Fortran, in fact.

If Python directly resembles any other language, it might be COBOL (very loosely) or Forth (very loosely). Or Smalltalk (ditto) It's sort of an outlier syntax, though.
1 day ago

Winston Gutkowski wrote:
I'd also add one other Collection type, familiar to fans of Wagner: A Ring or Cycle - ie, a collection that starts recycling elements after you read the "last" one.

Now THERE'S one I haven't heard of in a long time! Actually, I don't know about reading as such, but they're good for implementing FIFO caches. Push one in, the one before it (the oldest one in the ring) pops out. And around they go!

Designating a collection as synchronized may sound brutal, but the synchronized-only classes: Vector and StringBuffer; were more brutal still.
1 day ago
Well, one approach would be to use an ETL tool like Talend or Pentaho DI (Kettle). For myself, I'd probably dump the single table using mysqldump and load it into the new schema, use a set of sql commands to plunder it into loading the new tables, then drop the copy of the original single table when everything's been place in its new home. For best results, don't index or set foreign keys until AFTER all the new tables have been loaded.
1 day ago
You can make any of the Collections classes thread-safe, if I'm not mistaken by adding a qualification to your definition. It should be in the docs somewhere. Yep. Look at the "synchronizedCollection" Collections method.

As for a brief description, the easiest way is to simply look at the JavaDocs themselves.

Click on the "See also" links, chase them down via their own "See Also" and "Implements" hyperlinks.

While the Sun/Oracle JavaDocs aren't always the best in the world, it's a standard to have a brief synopsis of the use and functionality of every class that is part of the JavaDoc input.
1 day ago
Why did you delete this?

That's where "spring.version" is defined.
1 day ago

Knute Snortum wrote:I don't have RedHat -- I'm on Ubuntu -- so I'm not sure if this applies, but my OpenJDK version of Java 8 did not include jfxrt.jar, which means you can't execute JavaFX code without Maven or downloading the jar.

I think that except for perhaps briefly, that JavaFX has been a separate product (though dependent on) Java. No, it's not in the site I just mentioned, either. But surely you have some sort of automated build system to pull it in, no? It would be uncivilized to only be able to build under the crutch of an IDE, or worse yet, by hand/batch files!
1 day ago
Sorry if I come off as surly, but we did ask "what is the class?" multiple times.

"context" in Java means different things, depending on the, um, context. But the difference between a class and an object (class instance) and an isolated method is very important.

We didn't have enough, er, context to determine what you needed.
1 day ago
And you still haven't added a version element to that dependency.

Which is why it's still annoyed.
1 day ago
Modelversion is the Maven version, which Maven can use to tell if your POM should be able to build under a specific version of Maven.

The version numbers you need are on each dependency. You are using variable definition, which is good, since you can ensure that when you move to a new version of Spring, you can cause all dependencies to move at the same time without individually editing them:

1 day ago