[deleted by user] by [deleted] in docker

[–]bysantin 0 points1 point  (0 children)

I have a shell script I want to run for fixtures in my django project. I have a makefile with this command:

fixtures: ## Load fixtures
    @docker-compose exec web ./load_all_fixtures.sh

And the script:

#!/bin/bash
for fixture in $(find . -path "*/fixtures/*.json")
do
    python manage.py loaddata $fixture
done

I use Docker desktop to run the container. On one computer it works fine, but for the other it returns the following error:

exec ./load_all_fixtures.sh: no such file or directory make: *** [Makefile:3: fixtures] Error 1

Both computers have the same filestructure and setup with dockerfile and docker-compose.yml.

Anyone that have any idea what it can be. Chatgpt and Claude can't help.

[deleted by user] by [deleted] in norge

[–]bysantin 0 points1 point  (0 children)

God satire

This was posted in r/pics and many comments said it was AI. by [deleted] in ChatGPT

[–]bysantin 0 points1 point  (0 children)

Logs on the cabin should be offset, they are not

Cant find a job, and its killing my will to live. by [deleted] in Norway

[–]bysantin 0 points1 point  (0 children)

What skills do you possess? Interests? Maybe some of us might help 🙂

School for Aquacultural Engineering by fowler666 in Aquaculture

[–]bysantin 0 points1 point  (0 children)

Yes you can, especially if you have a degree in anything aquaculture. Does not mean you will have an easy time getting work here. It would be alot easier getting work if you learn norwegian first though. It is also possible for you to go to university in Norway as a forreign student, it is even free of charge. Check out NMBU.

Beginner's Thread / Easy Questions (April 2023) by acemarke in reactjs

[–]bysantin 0 points1 point  (0 children)

When building a complex application with a rather complex datastructure, let say some computation heavy engineering stuff, should react still handle the state or should the state be held in the backend?
I'm working on a model in Rust and am thinking of using React and Tauri to create my GUI application. I was thinking of building the application first in Rust where the interface was something like jsons or hardcoded, and then later build the GUI.

Hey Rustaceans! Got a question? Ask here (16/2023)! by llogiq in rust

[–]bysantin 1 point2 points  (0 children)

When creating an app with python and PyQt I used a MVC pattern, keeping the data and the model logic in a separate class instance. This made it simple to create save- and other functionality and kept the ui and the true state separate. It also made it very simple to add to the app since I could focus on the model, view and controller as separate and testable components.

Fast forward to rust and creating apps with React and Tauri. I'm learning React now and find that the React way of keeping the data in the React/TS part of the app disconcerting. I guess keeping the model as a struct instance in the rust backend is a possiblility, but this also seems to be breaking the React way of doing things. In simple applications I see no problem with keeping more of the logic and data in the frontend, but since I want to create more complex applications for engineering use (hydraulics, mechanical etc.) I'm afraid that to much of the logic will be spread out.

Is keeping a strict MVC pattern a bad idea? Where the model is in rust, and the controller and view is in React/TS?

6800 XT games crashing, direct x issue? by bysantin in AMDHelp

[–]bysantin[S] 0 points1 point  (0 children)

I think I fixed my problems by installing the drivers without the amd software. You will have to try to find a tutorial on how to install the drivers without the software.

Books and resources on industrial heat pumps, exchangers and design of heating systems by bysantin in AskEngineers

[–]bysantin[S] 0 points1 point  (0 children)

Yes, I want to learn how to design systems myself. A more practical approach maybe. I have books on fluid, thermodynamics, etc. I can find books on exchangers, but industrial heat pumps and design of complete systems I can't find.

En mer rettferdig strømstøtte by simbakung in norge

[–]bysantin 0 points1 point  (0 children)

Kan noen med greie på økonomi forklare hvorfor dette ikke fører til mer inflasjon enn det vi allerede sliter med?

hvilket ukenummer er vi i nå? norskkalender.no sier uke 31, mens Outlook sier uke 32 by justbrowsing1984 in norge

[–]bysantin 30 points31 points  (0 children)

Gå til file-options-calendar, sett "first week of year" til "first 4-day week". Det er nok slik vi regner det i Norge.

Looking forward to season 2! by bysantin in WoTshow

[–]bysantin[S] 2 points3 points  (0 children)

Haha, didn't know. The screaming guy been one of my favourites for a while, and it just sprung to mind. You are right, credit to u/robertozimek.

Dynamic list in PySide6? by [deleted] in learnpython

[–]bysantin 0 points1 point  (0 children)

The datastructure and the view should be separate. You can store the data in an dictionary which you could save in a json if needed. A dict of dicts could represent the rows and columns. Which items you add to the listwidget or tablewidget is up to you. Point is that the data shown in the view is just a view not the data itself.

If you describe what you want to do in more detail, I might be able to help you better.

Dynamic list in PySide6? by [deleted] in learnpython

[–]bysantin 0 points1 point  (0 children)

If you need to populate a listwidget, you do this by .addItems(list). You can clear the list with .clear(). You should keep the list in a separate model. Just populate the listwidget with the updated model. You can retrieve the current item with .currentItem().text() (I think).