Hacker Newsnew | past | comments | ask | show | jobs | submit | tandav's commentslogin

Still no option to store virtual envs outside projects after a year

https://github.com/astral-sh/uv/issues/1495


This is the most important missing feature to me as well.

I've written a lightweight replacement script to manage named central virtual envs using the same command syntax as virtualenvwrapper. Supports tab completion for zsh and bash: https://github.com/sitic/uv-virtualenvwrapper


Inspired by this I made a similar thing for direnv: https://github.com/georgek/dotfiles/blob/01fb53619adc7269824...

A problem I have now, though, is when I I jump to def in my editor it no longer knows which venv to load because it's outside of the project. This somehow used to work with virtualenwrapper but I'm not sure how.


The UV_PROJECT_ENVIRONMENT variable can be used as a workaround: https://docs.astral.sh/uv/concepts/projects/config/#project-...


`UV_PROJECT_ENVIRONMENT` works fine for that. That's what I use for my venv-managing Fish functions: https://gist.github.com/akx/c357bbda9facbe41f08747a2622795c4


I'm waiting for this issue to be done: Add an option to store virtual environments in a centralized location outside projects https://github.com/astral-sh/uv/issues/1495

I have used virtualenvwrapper before and it was very convenient to have all virtual environments stored in one place, like ~/.cache/virtualenvs.

The .venv in the project directory is annoying because when you copy folder somewhere you start copying gigabytes of junk. Some tools like rsync can't handle CACHEDIR.TAG (but you can use --exclude .venv)


As an admin of my personal website, I completely disable all Cloudflare features and use it only for DNS and domain registration. I also stop following websites that use Cloudflare checks or cookie popups (cookies are fine, but the popups are annoying).


The lack of s3-like remotes support was the reason I switched from borg to restic


rclone has dedupe, I think it does what restic can do plus multiple cloud support.

rclone crypt also does encryption.

so far I think rclone has it all for me.


Rclone doesn’t have deduplication. That’s just finding files with the same name. It’s different from deduplication used in backup software.

Think of grinding data in a big machine, and removing blocks that are redundant. You may have every file to be a single copy, and get significant space reduction.


Rclone also has a hash-based dedupe mode. Still different from borg, but it can be a little more robust than name-based.


They also work together. restic uses rclone for backends other than the officially supported 7. rclone also has built-in restic integration.

rclone on it own is a syncing solution not backup.


>restic uses rclone for backends

This is cool. It sounds like I can set up restic to copy my backups to multiple S3 buckets, or even to an S3 bucket at the same time as a local drive using a union (https://rclone.org/union/) remote


rclone and restic are not direct alternatives. They have a slight overlap, but are also different. Rclone is more versatile for moving/copying files. Restic has snapshotting, pruning, client side encryption, deduplication, and compression. Restic actually supports rclone as a backend.


Restic also offers encryption and compression. That’s the selling point for me when dealing with dozens of TB


Also Atom feeds supports pagination https://www.rfc-editor.org/rfc/rfc5005#section-3


Yes, dystopian soulless vibe of AI images is unpleasant.


soullessness

that's ai generated content main trait


There is also virtualenvwrapper. It’s quite handy to create, list, remove virtual environment. I prefer to store all venvs in ~/.cache/virtualenvs instead of .venv in project directory, makes it more clean, no need to exclude for backups or git repository.

https://virtualenvwrapper.readthedocs.io/en/latest/


It's annoying that there's no easy way to export data from the Apple Watch. The only option is to export complete data from the Apple Health app, which results in a large ZIP file. This file takes about 10 minutes of preprocessing before the whole archive becomes available. It would be much better if I could export only the new records, like those from the last day.


You might find this helpful: “Share your health and fitness data in XML format”, https://support.apple.com/guide/iphone/share-your-health-dat...


Helpful. Do you know of any way to export the screen time from iphone/ipad?


Unfortunately not, although it appears to be possible on jailbroken devices. https://www.mac4n6.com/blog/2018/8/5/knowledge-is-power-usin... (found via this gist: https://gist.github.com/0xdevalias/38cfc92278f85ae89a46f0c15...)


I use health auto export and it works pretty well.

https://www.healthexportapp.com/


Sounds like a good idea for an app. I believe all that data is available through HealthKit. ChatGPT it up :)


I believe most of us sleep fewer than 3 times per day, so writing down times and doing a few subtractions and a little data entry once a week should be under 1 min/day to have everything digitised. (that said, https://xkcd.com/1205/ suggests it'd be worth spending up to 21 hours to fully automate)


It's not quite what you're asking for, but you can retrieve heath records using a Shortcut. I'm not sure if detailed sleep data is retrievable this way, but you at least can get times to bed, times woken up, etc.


It would be nice to have some sort of demo


Imagine Google removes RSS for YouTube channels


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: