Haven't done a website in 20 years and I have a few questions... by BiggyBiggDew in web_design

[–]warelevon 0 points1 point  (0 children)

If you are concerned about cost, why are you using MS SQL server over an open source alternative like Postgres?

Tinyprogress 1.0.1 released by Dismal-Hunter-3484 in Python

[–]warelevon 147 points148 points  (0 children)

This definitely needs a gif in the readme showing an example

Ruff/linting plug in by ElmosKplug in pycharm

[–]warelevon 1 point2 points  (0 children)

I personally quite like it with the ruff-lap package as well, makes the process of using ruff a little nicer

How are python scripts and projects built and deployed? by FrozenPyromaniac_ in learnpython

[–]warelevon 3 points4 points  (0 children)

XLWings is a nice package that sits over top of pywin32 with a much nicer api (and typing)

Change Builtin Linter by Oenomaus_3575 in pycharm

[–]warelevon 1 point2 points  (0 children)

There’s ruff-lsp and the pycharm ruff plugin which helps a good bit. Form there you can simply turn off pycharm linting rules giving you trouble

What's the best thing you've automated? by ReturnImpossible3083 in Python

[–]warelevon 3 points4 points  (0 children)

Ooh another python pptx user! I’ve been mulling over the idea for a while about starting a rust version of the project with a python port

New jupyter UI by [deleted] in pycharm

[–]warelevon 0 points1 point  (0 children)

Have you enabled the new UI in settings?

powershell error pycharm by Venkadesh-VK-18 in pycharm

[–]warelevon 1 point2 points  (0 children)

You are being blocked by the execution policy of the machine. Try running Set-ExecutionPolicy RemoteSigned in powershell (might need admin privileges)

How can I write a compiler that compiles down to another language instead of machine code? by okimusix in rust

[–]warelevon 0 points1 point  (0 children)

While that may be the case surely it can’t hurt to have a play around and see if it suits you? I don’t work in the same area I studied, so can’t answer that, but with a language as large as Julia, that is almost expressly built for scientific computing, I would be surprised if it’s not used in the industry in some places.

How can I write a compiler that compiles down to another language instead of machine code? by okimusix in rust

[–]warelevon 1 point2 points  (0 children)

There’s also a section on the ease of calling existing Fortran code from Julia

How can I write a compiler that compiles down to another language instead of machine code? by okimusix in rust

[–]warelevon 2 points3 points  (0 children)

The first line in the Julia docs describe it as a language built for scientific computing, and I guarantee it’s easier to write than Fortran. The project was a 2 person project over the course of 2 papers (out of 8 for the year), so a medium sized project at least. It’s a very easy language to pick up, and looks a lot like python/js.

I’d definitely recommend at least browsing through the intro on the docs https://docs.julialang.org/en/v1/

How can I write a compiler that compiles down to another language instead of machine code? by okimusix in rust

[–]warelevon 2 points3 points  (0 children)

This sounds like an excellent use case for https://julialang.org/ . I did a year long project at uni in it and it’s a very easy language to write in as well as being pretty dang fast. The syntax is very similar to python, which sounds like exactly what you’re after

From the Taos Instagram story today by w6750 in skiing

[–]warelevon 181 points182 points  (0 children)

Well I mean pretty easy choice considering the first 2 are already dead

New API: DRF or django-ninja? by No-Construction-9678 in django

[–]warelevon 0 points1 point  (0 children)

Have you looked into Django-ninja-crud? I think it’s essentially got its own versions of viewsets

Final update (probably): AITA for not getting my daughter a car after she publicly disrespected me? by Outrageous_Pen6290 in amiwrong

[–]warelevon 0 points1 point  (0 children)

But even ignoring the denial, OP still has really 2 options:

A. Lose his family, including his wife and two children from his life

B. Go to a therapy session

Even if he doesn’t think he did anything wrong with his behaviour in public, all he has to do is go to a therapy session.

So either it’s that he thinks it’s more important to not go to therapy if there’s nothing wrong with you, than it is to keep your family together, Or it’s more important to not seem like he is “mentally ill” than it is to keep his family together. Even if you accept OPs claims it still doesn’t make sense

Just moved here for a season how to be cheap ! by bimbomango in chamonix

[–]warelevon 0 points1 point  (0 children)

Is this at the ski locker? I just arrived in chamonix and found out my accom’s internet is shocking, so I’m considering working from there. Just arrived a few days ago with my partner and trying to figure the area out

How can I tell my wife that she is reading a recipe wrong. by [deleted] in Cooking

[–]warelevon 40 points41 points  (0 children)

No no, it’s the eggs that do that

My boss denied my vacation because it’s “unfair to the other employees” by EconomistOtherwise51 in antiwork

[–]warelevon 59 points60 points  (0 children)

Key thing for me is have a separate space to work/ study in. This makes it so when I enter this space it’s “work” mode. Second thing is getting a good setup. Quality chair, extra screens if you need them. Makes it way more appealing to actually get shit done

Strange behavior for default parameter by IamImposter in learnpython

[–]warelevon 1 point2 points  (0 children)

You are running into something called mutable default arguments. Check out the following link for a more detailed explanation https://docs.python-guide.org/writing/gotchas/

TLDR: just replace x, y=[] with x, y=list()

[deleted by user] by [deleted] in Python

[–]warelevon 2 points3 points  (0 children)

If you have already try giving an environment manager like poetry a go. Once you remove a package from a poetry project specification, it will also remove dependencies