#trailing whitespace
Explore tagged Tumblr posts
marketfreshfics · 1 year ago
Note
Hiiiii!!!
I saw you're asking for prompts.
Can I get a poem from Seb's POV realising he's in love with a stoic and sarcastic MC? Pretty please? ♡
Thank you so much!!!
I find myself contemplating beneath a grand tapestry. Here, where history and footfalls erode the stone, I wait for her, a wizard with wonder cradled in my breast.
She is an enigma, a witch with a sharp gaze, chilling yet beautiful, the icicles that adorn the eaves in winter.
Her words are laced with sarcasm that bites the air, leaving trails of frost in its wake. Yet in her presence, a warmth pushes my very paradigm to shift, aligning itself with the rhythm of her heartbeat,
steady,
and unwavering, and pounding.
There is stoicism in the silent strength that she carries, an invisible mantle. For all her phlegmatic propriety, laughter is seldom heard but always marvelled, a comet streaking across the night, so breathtakingly beautiful because it is so fleeting, so untouchable; Blink and you’ll miss it.
And as she is lost in the pages of a book, I am lost in the contemplation of her, amidst the scent of ancient parchment, and incantations penned eons ago.
There is something about how she concentrates, how slender fingers tuck the stray strand behind an ear, that dredges something deep from my chest, winches it to breach the surface, and shatters the safety of my rib cage.
It calls forth those precious pieces of the past, brief and charged with an electricity that defies explanation, cherished and treasured;
A debate in the common room, heated until the embers in the fireplace grow cold. A shared glance during dinner that speaks volumes above words. A partnership in Potions that feels like an alchemy of curiosity.
She challenges me, this witch who wears armour of indifference as effortlessly as she wields a wand. Yet woven in the whitespace of her words, in silence that follows clever retorts, I hear the unspoken truths of her heart...
Oh, how they echo mine.
In a world where the future is as uncertain as the shifting staircases, I have fallen with certainty. Not for the heroines of old who grace the pages of textbooks, not for the fleeting charms of a passing fancy, but for her—the witch who does not wear her heart on her sleeve, out in the open for anyone to claim.
Hers is tucked, folded into the safety of her chest, as all precious things should be.
With any luck…mine will join her there.
68 notes · View notes
esthermika · 1 year ago
Text
guys, i did it
i made changes to the google doc i had open for 3 days!!!!!!!!!!
(deleted a trailing whitespace)
49 notes · View notes
aishutoon · 2 years ago
Text
Ok, I have an idea for an au where after fighting omori and telling his friends the truth, Sunny starts seeing creatures that are similar to Something, only he can see them following other people. They don’t seem to notice so Sunny chooses to ignore it, even when he can see the monsters growing and shrinking sometimes. 
During a visit to faraway, Sunny sees these kinds of monsters trailing his friends, but doesn’t say anything about it in fear of sounding crazy, even though the one following Kel looks particularly big. During the visit, Kel seems like his normal, cheerful self, but Sunny noted that he seemed unusually quiet and tired. When asked, Kel chalked that up to how much he was practicing for the upcoming basketball game, and he invites the whole gang to watch.
At the basketball game, everything seems normal, except that the monster is even bigger, and Kel looks even more tired than before. Still, he plays the game really well, helping his team score a lot of points. Near the end of the first quarter, Kel is getting ready to take a shot, when all of a sudden Sunny sees the monster grab him…
And Kel collapses.
Everyone freaks out, and Kel is rushed to the nurse’s office, with the rest of the gang following. The nurse says that Kel has a fever, and Sunny sees that the Something following Kel is the biggest it’s ever been. While Kel’s resting, Sunny falls asleep in one of the chairs, and somehow wakes up in whitespace. The door to the neighbor’s room is gone, but there’s an orange door with black cracks in its place.
Basically, in this au Sunny helps his friends fight off their own personal demons in their dreams before they can hurt them any further, while also trying to figure out why these monsters are attacking people in a more physical manner all of a sudden (and why he can see them in the first place)
The idea for the fight with Kel’s demon is that it’s a giant shadow creature that’s shining like a solar eclipse. Its hands are covering Kel’s mouth and have the image of a giant grin on them, and when provoked, it attacks with a bunch of spikes, like those on a cactus. All the while, Kel is yelling to sunny that he’s fine, even after everything that happened, and every time he says that, the monster heals itself.
75 notes · View notes
gankration-macani · 2 months ago
Note
[Apropos of nothing, someone sends you an email on your tablet.]
The message is pretty simple. There's a lot of trailing whitespace though, and something about it draws your focus from any other notifications.
"Hey. Hey you. Lost a buncha bets when you won that match."
.../CAUTION#COMPONENT_MEMETIC+++CONF#HIGH+++TEMPER#FAULT
Say hi to the fuckin' Duat for me.
.../WARN#COMPONENT_MEMETIC#ARM/URGENT#DISCONNECT
There is a flash, as the bottom of the message suddenly flicks into existence.
Tumblr media
hehe get rockd shoulda bet better wait wat the̵̢̮͔̋̅̊̈́͜ͅ ̸̭̱̅f̷̣̞̝͔̙̱̈́̄̀̓͘̕ͅu̴̡̢̱̱̤̰͍̯̣̻͗̆͊͂͆͗̀͝͠ċ̸̡̣͎̞͔̠͉͍͇̝̤̤̅͆́̐͐̀́̊̇ḱ̴̨̬̗̺͕͔̕
5 notes · View notes
jewelpit · 2 years ago
Text
Every now and again I think back to a previous job where I was automatic server hardware validation at a cloud hosting provider, and we had to stop sanitizing the data we were getting back from the BIOS because one of our OEMs was using trailing whitespace as a semantically significant part of their version strings.
Of course, the reason we were sanitizing in the first place was because our previous OEMs had random trailing whitespace that wasn't part of the version string 🙃
3 notes · View notes
transienttest2 · 5 days ago
Text
this post is tagged "ascii [ascii character44] test" (note the spaces).
the comma is converted to a tag separator serverside and the tags are trimmed of leading/trailing whitespace.
0 notes
dynamicscommunity101 · 9 months ago
Text
Power Automate String Tips for Improved User Experience 
Tumblr media
Introduction
Task and workflow automation is critical for productivity in today's digital workplace. Microsoft Power Automate's ability to efficiently handle strings is one of its many strong points. You may greatly improve the user experience in your applications by learning how to leverage Power Automate string functions. In order to increase usefulness and usability, we will look at some helpful hints for working with strings in Power Automate in this post.
1. Recognize the Main String Functions
Several built-in string methods in Power Automate can facilitate efficient text manipulation:
concat(): Concatenates multiple strings.
Using predefined places, the substring() function extracts a portion of a string.
trim(): Takes out a string's leading and trailing whitespace.
split(): Using a given delimiter, splits a string into an array.
Getting acquainted with these features will allow you to manage strings in your processes more effectively.
2. Employ Explicit Naming Conventions
It's crucial to give your variables in Power Automate descriptive and understandable names when working with strings. This not only makes your flows easier to comprehend, but it also makes it easier for collaborators to quickly understand why each variable exists. For example, use a variable name like customerFeedback or orderDetails instead of var1.
3. Put Error Handling in Place
Strings frequently include unexpected or erroneous data. To handle situations when strings might not live up to your expectations, provide error handling. Before carrying out any operations, use conditions to determine whether a string is empty or contains any certain characters. By being proactive, this technique can improve user experience and avoid workflow failures.
4. Enhance Management of String Length
String length management is crucial when working with user inputs or data from outside sources. To make sure that strings don't go beyond predetermined boundaries, use the length() function. Consider using the substring() function to truncate a string if it is too long. By doing this, you can keep user interfaces consistent and avoid display problems.
5. Automate Frequently Done Text Editing
Power Automate string functions can be used to identify and automate repetitive string operations in your workflows. For instance, make a reusable flow that carries out the tasks of extracting particular information from a longer string if you frequently need to do so. By doing this, you guarantee consistency throughout your operations while also saving time.
6. Incorporate String Adjustments
Never be afraid to mix and match different string functions to accomplish intricate manipulations. For instance, before giving a string to substring() for extraction, you can use trim() to tidy it up. Combining functions makes your flows simpler by enabling you to do more complex tasks in a single step.
7. Give user comments
Giving consumers rapid feedback when they input strings or when procedures depend on string data can improve user experience significantly. To let users know about successful operations or any problems discovered, think about utilizing notifications or messages. For instance, sending a brief confirmation message when a user submits a form and the data is correctly processed can increase satisfaction.
8. Evaluate and Retest
Lastly, always make sure your flows are fully tested. Observe closely how they manage strings in different situations, such as edge cases like empty strings or unanticipated formats. Get user feedback and be ready to make changes to your flows in order to enhance their usability and functionality.
Summary 
Your automated workflows' user experience can be greatly enhanced by learning how to use Power Automate string functions. You may make effective and user-friendly apps by comprehending important string operations, adhering to precise naming rules, incorporating error handling, and soliciting input from users. You'll be well-equipped to use Power Automate's string functionality to improve your automation efforts if you keep these pointers in mind. Try these strategies out now to see how they can improve your processes' efficacy and efficiency.
0 notes
aibyrdidini · 1 year ago
Text
The syntax for making a request to the Chatgpt api in Python
Tumblr media
To make a request to the ChatGPT API in Python, you can follow this syntax:
```python
import openai
# Replace with your API key
api_key = "your_api_key"
# Define a function to send messages to the ChatGPT API and receive a response
def chat_with_chatgpt(prompt, model="gpt-3.5-turbo"):
response = openai.Completion.create(
engine=model,
prompt=prompt,
max_tokens=100,
n=1,
stop=None,
temperature=0.5,
message=response.choices.text.strip()
)
return message
# Example prompt
prompt = "Hello, ChatGPT. How are you?"
# Send message and receive response
message = chat_with_chatgpt(prompt)
print(message)
```
This code uses the OpenAI Python client library to interact with the ChatGPT API. The `chat_with_chatgpt` function sends a message to the API and receives a response. The function uses the following parameters:
- `engine`: The model to use (e.g., "gpt-3.5-turbo").
- `prompt`: The text prompt to provide to the model.
- `max_tokens`: The maximum number of tokens in the response.
- `n`: The number of responses to return.
- `stop`: An optional parameter to stop the generation at a specific token or index.
- `temperature`: A parameter that controls the randomness of the generated text.
- `message`: The text of the response, stripped of any leading or trailing whitespace.
You can modify the prompt and the model as needed. For more advanced use cases, such as creating a chatbot, you can use the OpenAI Python client library to handle user input and generate responses using the ChatGPT API.
Tumblr media
RDIDINI
PROMPT ENGINEER
0 notes
iquallinfoweb · 2 years ago
Text
5 Web Design Tips For An Outstanding Site
To create a website that truly stands out in today’s digital world, you need to pay attention to the details and plan carefully. A well-designed website not only attracts visitors’ attention but also provides an excellent user experience. To achieve this, you need to follow some design principles. Here are five thorough web design tips to help you create a remarkable site that leaves a lasting impression:
Clear and Intuitive Navigation
A clear and intuitive navigation structure is essential for any successful website. It helps visitors to easily find the information they need. Here are some strategies to consider:
● Organized Menu: Organize your menu in a logical way, using short and clear labels for each section. Put related pages under relevant headings to make navigation easier. ● User-Friendly Interface: Make sure your navigation elements, such as menus and buttons, are easy to find and use. Having a consistent design and placement for them helps users navigate your site smoothly. ● Breadcrumb Trail: Add a breadcrumb trail that shows users where they are in your website’s structure. This feature lets visitors go back and explore other sections with ease.
Responsive Design for Multi-Device Compatibility
Responsive design is essential in an era where users access websites from various devices and screen sizes. A responsive website adapts its layout and content dynamically to ensure the best viewing and functionality across different platforms. Here are some practices to consider:
● Fluid Grid Layouts: Use a flexible grid system that adjusts to different screen sizes, ensuring that your content looks good and is easy to read. ● Media Queries: Use CSS media queries to apply different styles based on the user’s device features. This approach allows you to customize the user experience for different screen sizes. ● Mobile-First Approach: Start with designing your website for mobile devices, then add more features for larger screens. This strategy ensures a smooth experience on all devices.
Engaging Visuals and Compelling Imagery
Visual elements are crucial for attracting visitors and showing your brand’s personality. Using images, graphics, and videos wisely can increase user engagement significantly:
● High-Quality Images: Choose high-quality images that show your products, services, or brand in the best possible way. Images that are blurry or pixelated can affect user perception negatively. ● Consistent Branding: Make sure that your visual elements, such as color schemes, fonts, and imagery, match your brand’s identity. Consistency improves brand recognition and builds trust. ● Hero Section: Make a stunning hero section at the top of your homepage. This area should have an eye-catching image or video along with a short headline that tells your unique value proposition.
Readable Typography and Thoughtful Content Layout
Typography is more than just choosing fonts; it affects the readability and overall look of your website. A well-thought-out typography and content layout strategy improves user experience:
● Font Selection: Pick fonts that are easy to read on different screens and sizes. A pair of a readable body font and a matching header font can create a nice visual hierarchy. ● Font Sizes and Spacing: Adjust font sizes and line spacing for easy reading. Make sure that text is clear both on desktop and mobile devices without causing eye strain. ● Hierarchy and White Space: Use typography to make a clear distinction of information. Use enough white space around text and other elements to improve readability and attention.
Whitespace and Layout Harmony
Whitespace, or negative space, is the empty space around design elements. It is very important for creating a balanced and beautiful layout:
● Minimalistic Design: Adopt a minimalistic design approach that focuses on essential content and removes clutter. A clean layout improves visual appeal and makes information easier to understand. ● Balanced Composition: Place content elements in a balanced way to create a beautiful composition. Use the rule of thirds and the golden ratio for ideal layout proportions. ● Focal Points: Use whitespace smartly to highlight important content, such as call-to-action buttons, headlines, or product images. Whitespace directs users’ eyes and increases user engagement.
Using these thorough web design tips can greatly improve the quality of your website, making it not only visually attractive but also highly functional and user-friendly. By focusing on clear navigation, responsive design, engaging visuals, readable typography, and effective whitespace use, you’ll create an amazing site that connects with visitors and encourages them to explore, engage, and take desired actions.
URL :- https://i-quall.com/blogs/web-design-tips-for-an-outstanding-site/
Contact Us :– https://i-quall.com/contact-us.html
0 notes
samueldays · 2 years ago
Text
Can't help you directly, but I will commiserate that 'smart' word selection fucks around with whitespace in several ways. One is what you've noticed here. Another is this: I double-click a word to select it, which selects the letters and trailing space.
Tumblr media
This behavior is helpful for if I want to delete the selected word and leave the sentence spacing intact. However, if I use Ctrl-X Ctrl-V on the selection shown, this doesn't reproduce the original text, which I find infuriating. It drops the trailing space along the way.
Tumblr media
This particular example is from a forum post textfield, but it's common elsewhere.
Older, 'dumb' text editors like Notepad have Ctrl-X Ctrl-V working out to a null operation. Which is correct.
Do text boxes eat preceding whitespace?
They don't all of them do it. Some of them do but: Are they supposed to? Is that a Standard?
I have, right now, in my paste buffer, the string " at work" (notice space in front of "at")
Because I was writing a text like
"...headphones at work are connected..."
and I wanted to change it to
"...headphones are connected at work"
so I selected " at work", hit ctrl-x, went to the end of the line, hit ctrl-v, and my result was
"...headphones are connectedat work..."
There's some weird interaction here, it seems like it depends on (1) where I"m pasting and (2) where I copied from, because I cannot make it happen every time.
15 notes · View notes
mentalisttraceur-software · 3 years ago
Text
No matter how well you name things, there will be people who will just modify behavior or copy-paste without changing any names to match.
You can write an example of how to use your parser library and name the function `allow_trailing_commas`, but given enough time and users, you will see a function clearly based on your example, still called `allow_trailing_commas`, except it will not allow any commas, nor any trailing character for that matter - it will allow something unrelated like leading whitespace.
3 notes · View notes
Note
how do you handle whitespace, frank? what do you do with trailing spaces?
I do the same thing on line breaks that I do on spaces. The program knows that if I have one space, it is a blank line, but if I have two spaces, it is a line continuation, so it removes the previous line break (and any text I put after it, like a comment or a paragraph break) and adds a line break at the end of the paragraph.
Also I don't worry much about spacing with punctuation (or with other characters, really). So while it will sometimes insert "em dash" spaces between two "-"s for a more traditional em dash, it will do this only as a last resort when "--" doesn't look good. It's not a problem when there are not too many spaces between "-"s.
(This only applies if it is reading from my source file, not from what I have written in my editor – the program will automatically remove the "–" if it is reading from the file. I don't think it will remove trailing "-"s otherwise, though I don't remember)
So in my source text I sometimes just put line breaks every other sentence.
1 note · View note
magdasabs · 3 years ago
Note
I don't know how you're doing the pie chart entries, but is there a way to trim the leading and trailing whitespaces then ignore case?
no cause I'm not doing it, it's automatically done by google
of course at the end I could make a proper pie chart myself and do that :)
1 note · View note
aquar-io · 1 year ago
Text
linux is like a glimpse of what could have been. you can play no video games or do any work on linux.
i actually have a script on ubuntu that pastes any text i have without trailing whitespace tho
it drives me so fucking insane that when you double click a word it copies the trailing space by default. and theres no way to change this.
i fucking hate windows
try it right now. double click a word with a space after it and watch as windows decides that the space is a part of the fucking word
17 notes · View notes
programmerhumour · 6 years ago
Photo
Tumblr media
trailing whitespace in a comment
137 notes · View notes
commentsense888 · 6 years ago
Photo
Tumblr media
trailing whitespace in a comment by retired-memes https://www.reddit.com/r/ProgrammerHumor/comments/cwza50/trailing_whitespace_in_a_comment/?utm_source=ifttt
4 notes · View notes