Text Questions
Ad
Odd glitches occurring when trying to replace word in a file
This question is split into 3 parts : 'the idea', 'assumptions' and 'code mre', so that you may
Material Autocomplete does not work with InputProps
I am trying to change the border of my textfield that is rendered through my autocomplete, but when i add the
React Context doesn't render component
I'm using context and react router. when i created my context and wrapped my components, nothing rendered. when i check the console, i can see the
How to get the number of results found for a keyword in google
I need to supply a keyword like "blue metal kettle" (with/without quotes) and get only the number of results found for this search. if i search
React Context: TypeError: Cannot read property 'areResultsVisible' of undefined
Can someone please help me? i'm trying to pass data through context from one component to another (from search.js to container.js). however, i'm
React: How to return value from method of Context
I want to return a boolean value from a method within my context, how would i do that? my approach is obviously not correct. as a beginner i often
Changing TextField color in a react/material ui
I have a react component with a text field and a button. i want them to appear green on a black background, and i'm not able to change the default
Trying to make a simple program (in C) that copies all non empty lines from a given text file into a new text file
This is what i tried doing (if the first charcacter of a line is '\n' it must necessarily be an empty line) but it gives me the error
text to Morse code translator works but prints (null)
I figured out how i can translate a userinput into morse code. it works. the only thing messing with me is that no matter what input i give, at
why firebase registration with textwatcher is not working?
I'm building the registration activity in which i use a textwatcher to see if email or password are empty, if all is correct is supposed to go
Ad
Is it possible to use the same <Context.Provider> on multiple components?
I know that i can wrap hoc with my <context.provider> and consume it in all child components. i would like to consume
How to split a string into words. Ex: "stringintowords" -> "String Into Words"?
What is the right way to split a string into words ? (string doesn't contain any spaces or punctuation marks) for example:
trying to execute a function that is passed to a component using context
I am trying to learn the concept of context in react, i am trying to
Destructuring an object in TS
I have this ts code, and i want to make that part to be also typed : const { data: { person, car, another } }: any =
Where can I find an AutoComplete TextBox code sample for Silverlight?
I've searched around for a while today, but i haven't been able to come up with an autocomplete textbox code sample for silverlight 2 beta 2. the
How to do hit-highlighting of results from a SQL Server full-text query
We have a web application that uses sql server 2008 as the database. our users are able to do full-text searches on particular columns in the
In TextWrangler, can I set the number of spaces per tab on a per-file-extension basis?
I want to use 4 spaces per tab in my python code (.py files) and 2 spaces per tab in my javascript (.js files), and it is cumbersome to keep going
How to always link math in sublime text?
Whenever i want to build a c program with math functions, it complains about undefined references because sublime text 3 does not link math by
How to clear TextInput on send button in React native with redux
I am working on chat app using react native with redux, where messages are sending through the send button. but whenever i sent a message on
Why does the compiler allocate excess memory when reading a text file?
I'm trying to read a text file into a dynamic string (char * array). initially, i get the length of the file using
Searching subversion history (full text)
Is there a way to perform a full text search of a subversion repository, including all the history? for example, i've written a feature
Ad
Populate SUM of column from accessdb into textbox using javascript
I have a webpage with a few textboxes; and an access database with columns that contain numeric data, dates and user id's. i need help to
Can I use the React Context API inside a Context API or do I have to merge them?
I am just curios about if it would be possible to use the context api inside a context api. like for example i would have a context api for an
Full text search engine example in F#?
Are there any good examples (websites or books) around of how to build a full text search engine in f#?
Making a WinForms TextBox behave like your browser's address bar
When a c# winforms textbox receives focus, i want it to behave like your browser's address bar. to see what i mean, click in your web
I'm getting "[errno 22] Invalid argument: 'test.txt\r'
I'm experimenting with a python program that will allow you to edit text files, i will use this feature later on in other programs, but i get the
Best full text search alternative to MS SQL, C++ solution
What is the best full text search alternative to microsoft sql? (which works with ms sql) i'm looking for something similar to
How do you full-text search multiple criteria on left-joined tables in SQL Server?
I have a query that originally looks like this: select c.id, c.name, c.countrycode, c.customernumber, cacc.accountnumber,
ASP.NET : Binding textbox maxlength to Class constant in HTML
I am attempting to allow my web designers to use the metadata we have about database fields in the asp.net pages they are creating. the most
XAML : Binding textbox maxlength to Class constant
I am attempting to bind a wpf textbox's maxlength property to a known constant deep within a class. i am using c#. the class has a
Output line from file1 if not found in file2
I need to output the lines from file1 that are not found in file2, ideally using linux commandline. both files are uppercase a-z, sorted,
Ad
Batch modifying text.txt before a specific word
I have a file.txt where there are lines as if tank t395 level above 4 then pump pfalda395&t395 status is closed
Delete vacuum/empty line in text.txt with PHP
I try to delete the vacuum line. my script, search a line, delete her, but it's remains a vacuum line. hello dude world
Sending formatted Lotus Notes rich text email from Excel VBA
I have little lotus script or notes/domino knowledge but i have a procedure, copied from somewhere a long time ago, that allows me to email
How to programmatically run an Xpand workflow on a model in a second workbench?
I have an xtext/xpand (oaw 4.3, eclipse 3.4) generator plug-in, which i run together with the editor plug-in in a second workbench. there, i'd
sorting lines of an enormous file.txt in java
I'm working with a very big text file (755mb). i need to sort the lines (about 1890000) and then write them back in another file. i
Take off file path (home/user/file.txt = file.txt)?
So i've written a simple text editor in java, and it retrieves the file via showopendialog() and converts the filename into a string,
Is it okay to use the method of a class as contextmanager?
So, here is a simple code: from contextlib import contextmanager class a: def
Outputs to newfile if line contains "-" or " "
Is there a way to do the following python in unix command? maybe with sed or grep?? for line in open(input_file) if "-" or " "
Align text vertically flutter
I think the best way to explain my issue is with images, so this is what i want to achieve, dont mind the styling of either image.
how to get list all supported voices from Text To Speech in android studio
I am working on tts (text to speech). and i want to get the list of supported voices, what should i do example: private
How do I validate a multiline asp:textbox control using custom validators and JavaScript?
I'm trying to validate a multiline textbox control as follows: my content page (i'm using master pages) contains a text box control with a
Ad
Is there a C# auto formatter that I can use to define custom rules for formatting?
My group has a source analysis tool that enforces certain styles that we have to comply with. i can't change it, and some of the rules are just a
How to change the size of the text
How to change the text and image size of my listtile. child: listtile( title: center(
How do I Unit Test Actions without Mocking that use UpdateModel?
I have been working my way through scott guthrie's excellent post on
How to enable Full-text Indexing in SQL Server 2005 Express?
I am trying to enable full-text indexing in sql server 2005 express. i am running this on my laptop with vista ultimate. i understand that
Hot to remove one letter token with TF-IDF Vectorizer
I'm working on a small project to calculate the tf_idf in this document which basically contains book titles and their abstracts. so far i only
How to use IdentityDbContext instead of DbContext
I am following a tutorial on how to build a mvc project. i am a beginner so i am following exact steps as in tutorial. so far, my
Having problems with resizing text
I've just started a project and so far i've added a header and text. i've gotten the header to resize correctly but i'm struggling to get the text
Flutter: How to change variables through TextFormField in a AlertDialog?
I want to implement a function as following: there is a button named 自定义. in this page, there is a variable named
React context not shared between components
I use a react context between 2 components, however when i set the value this context in the child filtersbar component, it does not update or
Keep UIStackView to be positioned exactly below, top UIStackView inside a proportional UIStackView
I have this one big customview, on which i have positioned one parent uistackview to contain two uistackviews.
How to compile gettext translations in setup.py of a Django app
How can i make sure setup.py compiles projects po files and include them whenever an sdist is created. this is a django
Ad
How to stop getLineCount(); from counting empty string varianle "\n"
I'm trying to make a text area that will count the lines or typed text from an option pane. maybe a simple problem but i can't seem to prevent the
ExceptionConverter: java.io.IOException: Stream Closed when trying to create a PDF using iText
I'm working on pdf related project and i want to create a pdf from the existing pdf. all things are done but when i created a final pdf at
C++20 feature not working Ubuntu 20.04 LTS (three-way comparison)
I am trying to run the following code snippet on sublime-text on ubuntu 20.4 lts. #include <iostream> int main(){ auto
JsonSerializer.Deserialize is returning empty object
I have a webapi that returns some json:
Godot: How to pass texture as a parameter to a scene
I have a scene that represents a type of npc. these npcs have the same behavior and same animations. the only difference is that they look
Insert an image and preserve the default order of members
I want to have images after certain methods in sphinx, what i have: foo ============ ..
How to find matched word only, no substring by using pandas str.extractall?
I am working with a column of string in a dataframe, and trying to extract all words which matched any words in a giving word list. it extracted
How to output a dictionary to a text file?
I have a dictionary {'12345': ['paper', '3'], '67890': ['pen', '78'], '11223': ['olive', '100'], '33344': ['book', '18']} i need to
CGBitmapContextCreate returns NULL for some pixels of width and height
I have the following code to create a new bitmap graphics context. nslog(@"newrect width %f",newrect.size.width); nslog(@"newrect
Emoji gets Invisible on scaling of TextView
I have text view and when i add emoji in it and scale it, my emoji gets disappear & only text stays back in the scaled text view.
Ad
Compute the similarity between two txt.files
I have two text files with different words. the important thing is, that the text files just contain words and no sentences. so the first file
Not recognising hyphen on split
I'm working with about 24k text files and am splitting some lines on '-'. it works for some files, however it fails to split for some other
Why can't i use react.createContext()
Hi so i have been trying to implement react context api into my project, after follow the steps in the guide:
How create a generic activity context?
I have the next part of code in which i need to know from what type of activity was the context passed: activity activity;
TextView marquee WITHOUT android:layout_width="match_parent"
I am making a ui which will look like this
Android Handler updates TextView only with last setText()
The following code is from head first android. it is for a stopwatch app. i have a few questions in the following code: the
Is there an option that I can set my default sim number to my edittext when my cursor moves to edittext
I am setting up an app that will get an otp verification on my and then verifying the number i will get into my app. the edittext should ask me
Splitting a unique string - Python
I'm trying to find the best way to parse this type of string: operating status: not authorized out of service date: none
Mongoose search multiple fields
All, trying to implement simple search with nodejs and mongoose. not really sure where do i go wrong, trying to build up the
why TextToSpeech synthesizeToFile returns -1?
I'm trying to create a file with synthesizetofile: texttospeech tts = new texttospeech(getapplicationcontext(), this,
How to remove a dynamically created EditText?
I want to remove my dynamically created edit text but i can not find that edittext id.. basically i do not have any idea... i used this
Ad
android TextWatcher beforeTextChanged problem
In my application i have many edit text and i implemented textwatcher for them i want them to increase and decrease a textview number but i can
Update React Context without re-rendering the component making the update
I have a context and 2 components: one is displaying what is in the context, the other updating it. by having the following code in the
How to bind SQLite FTS4 query params in Kotlin
I wonder how to bind sqlite fts query params for sanitizing inputs. i was trying to run a raw query like below which ended up with a
EditText doesn't update its text
Edit2: using fragtransaction.add(fragment, tag); instead of
React Context doesn't show value in Consumer
I'm trying to pass value from context provider to consumer, but it shows nothing. i've watched many questions on stackoverflow about react
React Hook useEffect dependency issue
I'm getting a warning message on my app and i've tried lots of things to remove it, without success. error message: react
Different behavior with diffrent device in DecimalFormat
I have an edittext that converts user input, for example, 1000000 to 1,000,000. this is the code i use as a converter:
Can't change text size programmatically when using autosizing
I have multiple textviews that use app:autosizetexttype="uniform" and what i want to do is check which of those have the smallest
Create Custom Background For TextView Android
I want to develop a text view background as shown below image:
How to check if there is no text in an Image--MLKit VisionCloudTextRecognizer
I have a class called mlvision which handles the text recognition. class mlvision { lazy var vision = vision.vision() var
Why is my React component rendering twice?
I'm using react-hooks and the context api for state management. i've console logged out the context state
Ad
Set TextView inside CardView without resizing views
I am working on a settings page for an app where users would need to set text sizes based on their preference. am previewing a chunk of sample
How to remove special characters from ANDROID KEYBOARD without using custom keyboard?
I want user to input only numbers in my edit text in android application.for that i have added android:inputtype="number"
What is the correct way to display a Voice object to the user in an Android app using tts engine com.google.android.tts?
An android app running api > 21 utilizes the framework texttospeech class. the tts engine is set as com.google.android.tts. all the
How to update state of a component which uses two context consumers
I have a class component which uses two contexts with the value generated from api calls to a rest api. what i want to do is get the
How skip some line in R
I have many urls which i import their text in r. i use this code: setnames(lapply(1:1000, function(x)
Setting View.VISIBLE does not always make my views visible
I have the following list of checkboxes and textinputlayouts <checkbox
button.setText() does not work inside onClick() method
I have a view pager where each page has a cardview with an image, some text, and a button. i need the button text of each page to change after
How can I make text in UITextField all lowercase?
I have the below query to firebase which searches for usernames. let ref =
ReactJS - Get data from multiple TextField (unknown quantity) then setState
I have a list of columns, they are rendered as textfields: {columns.map((column, index) => ( <textfield
Merge 2 overlap sentences
I want to merge to 2 sentences like: sent1 = 'abcdefghiklmn' sent2 = 'ziklmopqrst'
How to format a top10 counter function
I have a list of strings and want to count the number of times each string is mentioned in the list and then format them nicely. i've
Ad
Multiple return values in reStructuredText doc strings (Python 3)
I document all my python functions with restructuredtext doc strings. unfortunately, i am missing a way to describe multiple return
How to read .txt file with lines formatted like [[xxx],[yyy]] in order do access [xxx] and [yyy] directly?
I have script that writes .txt file in such format, that is looks like this: [[1.905568], ['thu sep 26 13:17:26
Ad
Blog Categories
Ad