ishanpage
13
28
ishanpage

@programming.dev

ishanpage 27 points 3 years 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

path: 0 5945625, hotness: undefined, score: 27, children: 5
ishanpage 14 points 3 years 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

path: 0 1060728 1061185 1061475, hotness: undefined, score: 14, children: 0
ishanpage 6 points 3 years 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

path: 0 6641169 6641799 6659724, hotness: undefined, score: 6, children: 1
ishanpage 6 points 3 years ago

Glad you liked it! Thanks for reading ❤️

path: 0 785027 785139, hotness: undefined, score: 6, children: 0
ishanpage 6 points 3 years 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

path: 0 3621799, hotness: undefined, score: 6, children: 3
ishanpage 6 points 3 years 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)

path: 0 3317319 3350970, hotness: undefined, score: 6, children: 6
ishanpage 5 points 3 years 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.

path: 0 3621799 3628745 3629668, hotness: undefined, score: 5, children: 0
ishanpage 5 points 3 years 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.

path: 0 1762222 1766120 1784013 1786599, hotness: undefined, score: 5, children: 1
ishanpage 5 points 3 years 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"
      }
    }
  ]
}
path: 0 785512 785681, hotness: undefined, score: 5, children: 2
ishanpage 5 points 3 years 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)

path: 0 788158 788321, hotness: undefined, score: 5, children: 0
ishanpage 5 points 3 years 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.

path: 0 5139276 5139463, hotness: undefined, score: 5, children: 1
ishanpage 4 points 3 years 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!

path: 0 7324446, hotness: undefined, score: 4, children: 6
ishanpage 3 points 3 years ago

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

path: 0 3104671, hotness: undefined, score: 3, children: 0
ishanpage 3 points 3 years ago

OTOH, the more pythonic one will probably perform worse, but I'm not familiar enough with Python internals to make that claim without benchmarks.

I'll try it out and add the data in the article

path: 0 1003153 1016867, hotness: undefined, score: 3, children: 2
ishanpage 3 points 3 years ago

I'll be sure to read it when you do :)

path: 0 788158 975260 1004927 1017829, hotness: undefined, score: 3, children: 0
ishanpage 3 points 3 years ago

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

path: 0 6610869 6641057, hotness: undefined, score: 3, children: 0
ishanpage 2 points 3 years ago

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

path: 0 1672217, hotness: undefined, score: 2, children: 0
ishanpage 2 points 3 years ago

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

path: 0 5945597, hotness: undefined, score: 2, children: 0
ishanpage 2 points 3 years ago

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

path: 0 3456507 3456659, hotness: undefined, score: 2, children: 1
ishanpage 2 points 3 years ago

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

(env) ➜  testing cat x.py
from mutagen.id3 import ID3
tags = ID3("myfile.mp3")
print(tags["TXXX:FMPS_Rating_Amarok_Score"])                                                                                                                                               
(env) ➜  testing python x.py
0.78
path: 0 6641169, hotness: undefined, score: 2, children: 3

thanks for using Leebra!

go to feed...