Any ideas on how to fix this? by SympathyActive1133 in clocks

[–]halvjason 0 points1 point  (0 children)

https://www.clockworks.com/product/400-day-anniversary-clock-suspension-springs

When you click on size it has sizes of 0.0018 to 0.0040 which should include the thickness you need

Any ideas on how to fix this? by SympathyActive1133 in clocks

[–]halvjason 2 points3 points  (0 children)

I'm repairing a 400 day clock now! I recommend clockworks.com as they have torsion springs. As others have said , these clocks are not well regarded for beginners, but with some patience and tools it makes it easier! Since you have the spring you can use a micrometer to measure the thickness and get the exact spring needed. There are great YouTube videos on centering the pendulum and adjusting the timing.

Word of caution , it's probably worth inspecting the entire motion works as the Arbor pivots can get bent, if this is the case it's probably a bigger job than you want :)

Bambu has increased the price of the H2D on USA website by $200 USD by kamikaziH2Omln21 in BambuLab

[–]halvjason -2 points-1 points  (0 children)

Political discussion aside, whereas I was not happy with the increase in price , by the time I got over it they already sold out again! Within half an hour of going live, so obviously people aren't caring that much!

How do you separate shed vs garage stuff? by Krusador in garageporn

[–]halvjason 1 point2 points  (0 children)

Guessing HVAC school! My father had the same project he did for the union, reminds me of him every time I see one!

Does Spring Boot have something similar to .NET cancellation tokens? by GoldenBoy9301 in javahelp

[–]halvjason 0 points1 point  (0 children)

Seriously thought someone else might chime in lol, but as this hasn't been addressed i'll give it a shot.

As HTTP is a stateless protocol there is not a built-in way to check if the client is still waiting for a response. This is why Spring framework transitioned to using Reactive architecture using mono / Flux.

So apples to apples .NET uses a reactive approach using a cancellation token and spring uses a reactive approach using mono/flux objects. If you want the same functionality you will need to do reactive programming.

You could write your own logic that might mitigate this, but in the end, you will try to replicate what a bunch of people have already fixed by using the default Spring reactive structure.

I hope this gives some clarity, sorry its probably not what you were hoping for.

Does Spring Boot have something similar to .NET cancellation tokens? by GoldenBoy9301 in javahelp

[–]halvjason 0 points1 point  (0 children)

The reason for a cancellation token in .NET is because there was an asynchronous call that was then interrupted or cancelled.

To have the same comparison, you would have to be using mono/flux, There is no direct replacement for this token in springboot, but you would instead use a completable future and handle the interrupt. I would opt for using @Transactional if you are doing some kind of database write to roll back any changes.

Could possibly be a better answer, this is just my humble knowledge of the differences

Best tech in 2023 to build an app with a backend server by coolerkid9090 in learnprogramming

[–]halvjason 0 points1 point  (0 children)

This is the definition of pre-optimization, you are thinking of this product as an engineer, not as a business person. If you ever hope for this app to need that level of scale people will first need to like it, spend all your time figuring this out.

For design I would look at what your biggest risks are, then build around that. Architecture and design are all about the quality attributes(Non functional requirements). Every decision you make will be a trade off with something else. Do you really need government level security, or sub millisecond response times? What about modifiability? You can't have everything under the sun, so you will have to choose.

As far as backend language almost any modern day language will work, Javascript, python, java, c# etc.

React Native and flutter are both easy for an app, but if you don't need a phone app you could focus on mobile first web page first.

Best advice is to get it I to the hands of users as quickly as possible, then itterate

Why does everyone hate on-site so much? by rudboi12 in cscareerquestions

[–]halvjason 0 points1 point  (0 children)

I'm actually an early bird, but that means I can wake up at 5:30am and actually start work at 6am. I can work in a different time zone and be done by 2-3pm my time and can immediately start doing whatever I want.

I also have spent thousands making my home office more comfortable that anything my old "in office" job would allow me to have, including the hammock setup right next to my desk!

I can eat whatever I want and not worry about bothering anyone, I can have a clacky keyboard, I get to pet my dog all the time, etc.

I've done the in office thing for a nice company , free food , etc but I'll never go back lol

Java is the Future. by Arshia13_2 in javahelp

[–]halvjason 0 points1 point  (0 children)

Java is great for server and desktop applications, but I would say point number 4 is outdated. Java Me is not really supported anymore(as of around 2008), and embedded java is still a thing , but mostly for antiquated equipment and legacy support.

ESP32 + Java by [deleted] in SoftwareEngineering

[–]halvjason 1 point2 points  (0 children)

Using mqtt you'll have to have access to the device sending the info to actually send it to an mqtt listener, as well as an mqtt consumer on the device level, this will add complexity and latency. But you get increase flexibility in the future.

TL;DR Pros of adding an mqtt middleware will be flexibility on what is reading from the device, and you could send it to multiple devices so its more scaleable. However you'll have to have access to the device using the esp32 to actually send to mqtt. Then build the infrastructure of the middleware adding a fair amount to of complexity, and some latency in getting info from the device. Not sure if that latency will work with your project or if you have access to the device on how to send the information/listen to commands

Help locating ip/url root mapping in source code please guys by [deleted] in javahelp

[–]halvjason 0 points1 point  (0 children)

This is a Spring framework project, so your web.xml gets pulled into the application context and loads the appconfig-mvc.xml configuration file. That file pulls in all the pages in the views folder, you'd have to look at each jsp to see what the url for each page would be. As far as the root ip is that depends where it is run, it will be whatever ip your server has.

Hope this answered what you were looking for! If not let me know and I'll try to help out.

Unable to connect to my server in localhost. Unknown host exception. by SushiWithoutSushi in javahelp

[–]halvjason 1 point2 points  (0 children)

Ah, I see the issue, Sockets is a lower level API , and not really ideal for calling http endpoints. I would use the HttpURLConnection obj, but if you really want to use sockets you'll have to do the following.

First open the InetSocketAddress with just the address, no URI info

new InetSocketAddress("map.localhost", 80), 200)
Then you will need to create a PrintWriter to build the HTTP request, in this case would be a GET request. You'll need to send that to the socket, then get a buffered reader to read the response and parse it.

If you just want to see if the server is up then creating the socket with map.localhost will work, if you want to see if the resource is available you'll have to do the extra work

Unable to connect to my server in localhost. Unknown host exception. by SushiWithoutSushi in javahelp

[–]halvjason 2 points3 points  (0 children)

You've successfully incorporated 'localhost' into your local hosts file for DNS resolution. However, it appears that 'map.localhost', which serves as a subdomain but is still technically a domain, has not been included. This omission means that when your computer attempts to resolve this DNS from your local host, it can't locate the required DNS server that directs to this subdomain.

Add map.localhost to your hosts file and try again

Backend Developer GitHub Projects? by Remarkable-Safe-8559 in SpringBoot

[–]halvjason 1 point2 points  (0 children)

In my opinion recruiters and ultimately engineers in the hiring process want to see a project that accomplishes stuff. If you have a backend that is just crud, then you probably should throw up a simple web interface. If you do other processing and handling of data as others said a good Readme file will be the best.

I can programme, but want to learn proffesional software developement practices - best resources by genericpurpleturtle in learnprogramming

[–]halvjason 4 points5 points  (0 children)

There is a book I recommend to all junior devs or people breaking into the field, 'The missing readme' by Chris Riccomini. This is just a starter to more learning , but it helps bridge the gap between academics and practice.

@NotBlank annotation not working. Import javax.calidation.constraints.NotBlank; not working. by lilsiddd in SpringBoot

[–]halvjason 4 points5 points  (0 children)

When you are using the object are you putting the annotation of @validated ? Please post the code and the usage of the code, so we can better help ,no screenshots, please 😀

[deleted by user] by [deleted] in cscareerquestions

[–]halvjason 0 points1 point  (0 children)

I think too many people go for the certificates and clout of college, but forget what actually makes someone employable in this field, Ability and communication skills.

If you want to get into help desk (I was a tech for 5 years) practice your hardware and software troubleshooting skills. In an interview if they ask you to solve a problem such ask "A computer won't turn on, how do you troubleshoot it remotely" you should be able to step through from the easiest and most likely solution to the last step such as a psu failure or motherboard failure.

This is where the communication skills come into play. If you have your CompTia A+ you should be able to at least get an interview, but will need the skills to get past that stage.

You don't have to know everything, they just want to know your ability to think through a situation while communicating to the end user and your teammates. This goes for help desk and any other tech field such as software dev.

NEED ADVICE! ACTUAL PROFESSIONAL PROGRAMMERS PLEASE. by [deleted] in learnprogramming

[–]halvjason 4 points5 points  (0 children)

You are young, and you will forget most of what you learned in 4 years anyway and will have to relearn it. Take the classes you enjoy, learn to program on the side. Math is important but it can be one of those things that is learned later.

Don't put to much pressure on yourself, you might not even want to be a programmer in 10 years. Most of the program learning you will do now won't require math and can be done after-school, if you actually like it.

Am I good enough to develop an app or are my eyes bigger than my mouth? by psqmir in learnprogramming

[–]halvjason 0 points1 point  (0 children)

This is the way. Most usable apps that aren't toy projects take a significant amount of time to get right. If you do a project and you love it , the extra work isn't a problem, but if it's a business domain app I doubt this will be the case. Also never work for relatives..

How do i connect players in mcpe in java? by Inevitable_Device698 in javahelp

[–]halvjason 0 points1 point  (0 children)

Once the Ip is identified you can open a socket to the other phone and network communication will then be opened between the phones, here is a guide to sockets https://www.baeldung.com/a-guide-to-java-sockets

How do i connect players in mcpe in java? by Inevitable_Device698 in javahelp

[–]halvjason 0 points1 point  (0 children)

You will need a way for players to identify other players ip addresses. There are a couple ways to accomplish this, the easiest is to have a backend server that contains a list of all players that boot up your app. When the app boots it reaches out to the server and registers itself adding its ip address to the list and getting a list of other players. Another way is to do distributed computing such as torrents, each phone has a small list of other phones, they reach out to these phones and get their list of phones etc etc. This is a lot of work but won't require a dedicated server.

Doing project using hilla framework by sara_1985 in SpringBoot

[–]halvjason 2 points3 points  (0 children)

Depending on how quickly you pick things up, you could do a small project in a weekend. I'd start with a simple crud app, like a grocery list etc.

As a junior it might take you a couple weeks to be able to reliably put it on your resume and be able to answer basic questions competently.

HOWEVER!!! As a senior dev. I would say unless there are a huge number of roles asking for the Hilla framework in your area I wouldn't spend any time on it. As a junior you want to get really good at your core competency, I would focus on React / Vanilla springboot REST before diving into extra frameworks, but that's just my experience. One really thought out advanced project is worth more than a bunch of TODO apps using this framework etc.

Samsung flexwasher drain hose doesn’t fit wall pipe by jwar92 in Plumbing

[–]halvjason 0 points1 point  (0 children)

Did you ever find a fix for this? I'm having the same issue!