« first day (4538 days earlier)      last day (394 days later) » 

12:00 AM
The bogosity meter just pegged. (source)
 
 
1 hour later…
1:12 AM
hums a song
 
 
11 hours later…
12:11 PM
How can I know what page this request was sent from? It could be user/update-info or user/update-password. I only need to do the encoding in the latter option (so that I don't encode an existing, already encoded password)
    @PostMapping("/save-user")
    public String saveUser(@ModelAttribute User user, Authentication authentication) {

        PasswordEncoder passwordEncoder = new BCryptPasswordEncoder(10);
        String encodedPassword = passwordEncoder.encode(user.getPassword());
        user.setPassword(encodedPassword);
        service.save(user);

        return
                authentication.getAuthorities().contains(new SimpleGrantedAuthority("ADMIN")) ?
                        "redirect:/admin" :
                        "redirect:/user";
 
posted on March 27, 2023

archive - contact - sexy exciting merchandise - search - about ← previousMarch 27th, 2023nextMarch 27th, 2023: LET IT NOT BE SAID THAT I DO NOT PAY OFF MY EXTREMELY CHRONOLOGICALLY-SPECIFIC FORESHADOWING!! I have exciting news: YOU CAN GET DINOSAUR COMICS TEXTED TO YOU NOW! It's a little microservice me and Samuel Henry cooked up and it's SUPER SIMPLE: you enter your phone number and the

 
 
4 hours later…
4:14 PM
 
5:05 PM
I have a pseudo-Java question that I couldn't find a better room for. I'm setting up SFTP access in a program at work. I have it working for username and password, but I'm trying to get public-private key authentication working. I think I have my Jsch implementation correct, but I'm having trouble standing up the FTP instance as per hub.docker.com/r/atmoz/sftp
 
5:26 PM
stackoverflow.com/questions/68459632/how-to-use-atmoz-sftp seems relevant to my interests, and I can get their suggested docker invocation to work with a few changes, but I still can't connect to it with what I think are the correct keys.
 

« first day (4538 days earlier)      last day (394 days later) »