M Burke

Ranch Hand
+ Follow
since Jun 25, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by M Burke

Well, I got it working. I added a plugin to the pom. When I look at the compiled jar there are no entries in the manifest. I downloaded the Jackson libs and added then to the class path earlier.

I am not sure why this worked.

1 year ago
Is is possible to include the library in the compiled jar? It would be good if this thing will run stand alone.
1 year ago
Hi, I am having trouble with a runnable jar not finding an external library. The library is Jackson. It's in my pom file so it compiles. But when I go to run the jar it gives me a "cannot be found" error. How do I make the library visible to the jar?
1 year ago
I am a bit confused by the responses.


I will try to give an example. For the Java Map interface, there are several choices. HashMap, HashBitMap, ArrayLIstMiltimap, LinkedHashMap, and TreeMap. There are also thread safe versions. So in a short list, I need a description of each one and be able to compare and contrast them to decide which is the best to use in a given situation.

2 years ago
Is there a source out on the Web that lists the similarities, differences and best practices for collection classes? Like, TreeMap vs. HashMap and when best to use.
2 years ago
I took a video course in Network Architecture once. I am lucky I can even remember doing it. The content went in one ear and out the other. I also find it takes longer for someone to explain something than for me to just read it.
2 years ago
Recently I was tasked to learn React. I have used Java & C++ tech for years so I thought, "Not big deal, just another framework". I noticed there is a whole host of video based tutorials on YouTube, so I thought I would give them a try. So I went thorough one of them, twice. I followed along and understood what the lecturer was teaching...so I thought. Once I was done I tried to code a POC based on one of my current apps. I sat down, started a project...and my mind went blank. It's like the part of my brain that understood the video lecture is not the same part I use to code. So now, I went back to the traditional method, I am reading a book and coding the examples. It seems to work better. I wonder if anyone else has experienced this.  I have not been able to find anything online that confirms my suspicion that the brain is specialized in such a way that some parts get used more than others depending on the learning method and task.
2 years ago
Yes, I see online that React and Java don't play well together. Some people are trying to use Spring boot but it's painful. I find React frustrating, it's so different from anything else I have experience with. The learning curve is huge.
2 years ago
I took a tutorial in React. It seems it runs in it's only little world outside of an application server and the only way it can get data is with AJAX-REST calls. I am looking to re skin and application with a new front end, but keep the JEE backend intact. Management in my company is pushing React, so how can I make this work? When a user logs in, there is a lot of data structures loaded into the session and it would be impractical to load all of that in a browser.
2 years ago
I have coded in Java for a long time. But of course, one does not use all the features all the time, so I am rusty. I don't need a long "how to" explanation of the language, I just need to refresh my skills. Any suggestions?
2 years ago
So when the X Y coordinates are set they are based on where the element would be placed without positioning?
Ok, I removed the inline-block and the left property behaves more as I would expect. I also observe that display:block uses height and width, but display: inline does not.

But when you say, "natural position of the element." I am not clear on that. So are the left and top properties then computed based on the position of the containing div? In this case, the div with id = top? And also takes in account the line break that display:block provides?
The way an element is positioned relative makes no sense to me. When you give a relative element a top and left coordinate, what is that coordinate relative to? Absolute is easy, it's 'relative' to its parent container. But if I position:relative the left value seem wrong. I made this example to test the behavior. Div5 has a left=600px and div6 has left=500px. But div5 is closer to the left edge than div6. Why is that?

I need to make a popup window users can interact with. Users also need to be able to close the window and be navigated to different places on the main form. I am not sure if this can be modified or I need to get a JavaScript library to do this. I have FancyBox. It's modal, but it does not do the navigation I need.

I have the closing and navigation, but not the modal part. Here is the code I have to open the window and close\navigate.

Any ideas?

The code that opens the window




The popup window

The remote server already exists. I just need to connect to it and get data. Are there any examples on doing this in Java?
3 years ago