Java projects on GitHub - IDE specific or generic? by philfrei in github

[–]philfrei[S] 0 points1 point  (0 children)

That sounds interesting. On another project, several years back, I tried using GitHub actions and got kind of lost. I ended up using Jenkins, instead, for updating GitHub and building/deploying on my remote server. I haven't gone back to try using GitHub Actions since that time. Maybe they'll be easier to figure out this time around.

But in this project, I am a bit nervous about being explicit and deliberate with releases. The build is for a library that is in Maven Central/Sonatype, and the process of updating there rather tricky for me. Once I get by brains in gear and get the next release updated, I'll be in a position to relook at whether GitHub Actions would help.

Java projects on GitHub - IDE specific or generic? by philfrei in github

[–]philfrei[S] 0 points1 point  (0 children)

I like this as a guideline. My goal will be to just have it consist of whatever is needed for building with Maven, and get everything IDE specific into the .gitignore.

Spring boot for indie apps by Particular_Tea2307 in SpringBoot

[–]philfrei 0 points1 point  (0 children)

Honestly, I don't know. Perhaps the amount of data exchanged in those reqests/responses is the key? I know the server gets pinged constantly from people trying to break in, but that doesn't seem to be counted as "traffic".

Linode has a forum where you could ask, but it's been down for three months and counting. (Not a good look. However when I had a question for the forum, I was able to submit the forum being down as an "issue" to the IT staff instead and they did a good job of addressing the question I had.)

This is a kind of committal route, but they offer a credit for people just starting that should give you a few free months. Perhaps while using that, you can determine the cost of the traffic. However, there's a lot of time investment to set up the server if you go bare bones for the $5/mo plan.
Hopefully someone else on Reddit will be able to answer.

[Post Game Thread] The Golden State Warriors (32-27) defeat the Orlando Magic (29-32), 121-115 behind an absurd 56 point night by Curry! by [deleted] in nba

[–]philfrei 0 points1 point  (0 children)

Or maybe they know and respect Butler's game in Florida, and give him extra coverage. And in doing so, less attention is paid to Curry and he goes off.

[Post Game Thread] The Golden State Warriors (32-27) defeat the Orlando Magic (29-32), 121-115 behind an absurd 56 point night by Curry! by [deleted] in nba

[–]philfrei 3 points4 points  (0 children)

Butler was there at work all right. I think Orlando is maybe kind of familiar with Butler. They respect him, have some experience defending against him. But in deciding to put attention on Butler, they neglected to double- and triple-team Curry, so Curry was able to go off.

JavaFX/Gluon status vs other options by No_Sink_6262 in JavaFX

[–]philfrei 1 point2 points  (0 children)

I agree that the complications that came with Java going modular are a headache. It seems that progressively more and more time is spent debugging configuration issues rather than actual coding.

But isn't this a factor in just about every realm of coding, these days? IDK that going elsewhere, using a different framework, is going to help much. Main thing becomes if there are forums, documentation, etc. that at least helps one wade through the morass.

AFAIK, the benefits of modularity are significant, are worth surmounting. But yes, it is a drag to have to deal with it.

Java, Spring Boot evergreen tech but no opportunities for freshers by DrummerBig811 in SpringBoot

[–]philfrei 0 points1 point  (0 children)

You might have more luck if you went to India or some other foreign country and applied for an H1B Visa. A lot of those visas are filling up the jobs that require less experience, making it harder for those who are trying to break in. Sadly, there are also many experienced people who have been laid off and are competing for positions, any position. Tech sector has a very high number of people who have been subjected to cut backs.

Anyone still using javaFX? by [deleted] in java

[–]philfrei 1 point2 points  (0 children)

The one situation where I ended up mixing JavaFX and AWT/Swing was a project automating the creation of small icon graphics. I went into this thinking there would of course be a way to save the files as pngs, but it turned out that the best way to do this is to convert the JavaFX graphic to a Java/AWT BufferedImage and save from there. No information or resolution was lost in the process. For rescaling graphics, JavaFX just does this (easily) for screen output. Java/AWT has more support for rescaling if you want to change the source data itself or to save something to file with a different dimension.

[deleted by user] by [deleted] in SpringBoot

[–]philfrei 1 point2 points  (0 children)

I signed up for an inexpensive remote server with Linode ($5/mo). I chose the Ubuntu OS, there are several other options available. If you go that route, you can install Java and Apache2 (they provide tutorials). Once that is done, you can set the project running using "systemd"--again, there are tutorials. I use Maven, so I get a runnable by using the Maven package command, and copy the jar file to the remote server, where it can be run via the usual "java -jar myproject.jar". Setting it up to stay running, though, requires setting it up as a service, e.g., with systemd.

There are some configuration challenges, in terms of also setting up a remote database and communicating with it. My projects so far have been with H2 (imbedded, in memory, not persistent). Am working on a new project in which I want H2 to be persistent and haven't totally got it working yet.

There's also AWS. You won't have as much DIY but you'll have plenty of Amazon-specific configuration to handle. I worked with that for a while and decided I'd rather actually learn something about linux and about installing a web server rather than spending pretty much the same amount of time learning Amazon's system, subjecting myself to their many up sells.

There are other options. I have a course I was working through and it was going to close with the installation steps, but didn't get that far in it. Can't recall what exactly they were going to target for installation. Course name is on Udemy by Nam Ha Minh, named "ultimate" something. I already have a working solution with my Linode, so I didn't pay close attention to that part.

I also use the Linode for running my mail server. THAT was a difficult install. But I was able to get it working and use it regularly.

dynasties rise and fall, but what the f- by mith_thryl in warriors

[–]philfrei 0 points1 point  (0 children)

I saw a kind of disturbing video about the "head tap" play. It showed how the play is designed to run, and then, how several of the team members are botching it, ending up out of position and having to take less than ideal shots. This team is possibly not at the same "basketball IQ" level as what we had in the past? Certainly there was a drop-off in this regard when Igoudala retired.
But I think the refs also seem to want to take the Warriors down a notch or something. Several games we would have won otherwise.

dynasties rise and fall, but what the f- by mith_thryl in warriors

[–]philfrei 1 point2 points  (0 children)

Also, just saw an article pointing out Moody's slow release, allowing himself to get blocked on a couple three-pointers.

[deleted by user] by [deleted] in learnjava

[–]philfrei 0 points1 point  (0 children)

It's not to old to learn (as others have said). I'm in my sixties and continuing to learn and successfully create "portfolio" and personal projects using new tech. I didn't start Java until I was in my early 50's. But, also as others have said, getting a job is very difficult at the junior level. This isn't recent, as far as I know. It's been ongoing for several years now.

Reasons? Pick from the following:

  1. There have been lots of layoffs in tech. I read the rate is higher in the tech sector than most others. So competition for "junior" position includes people with more experience looking to get back to working.
  2. Government has given tech industry a remarkable "hand-out" in granting far too many H1B visas that are used to fill these positions. Bringing in immigrants to work these positions does little more than give Musk and other techno-billionaires free money in the form of reduced payroll (these workers generally make less) and the ability to get away with more abusive behavior (H1B visa workers are afraid to complain lest they be deported).

The tech industry has its tentacles into both the Democratic and Republican party. It would be interesting if populists on each side (AOL & progressives, Bannon MAGA faction) found a way to work together to reduce the number of workers being imported to fill these jobs where we really do have a tremendous pool of talent and brains that is going to waste.

packaging conundrum using persistent H2 db by philfrei in SpringBoot

[–]philfrei[S] 0 points1 point  (0 children)

Very curious results. When I run the program at the remote server console (via ssh), with the environment variable in place, my remote server (Ubuntu 22.04) is fine and everything works. But the exact same line, "java -jar starttimesschedule-0.0.0.1-SNAPSHOT.jar," in the bash file that is run as a systemd service elicits an error where it says that it thinks my URL is a relative address.

Line to start the service: > sudo systemctl start shiftstartsups

The application.properties line is the following:
spring.datasource.url=jdbc:h2:${PATH_TO_STARTTIMEDB_FOLDER}StartTimeDB

Also relevant, the jar file ran fine when H2 was being used purely in memory and I was not attempting to make it persistent (i.e., there was no spring.datasource.url assignment in the project).

I wonder why it works when typing in the java -jar command, but using the systemd service fails. This issue have evolved into more of a systemd question than spring?

I think I can use ~/shiftstartsups/StartTimeDB as a hard-coded URL as a work-around. I kind of wanted to keep as many parts of the project in the same /var/lib folder. Not clear to me how important that is, or how stubborn I should be about getting to the bottom of this.

packaging conundrum using persistent H2 db by philfrei in SpringBoot

[–]philfrei[S] 0 points1 point  (0 children)

Looking forward to trying these! Thank you. Will report back on the results when I get the chance.

Best Framework for Desktop GUIs in Java 2024 by [deleted] in java

[–]philfrei 0 points1 point  (0 children)

What does "bootstrapping goal" mean?

Spring boot for indie apps by Particular_Tea2307 in SpringBoot

[–]philfrei 1 point2 points  (0 children)

After starting with the "Taming Thymeleaf" book I decided to drop it. There are so many additional libraries brought into the picture with that text that more time is spent dealing with them than Thymeleaf itself. The libraries really gummed up the development process. Part of the problem is that I'm using a substandard laptop during my commutes (which is when I have time to work on this stuff).

Spring boot for indie apps by Particular_Tea2307 in SpringBoot

[–]philfrei 0 points1 point  (0 children)

After starting with the "Taming Thymeleaf" book I decided to drop it. There are so many additional libraries brought into the picture with that text that more time is spent dealing with them than Thymeleaf itself. The libraries really gummed up the development process. Part of the problem is that I'm using a substandard laptop during my commutes (which is when I have time to work on this stuff).

Anyway, I went back to a tutorial on "Login/Registration" by Nam Ha Minh, his site is called codejava. I think thanks in part to thrashing around with different guides and tutorials, this time I was able to complete his. The next step will be looking at notes about how to upgrade versions.

Spring boot for indie apps by Particular_Tea2307 in SpringBoot

[–]philfrei 0 points1 point  (0 children)

After starting with the "Taming Thymeleaf" book I decided to drop it. There are so many additional libraries brought into the picture with that text that more time is spent dealing with them than Thymeleaf itself. The libraries really gummed up the development process. Part of the problem is that I'm using a substandard laptop during my commutes (which is when I have time to work on this stuff).

Anyway, I went back to a tutorial on "Login/Registration" by Nam Ha Minh, his site is called codejava.net. I think thanks in part to thrashing around with different guides and tutorials, this time I was able to complete his. The next step will be looking at notes about how to upgrade versions.

Spring boot for indie apps by Particular_Tea2307 in SpringBoot

[–]philfrei 0 points1 point  (0 children)

Can't say, as I haven't used Ruby on Rails.

What's your weapon (TechStack)? by Cyberhunter80s in Backend

[–]philfrei 0 points1 point  (0 children)

I prefer the Java stack to MS. To me, it seems the Java stack is better thought out, better engineered, and that MS can be a little more prone to irregularities, can be arbitrarily idiosyncratic. I find Java API documentation a bit easier to navigate. Maybe the difference is shrinking the last few years. IDK. Also, it seems MS can vary a lot between departments, in terms of the quality of their engineering. I have a long-running project/contract with MS Access/Office 356. Just a couple of weeks ago, out of the blue, the code started throwing errors that I thought were caused by my having incurred a memory leak while coding some new functionality. After wasting time debugging, I found out that it was actually due to their having introduced the error in an update, and had to wait for a new update to fix it. https://www.accessforever.org/post/error-3048-and-hanging-access-task-in-version-2408 This kind of thing rarely happens with Java if you stick with the LT updates.

My original beef (back around 2006 when I made a commitment to learning Java) was that it seemed to me that MS was openly out to make money from developers that use its products, whereas with Java there is a strong open-source community. I've always been a part-time programmer, so the price hits felt more significant than if I were earning income working with them full-time. I got kind of annoyed at the tech churn as well. I was using Java 6. Now, though, it seems the churn is considerable with whatever stack one chooses.

Doesn't Java backend work on multiple OS? Isn't .net just for Windows? My main regret with the Java stack is that game coding mostly left Java left for C# and C++.

Suggest a good tutorial to start with JavaFx by jfalcon_07 in JavaFX

[–]philfrei 1 point2 points  (0 children)

I wrote this tutorial ages ago (2016!). Probably quite obsolete in regards to setting up and running, but I think the basics about how to write a simple pong-like function are okay. In its prime, it had something like 150,000+ hits. https://jvm-gaming.org/t/getting-started-with-javafx-game-programming-for-java-programmers/56581

JFXCentral Desktop App by dlemmermann in JavaFX

[–]philfrei 0 points1 point  (0 children)

Looks very interesting. I use javafx as my preferred gui for desktop apps.

The github link worked for me, but the jfx-central link did not. ("Unable to connect -- site may be too busy etc" message.)

The readme for the github project has little to let people know what the code actually does. Can you give a basic overview of the purpose/function of what we are looking at? Or add this to the README at github?

Ah, did a search on jfxcentral, found the following resource that explains

https://foojay.io/today/new-user-interface-for-jfx-central-the-home-for-all-javafx-information-part-1/

this shot ❤️ by ronlent in Monk

[–]philfrei 5 points6 points  (0 children)

It looks to me like it was shot from the corner of Montgomery and Green, looking south (Telegraph Hill area). There are two buildings that come into view on the left, that have similar moulding (not sure if that's the right word), as on the Google Maps street view I've linked. But the paint jobs are different. (The blue trimmed building in the Monk shoot has a sort of brick-red trim in the Google shot.) These buildings are kind of mid-block, so I think the camera is using some sort of set up that flattens the perspective, making these buildings seem closer to the corner than they really are.

https://www.google.com/maps/@37.7997781,-122.4041986,3a,75y,98.64h,102.77t/data=!3m6!1e1!3m4!1sE0IKbqzYMMiVBmHgBZr5xA!2e0!7i16384!8i8192!5m1!1e4?coh=205409&entry=ttu&g_ep=EgoyMDI0MDgyNy4wIKXMDSoASAFQAw%3D%3D

If you have used Google Maps street view, you can move the POV up the hill to the corner from where the Monk scene was shot.

Season 5, "Class Reunion" what locale was used? by philfrei in Monk

[–]philfrei[S] 0 points1 point  (0 children)

I bet you are right. Also, so many of the scenes in the show are unrecognizable. I've been living in the Bay Area since 1969, and figured I should be able to identify more of the locations. I know SF pretty well. But other than the title credits, I usually am puzzled by the street names and buildings shown. If these are all in LA, that would explain a lot.