@ishanpage@programming.dev avatar

ishanpage

@ishanpage@programming.dev

Self taught developer

Previously known as @yourstruly

Come hang out with me on Mastodon

Check out my blog, where I write about what I have learned

This profile is from a federated server and may be incomplete. Browse more on the original instance.

ishanpage,
@ishanpage@programming.dev avatar

This is a FastAPI feature - Autogenerated documentation using Swagger.

You can turn it off by setting docs_url=None

In your linked main.py:


<span style="color:#323232;">app </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#323232;">FastAPI(
</span><span style="color:#323232;">    title</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"IslabTweet"</span><span style="color:#323232;">,
</span><span style="color:#323232;">    description</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;">__doc__,
</span><span style="color:#323232;">    docs_url</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">"/"</span><span style="color:#323232;">, </span><span style="font-style:italic;color:#969896;"># change this to None to disable the docs
</span><span style="color:#323232;">    version</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#0086b3;">VERSION</span><span style="color:#323232;">,
</span><span style="color:#323232;">)
</span>

Hope this helps!

ishanpage,
@ishanpage@programming.dev avatar

This is strange. I tried your snippet with your file and it works for me:


<span style="color:#323232;">(env) ➜  testing cat x.py
</span><span style="color:#323232;">from mutagen.id3 import ID3
</span><span style="color:#323232;">tags = ID3(</span><span style="color:#183691;">"myfile.mp3"</span><span style="color:#323232;">)
</span><span style="color:#323232;">print(tags</span><span style="font-weight:bold;color:#a71d5d;">[</span><span style="color:#183691;">"TXXX:FMPS_Rating_Amarok_Score"</span><span style="font-weight:bold;color:#a71d5d;">]</span><span style="color:#323232;">)                                                                                                                                               
</span><span style="color:#323232;">(env) ➜  testing python x.py
</span><span style="color:#323232;">0.78
</span>
ishanpage,
@ishanpage@programming.dev avatar

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

First year CS student currently on vacations looking for programming course to follow.

Hi, I’m a first year CS student and this 3 month period of vacations I want to follow a good free course on programming. If it’s possible, I also want to learn how is the process in which a code written in a text editor can become an executable with it’s GUI in the operating system (currently using Linux), because I really...

ishanpage,
@ishanpage@programming.dev avatar

This is the best option. I recommend Nand2Tetris to everyone! It’s an incredibly well designed and executed course

ishanpage,
@ishanpage@programming.dev avatar

Ooh, I hadn’t heard of Quarto before, but it looks really good! Thanks for mentioning it!

ishanpage,
@ishanpage@programming.dev avatar

I wanna go to one so bad! But they never happen in my city…

ishanpage,
@ishanpage@programming.dev avatar

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

ishanpage,
@ishanpage@programming.dev avatar

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.

what's the highest increase in salary you've had or seen?

I’m an 8 year data center network engineer who recently broke 100k for the first time. When I got asked my salary requirements I actually only asked for 90k as my highest previous salary was 80k with lots of travel, then I found out they gave me 100k because it was the minimum they could pay someone in my position. I’ve read...

ishanpage,
@ishanpage@programming.dev avatar

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,
@ishanpage@programming.dev avatar

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,
@ishanpage@programming.dev avatar

Have you seen all the people just stuffing their profile README full of random graphics and stats and badges

ishanpage,
@ishanpage@programming.dev avatar

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,
@ishanpage@programming.dev avatar

Ohhhh, this site is a great find. Exploring all the articles right now. Thanks!

ishanpage,
@ishanpage@programming.dev avatar

eBPF is something that I’ve been exploring recently for work. I was quite blown away when I realized the true potential. I did find it difficult to get started, and while this article is a good introduction, some example code or hands on would be nice to have

ishanpage,
@ishanpage@programming.dev avatar

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.

I can't log into pd in jerboa?

So, it used to work just fine. Then jerboa became basically unusable due to some bug. That was a few weeks ago. I saw an update was available, so I thought to give it another try. It’s much more stable after the update, and my lemmy.one account works just fine. But when I try to log in with this account on jerboa, I get an...

ishanpage,
@ishanpage@programming.dev avatar

I had this same problem, after clearing my Jerboa data it worked fine. Hope that helps

ishanpage,
@ishanpage@programming.dev avatar

This is great! I’ve done something similiar for Laravel in the past.

What I’ve noticed is that as projects move forward in their development cycle, something like this often becomes necessary for certain functionality to require services to be factored out and then worked on by separate teams.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • tacticalgear
  • DreamBathrooms
  • cisconetworking
  • osvaldo12
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • Youngstown
  • ethstaker
  • rosin
  • slotface
  • mdbf
  • kavyap
  • anitta
  • InstantRegret
  • Durango
  • tester
  • everett
  • cubers
  • GTA5RPClips
  • khanakhh
  • provamag3
  • modclub
  • Leos
  • normalnudes
  • megavids
  • lostlight
  • All magazines