Questions tagged [trim]
Trimming refers to the manipulation of a text string to remove leading and/or trailing whitespace (and/or ASCII control characters), or (optionally) a specified character.
2,467
questions
1
vote
2
answers
33
views
How to trim a string by the nth occurrence of a special character?
I have string values (filed name: filename) that follow a certain template:
filename_this_is_called_Plan_A
file_this_is_Plan_A
filename2024_this_is_known_as_Plan_A
While the strings are all a ...
0
votes
1
answer
49
views
How do I remove the leading space in an Excel cell having imported from Confluence
I've looked at similar questions but haven't managed to find an answer.
In a Confluence space, I went to Space Settings > Manage Space > Export Space > PDF. I then selected the "Select ...
0
votes
1
answer
34
views
VBA using a variable to select a column
I am extremely new to coding so forgive me if this is going to be a super simple task.
I am trying to trim any extra spaces from the beginning and end of a column called ID.
I already have a global ...
-1
votes
1
answer
34
views
Generic method signature at ILLink.Substitutions.xml
I'm using ILLink.Substitutions.xml to create a assembly library trimmable.
This would be example code.
namespace NSpace;
public static class NClass
{
public static void NGenericMethod<...
0
votes
0
answers
40
views
Handle the trimming in NestJS using Typescript (DTO files)
Below is the create-user-dto file where I have used to create the creation of an account including a username, password and a role. Done using arrays. Although I have set it up still it shows' white ...
3
votes
1
answer
58
views
Linux/C: copying a file with the last zero-filled hole trimmed
I have a a software (C/C++/Linux) comprised of three services using a tmpfs file as shared memory. We ftruncate the file to 1GB for convenience, but the file will only contain in practice no more than ...
-3
votes
1
answer
62
views
Hi! Can someone please help me figure out why and how this query works? I can't understand the logic behind it. Thanks so much [closed]
Screenshot illustrating the problem
TASK: separate the location column into two columns for latitude and longitude.
Location column:
(37.709725805163, -122.413623946206)
Query:
SELECT
location,
...
1
vote
1
answer
67
views
Micro focus Content Manager CMServiceAPI POST error
I am testing the Micro focus Content Manager 23.4 in the dev environment using CMServiceAPI , all the GET functions work fine, however all the POST function get 403 error: Could not deserialize ...
0
votes
1
answer
104
views
Having trouble with the mutool trim command
Can anyone please help with mutool syntax?
I am trying to trim 50points off the left of a media box.
-pages tells me this for all pdf pages....
I try....
trim -mL50 and every possible syntax ...
1
vote
0
answers
167
views
Blazor 8 trimming: how to remove IL warnings from components and platforms methods
While migrating to net 8.0, we've enabled partial trimming on the blazor project. We've also opted for disabling trimming for our rest service helpers since they use reflection (migration to source ...
0
votes
0
answers
55
views
What's wrong with this trimmomatic PE command?
I'm creating a custom pipline for learning nextflow, and I want to use trimmomatic PE. But I get error from the process, but due to terrible trimmomatic error messages it can be known nothing, so I ...
0
votes
2
answers
98
views
Use Trim Function With jsonb_array_elements in PostgreS
SELECT BTRIM('"enterprise"', '"')
> Output = enterprise
I need to use BTRIM function to trim the double quotes like above, with jsonb_array_elements function.
I have a query like ...
0
votes
1
answer
40
views
Python right part from string when word found [duplicate]
I am writing python code to take in some audio file, and remove some part of it when 'begin' is found. The code should remove all the text to the left when the word 'begin' is found in the text ...
0
votes
1
answer
113
views
How to understand the trimmed mean in Scipy
I can't explain the behaviour of trim_mean() in Scipy.stats.
I learned that trimmed mean calculates the average of a series of numbers after discarding given parts of a probability distribution.
In ...
-1
votes
2
answers
57
views
TRIM is not working under MAX function in Oracle
I have a select query where I want to TRIM one column, which is already as MAX function. I tried like the below but it's not working.
SELECT MAX( id ) KEEP ( -- 102436
DENSE_RANK LAST
...