abbadon420

joined 1 year ago
[–] [email protected] 4 points 5 days ago

I see you're a man of culture

[–] [email protected] 1 points 5 days ago* (last edited 5 days ago)

It's not really abstraction though. It is more like syntactic sugar. In stead of 1000111011 you say ADD, but it is still the exact same thing. There is no functional, prgrammatical benefit of one over the other. It's just that asm is readable by humans.

At least thats as far as I understand asm. I haven't gone beyond NandToTetris

[–] [email protected] 3 points 6 days ago

Cows are usually very curious and nice. You have to remember that they are wild animals though and unpredictable. They could kill you by sitting on you.

If you act natural, don't make any sudden movements, than you're good. Also get out of the way, because they will just run over you. Especially in spring, when they get out of the barn for the first time since fall. They're blinded by the light and a little spring crazy.

Bulls are a different matter. You they're less sweet.

[–] [email protected] 1 points 6 days ago (1 children)

Stacks are for idiots, racks are what we need and blades are the real deal.

[–] [email protected] 1 points 1 week ago

There has always been a margin for failure, but the margins need to change with climate change and that is something they're working on all the time. At least where i live.

[–] [email protected] 7 points 1 week ago (3 children)

Yes they do. At least they're working on it, like more and bigger basins, less waste and spilage, better throughput, etc.

[–] [email protected] 49 points 1 week ago (12 children)

This might be true, but it's rapidly changing due to a collaborative effort from big gaming companies, streaming services and hollywood. People are relearning the art of torrenting.

[–] [email protected] 73 points 1 week ago (15 children)

The second frame could also read "It sounds like a dying animal screaming in pain and agony"

[–] [email protected] 9 points 1 week ago (1 children)

Dit is wat nederland wil. Hier hebben we voor gestemd. Ik ben blij dat ik niet afhankelijk ben van de overheid voor mijn persoonlijke financien. Mijn vertrouwen in de overheid neemt de laatste jaren ook alleen maar af. Ik begin zelfs een lichte neiging te krijgen om politiek actief te worden in het kader van "als je wilt dat het goed gebeurt, moet je het zelf doen".

[–] [email protected] 3 points 1 week ago

Also, mobile idle games like clash of clans or simcity. Maybe some tactics like "I'll build this now so I can do that tomorrow" but that's not a puzzle, that is just choices.

[–] [email protected] 1 points 1 week ago

Het is wel een trent bij de rechtse partijen

[–] [email protected] 2 points 1 week ago (1 children)

Well.. it's saturday night and I ain't got anything better to do

84
KVN (images5.alphacoders.com)
 
 

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

 

cross-posted from: https://lemm.ee/post/12034711

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.

 

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?

 

Today I got fed up with my boss, so I decided to quicksafe and shit on his desk. I also punched the hr rep in the face and set half the lobby on fire.

When i tried to reload the quicksafe, it didn't work. It says "file corrupted". My last safe file is from 2 years ago (in-game). I don't want to loose all that progress or my 3 months old daughter.

Help!

 

Hi This community seems empty as of yet, but let me begin.

I made this comment. It sounds pretty assholy as is, I agree. That's on me, I phrased it badly. It should at least have an /s or a hyperlink to the reference. I realize that now, but I can't fix it since they banned me for it.

I would love to explain myself, because it is actually a reference to this comment made by the trainer of FC Barcelona in 2018. I thought it was a well known racist rhetoric, but apparently I was wrong. I thought it was fitting for a meme ([insert minority] and normal people), in a sense that the best way to depower them is to make fun of them.

I think I'm just stupid, but not an asshole, am I?

 

He is not a hobbit, neither a man, but what is he? Is he a dwarf? A wizard? A god? Something else entirely?

110
oldscool-os (i.imgflip.com)
 
 

I got pranked with this website: https://updatefaker.com/

I recently switched from manual labor to office labour and learned the hard way to lock my screen :)

In hindsight it was hilarious, but I waited for maybe 20 minutes before I got suspicious. How can I take revenge?

view more: ‹ prev next ›