abbadon420

joined 2 years ago
[–] abbadon420@lemm.ee 12 points 1 week ago

Today I broke a colleague's app, because I repurposed an unused app registration on azure, or at least I thought it was unused. I thought that would be faster than asking the admins for a new registration on a Friday afternoon. But I forgot that I had used that registration for my colleague 's application.

So when he came complaining that it didn't work, I just told him he had done something wrong and that he should just restart his computer.

[–] abbadon420@lemm.ee 2 points 1 week ago

This man can't do wrong. He could say that the moon is made of cheese and his sheep would just believe it and violently defend it.

[–] abbadon420@lemm.ee -4 points 1 week ago (2 children)

These tweets are inconsequential

[–] abbadon420@lemm.ee 3 points 1 week ago (1 children)

It's better not to talk about the koala

[–] abbadon420@lemm.ee 3 points 1 week ago* (last edited 1 week ago) (1 children)

I bet you have pictures for that subject too... maybe better suited for a different community

[–] abbadon420@lemm.ee 8 points 1 week ago (3 children)

Ir's weird how I've never heard about this, seeing how prevalentie American culture is in popular media.

[–] abbadon420@lemm.ee 29 points 1 week ago (7 children)

Dafuq is a juneteenth?

[–] abbadon420@lemm.ee 6 points 1 week ago (1 children)
[–] abbadon420@lemm.ee 1 points 1 week ago

Yeah, some people get a new phone every year or so. I know a guy who trades in his "old" phone for a brand new model every few months. He doesn't really trade though,he just resells. It only costs him like 200 or 300 euro, if you factor in the resell. For him that's worth it, aparantly.

[–] abbadon420@lemm.ee 10 points 1 week ago (1 children)

Also, we're actual intellectuals, obviously. Contrary to those reddit wannabes

[–] abbadon420@lemm.ee 1 points 2 weeks ago

I'd say it's like a tailbone. It was once useful (when we were apes), but has long since lost all purpose. Now it is just a useless appendage and if you touch it the wrong way, you can end up paralized for the rest of your life. We can't go without though, because it's attached to out spine and muscles.

 
 

The added image is a screenshot of how I see gifs in connect. There's supposed to be buttons in the bottom right corner, I've been told. But I can't see them. Do I need to add them in some setting somewhere?

 

P.s I'm not gonna handwash. That's too much

 
 

For me it's definitely the Dark Tower, but the Golden Compas was also a huge letdown.

 

There's also a halloween themed practice event this entire week.

 

Hello Lemmy,

I have to grade student work. Students who have made their first springboot applications. I'm wary for idiots who don't understand anything about java, yet somehow manage to include code that wipes my entire User folder, so I run the projects in docker these days.

One criterium is that they include a upload/download functionality. Some students decide to do that by storing the files in the DB, other store it in an "uploads" folder.

The first one works fine in docker. The second one not so much. The java code refers to a path "sourceroot/uploads", but that doesn't exist in the docker container. How can I make it exist in the docker container?

This is the DOCKERFILE I use to docker build -t image .

FROM eclipse-temurin:17-jdk-alpine
VOLUME /tmp
EXPOSE 8080
EXPOSE 5432
COPY target/*.jar application.jar
ENTRYPOINT ["java", "-jar", "application.jar"]

This is the yaml I use to run docker compose up -d

version: '2'

services:
  app:
    image: 'image'
    ports: 
        - "8080:8080"
    container_name: app
    depends_on:
      db:
        condition: service_healthy
    environment:
      - SERVER.PORT=8080
      - SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/testing
      - SPRING_DATASOURCE_USERNAME=postgres
      - SPRING_DATASOURCE_PASSWORD=postgres
      - SPRING_JPA_HIBERNATE_DDL_AUTO=create-drop
          
  db:
    image: 'postgres:13.1-alpine'
    ports:
      - "5432:5432"
    expose: 
      - "5432"
    container_name: db
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_HOST_AUTH_METHOD=trust
      - POSTGRES_DB=testing
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 10s
      timeout: 5s
      retries: 5
  

networks:
  default:
    name: docker

I'm sorry if this code offends anybody. I've made this Frankenstein's monster myself from bits and pieces. However, I can't seem to figure out how to add a working "uploads folder" to it that could be used by the springboot application inside the container. Any help would be appreciated.

 

(Graphical) IDE's are great for development, but they're slow to start and heavy to run. Sometimes you just want to take a quick look at an xml or dockerfile and you don't want to spin up the whole IDE for that.

I've recently rediscovered notepad++ for that (on windows), what's your prefered easy-acces-tekst-editor?

view more: ‹ prev next ›