Tumgik
#Python Best Practices
poorly-drawn-mdzs · 2 months
Text
Tumblr media
MDZS x Brazil (1985)
(Yes. Real movie dialogue)
1K notes · View notes
robomad · 1 month
Text
Best Practices for Managing Django Migrations
Introduction:Django migrations are a powerful tool for managing database schema changes in your Django projects. They allow you to evolve your database schema over time while preserving data integrity and minimizing disruptions. However, as your project grows, managing migrations can become complex and challenging. Adopting best practices for handling Django migrations ensures that your…
0 notes
kunalmeghani · 1 year
Text
Mastering Python Development: Top Tips for Efficient Coding.
Tumblr media
The Versatility and Importance of Python
Because of its adaptability and simplicity, Python has grown to be among the most widely used programming languages. Applications for it include everything from machine learning and scientific computing to web development and data analysis. It's essential to write code that is not only functional but also organized and effective as a Python developer.briefly describe the popularity of Python and some of its uses in different fields.  Mention how crucial it is to create maintainable, effective, and clear Python code.
1.Create a Developmental Environment That Is Productive:
Picking the Best IDE
Python development cannot be successful without an Integrated Development Environment (IDE). IDEs include tools for debugging as well as code completion and syntax highlighting. PyCharm, Visual Studio Code, and Jupyter Notebook are popular options. Depending on your personal preferences,
.
2. Follow Python Coding Standards:
PEP 8 and Consistent Formatting
PEP 8, the Python Enhancement Proposal for code formatting, outlines conventions that improve code readability and maintainability. Following PEP 8 ensures consistent style across projects. Additionally, use descriptive variable and function names and include comments to make your code self-explanatory.
3. Make Your Python Code Better:
Knowledge of Code Optimization
Making your code run more quickly without sacrificing clarity is known as code optimization. Performance is improved by using methods like list comprehensions that decrease the amount of loops. Global variables should not be used as they may cause unexpected behavior. Use built-in functions to speed up execution and make code simpler. The performance bottlenecks in your code can be found using profiling tools.
4. Leverage Python Libraries:
Expediting Development with Libraries
Python's extensive ecosystem offers numerous third-party libraries that provide pre-built solutions for common tasks. Libraries like NumPy are designed for numerical computations, Pandas for data manipulation, and Requests for making HTTP requests. Installing libraries using package managers like pip ensures easy integration into your projects
.
5. Efficient Project Organization:
Scalable and Maintainable Projects
Virtual environments are essential for isolating project-specific dependencies, preventing conflicts between packages. Organize your projects by creating a well-defined directory structure. Use the "src" directory to separate source code from other resources. This organization promotes maintainability and makes it easier for collaborators to understand your project's structure.
6. Effective Debugging Techniques:
Identifying and Fixing Bugs
Debugging is a critical skill for any developer. Common sources of bugs include syntax errors, logical mistakes, and unexpected input. Print statements and logging are simple yet effective debugging tools. Integrated IDE debuggers enable setting breakpoints, inspecting variables, and stepping through code. Handle exceptions gracefully with try-except blocks to prevent crashes.
7. Stay Updated with Python Trends:
Continuous Learning and Growth
Python is a dynamic language with a rapidly evolving ecosystem. To stay ahead, regularly explore new features and developments. Follow blogs, forums, and online courses to keep up with the latest advancements. Engaging with the Python community helps you learn from others' experiences and discover innovative solutions.
Mastering Python Development for Success
In conclusion, becoming proficient in Python development involves a combination of adhering to coding standards, optimizing code, leveraging libraries, and adopting effective practices for project organization and debugging. By investing time in learning and applying these best practices, you'll enhance your ability to create efficient, maintainable, and successful Python projects. Whether you're a beginner or an experienced developer, these tips will undoubtedly contribute to your growth in the Python development landscape.
0 notes
trendingnow3-blog · 1 year
Text
Day-6: Python Functions
Day-6: Python Fuctions - Python Boot Camp 2023
Introduction to Python functions Python functions are blocks of reusable code designed to perform specific tasks. They allow you to break down complex programs into smaller, manageable pieces. Functions enhance code reusability and readability, making it easier for developers to maintain and understand their programs. In this article, we will explore various aspects of Python functions, from…
Tumblr media
View On WordPress
0 notes
codewithnazam · 2 years
Text
How to Install Python Packages: A Comprehensive Guide
Installing Python packages is a crucial step for any Python developer or data scientist. With the help of packages, you can easily extend the functionality of Python and make your workflow more efficient. In this comprehensive guide, we will walk you through the process of installing Python packages on different platforms and environments. Table of…
Tumblr media
View On WordPress
0 notes
webmethodology · 2 years
Link
Here, a renowned Python development services provider has prepared a beginner-friendly python development guide that helps you plan your python learning journey.
0 notes
raz-writes-the-thing · 9 months
Text
Naughty Thoughts (Venom One-Shot)
Tumblr media
Venom x Eddie Brock x Fem!Reader 18+ ONLY / Requests are open
Summary: Venom discovers your dirty thoughts about him and his tongue.
Fic type: smut
VENOM: @0alk0msan @romeosix1 (send an ask to be added to a tag list!)
___ ___ ___ ___ ___
When Eddie had first told you about Venom, he’d been unsure how you’d take it. Would you run for the hills? Would you beat him up with your backpack? Would you scream at him? Would you call him names? All valid questions, really. Eddie was an anxious person at the best of times anyway, so all of that was pretty on-brand for him. 
You had done none of those things, although you had contemplated running for the hills briefly but once you met Venom, and found out how sweet he really was under the macho exterior, well, you didn’t take long to get close to him. 
At first, Venom had kept quiet during your sex life with Eddie, having had the whole privacy thing repeated into his head so much that he finally listened just to make Eddie stop. Your sex life with Eddie was good- he was a good lay, and you loved him, too. So it was just a win-win all around but as you grew more comfortable with Venom being around all the time, you began to wonder- did he have a sex drive, too? 
So, of course, the first time Venom hitched a ride with you, it had been the first intrusive thought that popped into your head. And, of course, Venom heard it. 
“NAUGHTY THOUGHTS FOR A NAUGHTY LADY,” Venom breathed from the back of your brain. It was weird to hear his voice so crystal clear from within yourself. It was a little disconcerting if you were completely honest. 
“You weren’t supposed to hear that,” you replied, flushing profusely. Eddie sat opposite you, having just transferred the little goop alien from his body to yours. His head cocked to the side in question. 
“What’s he saying?” Eddie asked, leaning forward. 
“Nothing,” you replied at the same time as Venom, whose head appeared over your shoulder to answer his usual ride, saying-
“Our little minx wants to know about our sex drive, Eddie-” 
You groaned, slapping a hand over your face in pure embarrassment. God, this could not get worse. You risked a glance at Eddie, sure that you would find horror there. You were wrong. On Eddie’s face was a mix of quiet interest and something much darker and lustful. You bit your lip, your brain immediately conjuring an image that was just absolutely filthy. 
Oh shit, wait- 
“Eddie,” Venom said, tongue licking a little stripe up the length of your jaw. “She’s filthy-” 
Eddie arched a brow, eyes boring holes into you. You could practically see the gears turning in his brain as he tried to figure out what was going on between the both of you. You couldn’t deny how the humiliation of having Venom out you like this turned you on- not that you’d ever admit it to yourself. 
“Tell him what you’re thinking, Pet- or should we?” 
You chewed on your lip, unable to make the words come out. Venom chuckled in your ear. 
“She wants us to eat her while you watch, Eddie,” Venom all but growled. You jolted as you felt tendrils of his waxy form curl around your arms and legs, slowly wrapping around like a python with its dinner. The thought of being Venom’s prey had you squeezing your thighs together. 
“Does she?” Eddie replied, a visible tent growing in his jeans. You averted your gaze only for one of Venom’s soft tendrils to cup your chin and bring you to face him. He looked hungry. 
“Can we?” Was all Venom asked, the milk-white of his eyes darkening just a little. His tendrils curled around on your limbs a little tighter with excitement and you felt the tendrils on your legs inch closer and closer to your cunt. 
You nodded, cheeks pinking. 
“Y-yes,” you breathed out, “please, V.” 
That was all the encouragement Venom needed, suddenly using his tendrils to undo your skirt and rip your panties from your body. He would have ripped up the skirt too if you hadn’t given him a warning glare internally. 
The tendrils forced your legs apart as far as they could go, and you sucked in a breath when you heard the groan that escaped both Eddie and Venom at the sight of your cunt clenching around nothing. 
You were very slick, you could tell. Partly due to your own imagination, but you were also pretty sure Venom was using his influence on your body to excite you even further now he’d gotten permission. 
The tip of a tendril poked at your folds, experimentally pushing just past the entrance. You squirmed with desire- wondering just what it would take to have him tendril-blast you to orgasm. 
“All you need to do is ask, Pet,” Venom answered verbally, and then the tendril was swelling in size and pushing further inside you. You keened as he started to move, slow at first but rubbing on all the right spots to shoot pleasure right up your spine. 
“Venom-” you gasped out, straining against the tendrils keeping you spread open for him. “Please, I- your tongue-” 
Venom chuckled but obliged. He brought his head down to settle between your legs and flicked his tongue out against your clit. You jolted at the directness and tried not to grind against him- not that you could move much anyway with the way you were restrained for him. 
The tendril inside you jolted and wriggled as Venom finally started to lick at your clit. You squirmed under his ministrations and moaned with the way the tendril fucked your insides. Venom was whispering in your mind all the filthy things he wanted to do to you- what you tasted like, how Eddie was getting off on watching you fuck him. 
Then, the tendril retreated, and you whimpered with discontent. You’d gone from feeling so full to so empty and you didn’t like it. You didn’t have to wait long, though, of course, as Venom’s tongue slid down your slit, over your bundle of nerves and into your hole. His writhing, wet tongue pushed inside you, licking at your walls and rubbing against that one spot he knew drove you insane. 
You cried out, fighting against the restraints but unable to do anything but take it. 
You saw a flash of teeth as Venom pushed his tongue further inside you, fucking you with it like you were nothing more than a sex toy for him. The thought had you picturing him fucking you with his tendrils in all your holes, using you- and you heard Venom’s sound of interest in your brain. 
“OH, YES- NEXT TIME, PET,” you heard his voice internally and you clenched your cunt around his tongue as he flooded your brain with images of what he was promising to do to you. 
You shook against him as his tongue started to writhe properly now, laving and fucking in and out of you to wring every single ounce of pleasure out of you. You’d never had something so deep inside you before- never mind someone so hungry to eat you from the inside out. 
You felt that coil beginning to tighten, tighter and tighter as Venom forced you towards orgasm whether you were ready for it or not. 
“CUM FOR US,” Venom growled from the back of your mind. “PAINT OUR TONGUE WITH YOUR RELEASE.” 
You were so close to being pushed over that edge that all it took was Venom brushing your clit once more with one of his tendrils to make you cum, jerking and roiling against your restraints as Venom hungrily licked up all of your release. You wailed as the overstimulation started to set in, and you heard Eddie finish behind Venom. 
The sound of his pleasured grunting had you clenching feebly around Venom’s tongue once more before he finally withdrew. You panted and twitched as the aftershocks of such a powerful orgasm wracked through you, and Venom slowly unwound his tendrils from you so he could nestle back inside your body. 
You looked over to Eddie and encouraged him to come and lay with you. 
Internally, you could feel Venom rubbing up against you much like a cat did when they were incredibly happy. 
“WE LIKE TO MAKE YOU CUM FOR US, PET,” he practically purred. You chuckled tiredly and clenched your thighs together, clit still pulsing with leftover pleasure.
“Maybe later, V,” you replied, feeling sleep start to pull at your senses. “You have a promise to keep, remember?” 
You brought back the images that Venom had put into your mind and felt him practically vibrate with excitement. 
“WE LOOK FORWARD TO IT.” 
Eddie had his arm wrapped around you and had been watching this (from his perspective) one-sided conversation rather quietly. 
“What’s this?” He asked, nosing against your neck. You sighed contentedly and replied- 
“The encore.” 
1K notes · View notes
sandwhitches · 2 months
Text
Tumblr media
𝗰𝘄: mentions of cheating, slight angst
<<< back ✱ menu ✱ next >>>
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
When was the last time you stood up? Your legs were beginning to grow numb, knees sore and tingly against the ground as you hunched before the synthetic glow of a laptop screen. A long emptied energy drink can sat dormant on your lap, forgotten in the swarm of schemes that bounced around the walls excitedly in Suna’s bedroom. 
Suna was beside you, feverishly penning down what was happening. It was a neatly lined table: the first column was for names, the second for dates, and the third for offenses. 
The name of your ex-boyfriend. October 31st. Cheated on you with your friend.
The name of your friend. October 31st. Hooked up with your ex-boyfriend.
The name of Suna’s old roommate. June 17th. Took the cash out of his wallet and ran.
The name of a girl you hardly knew. February 5th. Keyed Suna’s new rustbucket for parking in “her spot.”
“Think that’s enough to start off?” He peered up at you groggily, flexing out his spent fingers with a wince. You nodded, eyes trailing the list of thirty or so names, “More than enough.” Of the names were people who had wronged you, who had wronged your friends, who had wronged friends of friends and their friends, too. It was practically untraceable. 
Suna sniffed, thinking, then scooted next to you to examine his laptop screen, “Smart.” 
You felt yourself flush at the subtle praise, chalking it up to the unreasonable amount of caffeine in your system, then glanced back at your work. “Well,” you murmured sheepishly, “At sight was taken.” 
Rintaro rolled his eyes, a lethargic shrug following, “Dumb name, anyways, sounds too romantic.” You snickered, “What? I thought it was a good play on words. Like love at first sight, just, not…love.” You both chuckled dryly at this, slightly delusional with exhaust. It was hard to make time for this, it was even harder to plan this, and the execution was no easy feat, either. 
“I like this name you picked better. Sounds kinda confrontational, ya’know?” 
You licked your lips, then snapped impatiently, a queue for him to hand you the extensive list in handwriting only you seemed to be able to read at that point.
“Chicken scratch.” You muttered, earning a groan from him as his watchful eyes ensured you typed every word to a tee. 
Suna was your best friend. Suna was the best of the best. The cream of the crop. The apple of your eye. The only person you think, no, you know would ever want to take things this far.
It was a little past four in the morning by the time you finished, sighing in satisfaction as he rubbed your back, “Nice.”
You turned to face him, the tips of your noses inches apart; how many times had you been this close on his floor? Too many to count, surely, but why did it feel so different lately? Especially in that moment as you both dove headfirst into your favorite secret you ever will keep. The secret you’d keep in the years to come. 
“Is this a bad idea?” You mumbled abashedly, balling your sweaty palm. Suna’s expression lightened and he shrugged once more for the umpteenth time, “Maybe, but…” he clicked his tongue in thought, “we’ve wanted this for a while.”
It’s decided. You nod. This is a very good bad idea, indeed. 
Turning back to the computer, you mashed around on the keyboard, deft fingers pressing at the clacking mouse on the floor, “Okay,” you sighed. “It’s live.”
-
-
-
-
-
Tumblr media Tumblr media Tumblr media
𝗻𝗼𝘁𝗲𝘀:
✱ "THEY DID IT!!! THEY SAID THE THING!!!!" ass moment
✱ formal apology to anyone i may have unintentionally (it was slightly intentional) led to believe that they murdered someone, or, that one person who thought they were vampires (I liked that theory the best)
✱ y/n and suna are no strangers to controversy
✱ spiteful bitches who match each other's toxic freak
𝗮/𝗻: hehe sorry this is a bit late. everything is about to go to shit. also ree (who is unfortunately not here to see it, fly high!) and i looked up the actual onsight.com and it was a python coding wtv the fuck...starting a gofundme for me to buy the domain /j
𝘁𝗮𝗴𝗹𝗶𝘀𝘁: @zumicho @nectardaddy @moucheslove @kodzu-ken @phoenix-eclipses @piopioo @lvtilzs @s777athv @localgaytrainwreck @reignsaway @savemebrazilhinata @pop-ghost @naweirdo @sunsribn @staileykout @milesmoralesluvs @chaconadine @aboutkiyoomi @m3gitsune @wizardhore @ineednanami @wakashudou @torkorpse @st4rdusttx @renkitsune @solaqes @sereniteav @eveyams @myromanempiree @saltypuffin1040 @nbcvs @gsyche @miiyas @starkyu @renardiererin @puppenpop @sleepystrwbrryy @yumiecheesecrackers @sp1ng @mfcherry @semieita24srockstargf @nanamis-right-tiddie @strawbrinkofdeath @piapiaweee3 (blogs in bold could not be tagged, please check your settings!)
taglist status: open (44/50) (please send an ask to be added)
Tumblr media
148 notes · View notes
ssa-atlas-alvez · 1 month
Note
Howdy howdy, can I ask a Male!Reader who infiltrated a mafia and destroyed it from the inside without getting caught by the mafia members and then decided to join the BAU ? And the reader is a good liar and wear a mask/always have an 'act' on (always saying he's fine, trying to lighten the mood in the worst situations, never showing vulnerability,...)
-Crow anon
Hiya, hope you enjoy it!
Warnings: knife wound, mentions of criminal organisations, a reference that I'm not sure exactly what it references just that its a reference people use (so i'm hoping for the best on that one, I googled it and it's monty python, never watched it this has turned into a ramble, sorry about that, anyways)
You’re rather good at what you do. Before you could make yourself known in the police force, you went undercover. Infiltrating a highly known criminal organisation, practically taking it down single handedly, without suspicion and detection. You were pretty damn good at your job. You joined the BAU not long after, who were more than happy to have your experience on the team. 
Which brings us to now, an unsub with a particular salty attitude and a rather large knife had swung at your stomach. And you didn’t get the memo to move until a little too late. Luckily, the rest of the team stormed in, dealing with the unsub before turning to you.
“Tis but a scratch.” You joked with a small laugh, masking the wince that wanted to break free. You kept pressure on the wound as they rushed towards you, unsub now having been dealt with. “No, I’m fine, really.” 
Morgan rolled his eyes, “You’re bleeding out.”
“That’s a bit dramatic,” You resort. Morgan rolled his eyes as he helped you lay down on the floor to give the paramedics access to the wound when they arrived. “I could probably just walk this off.”
The paramedics rushed in, each clutching a bag. 
“(Y/N), you’re going to the hospital.” Hotch said sternly, as the paramedics looked at the wound on your stomach, faces tinged green.
“That can’t be a good sign,” You chimed.
“Dude.” Morgan groaned slightly, “Just shut up.”
“Fine. Fine.” You huffed, turning to the paramedics, “You guys doing okay over there?”
120 notes · View notes
Note
since you’re literally my FAVOURITE matt murdock writer, i had to slip this by you :’) <3
high pain tolerance bf vs “noo i got a papercut” gf trope pls
Nonny, you are way too sweet!! :'') I love this!! TBH, I've had this written probably for a few months on my phone, but I ended my day with a nasty paper cut, and it reminded me to post! I hope you like it!
Tolerance (Matt Murdock x fem!Reader)
Tumblr media
Warning: Fluff and sweet domesticity, canon-typical injuries/Matt getting patched up
“Almost done, Matty,” you tell him as you work to stitch up the wound on his side.
“It’s really not that bad—it didn’t need stitches,” he tries to insist. 
“Matthew, I can literally see inside of you,” you sigh. “Don’t go Monty Python on me.”
“I’ve been in worse scrapes, and you know that.”
“I do know that, and I don’t like that you’ve been in worse scrapes.”
“I have been more careful, though.”
“I appreciate it. But shut up.”
“Argumentative.”
“Badgering!”
“You’re doing the badgering, angel.”
“And you’re being argumentative,” you counter as you tie off his wound.
“I see my legal skills have rubbed off on you.”
“Yeah, yeah,” you smirk, kissing his forehead. “I’m just glad you’re back down to your normal amount of holes now.”
You watch as the confusion dances across Matt’s face, absorbing the weirdness of your statement before you notice him slip into careful thought as he goes over his anatomy. 
“Was . . . Was that supposed to be a compliment or insult?” he tries. 
You begin to giggle uncontrollably before you lean over to kiss the top of his head, moving to gather all the scraps from patching him up.
“Compliment,” you clarify. “My big, strong, brave Daredevil is all patched up.”
“Sweetheart—.”
“Don’t brush off your nightly beatings like you’re being tickled with a feather duster. You have an unusually high pain tolerance.”
“That part is the Catholicism,” he says with a lopsided smile.
“Yeah, yeah, either way, you should see a medical professional about that brain of yo—hmmm!” you whimper. 
“(Y/N)?” Matt asks, snapping his attention toward you, doing his best to get up as fast as he can with his wounds restricting him. 
“‘M okay.”
“Not with that whine.” He grunts and shuffles his way over toward you, his hand wrapping around your own that covers your wound. “What’s wrong, sweetheart?”
“It really hurts,” you mutter, keeping your head tilted down. 
“What happened?”
You stay quiet.
“(Y/N)—.”
“Paper cut,” you grumpily admit. 
“You . . . Got a paper cut?”
“It’s big and it’s deep and it’s not in a good spot!” you whine. Now it’s his turn to laugh. “Matty, it’s not funny, it really hurts!”
“Need me to kiss it better?”
“Well, I’m not opposed, but not if you’re gonna laugh at me!”
“I could never laugh at you, angel, just the things you do and how you make me feel.” He exposes the cut and lifts your hand to his lips for a soft, sweet kiss. “Does that feel better?”
“A little,” you admit. “It really stings. And I’ll have you know that I put up with a hell of a lot of pain for a week every month just to have your babies one day!”
An amused smile pulls across his lips. 
“You just said—!” you start. 
“You wanna have my babies?” he asks as the smile on his face grows even bigger, his eyes sparkling with pure, unadulterated happiness. 
“Well . . . Yeah. I love you, Matt, and I’d be a big fat liar if I said I didn’t think about our future together.”
“How about when my ribs are in better shape and any superfluous holes have closed, we get some baby-making practice in.” 
You feel your face grow hot as you blush deeply. 
“You’re so cute when you’re bashful,” he hums, angling his head so he can kiss you. 
“You know, Mr. Super-sense, if you weren’t covered in holes . . . !” Your mouth turns into an angry pucker as you try to think of where you were going the insult of your sentence.
“Yeah, angel?” What a punk, he is. 
“Just shut up and kiss me, okay?”
“Okay,” he smiles brightly, bringing his lips to yours, cradling your head with his hand.
You happily return his embraces, getting carried away and lost in his lips before you manage to pull back. “There goes that blood loss, taking control of your mouth again,” you blush as his hands happily settle on your waist. “Let’s get you to bed before I have to give Claire a buzz, hm? I can only patch up holes in your body so well.”
Another soft chuckle escapes his lips as he kisses your again before turning and letting you guide him to the mattress and tuck him in so he can get a few hours sleep before he goes to defend his city once more, albeit in a less physical capacity. 
Tumblr media
Permanent Taglist: @majesticavenger​ @steampowerednightvaler​ @themusingsofmany @just-the-hiddles​ @toozmanykids​ @dangertoozmanykids101 @clints-worldavengers @theburningbookshop​ @itwasthereaminuteago​ @peter1ismybrother@hellskitchens-whore​​ @dpaccione​ @catnip987​
787 notes · View notes
copperbadge · 5 months
Text
Amateur Translation Programs
So I had a lot of imaginative and informative responses to my post about looking for an amateur translation program -- something where I could load in a foreign language and it would insert a box where I could add a translation every-other-line. The idea was that this way I could practice translation with more advanced texts, and texts I chose, and thus move away from Duolingo, which at this point is good for drilling and daily practice but not for more advanced learning.
I didn't find precisely what was needed but I did get some inspiration for further explanation, and I also learned that adding the term "glossing" (thank you @thewalrus-said) into my searches helped a great deal in terms of weeding out programs that were either "Let this AI translate for you" or just endless promotional links for Babbel and Duolingo and such. I thought I'd collect up the suggestions and post them here; at the end I'm including my best swing at designing what I wanted, and why it doesn't work yet.
Suggestion one, from many people, was various ways to generate a page that is simply fixed Italian text with space underneath each line to add in a translation. This is pretty simple as a process and there are sites that will do it for you, such as this one that @ame-kage suggested. However, most of these don't allow for movement in the Italian text, and many produce a PDF which you would need to print out in order to write on unless you're willing to open it in Acrobat (and deal with Acrobat). A good solution for some but not what I'm looking for purely because I'm trying to make this super frictionless so that (knowing myself as I do) I will actually do it.
I did find this version interesting, suggested by @drivemetogeek: Have one word doc saved as your "template" doc and set the line spacing as 2.0 or higher. Select your text from source and paste it into the template doc as text-only. Ctrl a, ctrl c to select all and copy, then open a new document and "paste special" as picture. Right click and set the "wrap text" as behind text. Now you have a document where you can, basically, type over the existing text because it's the background of the page. This seems like the most frictionless version, because you could set up a bunch of them ahead of time. If you wanted to move between desktop and mobile, however, you'd need to ensure that the pasted image was fairly narrow so that you don't have to sideways-scroll.
Relatedly, people suggested generating a document that is simply the Italian text with empty space beneath it for typing in of the translation. This can be done either semi-automated, using a macro or a language like Python, or find-and-replace on, say, the stops at the ends of sentences. It basically outputs the same as above but with a more digitally accessible format, without any more effort than above. If you were to do this in Google Sheets you could also fix the column width so that it didn't do anything weird when you opened it on your phone. But it is still very friction-y, and does not allow for easy shifting of the Italian as needed. There's high probability of the translation breaking weirdly across the page. Still a top option in terms of simplicity and access.
@smokeandholograms suggested another variation illustrated here where essentially you're converting the text to a series of tables, with each paragraph a row, and an empty cell next to it for the translation. I might play around more with this one eventually, since I think I could possibly make it a three-column and put the Italian in one, the translation in the next, and the auto-translate to let me know where I might be slipping in the third. (Not that I trust auto-translate but comparing a hand translation to an auto translation can be useful in terms of working out when I've messed up the way a tense or mood is read. I tend to read indirect verbs as automatically imperative because I'm a weirdo.)
@wynjara linked to an add-in for Word specifically designed for translators, known as TransTools; this appears to employ a macro to do the same thing, though it does have a format where you can place the translation next to each sentence directly rather than in a separate cell. The full suite of tools is only $45 which is reasonable for my budget, but for what I need I think I could also just create the macro.
Using LaTeX as a tool specially designed for glossing was an option on offer, but I don't know enough about LaTeX to figure out the pros of this one, which is in itself the major con -- there's a learning curve that I think varies widely by person but for me is unfortunately a wall. It came out of a discussion on Reddit about trying to find something like what I want; also in that discussion is a link to a code generator that allows you to…do something…to the initial language, but it's not entirely clear to me (I'm sure it's clear to people who understand coding) what you would then do with it that would allow it to be output in the way I'm hoping for. Like, I could turn a paragraph of text into HTML, I understand that far, but any Italian I find is already on a website.
Moving more into apps that might work, Redditors on the LaTeX discussion suggested SIL Fieldworks, which is a professional language tech tool. Fieldworks isn't a program I'd previously encountered but much as with the ones I had, it looks like the learning curve is fairly steep and it is definitely overkill generally for what I need, though it might also harbor within it the thing I want. It is free, so I may download and play around with it.
@brightwanderer suggested using note-taking or "whiteboard" apps such as Freeform or Nebo; these are generally a kind of "infinite canvas" in which you can drop objects, text boxes, or handwriting. I don't know that Freeform would be measurably different to just using Word and a macro, since I'd still have to input/format all the text and then be stuck with the same "fixed text" setup -- and it's also iOS only -- but for some folks it might be more helpful. Nebo is a similar infinite-canvas with unfortunately the same issues, though on the plus it's available for Android, which is where most of my mobile property resides.
@bloodbright suggested that I was looking for a CAT tool, a professional translation tool mainly used by translators working in the field. This was a concept I'd encountered, but I hadn't found a good starting place. They suggested Smartcat and OmegaT. Smartcat bills itself as an AI translation platform and is HARD pushing the "don't translate it yourself, hire a translator or let AI do it" angle, so it's difficult to tell what it offers in terms of actual tools for translators, and it's also cagey about pricing, so I can't really evaluate it. OmegaT is free and gives off big "some weirdo homebrewed this in their basement" vibe (which I am here for) but I also recognized it from screengrabs that were the reason I veered away from professional-grade software: it looked too complex. Realistically, the major downside of OmegaT is that I don't think I can put it on my phone. One thing I did find interesting is that once you translate a portion of the text, the original language goes away, though I assume you can turn that off if needed. I do kind of like that because it means my distractable brain is looking at Less Stuff.
So where did I end up?
Well, it looked like I was going to have to try a homebrew myself. I had the idea of trying some of the initial suggestions but in reverse -- designing a document where every other line was a single-cell table fixed to the page. You could paste in the Italian, which would wrap around the cells, and then enter the English in the cells.
You can fix a table in place in Google Docs -- you click on the table, then under Table > Style select Wrap Text, Both Sides, and Fix On Page. Getting the whole page set up is a little labor intensive but once you did that, you could just save it as a template and make a duplicate of it each time. And this actually works….on desktop.
Unfortunately, if you open it in the mobile Docs app, the app can't handle the fixed tables and automatically moves them all to after the text that's been pasted in. I tried redesigning it so that it's a table within a table -- one for the Italian, then within that a series of them for the English -- but when you nest a table in Google Docs, it doesn't let you fix the second table in place. And you are also still dealing with the wrap issue, although you can resize the page and add a large right-hand margin as a kludge of a fix for that.
You can build this same kind of document in Word, so I tried building one in Word and then uploading it to Drive, but when you open the Word file in Docs (or in Microsoft Word for Android), it still strips the fixed positioning -- there's just some functionality missing from both apps that doesn't allow them to handle fixed-position tables.
So, the design is sound, just not the final execution. If I could program an app, I could probably remedy the issues with it -- it's simply a series of text boxes nested inside one another with different formatting. I would imagine that's relatively basic to set up, although given that neither Docs nor Word can handle fixed tables in mobile, perhaps I've stumbled on a much bigger problem that everyone is ignoring because nobody actually needs or wants fixed tables in mobile. :D
Experimentation is ongoing, anyway. I might simply have to resign myself to the fact that my translation study is going to have to be in front of a computer, which might be for the best anyway when I inevitably want to compare my translation to an auto-translate to see where I might have read something wrong.
70 notes · View notes
robomad · 3 months
Text
Creating a Custom Django Management Command
Learn how to create custom management commands in Django to automate tasks and extend your application's functionality. This guide covers setup, adding functionality, testing, and best practices.
Introduction Django provides a powerful framework for managing common tasks via management commands. These commands can be executed using the manage.py script, which is an integral part of Django projects. Sometimes, you need to extend this functionality by creating custom management commands for tasks specific to your application, such as data imports, automated reports, or maintenance scripts.…
0 notes
Note
Are there any species of snake that look fat but are actually healthy? Especially any that are safe for home keepers? I know the Gaboon viper matches the body plan I'm talking about, but I'm curious if there are any others or anything I could try keeping without being unethically stupid.
Yes! That body plan is associated with snakes that are highly specialized ambush predators and stay still most of the time (as you mention, Gaboon vipers are a great example!).
But, for pets, short-tailed pythons fit the bill, and they're even some of my favorite pet snakes in the world! (check out my "Hobie" tag to see my Borneo short-tailed python Hobie, who I love more than words can say.)
Tumblr media
Short-tailed pythons are best for experienced keepers, because they are finnicky and they don't tolerate husbandry mistakes well. They like very narrow husbandry ranges; you shouldn't let their hot side temps get over 82 F and they need humidity in the 60-70% range. They can be defensive and snappy if handled improperly, but it's my experience that even poorly socialized short-tails, when given proper husbandry, are absolute delights to work with! They're endearingly chatty and will often make little hissy huffing noises if they don't like how you're holding them.
They're just delightful. They get about as long as ball pythons but much heavier, and they're definitely a snake you need to hold with both hands but that's just more room to love! Because they're so specialized for ambush predation, their body language is a bit different (they're very still and can move quickly and suddenly), but you get to know them with practice. They're snakes you can just hang out with.
Tumblr media
188 notes · View notes
trendingnow3-blog · 1 year
Text
Day-5: Mastering Python Loops
Python Boot Camp-2023: Day-5
Python Loop: A Powerful Tool for Iterative Tasks Python, one of the most popular programming languages, offers a wide range of features and functionalities. Among these, loops stand out as a powerful tool for performing repetitive tasks. In this article, we’ll explore Python loops, their types, usage, and best practices to optimize your code. 1. Introduction to Python Loops Loops are essential…
Tumblr media
View On WordPress
0 notes
gauloiseblue · 6 months
Text
Asra Alnazar | Modern AU
[+18 | Adult Content MDNI]
A/N: sorry for the random ass post, but I miss soft romance AU, and he's the only comfort character that I know would fit into this. (it's a wonder what a half heart could do to a lady, huh?) Anyway, enjoy my take on him ^^
General
He might not realize it, but most of his clothes are women's clothes. For a reason that he find the texture softer, and more comfortable, compared to men's clothes
Like shirts, and the outerwears
He likes woman's shampoo (*cough* Diane) as well, because it makes his hair smoother, and smells good
He also wears skincare, but limits himself to moisturizer only. Because he once brought so many products, but he ended up not using them because they didn't fit his skin type. He had learnt his lesson
Books and poetry are his weak spots. He likes to read, and can never resist a novel with an interesting title
He treats Orpheus and Eurydice story like the Bible
Sometimes he writes, but he finds his poems terrible, so he never shares it to anyone
Surprisingly, he doesn't have any favorite movie. While he does like a few movies, there's none that touched him—to the point that it changes him as a person
People around him would debate over his pet preference, some would be so sure that he's a dog person, while the others were dead serious about him being a cat person.
(Imagine their surprise when they found out that he owned a ball python)
He prefers to cook his own food rather than buying take-out, except for the food that (1) took a long time to make, and (2) sourdough bread (or any kind of artisan breads, really)
Talking about preference, his favorite beverages are smoothies and wines. But for wine, he only likes them when they're sweet. If it's a red wine, he'd like them hot and spiced. For white wine, he prefers port wine. I can see him liking any sweet cocktail like Baileys, Sangria, or Margarita. He only indulges in alcohol every once in a while, but smoothies? Oh boy…
Contrary to people's belief, he doesn't listen to music that much. Even if he does, he's listen to instrumental music
He values his concentration a lot, and would do anything to keep himself focused. That's why he practices meditation, and he'd take some time to meditate, at least once a day.
I can see him as someone who owns a perfume shop, or a place for an art exhibition. And he won't have just one job either, he'll have many things on his plate that's relating to arts, fragrances, and wellness
When people ask him about his belief, he'd say that he believes everyone is responsible for their actions. He doesn't believe that God would meddle with people's affairs, and strongly believes in karma. He also believes in reincarnation, that's why he tries to not make enemies with anyone, because he doesn't want to deal with them again in the next life
While he doesn't necessarily believe in the personification of God, he believes in the existence of Deities, and he respects their existence as something beyond human knowledge
Which, in turns, makes him luckier somehow
(Maybe it's because Deities favor him, but who knows)
He's really bad at video games, mainly because he never takes it too seriously. But his friends would invite him to play, because he always makes them laugh
He also sings, very badly at karaoke, because he never listens to the songs
Despite of his easy-going nature, no one's really close to him. He's a private person, and wouldn't disclose anything about himself too much
But strangely, people would claim that they know him best, solely on the random facts that he had told them separately
(And it's always fun to watch them arguing about it)
Love/Relationship
Like I said earlier, he's easy-going, and that means he's easy to approach too. But that's it, that's what he'd ever be
He's approachable, but unavailable at the same time
And the reason for it, is because his idea for love is very complex. He couldn't love someone if they didn't connect on deeper level
In the past, he's not afraid to kiss anyone he found interesting, but as he grew up, he did it less and less, to the point of stopping
(Once, he got into an argument because the person he kissed believed that they had something, but he firmly stated that they're nothing. Which snowballed into a fight, and their relationship became a gossip for quite a while)
He never slept with anyone either, because he believes that sex is an exchange of energy, and he didn't want to give a 'part' of him to someone he didn't truly love
I think he's pretty much the embodiment of 'fell in love first × fell harder' trope
He wouldn't know his feelings before they hit him all at once
And when it happens, he won't know what to do, because it's very unfamiliar to him
He'd distance himself with the person he loved, while trying to make sense of his feelings. Does he really love them? Is it something that's genuine, or will it pass?
But once he found all of the answers, he's committing, hard
You won't see any hesitation from him when he confess to you
Would just marry you on the spot if he could
Of course, he'll take it slow at first, but he knows that there's no one else he wants more than you. So he'll work hard to make sure that you're happy with him
Having conversations with him hits different, because he knows you and your way of thinking. You'd say just one word, and he'd already know the whole sentence
On the fluff sides, I think he'll pretty much share things with you
He'll let you move in with him, and will let you use his things without complain
That includes his clothes and skincare
You'd be surprised to find that many of his clothes fit you perfectly. Because they are women's clothes after all
Would prefer to cook for you, but wouldn't mind taking you out for dinner either
Dating him consists of a lot of talking, a lot of kisses, and a lot of cuddles
If you need help, he won't hesitate to do it for you. He'd take care of you when you're sick, he'd pick you up despite of the distance and the time. Whenever you phoned him, you knew he'd pick up in an instant
(He knows it's not healthy, but he can't help it, his world revolves around you now)
You know the post where a man was at the party before he said he missed his gf and went home immediately? Yeah, that's him
If you wear lip balm/lip gloss, you'll find him staring at you, until you apply it to his lips as well
Since he takes good care of his hair, he'll do it to yours too. He'd buy the best products for your hair, and would take care of it twice a week, leaving your hair soft and healthy
In terms of social life, he'd pretty much introduce you to everyone he knows. Whether it's his family, or just friends
Speaking of his family, his parents already welcomed you long before you even met them. They both would exchange a meaningful look whenever their son talked about you. They trust his choice, and will give you both their support if needed
(Now that you've entered the picture, his parents won't stop talking about your relationship with him. They'd gossip like two bored wives in the lazy afternoon, about how he'd propose, or what the wedding would look like)
And Faust!! That little thing is pretty much your child now
When the two of you are cuddling, Faust will find a way to nestles between you and him
(He usually lets Faust out of his tank whenever he's alone, but he'd only do it once you're comfortable with it. Which you did, eventually. And that's an order)
You both pretty much behave like an old couple, and many of his friends point it out to you—mainly in the form of complains, because he's becoming more and more unavailable since you both started dating
But what can you say? It's not like you can escape from him either when he's clinging to you 24/7
NSFW
If you remember what I said earlier about his thought on sex, then you shouldn't be surprised when I told you he's a virgin
When the two of you had sex for the first time, he swallowed his pride and told you that he had no experience. But he made it up to you by giving you oral
While he lacked experience, he definitely knew about women's anatomy (because he secretly read it in women's discussion pages)
And he's an attentive lover, he'd be in tuned with your feelings, and how your body reacted when he did certain things
He only lasted one round the first time, for a reason that it took tremendous energy to keep him focused on pleasuring you. But now that he knows your body like the back of his hand, he won't hesitate to tire you out every time you both have sex
At the end of the sessions, he'd relish the afterglow as he kissed your shoulder tenderly
The feeling would persist, even days after the passionate night. You called it 'lover's bliss', but for him, it's the remnant of 'your energy'
Since he avoided porn like a plague, his view on sex is really different from other people, and that includes the kinks that he's into
Choking and slapping are barbaric to him, but he'd hold you in his arms really tight as he pounded into you from behind. He won't shout vulgar words at you, but he'll whisper unbelievably sweet, but dirty things that'll make you squirm. You won't be forced to pleasure him with your mouth, but he'll eat you out until you cry rapturous tears
While there's no definite correlation between fruits and sweeter cum, his taste is definitely sweet, or at least less bitter than normally. (Yea, I'm nasty, what about it)
About birth control, he won't let you take one, because he knows of the side effects. He'll use condoms instead, or have unprotected sex when it's your safe day
He's a vanilla, but he won't hesitate to make you pass out from overstimulation
Though he won't do it often, since he needs to have the energy to wake up the next day
Trivia
His MBTI type is INFJ
He wears 3 rings—2 on his left hand, and 1 on his right hand—and one of them is actually your engagement ring. He just hasn't give it to you
66 notes · View notes
wisteriagoesvroom · 8 days
Note
LOL I can imagine for vampire au Lando starting to third wheel Carcar and so even though turning Franco is a complete accident he can’t feel too guilty bc he uses it as an excuse to hang around someone else, and somehow he learns more about vampirism lore through a human grad student than he’s learned in his whole life (he’s lived a long time, lots of info to absorb). Then also, if you don’t mind my ask, what do they all do for jobs/how do they get money and would Franco keep studying ?
HELP this is so cute. ok. norpinto-frando vampire au for those who aren't up to speed...
Lando starting to third wheel Carcar and so even though turning Franco is a complete accident, [Lando] can’t feel too guilty bc he uses it as an excuse to hang around someone else -> screaming cus, absolutely. random associated headcanons for this... i'll rewind a bit:
carlos is the oldest vampire, like, moorish/medieval era. he met lando while they were both at a masquerade ball in the early 1600s and smelled each other right away (carlos like wood and ink, lando like gas lamps and wet stone).
lando is an tudor era vampire. like he actually knew shakespeare and said he was one of the best viral marketers of the era
oscar was turned in the early days of the australian penal colony, he's like first or second generation white australian but he refuses to be called british. he moved in to the house because the rent was cheap and he doesn't feel the need to live extravagantly -- even though he, too, is $$ loaded $$
oscar didn't move in until about two decades ago - very short by vampire standards, to them it feels like yesterday - but carlos and oscar are basically They Were Roommates atp even though they squabble con-stant-ly
their neighbours think they are a new age-y polyam group but because the people who live opposite them are students, nobody ever hangs around longer than a year to remember them or dig deeper
so franco definitely brings a fun funky fresh dynamic
he learns more about vampirism lore through a human grad student than he’s learned in his whole life (he’s lived a long time, lots of info to absorb) -> things that baby vamp!franco teaches lando include
tiktok trends, like how to make ur teeth comically large in photos. lando finds this hilarious
how to use venmo
creating a roster on google docs for who needs to do what house chores
jailbreaking an apple watch so it doesn't read their pulses (they don't have any), but it will remind them of the moon phases and when they might be extra hungry to feed
at one point franco actually puts his academic skills to use and helps lando hunt down some of his family tree, because since lando was turned and it's been so long, he doesn't remember much about them : ( so one of franco's little gifts to lando is helping him trace his heritage
what do they all do for jobs/how do they get money and would Franco keep studying ? -> i love how practical-minded you are. um well let's say this fictional supernatural creatures' market mostly runs on barter trades and goodwill agreements. the entire house sometimes just gets lazy tbh so lando or carlos will just dig into one of the old chests of random shit and pull out an antique and go: "do we think this is worth anything?" then they take it to an antiques dealer who is also a mage (alex albon) and there is a 1 in 25 chance that the antique is actually is worth something, so that bankrolls them for another half a year or whatever.
carlos makes a lot of noise about being "an art dealer" just because he sold a goya painting to a museum once.
oscar is a man of industry, of the "newer" world (australia) etc etc so he spent the 80s and 90s learning C++ and Java and Python so he legit just codes for a living. or when he feels like it. oscar has helped launch at least a dozen startups under various pseudonyms and one of them is even a blue chip company by now. he doesn't do it for money tho. he just does it cus he likes a challenge, and otherwise fights with carlos too much. when he isn't coding he likes to tinker and fix things just for fun. like, he legit knows how to fix a boiler and stuff. his familiar is definitely a grumpy orange neighbourhood cat.
franco keeps studying!! he is such a nerd that he's like "i can totally learn everything about anything now, and i could in theory do like 20 masters degrees, and nobody can stop me"!! then lando is like, "well you might get bored of it after a while or burn out". but franco insists he will not. in fact with his enhanced neurological abilities he goes on an academic bender trying to fast forward through an entire harvard's undergrad degree's worth of material in a week, and he ends up faceplanting on his desk. and then poor lando has to go and find a fresh chicken or something to kill and revive franco 'cus franco wore himself out too fast being a bb vampire with accelerated mind powers.
franco promises never to do that again (but of course he will continue to do it once in a while, and everyone still looks after him in his lil study hangovers because he is so very nice. also he taught them how to use venmo.)
and. one time. franco is like. "i can't find this rare sonnet do you know what library i could maybe locate it in" and lando is like "wait i know that one" and pulls out an honest to god original copy that he at some point got laminated in the early 80s. and franco is like. "um i think this should be in a museum??" and lando is like "yeah but i gave them a copy of this, cus i spilled ink on the corner of this in 1603 after a really good night out" and franco is like "???? ok ????"
then lando swans off to moodily stare at the moon or some shit.
46 notes · View notes