Details
-
AboutComputer Science student interested in everything Absolutely love using Python
-
SkillsPython, Django, Docker, NGINX
-
LocationMinsk
Joined devRant on 8/6/2020
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
Fuck this
I get to work with API where you CAN authenticate with username/password and get a token
But you CAN'T get user info from token (auth response contains ONLY token)
So what I have to do:
1. Get token
2. Request ALL FUCKING USERS and load them into my DB
3. Search through local DB by username and, yeah, here I go
Now I need to have a cron job to update user DB 1/2 times per day
I can't think of ANY reason not to allow this8 -
HOLY FUCK I never thought that using async websockets in Django 3.x will be THAT much pain in the ass...
Also my next contribution will be their docs for sure, the examples are so fucking bad (linters are crying and begging me to kill them)3 -
Help
Recently I've decided to start using music streaming services insted of my local library
It's because I use ubuntu and setting up iTunes through wine is hell
So the thing is that, although Spotify supports using local files ubuntu 20.04 client crashes when I try to add a music source
Also i"m afraid i"m unable to add local music to my playlists
I live in Belarus and some music is blocked (or censored only) for me, so I really need to have access to local files
Is there even a point of using Spotify then? I like the UI, the automatic playlists and the speed, but music availability is crucial for me5 -
Fuck MEGA cloud
Website just won't load
Sometimes updates are not reflected in cloud, so you can't download new folder you have just synced
Andriod app is total shit, you can't even sync files
What cloud storage are you using?8 -
Fuck LinkedIn
Fuck their closed API
Microsoft always steals your PRIVATE info, but is scared of us using their PUBLIC info
Fucking morons
I can just use selenium and still have all the info I need
Then why the fuck would you close API to approved only
Can't you just track the traffic????7 -
first() function in python...
Because it does not exist
Why have a any() that returns True if any of the items in iteratable are True
But what if I need to get the item itself...
In C it's as easy to write as the any func The performance will be the same6 -
I fucking hate this president
I live in Belarus and now we have a lot going on
And my internet connection does not go brrr as it should be
It's not blocked completely like it was on September 9-12 but it's annoying AS FUCK
At least my music library is offline
Hope I will be able to even post this1 -
Default dict that returns default dict on configparser to replace "if/try/nested .get()" to just "or"
In the end I had just
data = source or source1 or source2 or source3 -
CoolFuckingStoryBob
So I found a job that fit my stack perfectly
I phoned the CEO and we had a mini phone interview, it was easy
And the next day I had an offline interview
It was fast as fuck. I answered all of the questions, showed my projects and we were done in 30 mins, pretty good huh
So the CEO tells me to wait a week
It's strange but ok
The week passes, and you guess what
"We can't hire you, you psychological portrait does not fit in our team..."
I'm like bitch, what the fuck
I had declined other offer cuz I though there was no reason not to hire me
Also this is a small company tho, I should've saw it coming 😐15 -
Python builtins are great
But why the fuck there is STILL no first() function
It's mildlyinfuriating10 -
Everywhere I go I see these "Become senior in 3 weeks" courses
That's good and all
But when the fuck will you teach your students to debug and search your errors on google/stackoverflow
This is so fucking ridiculous
Them guys can't even read git push/pull errors and wonder why they make changes to the code but nothing happens10