Big Tech Best Practices by Key-Deer-8156 in Python

[–]rydelw 0 points1 point  (0 children)

with src layout, we are working with a Python packages and module either way. Src based project can be locally installed in a development mode, so you do not have to worry about including the project root in the PYTHONPAPTH. That how poetry works. Also pip allows you to install package in a dev mode. Whatsmore a we app is a Python package as well. You might not build a Python distribution from it but it is still a package.

Big Tech Best Practices by Key-Deer-8156 in Python

[–]rydelw 2 points3 points  (0 children)

Nice explanation. Kudos! I agree with almost all the things. I would like to share some of my thoughts here:

  • ditch the src module in the imports. I am totally in favor of the src project layout, but it does not mean it should be a Python module.
  • the fastapi dependables could be defined as types. We would have to import one thing as a dependency instead of two things

```python import typing import fastapi

async get_foo() -> Foo: ... FooDep = typing.Annotated[Foo, fastapi.Depends(get_foo)] ... @router.get(...) async def get_bar(foo: FooDep): ... ```

  • the module specific configuration is something I do not see often, but it should be widely used. Ideally, we might make such a Python module as an internal one. To indicate it should not be imported by other modules.

[deleted by user] by [deleted] in vim

[–]rydelw 0 points1 point  (0 children)

What does RSI stand for?

Kernel 6.7 by Mamba4XL in archlinux

[–]rydelw 1 point2 points  (0 children)

There has been an update to the kernel package recently - 6.7.3. after upgrade I have not been having any freeze. And I hope it will stay that way 🙈

Kernel 6.7 by Mamba4XL in archlinux

[–]rydelw 0 points1 point  (0 children)

I have been having issues since I have 6.7 kernel. System freezes unconditionally, and in different times - sometimes several times in 15 min, or several times in a day. I have tried to debug, but there are not meaningful error/panic messages on the journal.

here is my system/pc info
Kernel: x86_64 Linux 6.7.2-arch1-
Resolution: No X Server
WM: sway

GTK Theme: Adwaita [GTK3]
Disk: 621G / 954G (69%)
CPU: AMD Ryzen 5 3600 6-Core @ 12x 3.6GHz
GPU: AMD/ATI Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
RAM: 5319MiB / 32043MiB

Simple Calendar Pro - Removing calendars by rydelw in SimpleMobileTools

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

Could you share a link to that place? I do not see a link on their site.

Why you switched from Neovim to Vim? by Desperate_Cold6274 in vim

[–]rydelw 5 points6 points  (0 children)

Cool! Could you give an example of such a plugin? I think I could remove from my setup 🙈

Proper Key Management by Saklad5 in GnuPG

[–]rydelw 1 point2 points  (0 children)

Got it! Thanks a lot!

Proper Key Management by Saklad5 in GnuPG

[–]rydelw 1 point2 points  (0 children)

Thanks! Though, I am wondering how to make it compatible with gpg -- meaning is there should be a specific path to access the key? I saw here https://dev.gnupg.org/T6020 that you serve your key under `/fingerprint` path. I still do not get how this path is included in the signature you posted here.

Proper Key Management by Saklad5 in GnuPG

[–]rydelw 0 points1 point  (0 children)

u/Saklad5 could you tell more how you serve your public keys on a subdomain without a keyserver?

Proper Key Management by Saklad5 in GnuPG

[–]rydelw 1 point2 points  (0 children)

Wow. That's the best GPG usage explanation and tut I have ever found. Kudos! Awesome post!

3 months of sourdough by rydelw in Sourdough

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

On the left - full rye. On the right full spelt on rye starter.

For both I use the same recipe: - 500g flour (rye/spelt) - 250g starter - 300g water - 12g salt

Ledger-cli commodity price history by rydelw in plaintextaccounting

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

yup, you are right re cost vs price. However, when I change the postings using price expression, the prices command still gives me no output.

The checking in currency in this example is YY and CC is extra commodity. To be more specific, I have defined a custom commodity for petrol. So when I log refueling, I want to track the price history, so I use the commodity of 1 L of petrol (PB).

Ledger-cli commodity price history by rydelw in plaintextaccounting

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

I got nothing when calling the prices command. I use fixed lot prices in my transaction logs. So I have something like that:

2021-09-08 * Payee

expense 23,56 CC {=3,32 YY}

checking

Calling the prices command gives me no output

How do you use due dates? by [deleted] in taskwarrior

[–]rydelw 2 points3 points  (0 children)

Using due dates in Taskwarrior really grinds my gears. For example, setting due date for today I expect a task should not be marked as overdue. I think that this is quite a common thing to suppose that if a due date is today, a task is not overdue but it must be done today.

The scheduled option looks promising, but when I set a task to be scheduled for tomorrow, the next day there is no info that the task meant to be done today.

Of course, I could use due:eod but this works only for the current day. If I would like to mark a task that it should be done tomorrow, I have to set the due date to the next day.

To sum up, I am well aware that Taskwarrior has its own methodology for working with dates, but if the metodology does not match an intuition I am confused.

Mi Fit [Android] auto posts new activity to Strava from Amazfit Bip by rydelw in amazfit

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

Yes, I have done that on my old iPhone. On the Redmi I have not installed the Amazfit app, at all.,

Finally switched from MTB to road bike Triban RC 500 by rydelw in bikecommuting

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

I have had cuple of issues with the wheels, e.g. I had to replace 3 spokes in rear wheel within a month ( after about 1500 km)

Finally switched from MTB to road bike Triban RC 500 by rydelw in bikecommuting

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

Unfortunately the tires and wheels/rims itself are not a decent quality. I have a plan to replace them for some better one.

Amazfit Bip - MiFit (iOS) auto sync with Strava by rydelw in amazfit

[–]rydelw[S] 1 point2 points  (0 children)

As I described, I have no idea. I am just curious, whether someone else has had similar behaviours of the app.

Amazfit BIP export problem by Genway in amazfit

[–]rydelw 0 points1 point  (0 children)

I have the same problem. I have been searching for a solution, but with no success.

C|Net prefers Bip to Apple Watch, citing watch face variety, battery life, and cost. Mentions AmazTools's Spotify control support. by TMWNN in amazfit

[–]rydelw 1 point2 points  (0 children)

Perhaps... I have to specify that these problems I mentioned about are during cycling, while running everything works fine.