python Python ELI5 Using python virtual environment in docker container.
Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    2 weeks ago 100%

    If you do multi stage builds (example here) it is slightly easier to use venvs.

    If you use the global environment you need to hardcode the path to global packages. This path can change when base images are upgraded.

    2
  • python Python ELI5 Using python virtual environment in docker container.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    2 weeks ago 100%

    Sure, but in the case where you upgrade python and it affects python packages it would affect global packages and a venv in the same way.

    1
  • python Python ELI5 Using python virtual environment in docker container.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    2 weeks ago 100%

    upgrading your base image won’t affect your python packages

    Surely if upgrading python will affect your global python packages it will also affect your venv python packages?

    you can use multi stage builds to create drastically smaller final images

    This can also be done without using venv's, you just need to copy them to the location where global packages are installed.

    2
  • framework Framework Laptop Community new display arrived, what can I do with the old one?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    3 weeks ago 100%

    I'm not really against it if there is a demand and people want to buy/sell/trade here. If buy/sell/trade gets too much we could restrict it to a sticky thread.

    It might be easier for people to find buyers/sellers on the framework forum category that @narc0tic_bird@lemm.ee pointed out though.

    3
  • opensource Opensource there's a new "zen" Firefox fork on the block focused on theming and has some features from Edge, all licensed under MPL
    Jump
    opensource Opensource there's a new "zen" Firefox fork on the block focused on theming and has some features from Edge, all licensed under MPL
    Jump
    python Python uv: Unified Python packaging
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    4 weeks ago 100%

    I don't think they have anything to do with each other, it looks like prefix.dev uses conda packages.

    1
  • python Python uv: Unified Python packaging
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    4 weeks ago 100%

    Yeah it is, eventually they want UV to have feature parity with rye and rye will basically just be a pointer to UV

    5
  • python Python uv: Unified Python packaging
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    4 weeks ago 100%

    Early on uv was only trying to replace pip. This latest update is a big step towards becoming a poetry (and pyenv/pipx) replacement too.

    7
  • python
    Python uthredii 1 month ago 98%
    uv: Unified Python packaging astral.sh

    TL;DR: uv is an extremely fast Python package manager, written in Rust.

    89
    38
    nix Nix / NixOS Struggling to set up gnome boxes
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    1 month ago 100%

    It worked for me with just: virtualisation.libvirtd.enable = true; in the configuration.nix.

    5
  • gaming
    Gaming uthredii 2 months ago 26%
    The Half-Life 3 Leaks We’ve Been Waiting For - Tyler McVicker https://www.youtube.com/watch?v=36gF6eiCsqU

    cross-posted from: https://programming.dev/post/17763625 > Datamining youtuber found some stuff.

    -9
    2
    nix Nix / NixOS Nix Release 2.24
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    2 months ago 100%

    Stable channels provide conservative updates for fixing bugs and security vulnerabilities, but do not receive major updates after initial release.

    If you want up to date packages then use the unstable channel.

    3
  • nix Nix / NixOS Nix Release 2.24
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    2 months ago 100%

    Nix has the most unique packages and the most up to date packages of any Linux software repository. It has substantially more fresh packages than Arch or Alpine (which you say does a better job in a separate comment).

    Source:https://repology.org/repositories/graphs

    9
  • parenting Parenting Just got a call from the kids' daycare...
    Jump
    linux Linux Sell us on your favorite exotic/niche distro
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    2 months ago 100%

    Yeah I agree, I am sure they are missing some obscure stuff. But in practise it has everything that I use and there has been no need for me to touch flatpak/appimage/snap

    2
  • linux Linux Sell us on your favorite exotic/niche distro
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    2 months ago 81%

    NixOS:

    • Largest and most up to date package repository (no need for flatpack/appimage/snap ect)
    • Reproducible
    • Declarative
    • Rollbacks you can select at boot time
    • No dependency conflicts

    I think it will easily be the number 1 distro if/when they can :

    • the steep learning curve (e.g. have a gui installer EDIT: As in a GUI software centre)
    • documentation
    • have more tools use nixos and have nixos in mind (e.g. there are a couple of tools that didn't work for me because of specific C libraries not beeing present/configured on nixos that are present on other distros. some libraries implicitly expect these to be present).
    7
  • helix
    Helix Editor uthredii 2 months ago 100%
    Release 24.07 · helix-editor/helix github.com

    Came out a few days ago, but I thought it was worth posting here =)

    27
    2
    ask_experienced_devs Ask Experienced Devs Users of Vim and similars, what exactly makes it useful compared to other text editors? How much time do you suppose you save when working with it?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    2 months ago 100%

    One thing I haven't seen mentioned is that not moving between mouse and keyboard so much reduces the risk of getting an RSI. So even if it didn't make you faster it would still probably be worth it to find a keyboard based workflow.

    I use Helix and would suggest you try it (at least to start off with) as it is easier to learn than vim and does not require plugins or a complex config. To answer your question I will go from the less to more advanced/complex:

    1. Move a line to a new position in the file/another file (takes a couple of seconds)
      1. x then d to select a line (pressing N times will select N lines) and delete it (delete will also copy to the clipboard)
      2. navigate the cursor to the new location
      3. p to paste in a new
    2. Navigating around a file:
      1. jumping to a function/class definition by pressing g then d when on a function/class usage.
      2. getting a list and navigating to class/function calls when the cursor is on a class/function definition by pressing g then r.
    3. Multi cursor editing - I use this to make edits to multiple places at once. I most recently used this to extract the names of 30 tables that are used in a SQL file. This probably took ~5 seconds and I barely thought about it. To do this I used:
      1. % to select the entire files contents
      2. s to search
      3. typed "FROM "
      4. pressed enter to create cursor at all locations matching the search
      5. v then g then l to select the rest of the line
      6. space+y to copy to the system clipboard.
      7. paste into a document where I needed to list the tables
    4. Using a terminal workspace manager (zellij) with helix and a git tui app (gitui) so that I can easily make code changes, commit, push, ,run tests, move to a new repo and more without leaving the keyboard.

    There is actually a helix community on programming.dev: helix@programming.dev

    8
  • nix Nix / NixOS How long does your nixos-rebuild --switch take?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    3 months ago 100%

    How often do you run nixos-rebuild --switch?

    If you don't run it regularly then you will likely be waiting for a few different packages to get updates. To fix this you can configure auto upgrades:https://nixos.wiki/wiki/Automatic_system_upgrades

    6
  • nix Nix / NixOS My new user experience has been awful and I'm not sure what I'm doing wrong. Could really use some guidance.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    4 months ago 100%

    I have definitely found it challenging at times to do even simple things. I think it does get easier over time.

    I really hope the new user experience will improve. Once the issues with flakes are fixed and they are no longer experimental I would expect flakes to replace the other ways of doing things. This will hopefully make the documentation more concise/focused/better. It might also mean more people start using nix/flakes which will surface more of these problems to be fixed.

    I think people need to decide if the benefits they are getting are worth the challenges. I personally really like the reproducibility and the massive amount of packages available from one place. On other distros I have used things have ended up breaking eventually and I have had to re-install things and search for fixes. But on NixOs things keep working.

    3
  • nix
    Nix / NixOS uthredii 5 months ago 94%
    Exciting Partnership Announcement: Framework Community & NixOS Communities Join Forces! discourse.nixos.org

    cross-posted from: https://programming.dev/post/13537798 > Exciting Partnership Announcement: Framework Community & NixOS Communities Join Forces!

    32
    2
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearNI
    nixos uthredii 5 months ago 92%
    Exciting Partnership Announcement: Framework Community & NixOS Communities Join Forces! discourse.nixos.org

    cross-posted from: https://programming.dev/post/13537798 > Exciting Partnership Announcement: Framework Community & NixOS Communities Join Forces!

    22
    0
    nix Nix / NixOS NixOS Foundation board: Giving power to the community
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    5 months ago 100%

    Most is described here (the author probably has some amount of bias but this is the only summary I know of): https://github.com/KFearsoff/nix-drama-explained

    Other than that some very active contributors resigned as maintainers in support of the open letters.

    And it seems now that the community members in support of the open letters/changes have convinced the board of the foundation to agree on some things.

    15
  • helix Helix Editor Git integration in Helix for an IDE like experience?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    5 months ago 100%

    yep, this method didn't work with this method for gitui on my nixos machine either. And a youtube commenter pointed out that LazyGit (inside helix) can't open files to edit. So this method is definitely not perfect but is probably still useful in the right situation

    2
  • fediverse Fediverse Federation is the future of social media, says Bluesky CEO Jay Graber
    Jump
    programming Programming Radicle - a sovereign peer-to-peer network for code collaboration, built on top of Git.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    6 months ago 20%

    Why? It is the same power dynamic as any other open source project that is primarily built by a company.

    -3
  • programming Programming Radicle - a sovereign peer-to-peer network for code collaboration, built on top of Git.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    6 months ago 30%

    From what I read in the HN thread the token is only used for governance (and possibly also fundraising), it is not baked into the actual platform. I am happy to be corrected though if anyone knows more/has more details.

    I agree that Forgejo looks good as well and is likely more usable than Radicle right now. But I do think there is value at looking at P2P solutions.

    -4
  • programming Programming Radicle - a sovereign peer-to-peer network for code collaboration, built on top of Git.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    6 months ago 36%

    From what I read in the HN thread the token is only used for governance (and possibly also fundraising), it is not baked into the actual platform. I am happy to be corrected though if anyone knows more/has more details.

    -3
  • programming
    Programming uthredii 6 months ago 74%
    Radicle - a sovereign peer-to-peer network for code collaboration, built on top of Git. https://radicle.xyz/

    Hacker news discussion - https://news.ycombinator.com/item?id=39600810 Radicle source code - https://app.radicle.xyz/nodes/seed.radicle.garden/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5

    33
    10
    asklemmy Ask Lemmy Why do I wake up in the middle night with absolute anxiety and dread over the most mundane inconsequential social interaction I had that day?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    6 months ago 91%

    Its really hard to day without more information. You should talk to a doctor. Some other things that could be causing this that noone else has mentioned yet(I can't tell if this applies for you or not based on your post):

    • not enough exercise
    • vitamin d/c deficiencies (you can take supplements of vitamin d in winter time)
    • bad gut microbiome. Try to eat a variety of vegtables as well as prebiotics (fibre, oats) and probiotics (yogurt, kefir,, sourdough ect).
    • try to get regular sleep. I know this is your problem but there may be some things you can do like have a set bedtime, no screens for a while before bed.

    Remember that many people have had similar problems and overcome them. You will just need to work out what works for you. Good luck.

    10
  • programming
    Programming uthredii 7 months ago 98%
    No Boilerplate NixOS video www.youtube.com

    cross-posted from: https://programming.dev/post/10557947

    61
    4
    python Python uv: Python packaging in Rust
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    7 months ago 100%

    This actually sounds really promising!

    • They are teaming up with an existing python package manger written in rust.
    • These are the people who make/made ruff, probably the most useful and fast python linter.
    • you basically get pip from a single binary.
    • they plan to have cargo/poetry like functionality in the future.

    Edit: here is a blog post from the creator of rye talking about rye and UV: https://lucumr.pocoo.org/2024/2/15/rye-grows-with-uv/

    11
  • science science I wasn't worried about climate change. Now I am.
    Jump
    science science I wasn't worried about climate change. Now I am.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    8 months ago 100%

    I don't know about the history of this creator, I just found this particular video interesting when it popped up. Sorry if this creator is known to be untrustworthy.

    3
  • meta Programming.dev Meta End of January Updates - Sublinks, Community Stats, New Community Head, Hexbear, Expanding the Admin Team, & Something Releasing Soon
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    8 months ago 100%

    Thank you Ategon and all the other admins for the work you are doing to make this place great.

    10
  • programming Programming New GitHub Copilot Research Finds 'Downward Pressure on Code Quality'
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    8 months ago 97%

    In this regard, AI-generated code resembles an itinerant contributor, prone to violate the DRY-ness [don't repeat yourself] of the repos visited.

    So I guess previously people might first look inside their repo's for examples of code they want to make, if they find and example they might import it instead of copy and pasting.

    When using LLM generated code they (and the LLM) won't be checking their repo for existing code so it ends up being a copy pasta soup.

    44
  • technology Technology *deleted by creator*
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    8 months ago 100%

    You can install alternative android distros on an android phone that will keep updating long after the manufacturer has stopped. For example lineage OS which supports lots of devices (but not all).

    There are also Linux distros targeted to mobile devices.

    You just need to pick a device that is supported when buying.

    3
  • asklemmy Ask Lemmy Good “Buy for Life” Brands
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUT
    uthredii
    8 months ago 100%

    Doc martens are not so great quality now. The general consensus is that Solovair are the spiritual successor (in terms of quality) to what Dr Martens were. This video has more info: https://youtu.be/vkhCcvfVHRs?si=21bH9fSvkNgmjwm1

    For laptops O would recommend framework laptops. The idea is that they have upgradable and repairable.modules. You can follow them on mastodon too: @frameworkcomputer@fosstodon.org And we have a Lemmy community too: !framework@lemmy.ml

    38
  • nix
    Nix / NixOS uthredii 10 months ago 100%
    SnowflakeOS - Creating a GUI focused NixOS-based distro discourse.nixos.org

    Website: https://snowflakeos.org Github: [SnowflakeOS · GitHub 247](https://github.com/snowflakelinux) Discord: [SnowflakeOS 29](https://discord.gg/6rWNMmdkgT) Matrix: https://matrix.to/#/#snowflakeos:matrix.org

    43
    0
    indiegaming
    Indie Gaming uthredii 10 months ago 78%
    New single planet fantasy game from Hello Games https://www.youtube.com/watch?v=jKQem4Z6ioQ

    cross-posted from: https://programming.dev/post/6969301 > cross-posted from: https://programming.dev/post/6969300

    8
    0
    gaming
    Gaming uthredii 10 months ago 91%
    New single planet fantasy game from Hello Games www.youtube.com

    cross-posted from: https://programming.dev/post/6969300

    39
    11
    commandline
    commandline uthredii 1 year ago 100%
    The case for nushell https://www.jntrnr.com/case-for-nushell/

    If you haven't heard of it before, nutshell is an alternative to bash/zsh: https://github.com/nushell/nushell

    40
    9
    commandline
    commandline uthredii 1 year ago 97%
    Zellij - a terminal workspace with batteries included zellij.dev

    [This video has an interview and demo with the creator]( https://youtu.be/lmcrVRM9V4k?si=WxJivCRDgeOW8W4P) (the demo starts around 10:38)

    67
    22