#maybe i'll say fuck it and try python for once
Explore tagged Tumblr posts
lizclipse · 10 months ago
Text
fucking hell this is why i tend to use rust. i'm trying to find a library for the tumblr API in C# and there's one that's years old and using old standards so i tried seeing how hard it is to make one and immediately ran into the fact that C# cannot deserialise discriminated unions without having to write custom deserialisers because it just doesn't support that as a language feature
frustrated, i said fuck it and had a look to see if there was one in rust. there is, and it's been updated recently, so i can go in and make PRs if i need to. i cannot escape this language
5 notes · View notes
jodjuya · 26 days ago
Text
Oy vey, getting tumblr_backup to install and run was a headache. Seems to be working okay now though. Did a test run on my sideblog of projects because there's relatively few posts on there, and once I got the utility working it came out fine.
My bumbling, stumbling, toe-stubbing journey:
Okay, let's go have a look at this GitHub!
Hmm, I was expecting a windows utility but this looks Linux-y
Reboot laptop into the Kubuntu partition
Back to the GitHub and following its instructions
Get my API key created. Misunderstand the instruction relating to 'looking for the "API key =" line of the source code' and spend a while hunting through the page source of the Tumblr oauth webpage looking for my key. 🤦🏻‍♂️
Figure out that the instructions were telling me to edit the python script to copy/paste in my key, which is front and centre in plaintext on the oauth webpage 🤦🏻‍♂️🤦🏻‍♂️
Tool instantly fails to run because it is written in python 2 and I have python 3 installed, and the command "python" doesn't exist
Troubleshooting for a while and figure out to install python-is-python3 package
Python now runs, but the tool still falls over instantly because it's written in python 2 and the http-related commands are different in python 3
Briefly investigate manually installing python 2. Dismiss that idea as stupid.
Find there's a tool you can use to convert python 2 code to python 3 code
...do I even want to back up my Tumblr this badly?
Hoorah! Light in the darkness! That original GitHub hasn't been updated in a fucking decade or some shit, hence it still using python 2 which was end-of-lifed in 2015, but some heroic hero has forked it and made a python 3 version!
They say to install it with pip. What the fuck is pip? My system doesn't know what that is and neither do I.
Do me some learning and troubleshooting and eventually get pip installed.
Attempt to install with pip. Error messages galore saying "don't do this. you can't do this. you have to do this in a virtual environment only."
More troubleshooting. It looks like I can force my way past them or completely block the warnings (both of which seem like very stupid things to do), or I can actually learn how to use python and properly create virtual environments (more investment than I'm willing to make into learning how to use python rn, given I'm not at all going to be actually USING python; all I am is the end-user of somebody else's utility) or I can use pipx to make it 'just work'
I install pipx.
Install tumblr_backup using pipx instead of pip
Run it. Immediately fails because the pipx install of tumblr_backup can't import youtube_dl. Can't manually import youtube_dl either; the two projects are silo'd from one another (thanks to pipx I think)
Can't figure this out; not willing to delve into properly learning python. Look at the GitHub page instead.
It says to pip(x) install it with the [all] flag.
Attempt this. It fails. Uh, maybe I should remove before reinstalling?
pipx uninstall tumblr_backup. pipx install tumblr_backup[all].
Fails. I don't remember why but it fails for the same reason as before.
More troubleshooting. Get nowhere. Maybe I'll try using the [video] flag instead of the [all] flag??
This works!!! 🥳🥳
Point the tool at my sideblog, tell it to download the videos, and set it running!
Tool crashes with a 404 error. ☹️
More troubleshooting.
Figure out that it's case-sensitive, and while I reflexively typed "Kalikai" it ought to have been "kalikai" that I pointed it at.
Two hours after getting out my laptop the dang tool finally runs successfully and downloads a backup of a blog!
Wooooo!! 🥳🥳🥳
Point the utility at my main blog and tell it to skip reblogs
It downloads a whole bunch of stuff then bonks into the API limit and sits down to wait for it to reset.
This might take a while... 🙃
0 notes
ronearoundblindly · 3 years ago
Note
Rone! My last weeks have sucked major ass. I had to put down one of my sweet cat babies who I was so attached to, she was mi baby and I her human. Then my son ends up with Covid a week before his musical show in which he’s a lead, and now I’m don’t with pneumonia and maybe Covid. Is there any way my fluffy Steve or Jake Jensen, or Colin Shea would comfort me? I’m sick of crying 💙
I'll try my best here, but note that I am attempting this while a tension headache rages, preventing me from sleeping for most of the night and morning.
Warnings for some maybe gross mentions of sickness things and dirty humor. You know you expected it; be real. No clue what the word count is and there has been absolutely no attempt at editing because I am le tired.
Tumblr media
It's bad. It's just all bad.
You can't stop whining and breathing out these dramatic heavy sighs, but you don't care because it's all bad. This feels like your body, mind, and soul are all dying and fighting for who gets to go first...
...and they all want a prize and attention for their troubles.
Welp. Fuck you, mind, body, and soul. There's your prize. Eat me.
This is apparently them saying 'yes' to that challenge.
Normally, Jake works with his gigantic headphones on (when he's home), and since you can't hear him and can't remember whether or not he kissed you goodbye this morning (because maybe you're remembering yesterday or a week ago in your fever state), you just assume he isn't there or cannot hear you.
It's fine. You're strong. You don't need to ruin his day. You can take care of yourself.
Meds. Meds first.
Nope.
You crash land right out of the bed, smooshed between the frame and the wall. Maybe you can make this work. You sink into the fetal position to regain some composure before trying again.
"Jesus, baby, are you okay?"
Shit. He's home.
Your groaned attempt at 'm' fine' comes out like a death knell. Oh yeah, that'll get him back to work right away.
His arms are under you in seconds, but instead of just placing you back on the covers, he sits and cradles you while you cough.
"What all hurts?"
It's not until you open your mouth to answer and taste salt that you realize you're crying, but that just makes you more upset and cough again.
"Okay. Okay," he soothes, "I got you." Jake kisses your forehead and audibly hisses at the temperature. "Hang on. Let me just..."
He calls his team to make sure they know he'll be in and out of communication for a while. Afterward, he shuffles about the bed dressings and tucks you into a little makeshift nest, knowing you may stubbornly try to leave again.
Jake brings over a Powerade and the entire medicine cabinet in his meaty arms, proceeding to ask you about every possible symptom and weed through any meds to help you. The bottle is nearly gone by the time you swallow it all, so he gets another while fetching the thermometer.
"Oof, so hot, babe."
Nope, Jake, it very much hurts to laugh. Please rein in your Jensenness for the foreseeable future.
Shockingly, he does no such thing.
He gathers every pillow and blanket in the house, even grabbing your son's Star Wars comforter. It smells like your boy as you tuck it up to your chin and settle your head on Jake's thigh. He's brought his laptop into bed so you can snuggle while he monitors your fever.
"What about Bryce?" You can barely form the words.
"Called my sister. She'll pick BJ up at three and have a playdate. Take him to the Petunias' game tonight if needed."
Jake smiles. Leave it to him to ensure your kid is semi-named after a sex act. The bastard knows he's too adorable to say no to, and Bryce is just the same. It's awful. You love them so much.
And then Python attacks your feet twitching beneath all the covers.
What once was a scraggly kitten found proudly hunting a garter snake in your backyard has become a fat and happy lap cat...who will absolutely murder anything that wiggles.
You already had a BJ in the household, so no, Jake was not going to get away with calling the sweet--if vicious--grey tabby 'Anaconda.' There have to be some standards in this place.
There are no standards in this place.
"Hey, cutie," Jake mumbles, petting down your sweaty hair. You must have fallen asleep again. "Time for a re-up."
He gingerly feeds you the meds and more sports drink, offering some dry toast that you get a few bites of before the room spins a little and you give up.
Suddenly, you're on fire and all the covers must go away. Python chirps her annoyance at being buried momentarily before she just burrows right back in.
After another rest, Jake exclaims--far too loudly--that your fever's heading down, but you still feel very rough. Once he raps up one more call with Clay, confirms that Bryce will stay for the game, and hauls over the rest of the Powerade case to share, your big, burly man-child puts on 'Must Love Dogs' like you've done dozens of times before.
He laughs and cries with you, eventually slouching all the way down so that your head now rests on his chest, tucked under his chin.
Jake checks his watch before shifting to you excitedly. "Hey, you wanna do some more drugs?"
You groan out a less painful laugh than earlier and take the pills.
The credits roll and Jake scoops you up.
"Sorry, honey, where are my manners?! I've been with you all day and you're still not naked. Can't believe you put up with me..."
He sits you on the dressing bench by the bath as it runs, putting too much of too many good-smelling things in the water, and it's perfect. Jake takes his time to delicately peel off your sleepwear which you sorta want to burn now. He's an angel. He's too nice. The standards in this house are set way too high by him, and damn it, you're gonna cry--nope, you're already crying again.
Jake lets you soak while he texts his sister, showing you all the little videos of Bryce having the time of his life watching his cousin and kicking around a spare soccer ball with another player's little brother.
"I can work on his form," Jake mutters. "Oh! Look at that! See, I taught her the headbutt." He taps his screen excitedly while the streak of his niece races down the field. "Taught her that...."
Big goofball is all the family you could ever want, but he's an amazing uncle and father, too. Even though you're sick, you love these peaceful moments alone with him.
You feel that vice-grip of tension float away in the steam. Slowly, your body refills with you instead of aches and pain. You close your eyes while Jake giggles and shares terrible memes and jokes from his team. Your eyes finally open when he presses the back of his fingers to your neck, checking.
"Better?"
"Who are you," you whine.
"Hardy-har--" Jake stands from his spot on the bath mat "--you're not clammy anymore at least."
"That's what a hot nurse is for."
He doesn't engage with your antics, and instead grabs two big fluffy towels to set within your reach. "I'll go pick up BJ."
You stretch out like Python (except she wouldn't be caught dead in the water).
"Oh good, because then you'll come home to a BJ."
Jake snorts, shoving his fogging glasses up his nose, a tinge of pink creeping above the collar of his graphic tee.
"You're sick."
You wiggle your eyebrows and shimmy your breasts in the water, finally feeling a bit more human. "Yeah, baby. You love it."
"You know I do," Jake says solidly, kissing your very wet forehead before rubbing his goatee across your cheek.
There's no pain in the laughter this time. You're on the mend now. All is well in the Jensen Household of Total Loons, or it's getting there, in its weird Jensen way.
Tumblr media
There is no option to not put terrible puns and dirty humor into a life with Jake Jensen. There just isn't. Fight me.
Hope this makes you feel better, dearie.
As my two fur babies have tried to impart kitty-power on me all day, I am so sorry to hear about your wee one. I'm sure she knew she was loved until to end and still very much is. I also hope you and your son recover quickly. Hopefully, he'll be ready for the stage in no time at all!
Tumblr media
60 notes · View notes