Tim Moores

Saloon Keeper
+ Follow
since Sep 21, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
176
In last 30 days
0
Total given
24
Likes
Total received
1477
Received in last 30 days
0
Total given
750
Given in last 30 days
1
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tim Moores

Roland Mueller wrote:Does this imply that htmx does not make use of any kind of Ajax or XMLHttpRequest ? Thus, is server-side rendering the only option to update a page?


To the contrary, I think HTMX makes heavy use of XMLHttpRequest (or websockets). It just means that the HTML is prepared ("rendered") on the server, and then sent in small chunks to the frontend, without having to update the entire page. So that's in contrast to a web service approach that prepares the data on the server, and then performs the rendering into HTML on the frontend.
1 week ago
Frank,

since you mention swapping the contents of one element with another, is HTMX an SPA approach?
1 week ago
What's wrong with using attachments for images?
1 week ago

I always forget the "uninstall and reinstall" method for fixing Android apps too.


It's really disappointing that this Windows approach to troubleshooting also applies to a Linux OS like Android.
2 weeks ago
I don't suppose you can share an edited version of that document for us to take a look?
1 month ago
The advantage of TomEE is that it comes with all kinds of libraries built in, JAX-RS amongst them. I've never seen a particular need for that, and just use plain Tomcat. Build system like Maven and Gradle make it easy to pull in external dependencies like JAX-RS, and Tomcat is much more widely used than TomEE, so in case of issues it's easier to find answers online.

I've also never seen a need for frameworks like RestEasy or CXF - I just use Jersey, the JAX-RS reference implementation. But maybe those other frameworks add some fantastic APIs on top of that; I don't know.

As Tim H said, migrating from javax to jakarta (and from Tomcat 9 to Tomcat 10) may require some adjustments in terms of which libraries to pull in, but you need to do that anyway at some point. In my experience, it was pretty much painless.

I haven't migrated to JAX-RS 3 yet, but I doubt that it involves much more than changing import statements and maybe some configuration settings.
1 month ago
I won't question the need for a Java 6, it's been obsolete for so long that you must be aware of that.

But "java 6 tutorial documentation free" seems a good phrase to feed into a search engine. If you haven't done that so far, start with that.
1 month ago
Have you looked at all the data you can obtain from both the Device and DeviceDescriptor objects? Nothing at all useful in there? The code you posted has things called vendor ID and product ID - are those identical, so that you couldn't use those to differentiate between the two devices?

https://github.com/usb4java/usb4java-javax/issues/10 talks about ports and port numbers.
1 month ago
Welcome to the Ranch.

You should not start writing code before deciding on what technologies to use. By having implemented something for the frontend without knowing anything about the backend you may already be constrained in the choice of what to use.

We have no information to make a meaningful recommendation for this. Please tell us more about what the site does, who will access it in what manner, what numbers of users and videos you expect to handle, and anything else that might be relevant.
1 month ago
My name is Tim.

So the manufacturer's web site does not have any documentation at all?
1 month ago
Welcome to the Ranch.

So the scanners are attached via USB. Does the manufacturer's web site not have any documentation?

What have you done so far, and where are you stuck making progress?

I assume you have run the code in http://usb4java.org/quickstart/javax-usb.html and can identify and distinguish both devices correctly. If you haven't, start with that.
1 month ago