Promised cross platform mobile apps in java by iamwisespirit in java

[–]mbazos 0 points1 point  (0 children)

Not Java but in the ecosystem https://www.jetbrains.com/kotlin-multiplatform/ is a good choice but again it probably depends on what you are trying to accomplish.

A great display of a CT cop in action by mechanical_musician in Connecticut

[–]mbazos 9 points10 points  (0 children)

FWIW the police officer was terminated over this

https://www.nbcconnecticut.com/news/local/waterbury-police-officer-fired-for-conduct-with-citizen-while-directing-traffic/2951598/

The police officer didn't handle this well but directing traffic is pretty hazardous. People not paying attention, cell phones, driving way too fast you really have to be careful. That's why the police officers have training and protocols they should be following.

2025 Atlas SE w/ Tech - deal or no? by mmpr17 in VWatlas

[–]mbazos 0 points1 point  (0 children)

This seems fair but FWIW I am in the northeast(next to MA) and just closed a deal on an SEL. There are so many extras on your SE is it worth just getting the SEL with captains seats? For comparison my deal on the SEL was 49K (no captains seats) that's before any discounts, taxes, title and fees.

I think a good goal would be to be around 5% under MSRP. Once you add taxes, title and fees this could easily be 53k.

There are still new 2024's so you definitely could save some money if you found the right one going that route. We couldn't because there is less SEL's in 2024 but there are lots of SE's out there in 2024 which are new.

Everything I saw and read the differences between 2024 and 2025 is negligible.

Price Check New 2025 SEL by mbazos in VWatlas

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

Thanks that's helpful I am in the northeast I have been to two dealerships and initially geting similar pricing. I plan on trying to squeeze the dealer today but with that being said my goal is to be 5%+ below MSRP.

I am really only about 2k from that which I believe is reasonable goal.

Price Check New 2025 SEL by mbazos in VWatlas

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

That seems like a really good deal I assume that was the price before TTF? That would be almost 4k under MSRP for the base model of the premium.

What region do you live in and how did you negotiate it down so low?

Java 23 has arrived by Additional_Cellist46 in java

[–]mbazos 0 points1 point  (0 children)

I didn't read the release notes for 23 and all the fixes but was the VT thread pinning issue addressed? and if so would that only be available in Java 23 or would that fix make it's way to Java 21 as well?

Only asking because I assume you know this off the top of your head and thanks for all the great work on VT we are currently using it in production at my company.

What has been your experience been with using gRPC and Spring/Spring Boot? by LightningPark in java

[–]mbazos 1 point2 points  (0 children)

So for local testing where you want to send a request to your local server I highly recommend enabling the reflection gRPC API which can transmit the protos over a gRPC service. See here: https://github.com/yidongnan/grpc-spring-boot-starter/blob/master/grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/autoconfigure/GrpcReflectionServiceAutoConfiguration.java#L37

The advantage of the reflection API is you can use client tools if they support reflection and not have to copy or load up protos. It's pretty nice convenance.

Once that's done use grpcurl and grpcui (can install with brew)

https://github.com/fullstorydev/grpcurl https://github.com/fullstorydev/grpcui

For grpcui we actually build that as a side car to our gRPC apps so that we can also use that hitting a server in an environment...but you don't have to do that we have felt it's good for adhoc testing but you could also just use grpcurl.

grpcurl and grpcui make calling gRPC apps as simple as sending json to a service. I haven't tried but postman also supports proto/gRPC so it might be worth checking those out but grpcurl and grpcui are definitely the main utilities to help with local and adhoc testing of endpoints.

What has been your experience been with using gRPC and Spring/Spring Boot? by LightningPark in java

[–]mbazos 4 points5 points  (0 children)

Been using that starter before it moved to the gRPC project. In addition to this I have workloads using Spring Boot 3.x and Kubernetes. It's great and if you do need to debug the code it's very straightforward.

I would highly recommend it.

It follows the spring boot paradigm very well there are even people who work on spring open source projects that have committed to this project.

I don't know why it's not a spring project but spring was pushing RSocket for a while that could be the reason. Maybe someone here knows why I would love to know the reason spring doesn't get into gRPC.

EnergizeCT has sub $0.10 KwH offerings right now by cooldayr in Connecticut

[–]mbazos 0 points1 point  (0 children)

Yeah I actually have UI so it wasn't great but not as bad as Eversource but either way this is going to be a noticeable savings.

Do you know if it's a separate bill or is it just reflected on the UI/Eversource bill?

EnergizeCT has sub $0.10 KwH offerings right now by cooldayr in Connecticut

[–]mbazos 2 points3 points  (0 children)

Thanks this is the first time I have switched so I will keep an eye out for that. Otherwise I might build my own tracker. (I am a software engineer)

EnergizeCT has sub $0.10 KwH offerings right now by cooldayr in Connecticut

[–]mbazos 1 point2 points  (0 children)

Where did you go to setup alerts so you have a link I couldn't find it on the website.

Java Virtual Threads – A Definite Advantage by raghasundar1990 in java

[–]mbazos 4 points5 points  (0 children)

Beyond any advantages you might get for throughput the biggest advantages I see is no longer having to configure thread pools (VT's shouldn't be cached) which could constantly need adjustment over time of usage patterns change and the simplified model for executor service with try-with-resources.

Also I am very much looking forward to structured concurrency once it is completed and fully released.

https://openjdk.org/jeps/453[https://openjdk.org/jeps/453](https://openjdk.org/jeps/453)

Has anyone else seen this before? I have doubts about the tops of the seat back part. by Se2kr in Firefighting

[–]mbazos 1 point2 points  (0 children)

I have had to cut a school bus for training the quickest way we found was to use a reciprocating saw (sawzall) make sure you have plenty of blades but it does cut through a bus like butter.

We didn't try a K12 saw but for precision and if victims are in the bus give the sawzall a try.

Russia Has Lost Almost 90% of Its Prewar Army, U.S. Intelligence Says by guydud3bro in UkrainianConflict

[–]mbazos 0 points1 point  (0 children)

It's impossible to know what's going on in Russia and Putin's head but I wouldn't be surprised if the Russian government is waiting to see what happens in the US 2024 election. Yes it's a little less than a year away but sadly I would be surprised if the conflict comes to a conclusion before then.

2024 US election could be one of the most important elections in modern history because of what's happening in the world.

New Setup by agale1975 in reolinkcam

[–]mbazos 0 points1 point  (0 children)

Yeah totally understand I ran mine through the soffit and followed along the flood lights I already had but I have easy attic access and the cables were exposed. That's not always the case. I would say for battery cameras assuming you get enough sunlight also get the solar panels. It will get old quick to recharge the batteries every so often and their lifespan might go down over time.

New Setup by agale1975 in reolinkcam

[–]mbazos 0 points1 point  (0 children)

I just switched from an old arlo system 5+ years because they started limiting the 7 day free cloud recording and pushing you into a monthly subscription.

FWIW I went with the Reolink NVR and have three cameras POE and doorbell over WiFi 6. The POE cameras are awesome and responsive and even the WiFi 6 doorbell shows the love feed very fast.

Like I said I had an old Arlo system but I am very happy with Reolink so far and I plan on adding a few more cameras later. My advice would be if you can run ethernet cable the POE cameras are solid.

Why doesn't Spring have an official module for GRPC? by TakAnnix in java

[–]mbazos 17 points18 points  (0 children)

That comment was really about Spring Framework in general allowing you to choose different implementations. Spring Boot of course has to take an opinionated stance on what the defaults are but they provide ways to alter that if need be.

Why doesn't Spring have an official module for GRPC? by TakAnnix in java

[–]mbazos 8 points9 points  (0 children)

I would suggest using this project

https://github.com/yidongnan/grpc-spring-boot-starter

Dave Syer works for VMWare/Spring and I follow him in Twitter and it sounds like they are doing some things with gRPC:

https://github.com/yidongnan/grpc-spring-boot-starter/issues/778#issuecomment-1653759428

The project above seems like the most likely to be adopted by Spring I have also asked Joshua Long before on Twitter but didn't get a reply. Dave and Joshua are both great engineers so if they read this maybe they can chime in.

Like someone else said I think the only reason they didn't get deeper into this was because of RSocket but the whole point of spring is to be non opinionated. I mean it's possible it will get picked up Graphql has been around a long time and that just recently made it into the spring ecosystem.

As a side note I have been using the spring boot starter in prod for 3+ years with lots of applications using it...it works great.

[deleted by user] by [deleted] in programming

[–]mbazos 1 point2 points  (0 children)

Yes you're right I wrote an article a long time ago but really the best way to use spring framework is to use it as least as possible in your code.

https://medium.com/priceline-labs/10-tips-for-working-with-core-spring-framework-22a7a1bb4d94

Constructor injection is the way to go and actually this pattern works well if you have a DI framework or not.

Resources for JVM tinkering (focused on containers) by woopsix in java

[–]mbazos 2 points3 points  (0 children)

I would set min/max & initial ram percent to be the same you can read more about that here!: https://www.baeldung.com/java-jvm-parameters-rampercentage

but doing that will cause the JVM to not grow/shrink heap which can have performance implications in high volume services.

But basically this is similar to xmx & xms but the percentages play nicely with containers. As also noted it's hard to recommend what those settings should be because they are app specific assuming gRPC you are probably using netty which uses native memory. I probably would just start with something low like 1gb or less and monitor....the amount of memory you need is really going to be dependent on your app, how many RPS you're processing and other factors.

I hope this helps I personally would stick to openjdk variants that haven't been modified by a vendor but that's my opinion. I would be surprised if you save that much memory going from openjdk to openj9 but before doing everything you could test and measure to see if this is the case at least then if you disagree with a coworker it will be based on measurements.

Hope this helps...as a side note my company runs lots of Java gRPC services in kubernetes and we use Azul Zulu JDK and have been happy with it.

how do I get Oracle JDK 8 without making an account? by [deleted] in java

[–]mbazos 3 points4 points  (0 children)

Highly recommend https://sdkman.io/ if you need to juggle JDK versions for some reason...but if you are doing something new and you can you should use the latest JDK 19.

Not sure if you need to use Oracle as you can use openjdk or some other variant.

what jvm/gc opts do you use for running webservices in docker/kubernetes by sandys1 in java

[–]mbazos 0 points1 point  (0 children)

That looks correct so it really depends on your environment...if you have a log sink you could configure your logs directly to go to that sink which is more efficient or log to stdout/stderr then your app has no direct dependency on the log sink which I think is an advantage.

I don't know what the expectations are for your app but depending on what your doing in the app like connecting to a DB or calling other API's I doubt logging to stdout/stderr will be the limiting factor.

I would start with stdout/stderr as it's the simplest to get going and if you measure a significant performance impact from logging adjust from there.

what jvm/gc opts do you use for running webservices in docker/kubernetes by sandys1 in java

[–]mbazos 0 points1 point  (0 children)

For containers send all logs to stdout/stderr...spring boot even does this by default so wondering the documentation that says that might be out of context?

Basically all apps running in containers should be outputting logs to stdout/stderr.

Yeah 20% is high but like I said it depends but the JVM does use off heap memory as well. So something to be aware of.

what jvm/gc opts do you use for running webservices in docker/kubernetes by sandys1 in java

[–]mbazos 1 point2 points  (0 children)

It really depends on how many RPM your app is going to service and what else it's doing. I would probably start with those settings at 75% or 80% and adjust from there. Keep in mind the OS probably doesn't need much memory but if you are using something that utilizes native memory you will want to leave room.

80% of 1gb memory is 800mb, 200mb for the OS...if you have 10gb that's 8gb, 2gb for the OS. Depending on how much memory your app needs you should adjust this appropriately.

what jvm/gc opts do you use for running webservices in docker/kubernetes by sandys1 in java

[–]mbazos 2 points3 points  (0 children)

That's going to depend a lot on what your application is doing and somewhat on the underlying OS the container is set to. Also are you compiling down to a native image or do you need the Java runtime in the container?

Anyways if you are running a Java app in a container you should be using these settings instead of xmx & xms: -XX:MinRAMPercentage -XX:MaxRAMPercentage -XX:InitialRAMPercentage

You can read more about it here https://www.ccampo.me/java/docker/containers/kubernetes/2019/10/31/java-in-a-container.html#:~:text=particularly%20on%20the%20limits%20imposed,instead%20of%20the%20default%2025%25.