1,013 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
42
views
Multiple flutter BLoCs communication
I would like to chain two BLoCs.
My app supports multiple accounts. Therefore, I have a global BLoC that contains the currently selected account (GlobalAppCubit with GlobalAppState).
Then I have ...
3
votes
0
answers
58
views
JavaFX Chained MappedBindings Repeated Executions
I noticed that some of my mappings were being executed multiple times and decided to investigate. I found out that chaining multiple ObservableValue#map calls, then adding a listener to the result ...
4
votes
1
answer
233
views
How to avoid nested `Result` objects when using `mapCatching` with a transformation that returns a `Result` in Kotlin?
We are working with Kotlin's Result class and the mapCatching function, which takes a transformation function that may return an arbitrary type. In our case, the transformation itself can fail, so we ...
0
votes
0
answers
87
views
Why this code work incorrect? What i do wrong?
please help me to understand.
This code doesn't work the way I think it should work.
What am I doing wrong? Add() method of A class return refference to newly created object in chlds vector. Then i ...
0
votes
1
answer
65
views
Grouping functions together in javascript
I'm trying to group functions together in javascript, though I have some difficulty understanding how to keep track of the groups. In the below example, my question is: How does: "some.get('...
1
vote
3
answers
233
views
More efficient way to replace `.loc` method with chaining in Pandas DataFrame operations
I'm currently working on a project where I need to perform conditional replacements in a Pandas DataFrame. I've implemented a solution, but I'm wondering if there's a more efficient way to achieve the ...
3
votes
1
answer
77
views
Replace chars in existing column names without creating new columns
I am reading a csv file and need to normalize the column names as part of a larger function chaining operation. I want to do everything with function chaining.
When using the recommended name.map ...
1
vote
1
answer
54
views
Are intermediate results piped using _ in chained operations available to subsequent functions in the chain?
I am creating a correlation matrix from which I want to obtain the max positive correlation value. Applying max() to the corr() results will just return 1.0 for the correlations along the axis, which ...
0
votes
1
answer
56
views
Can't stop promise chain javascript
I have a stream of text that I send to a function to turn into speech. I send the text sentence by sentence for better latency. The issue im running into is handling interruptions. Right now, I send ...
0
votes
0
answers
31
views
understanding selenium chaining call
I am confused about the implicit call which is chain call:
WebDriver driver = new ChromeDriver();
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10));
driver.manager(); return a ...
0
votes
0
answers
92
views
How to write 2 consequent recursions with Completable future?
I have the following code which tries to get a /ready endpoint of a service until it returns OK and then makes a call to that service when it is available:
@PostConstruct
void registerMetadata() {
...
0
votes
1
answer
245
views
Chaining bash or dash commands with just a space instead of ; semicolon ; or && or &&
Normal command chaining methods work normally, for instance:
$ (SCRATCH='heya'; echo $SCRATCH)
heya
Or using the logic operator && yields predictable results:
$ (SCRATCH='heya' && ...
2
votes
5
answers
85
views
How to Select First N Key-ordered Values of column within a grouping variable in Pandas DataFrame
I have a dataset:
import pandas as pd
data = [
('A', 'X'),
('A', 'X'),
('A', 'Y'),
('A', 'Z'),
('B', 1),
('B', 1),
('B', 2),
('B', 2),
('B', 3),
('B', 3),
(...
-1
votes
2
answers
158
views
Data Wrangling in Python in Chaining Style from R
I'm new to Python and I come from the R environment. One thing that I love in R is the ability to write down code that will make some many transformations on the data in one readable chunk of code
But ...
0
votes
1
answer
116
views
Chaining unlimited promises
I am trying to do an (expensive) computation from a function which gets called very often and needs to return as quickly as possible. The computation itself doesn't need to be done quickly, it's more ...