abbadon420

joined 1 year ago
[–] abbadon420@lemm.ee 32 points 8 hours ago* (last edited 8 hours ago)

Given the average age (and diet), there's hope yet

[–] abbadon420@lemm.ee 8 points 16 hours ago (2 children)

That's a perfectly acceptable plan, were it not that a laptop is much less handy. It's cumbersome to use a laptop while standing in a crowded bus, for instance, that's what a phone is good for.

[–] abbadon420@lemm.ee 0 points 2 days ago (1 children)

I have a fairly expensive espresso machine, but I only ever use that one button that makes simple black coffee. What does that say about me?

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

Fucking hubspot

[–] abbadon420@lemm.ee 6 points 2 days ago

I like this sentiment. Hope is also very important in my life. In my darkest times, there was always hope to cling to. It wasn't always realistic and most of it has failed. Some have succeeded though and I am in a much better place now.

However, it is important to learn that failure is a good thing. Society has imprinted in most of us that failure is bad. It is not. Failure is a way to learn. Without failure you cannot learn and you cannot grow.

For this same reason it is perfectly fine for hope to fail. You can learn from that and adjust your hopes and expectations accordingly within the scope of you values.

[–] abbadon420@lemm.ee 3 points 4 days ago

There's also the old dns solution. That's what I did when they tried to block torrent sites before.

[–] abbadon420@lemm.ee 18 points 4 days ago

You poor thing. Thoughts and prayers

[–] abbadon420@lemm.ee 4 points 4 days ago (1 children)

Jesus fuck, does everything have to be political? I guess it does

[–] abbadon420@lemm.ee 1 points 5 days ago

We can go even deeper

[–] abbadon420@lemm.ee 3 points 5 days ago

Yes it's not much, but it feels special because it's an international train for which you usually have to pay a supplement.

[–] abbadon420@lemm.ee 1 points 5 days ago (1 children)
 

[Update: It seems to have been fixed now]

 

Update: the ship has been towed now

 

The world has always been going the shit and will continue to go to shit until the end of time. It takes mountains to influence the tides of nations. You should take the responsibilities you can bear, but no more.

 

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.

83
KVN (images5.alphacoders.com)
 
 

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: next ›