Skip to main content

All Questions

Tagged with or
7706 votes
57 answers
12.1m views

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 '...
Nathan's user avatar
  • 79.4k
1094 votes
15 answers
676k views

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 ...
Adam Matan's user avatar
  • 138k
1083 votes
31 answers
2.7m views

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?
Tim the Enchanter's user avatar
1020 votes
21 answers
1.4m views

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 ...
950 votes
7 answers
1.8m views

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(&...
The Woo's user avatar
  • 18.7k
921 votes
9 answers
547k views

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 ...
Tom's user avatar
  • 30.8k
831 votes
14 answers
1.5m views

How to remove spaces in a string? For instance: Input: '/var/www/site/Brand new document.docx' Output: '/var/www/site/Brandnewdocument.docx'
Joseandro Luiz's user avatar
667 votes
43 answers
1.1m views

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 ...
Curtis's user avatar
  • 6,682
662 votes
9 answers
971k views

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 ...
Arnkrishn's user avatar
  • 30.6k
627 votes
21 answers
646k views

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 ...
581 votes
19 answers
631k views

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 ...
znq's user avatar
  • 45k
521 votes
22 answers
612k views

How do you change text/font settings in an Android TextView? For example, how do you make the text bold?
nithin's user avatar
  • 5,211
502 votes
2 answers
509k views

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?
user3840485's user avatar
  • 5,155
500 votes
17 answers
694k views

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.
Taranath Datta's user avatar
493 votes
26 answers
1.4m views

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 ...
MokiTa's user avatar
  • 5,130

15 30 50 per page
1
2 3 4 5
2158