Questions tagged [text]
Text is a sequence of printable characters.
32,452
questions
7538
votes
56
answers
11.2m
views
Find all files containing a specific text (string) on Linux?
How do I find all files containing a specific string of text within their file contents?
The following doesn't work. It seems to display every single file in the system.
find / -type f -exec grep -H '...
1065
votes
31
answers
2.7m
views
Reading a plain text file in Java
It seems there are different ways to read and write data of files in Java.
I want to read ASCII data from a file. What are the possible ways and their differences?
1031
votes
13
answers
594k
views
Difference between text and varchar (character varying)
What's the difference between the text data type and the character varying (varchar) data types?
According to the documentation
If character varying is used without length specifier, the type ...
984
votes
21
answers
1.3m
views
Limit text length to n lines using CSS
Is it possible to limit a text length to "n" lines using CSS (or cut it when overflows vertically).
text-overflow: ellipsis; only works for 1 line text.
original text:
Ultrices natoque mus ...
923
votes
7
answers
1.7m
views
Print string to text file
In the following code, I want to substitute the value of a string variable TotalAmount into the text document, with Python:
text_file = open("Output.txt", "w")
text_file.write(&...
914
votes
9
answers
533k
views
MySQL: Large VARCHAR vs. TEXT?
I've got a messages table in MySQL which records messages between users. Apart from the typical ids and message types (all integer types) I need to save the actual message text as either VARCHAR or ...
818
votes
15
answers
1.4m
views
How to remove spaces from a string using JavaScript?
How to remove spaces in a string? For instance:
Input:
'/var/www/site/Brand new document.docx'
Output:
'/var/www/site/Brandnewdocument.docx'
652
votes
40
answers
1.1m
views
How can I insert a line break into a <Text> component in React Native?
I want to insert a new line (like \r\n, <br />) in a Text component in React Native.
If I have:
<text>
<br />
Hi~<br />
this is a test message.<br />
</text>
Then ...
644
votes
9
answers
906k
views
How to wrap text in LaTeX tables?
I am creating a report using LaTeX, however, the cell data in the table is exceeding the width of the page.
How can I wrap the text so that it falls into the next line within the same cell of the ...
617
votes
21
answers
626k
views
Best way to convert text files between character sets?
What is the fastest, easiest tool or method to convert text files between character sets?
Specifically, I need to convert from UTF-8 to ISO-8859-15 and vice versa.
Everything goes: one-liners in your ...
579
votes
19
answers
629k
views
Android: combining text & image on a Button or ImageButton
I'm trying to have an image (as the background) on a button and add dynamically, depending on what's happening during run-time, some text above/over the image.
If I use ImageButton I don't even have ...
516
votes
22
answers
598k
views
How do you change text to bold in Android?
How do you change text/font settings in an Android TextView?
For example, how do you make the text bold?
489
votes
17
answers
658k
views
How to print color in console using System.out.println?
How can I print color in console? I want to show data in colors when the processor sends data and in different colors when it receives data.
485
votes
2
answers
475k
views
Difference between VARCHAR and TEXT in MySQL [duplicate]
When we create a table in MySQL with a VARCHAR column, we have to set the length for it. But for TEXT type we don't have to provide the length.
What are the differences between VARCHAR and TEXT?
482
votes
26
answers
1.4m
views
How can I replace text with CSS?
How can I replace text with CSS using a method like this:
.pvw-title img[src*="IKON.img"] { visibility:hidden; }
Instead of ( img[src*="IKON.img"] ), I need to use something that can replace text ...