It’s still a draft
, but that’s just a weirdly unnecessary change, IMO. There is no need from anyone to have the versions shift by 11 versions.
It’s still a draft
, but that’s just a weirdly unnecessary change, IMO. There is no need from anyone to have the versions shift by 11 versions.
Protip: pip install pyupgrade
And then find . -name '*.py' -not -path '*.tox*' -print0 | xargs -0 pyupgrade --py310-plus
in your repo to update what can be updated.
BTW, pyupgrade’s creator, asottile
(that’s his name) also has an informative channel: Anthony Writes Code where he explains Python features, or goes into interesting bugs he ran into, etc. The good stuff.
The fact that Blizzard was able to piece together a reconstruction of WoW Classic v1.12 is more of the exception to the rule.
I wish they had a separate Query Language list - it’s weird seeing SQL sit between Python and Typescript…
I also think it would be a good way to introduce more people to non-SQL query languages (like Quel, PRQL, ISBL, jq, Alpha (even though it’s still not been implemented), SaneQL, EdgeQL, and many more), because it generally feels like it’s the only query language available ever… Which it’s not.
Like (Neo)vim, it’s a PDE: Personalized Development Environment
Props to TJ DeVries for coming up with that term.
This includes the Python extension, so no Python for you (or at least no Pylance ;_;)
Edge does that shit too with JSON… It made me switch to Firefox, so good for me (other than that Firefox has a tendency to enshittify too, but in different ways).
Same for cd -
. Nice if you want to go to /etc/blah
, and then back to where you were.
You can also use pushd
and popd
which will push and pop directories from a stack, if you need to do something more complex.
Also, if you want to switch faster between branches, slap this in your ~/.gitconfig
under [alias]
:
co = !git checkout $(git for-each-ref refs/heads/ --format='%(refname:short)' | fzf)
Presuming you’ve got fzf
installed, you can now git co
(co = checkout) to get a menu with fuzzy find capabilities to switch between branches. Nice if branch names are long/similar/only-different-at-the-end.
fzf
is dope.
Kids these days….
These Ctrl keys are shortcuts from Emacs - there’s a Bash settings to switch to vi-mode if you so wish. Anyway, the first Emacs was written in 1981, probably on a PDP-11, which did not have Home and End! Same reason Neovim uses “yank” instead of “copy”. ctrl-c
/ctrl-v
did not exist as a shortcut back when vi was being written!
I know you didn’t intend to be mean or anything, but maaaaaan kids these days don’t know their history (not entirely your fault, btw)😆
It integrates GPT-4o into a .NET app - the article is fine. Lemmy just doesn’t like it being injected into everything (even when it could improve the UX, because “can’t give them an inch” or something implied).
This article isn’t a grift, just a simple tutorial. Nothing to be mad about.
edit: OP, maybe next time specify which AI is being used instead of using the nebulous “AI” term.
You didnt say he was wrong though.
I believe shift-insert
and shift-del
can function as copy and paste in case your ctrl button doesn’t work.
This is from the top of my head, so might not be correct.
These go back to windows 3.11, I believe. Ran into them when my ctrl button once didn’t work via remote control, IIRC.
I tried it a little - being able to run rye sync
and not even having to worry about Python versioning is sooooo nice.
Might want to look at Pixi - written in Rust, BTW, but effectively seems to be a drop-in replacement that’s at least faster than Conda.
edit: link: https://prefix.dev/
It comes with built-in ruff
and uv
, and can handle Python versioning for you!
Not sure if they want to eventually dissolve Rye
into uv
or what, but for now it’s one of the best (better than Poetry, IMO)
edit: it also uses the pypoetry.toml standard, something Poetry doesn’t (because Poetry predates pyproject.toml becoming a standard).
One possible downside: I’ve heard Rye doesn’t honor XDG, which means it has its own location for its config. I don’t mind, but perhaps you do.
A second possible downside is that Rye doesn’t let you centralize your venvs, so each .venv
goes into each project folder, so no using virtualenvwrapper
with workon
to jump between projects. zoxide can alleviate that problem, or presuming you have a ~/dev
folder or similar, you could write a bash function that ls
’ that folder and lets you select a folder via fzf
? Go ask ChatGPT about it or something.
edit2: link: https://rye.astral.sh/guide/installation/
Does multiple research papers count? All of them related to the Relational Model, the foundation for relational database management systems. I’m also currently digging through the Postgres manual (only 3000 pages short).
While yes, the way I had it structured looked like a CSV if you squinted a little, I do fully agree AWK can’t be used for just any old JSON.
jq
is dope, but that language still feels pretty confusing IMO.
Yesterday, when I had a file with a list of JSON objects, and I wanted to move the date field at the end to the beginning, so I used regex find and replace to move it. Something like \{(.*?), ("date": ".*?")
in Search, and then {$2, $1
in replace (or something close to it).
Yes, I refactor code and data using regex. I can’t be arsed to learn AWK (even though I should).
You might also want to check the latest Ladybird update: https://youtu.be/cbw0KrMGHvc
pyproject.toml
track the dependencies and dev-dependencies you actually care aboutuv.lock
file that contains each and every lib that’s needed.uv sync
anduv run <application>
is pretty much all you need to get going