5
[-] ishanpage@programming.dev 4 points 9 months ago

This is a FastAPI feature - Autogenerated documentation using Swagger.

You can turn it off by setting docs_url=None

In your linked main.py:

app = FastAPI(
    title="IslabTweet",
    description=__doc__,
    docs_url="/", # change this to None to disable the docs
    version=VERSION,
)

Hope this helps!

[-] ishanpage@programming.dev 6 points 10 months ago

Dict keys are case sensitive in python. In your code I can see the key you've used has a capital M in Amarok. Maybe that's the issue here

30

An adventure fuelled by scratching an itch

[-] ishanpage@programming.dev 31 points 11 months ago* (last edited 11 months ago)

While jc is a great tool, and I'm definitely a fan, I believe the real solution to the overarching problem lies in a paradigm shift: see nushell

76
[-] ishanpage@programming.dev 5 points 1 year ago

I agree that from a completeness point of view, the official manual is better (I've linked it at the bottom of my post as well), however I'd love to hear your specific thoughts about why you feel this particular article is not good- I've tried to include fully interactive examples for the most common tasks I find myself doing with jq everyday. This feedback will help me improve my own skills as well, so I would appreciate it very much.

63

I wrote a guide about jq which has interactive examples

[-] ishanpage@programming.dev 6 points 1 year ago

It is possible to live on that, there are people who live on less than it. Personally all of it went to supplementing my Mom's income so we could survive.

There are plenty of entry level jobs in India that offer those kinds of wages. There are more that offer less.

Yes, it's exploitative.

[-] ishanpage@programming.dev 7 points 1 year ago

I'm from India so these numbers might be a bit weird. My yearly comp has basically gone like this from 2017 to 2023

$0.7k -> $3.6k -> $4.8k -> $20k

[-] ishanpage@programming.dev 6 points 1 year ago

Unfortunately, no one can be told what a monad is. You have to see it for yourself (then you won’t be able to explain it to anyone)

[-] ishanpage@programming.dev 5 points 1 year ago

The scenario is not ficticious. It's taken straight from my first job, but I had to leave out specific details. The application being developed had something to do with DRM, so that might explain the weird requirements.

The lesson is that sometimes business will require you to force users to update their version, and/or enable specific features for specific subsets of users. So you should have such a mechanism in place before it is required, otherwise you will end up doing hacky things like breaking the server to do what needs to be done.

Systems such as these are actually fairly common in enterprise, but since it was my first job, I had not planned ahead for this because I had no idea.

44
17
46
34
Git man page generator (git-man-page-generator.lokaltog.net)
47

Transcription of a talk given by Cory Doctrow in 2011

[-] ishanpage@programming.dev 10 points 1 year ago

How often do a few nanoseconds in the inner loop matter?

It doesn't matter until you need it. And when you need it, it's the difference between life and death

26
[-] ishanpage@programming.dev 5 points 1 year ago

Haha this is exactly me. That habit of losing the knowledge rapidly post investigation is something I'm trying to break, and that's part of the reason I banged out this blog post immediately after my itch was satisfied.

The "I have to tell people about this NOW" vibe also carried me through completing my website (just so I could publish this blog post)

[-] ishanpage@programming.dev 5 points 1 year ago

Hey Thanks for reading, and I'm glad you found it interesting.

To my understanding, Webfinger provides a standard API for discovering the user profile details no matter the software running on the node.

For example,

$ curl https://programming.dev/.well-known/webfinger\?resource\=acct:snowe@programming.dev | jq
{
  "subject": "acct:snowe@programming.dev",
  "links": [
    {
      "rel": "http://webfinger.net/rel/profile-page",
      "type": "text/html",
      "href": "https://programming.dev/u/snowe"
    },
    {
      "rel": "self",
      "type": "application/activity+json",
      "href": "https://programming.dev/u/snowe",
      "properties": {
        "https://www.w3.org/ns/activitystreams#type": "Person"
      }
    }
  ]
}
[-] ishanpage@programming.dev 4 points 1 year ago

Glad you liked it! Thanks for reading ❤️

119

I recently went on quite a rabbit hole regarding the .well-known directory, and wrote about it.

view more: next ›

ishanpage

joined 1 year ago