Questions tagged [text]
Text is a sequence of printable characters.
31,761
questions
0
votes
0
answers
5
views
External file number update
I am having a hard time even searching for what I want let alone figuring out how to do it.
What I want to do is to update a number one a webpage from a separate file. For example on the main web ...
0
votes
1
answer
18
views
React native components 50% faster
I was reading these posts on Twitter, where they say that it is possible to speed up components by 50%.
Link: https://twitter.com/natebirdman/status/1695511232298783079
Link: https://twitter.com/...
0
votes
3
answers
68
views
Extract required values from a text corresponding to given string matches
I have the following string.
*******************************************************************************
* *
* ...
0
votes
0
answers
16
views
how to implement markdown to support text selection with SwiftUI [closed]
I am learning SwiftUI and currently trying to develop a learning assistance app. There is a feature that seems quite challenging to implement:
Save the content that needs to be studied, such as an ...
-1
votes
0
answers
18
views
How to pass train text to NLP classifier model
I want to make and NLP text classifier which trains on df.columns[data_as_text, text_category], so then it can be given text and predict its' category. As a baseline i want to use SMV model and I don'...
0
votes
1
answer
17
views
How to assign text to string from an XPath that contains text() function using selenium?
I am trying to assign the string text value retrieved from a XPath that contains "/text()" function. However, when I try the selenium method "GetText()" & "GetAttribute()&...
-2
votes
1
answer
18
views
sed find in finded and replace [closed]
For example this is a file:
name=name1
link=link1
description=description1
name=name2
link=link2
description=description2
name=name3
link=link3
description=description3
How to ask sed to find "...
0
votes
0
answers
9
views
Adjust Image size to Textbox in Wordpress
I'm new to WordPress and I have looked for an answer on google and in here but had no luck. I have a two column area where in the left column there is some text and in the right there should be an ...
0
votes
3
answers
54
views
Xpath select text without tagname, attribute
i have a weired problem and hope u can help me. Is there a good way to read the marked numbers (123456789)?
<tr>
<td>
<div style="width: 98%;" class="...
-1
votes
1
answer
34
views
Detect (invalid) text files that do not end in line break [duplicate]
How can I use standard Unix tools to detect files which are "text files" that are invalid because they don't have a final line break?
As we know, an essential property of a text file is that ...
0
votes
1
answer
54
views
I want to extract all JSON objects from this text file and create a dictionary. As you can see, in my text there are nested objects as a key value
text = Autotune exists! Hoorah! You can use microbolus-related features. {"iob":0.121,
"activity":0.0079,
"basaliob":-1.447,
"bolusiob":1.568,
"...
-4
votes
0
answers
23
views
Is there a way to print the result of a function into another cell as plain text? [closed]
I'm making a spreadsheet to parse the LINEST function as the data it spits out is difficult to process manually as a block of numbers. I'm trying to set it up in a way that you can copy and paste the ...
-1
votes
1
answer
31
views
Any python methods/package to force convert text to string format, automatically taking care of all issues?
Here's an example:
The Chittagong Club was a colonial relic, a gated remnant of the Raj, the era of British rule. On
its veranda, the wives of English tea planters once sipped their gin and tonics and ...
0
votes
1
answer
23
views
How can I let the text label in FloatingActionButton.extended word wrap without specifying its width?
I tried everything including Expanded, Container (with double.infinity with or not), Wrap, FractionallySizedBox. And it always either shows me the overflow issue, completely crashes, or makes the text ...
-2
votes
0
answers
44
views
Parsing large text file in Qt [closed]
I am looking for good way to parse a large plain text log file in Qt and filtering it from specific keywords in each line.
What I am currently doing is this:
QFile log(this->logFile);
if (log....
0
votes
1
answer
23
views
Simple python exe app doest not wrtite text to selected file whenever is stared by Task scheduller
This is my simple code:
f = open("mytext.txt", "a")
f.write("Now the file has more content!")
f.close()
When I start it by Task Scheduller, I don´t see any error, but ...
0
votes
1
answer
17
views
Draggable (or click) labels changing the parameters in flutter
The following illustration most probably will be able to tell my question in an easier way.
as seen in the image, when the user drags the text "CLASS 5" horizontally to the left, text will ...
0
votes
1
answer
57
views
Persian letters should start from the left like English
This is my original text
یه لحظه خودم رو گم کردم
And I need to be able to convert in this way
مدﺮﮐ ﻢﮔ ور مدﻮﺧ ﻪﻈﺤﻟ ﻪﻳ
Any way you say, I tried, but I didn't get the result, I did all the work in ...
-6
votes
0
answers
19
views
How to grab text that user typing on any webpage inside any message box and replace that text with some other text [duplicate]
Like grammerly I want to grab the area whee user is typing and want to grab the text and replace it with some other text. Due to diffrence arrangments of elemnts on various website I am not able to ...
0
votes
2
answers
25
views
How to color element of text in RMarkdown for a pdf file
I am trying to color in red a part of a text for a pdf file
---
output: pdf_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## *Title*
Text <p style="color:...
0
votes
1
answer
30
views
How to center in specific section of a pdf file created with RMarkdown a subtitle
I am trying to center the subtitle of a section for a pdf created with RMarkdown.
I am using the following code
---
title: "example"
author: "X"
date: "2023-09-23"
output:...
-1
votes
0
answers
24
views
Langchain error: 'FieldInfo' object has no attribute 'split_documents'
After running the streamlit I got an error saying: AttributeError: 'FieldInfo' object has no attribute 'split_documents'
enter image description here
class WebpageQATool(BaseTool):
name = "...
-1
votes
0
answers
28
views
Why is the phrase 'i guess' crashing my batch file in an if command? [duplicate]
I'm brand new and trying to learn batch files. Like, 4 hours ago brand new. Unfortunately, I've spent 2 of those trying to figure this out. I wanted to write a simple text game for my wife to try out. ...
-3
votes
0
answers
14
views
Keras Text Extraction with python [closed]
I have a simple idea, but no idea how to implement it. I need an ai that can choose out keywords from a sentence so that it can be used in a later command. I have around 400-500 lines of text as ...
-3
votes
0
answers
76
views
Removing duplicates in different files using Powershell [closed]
Note: Still new to Powershell.
Lets say I have a several text files:
aAll.txt
aYellow.txt
aBlue.txt
aGreen.txt
aAll.txt contains 5 names:
Alex B.
John D.
Peter L.
Teresa D.
George. I.
aBlue.txt ...
-1
votes
0
answers
22
views
Python: Parse structured text-file, and write to dataframe
I am having a structured .txt file. Each line has exactly 133 columns.
I want to transform this text file into a table, following specific patterns.
This is the anonymized text file:
https://hastebin....
0
votes
0
answers
10
views
How to print in pdf with RMarkdown the indentations of the text
I am trying to report in a pdf file the following text
---
title: "Example"
author: "X"
date: "todayàs date"
output: pdf_document
---
```{r setup, include=FALSE}
knitr::...
0
votes
0
answers
8
views
simplehtmldom returning span plaintext is not handled as string
I am getting a plain text from a span with this code
$availability = $html->find('span.editable',1)->plaintext;
$searchstring = "Άμεσα Διαθέσιμο";
$cleanavailability = trim($...
0
votes
0
answers
25
views
Faster approach to collect text data from multiple URL and save it to the dataframe rowwise for each URL
I have a DataFrame of shape (700000,5). One column of the DataFrame has single unique text file URL
Example:
Two columns showing for reference:
Task identifier
Text url
ub12345567
https:/ / someadd....
-1
votes
1
answer
38
views
How to create a outlined text with filled body in Jetpack Compose
To create an outlined text you can apply a stroke effect to it but then it leaves the body transparent.
What I want to achieve here is
rather than
For creating the stroke effect we only need to have ...
0
votes
1
answer
37
views
How can we fix the instructional text so it does not stay permanent?
So I have a code that put instructional text in several cells (C9, C10, C18, C26 and C32). The instructional text disappears after a second if you don't stay on the cell. The problem is, my text is ...
-1
votes
2
answers
69
views
Java - String that starts with '#'
Can someone explain to me, why we need to write 'line.indexOf('#') == 0' in this code? I'm trying to load data from a text file and create objects.
Path path = Paths.get(getClass()....
0
votes
0
answers
20
views
One image from file and 4 text fields from MySQL database into PDF using FPDF
The MySQL database has over 100 rows. The first field in the table is the image file location and the rest of the fields are text for a total of 5 fields per line.
I can get all the text from the ...
1
vote
1
answer
77
views
Extracting the root of words with awk
I have an awk script that finds word frequencies.
{$0 = tolower($0)} {gsub(/[[:punct:]]/, "")} {for(i=1;i<=NF;i++) a[$i]++} END {for(k in a) print k,a[k]}
I work with Turkish text. ...
0
votes
0
answers
6
views
Manim: how to define a template for Text objects?
I have to create many Text objects that differs only in the .text.
I tried
newtext=templatetext.copy()
newtext1.text="Nuevo texto"
self.play(Write(newtext1))
but after rendering I see the ...
-1
votes
2
answers
41
views
Dart regex: how to replace matching substring with uppercase?
Replace all lowercase letter starting with underscore to uppercase. e.g.,
hello_world --> helloWorld
hello --> hello
today_is_monday -> todayIsMonday
1
vote
1
answer
69
views
How to split an array of string nodes at given index?
I probably need to use other data structure, but I'm stuck with this solution for now. Will appreciate any advice on this.
For now I have this data structure:
const data = [
{
id: 'node-1',...
0
votes
1
answer
26
views
Sudden Word vba error '-2146959355 (800800005)' No Such interface Supported
Based on this previous question:
Extracting whole Sentences from PDFs (as best as possible) - Plain Text From PDF without inserting line breaks
Trying to achieve a similar script to convert PDFs to ...
0
votes
0
answers
13
views
Potential UDP data loss or wrong Python syntax
I am doing a project involving UDP from teensy 4.1 to PC. After some experiments and help from forums I managed to acquire data on teensy and send to the PC via regular Cat5e twisted pair cable. The ...
0
votes
1
answer
18
views
extract alphanumeric from text in dataframe in Python
I have a data frame that is called df and looks like this
Text No
c0404079=0.00 34
c1444716<=0.00 45
1c0<0226311 <= 0.00 36
...
0
votes
1
answer
53
views
Replace Special Character (ò → ⊕) when typing
Windows 10 here. I'm using the English (Canada) keyboard. Whenever I type ALT + 8853 (alt code) I get ò, which I want AutoHotKey to automatically replace with ⊕.
::a::b works but the moment I add ò as ...
0
votes
0
answers
3
views
Resolving an issue creating a file within a shared folder within a virtual machine
Set up a VM and created a shared folder and within this folder wanted to create a file using the touch command and got this
touch: setting times of 'text.txt': No such file or directory
Can anyone ...
0
votes
0
answers
35
views
How can I identify the number of occurrences of multiple custom emotions, grouped by line, team, and personal ID?
I have a data frame like the following (but much larger and with repeated observations across time):
df <- data.frame(
participant_ID = 1:4,
TeamID = c("A", "A", "B", ...
0
votes
0
answers
36
views
My txt to CSV code drops everything into one column
I've tried so many different approaches and I cannot figure out how to get my code to work so that my text > CSV conversion has the data separated into same structure as the text file. Everything ...
0
votes
1
answer
34
views
How to separate two different languages in single column to two different columns
My dataset contains two different languages in single column. Is their any solution to split the languages to two different columns in QGIS Below mentioned example for quick reference. I have this ...
-2
votes
1
answer
36
views
Python: how to read text file then count specific word and print date,time from another line when found specific word
how to read text file then count specific word and print date,time from another line when found specific word
for example text file
2023-09-15T16:55:10Z word word
word word
word **specific word** word ...
0
votes
0
answers
62
views
Comparing embedding differences between OpenAI (via httr2) and HuggingFace (via ‘text’)?
For two R libraries, I'm trying to understand the differencs between the embeddings for httr2 (OpenAI) and text (huggingface) libraries, respectively. For example, is it possible to exchange/convert ...
1
vote
0
answers
19
views
Rewrite sentences from first person to third person and vice versa using python packages
Are there any packages in python that can rewrite large content from Person's point of view i.e first person to third person and Third person to First person
I ate apple yesterday
He ate apple ...
0
votes
0
answers
11
views
Highlight Ellipsis when search text is found in the hidden part of the overflown text
I have below code which is created when a user tries to search (e.g. 'h name'). The searched text is highlighted in yellow (see the snippet).
div {
width: 180px;
text-overflow: ellipsis;
...
0
votes
0
answers
30
views
Sync data between instances using binary data
I sporadically sync data from a small set of tables in production. I cannot access the production machine directly, so historically
I submit "select * from dbo.source",
DBA copies from ...