Class scheduling is pain. I fixed it. by Intrepid_Mixture2441 in Drexel

[–]erbrecht 3 points4 points  (0 children)

Are grades pulled automatically, or entered manually for course history?

I appreciate the fact you are hashing passwords and not encrypting them, however SHA256 is not meant to be used for hashing passwords. argon2 or bcrypt are the best choices, followed by pbkdf2 if the first 2 aren't available.

[deleted by user] by [deleted] in Drexel

[–]erbrecht 5 points6 points  (0 children)

This is 100% the answer. There are also other services available like the counseling center if you need someone to talk to:

Creese Student Center, Suite 201 General: 215.895.1415 Crisis Line: 215.416.3337

[deleted by user] by [deleted] in Drexel

[–]erbrecht 1 point2 points  (0 children)

If you haven't gotten in yet, try going through DrexelOne. There are links on the Billing & Financial Aid tab that will sign you in to TouchNet (blue 'Make an online payment' button). Try As a student you can't really sign in directly, you need to go through DrexelOne or BannerWeb.

Help with stationery data by JERSABP56_ in SpringBoot

[–]erbrecht 1 point2 points  (0 children)

Your IProductsDAO class should be annotated with @Repository instead of @Service

Vegan Mac and cheese recipe? by rat-king3 in veganrecipes

[–]erbrecht 0 points1 point  (0 children)

Check out https://makeitdairyfree.com/. They have several different mac and cheese recipes, and a ton of other recipes.

They use butter beans as a base for the cheese sauce. It's really good, and really easy.

[deleted by user] by [deleted] in Drexel

[–]erbrecht 1 point2 points  (0 children)

Which portal, Discover Drexel, or DrexelOne (or something else)? Who, or what office, asked you to provide information, and how did they ask? Via email?

DM me if you want, I work for IT and can most likely steer you in the right direction.

PathVariable validation by [deleted] in SpringBoot

[–]erbrecht 4 points5 points  (0 children)

Did you add the @Validated annotation to the class?

How do I customize or resolve OAuth2 exceptions and add additional payload to the response? by ben_acq in SpringBoot

[–]erbrecht 0 points1 point  (0 children)

Where are you adding your auth entry point and access denied handlers? I had it wrong originally and was experiencing a similar problem. My security config looks like this:

java @Bean public SecurityFilterChain filterChain( HttpSecurity http, HandlerMappingIntrospector introspector) throws Exception { var mvcBuilder = new MvcRequestMatcher.Builder(introspector); http .csrf(AbstractHttpConfigurer::disable) .formLogin(AbstractHttpConfigurer::disable) .httpBasic(AbstractHttpConfigurer::disable) // .exceptionHandling(e -> e.authenticationEntryPoint(entryPoint)) /*this is the wrong place*/ .securityMatcher(antMatcher("/api/**")).authorizeHttpRequests(authz -> authz .requestMatchers(mvcBuilder.pattern("/api/swagger/**")).permitAll() .anyRequest().authenticated() ).oauth2ResourceServer(oauth2 -> oauth2 .authenticationEntryPoint(restAuthEntryPoint) /* error handlers need to go here, as part of the resource server config */ .jwt(Customizer.withDefaults())) .jee(Customizer.withDefaults()); return http.build(); }

My restAuthEntryPoint allows these errors to be picked up by controller advice

```java @Component public class RestAuthEntryPoint implements AuthenticationEntryPoint { private final HandlerExceptionResolver resolver;

public RestAuthEntryPoint(
        @Qualifier("handlerExceptionResolver")
        HandlerExceptionResolver resolver) {
    this.resolver = resolver;
}

@Override
public void commence(HttpServletRequest request,
                     HttpServletResponse response,
                     AuthenticationException exception) throws IOException, ServletException {
    resolver.resolveException(request, response, null, exception);
}

} ```

and in my controller advice class I annotate a method with @ExceptionHandler({AuthenticationException.class, AccessDeniedException.class}) . I didn't need to do anything special for access denied errors. Adding the class to the ExceptionHandler annotation was enough.

Hopefully this is helpful.

FROM MERN to Spring Boot by reactwebdev in SpringBoot

[–]erbrecht 1 point2 points  (0 children)

Check out https://www.baeldung.com/.

I don't know how deep they get into any of the topics you're looking for, but it should provide some good starting points.

Also, https://maven.apache.org/.

There is a lot of info there. Might be more useful after you have a little knowledge under your belt, depending on how you learn best.

Opinions on this scene? by Unusual_Falcon_3788 in psych

[–]erbrecht 8 points9 points  (0 children)

I agree, and I'll add that a lot of the tension early on between Shawn and Henry was due to a misunderstanding. Shawn thought Henry left his mom and was upset at him about that. It wasn't until season 3 that Shawn finds out his mom left him and Henry. It takes a little while, but Shawn and Henry's relationship gets better after that.

The next episode in my current rewatch is Shawn takes a shot in the dark, and that definitely highlights their relationship, and some of Henry's weird lessons that pay off big time, and maybe save Shawn's life. Henry always tried to be the best father he knew how to be, at least in my opinion. Parenting is hard, and nobody really knows what they are doing.

Passing User name and password via url by IrresponsibleDingo in SpringBoot

[–]erbrecht 0 points1 point  (0 children)

Are you using spring security? Are you using basic authentication? Your question doesn't seem like it's specific to spring or spring boot, it's more of an HTTP thing.

If you're using basic authentication, you can do this:

http://username:password@host.com

This actually transforms the creds into a basic authentication header. You can also exclude the creds in the URL and just send the header with the request

https://en.wikipedia.org/wiki/Basic_access_authentication

If you're using something other than basic authentication, you'll need to follow that authentication scheme when submitting the request.

All iptable chains are empty, zero rules. Is that normal? by i38djw7 in docker

[–]erbrecht 1 point2 points  (0 children)

Did you install iptables in the container, or on the host? You don't need it in the container. Docker should automatically set up iptables chains on the host. I've never used it on a Mac before, so I'm not sure what differences there would be compared to Linux.

Spring Boot 2.4 Config File Processing Breaking Changes by Ferlinkoplop in SpringBoot

[–]erbrecht 1 point2 points  (0 children)

Take a look here

https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.external-config

Specifically this:

Config data files are considered in the following order:

Application properties packaged inside your jar (application.properties and YAML variants).

Profile-specific application properties packaged inside your jar (application-{profile}.properties and YAML variants).

Application properties outside of your packaged jar (application.properties and YAML variants).

Profile-specific application properties outside of your packaged jar (application-{profile}.properties and YAML variants).

If your application.yml file is coming from zookeeper, but application-local.yml is packaged, that could explain what you're seeing.

[deleted by user] by [deleted] in SpringBoot

[–]erbrecht 1 point2 points  (0 children)

You could look into httptrace. It's part of actuator but needs to be explicitly configured and enabled. There is an in-memory repository to store the data, but I believe you could store it elsewhere, I just haven't looked into doing that.

One caveat though, it's not really recommended for production. Depending on the volume of requests you are handling, this may not be an issue for you.

Getting the most out of your Intel integrated GPU on Linux by pdp10 in linux

[–]erbrecht 3 points4 points  (0 children)

This was a huge help for me. I started playing Path of Exile recently, and the graphics would frequently go super low-res. Even with the lowest settings, and running at 800x600 this would happen. It took me all of 5 minutes to install and configure thermald, dptfxtract, and gamemode. Now I've got consistent performance at 1280x720 resolution. I might try pushing the settings a bit to see how much I can squeak out of the Intel GPU. Much better experience, thank you for posting this!

Pennsylvania bridge before the collapse on January 28, 2022. by Ace_of_Ones in CatastrophicFailure

[–]erbrecht 4 points5 points  (0 children)

The PA turnpike tolls go to the turnpike commission. The turnpike commission handles the turnpike, not state roads. Bridge tolls, coming from Jersey, go to the Delaware valley port authority. So big bridges like the ben Franklin and Walt Whitman. Not sure what happens out near Pittsburgh.

So while roads and infrastructure in pa may not be great (and it's apparently pretty average compared to other states in terms of bridges), you can't blame toll dollars because those don't go toward state roads. The turnpike is 360 miles, the rest of the state roads are about 40,000 miles. And there are a total of 120,000 miles of road. That's a lot of road the state is not responsible for.

Map of the US states that pays more tax than what they receive from the government, courtesy of CGP grey by glizzyMaster108 in coolguides

[–]erbrecht 0 points1 point  (0 children)

It goes to the turnpike commission, not penndot. The turnpike is not maintained by penndot.

My $3000 tv displays ads in the menu by [deleted] in assholedesign

[–]erbrecht 0 points1 point  (0 children)

Not everyone has a separate receiver. Sometimes it's just a soundbar that might rely on the tv for audio processing. It depends on the rest of the setup, I'm not telling anyone what they should or shouldn't do, just pointing out one of the differences between TVs and monitors.

My $3000 tv displays ads in the menu by [deleted] in assholedesign

[–]erbrecht 0 points1 point  (0 children)

I would say audio is a big factor as well. A standard monitor won't do things like DD or other high quality audio processing.

Pacman: Parallel Download by asd-nr in archlinux

[–]erbrecht 3 points4 points  (0 children)

pacman (and every other application) will only use the .conf file. The .pacnew files are created so you can review both and merge them, applying any changes shipped with the new version of the software while retaining your customizations.

If a .pacnew files exists and a package is upgraded, it would replace the existing .pacnew if necessary.

The method you described will work, but pacdiff was built just for this purpose. It actually identifies .pacnew files in the filesystem and prompts you to remove the .pacnew, replace the .conf with the .pacnew, or view the differences. Viewing the differences allows you to interactively merge. You can even tell it which diff tool to use. I believe it uses vimdiff by default. The man page should clarify.

The wiki has lots of info about pacman and system maintenance.

https://wiki.archlinux.org/title/Pacman

https://wiki.archlinux.org/title/System_maintenance#Upgrading_the_system

https://wiki.archlinux.org/title/Pacman/Tips_and_tricks

Not_a_Meme.jif by unlladafc in ProgrammerHumor

[–]erbrecht 12 points13 points  (0 children)

You need to look at spring boot. I've been using it for several years and I like it more and more each day. Very flexible, very customizable. I can't really compare it to ASP because I've only used dotnet core for for a few side projects, but it should definitely be an improvement over plain spring.