16,547 questions
1
vote
1
answer
43
views
Lilypond nested repeat percent inside repeat segno
When nesting \repeat percent inside \repeat segno, execution skips \alternative endings, resulting in not showing the alternative endings etc. Writing out all the music without the use of \repeat ...
7
votes
1
answer
188
views
Does implicit lifetime creation apply recursively?
This question is motivated by this comment about an example in the standard:
[Example 1: When reusing storage denoted by some pointer value p, launder(reinterpret_cast<T*>(new (p) byte[n * ...
2
votes
1
answer
75
views
Handle all HTTPS redirects in top level .htaccess, when subdir .htaccess exists. .htaccess nesting problem [closed]
Dir structure:
/www/.htaccess
/www/api/.htaccess
/www/api/flight.php
File content:
#/www/.htaccess
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}/%{REQUEST_URI} [L,R=...
2
votes
1
answer
129
views
How to dynamically customize a strip_nested format from facet_wraps using purrr::map?
In a previous post, a suggestion was made to dynamically purrr::map nested facet_wrap objects based on a given variable (analyte).
Now, I would like to format strip backgrounds using this Stefan's ...
Best practices
0
votes
3
replies
81
views
Python Inheritance Class Argument NameError
I’ve searched the space of Python nested class inheritance and have read that it's not best practice. I have a NameError on the following:
class A()
pass
class B(A)
pass
I indeed ...
Advice
1
vote
3
replies
163
views
Is there a way to inherit nested types?
We're using an attribute, which looks somewhat like this (simplified):
unit SomeProject.ThreadLibrary.Attributes;
interface
type
ThreadAffinityAttribute = class (TCustomAttribute)
...
1
vote
1
answer
176
views
R lmer random effect variances depending on nested factors: lmer never stops
I would like to fit a linear mixed model with random slopes and intercepts whose variances depends on nested factors.
Here is the model (R is a factor nested in G) :
with g=1,...,G, a=10, b=20, bg = ...
-1
votes
2
answers
81
views
How to Join two RDDs in pyspark with nested tuples
I need to join two RDDs as part of my programming assignment. The problem is that the first RDD is nested, while the other is flat. I tried different things, but nothing seemed to work. Is there any ...
Advice
1
vote
8
replies
157
views
Making a palindrome out of a string of random letters (or any given value type inputs)
Found this code exercise on W3R. Been trying to figure out the relationship between the outer and inner loop (i and j), but can't seem to wrap my head around it. If anyone could walk me through this ...
-1
votes
2
answers
76
views
Nested dictionary, for yaml style markup
I couldn't figure out the way to process nested leafs/branches/parents, not sure what the actual best terminology is.
I've got the reading of the data happening correctly, far as i can tell.
Its in ...
7
votes
1
answer
218
views
Visibility of C++ nested class complete definition in the presence of forward declarations
In C++, forward declarations introduce an incomplete type. Incomplete types can be used to declare pointers, but they cannot be used to initialize values or access members because the complete ...
1
vote
1
answer
92
views
Counting values using nested SQL query
I have the following tables with values:
CREATE TABLE Produkty
(
Id NUMBER(10) NOT NULL,
Nazwa VARCHAR2(50) NOT NULL,
Status VARCHAR2(50) NOT NULL,
CONSTRAINT CHK_Status CHECK (Status ...
2
votes
1
answer
82
views
Jolt transformation with 2 level nesting and flattening it
I am trying to convert the following input to the below output using java but not able to get the inner nested attributes at all.
So from the below JSON I want to match the product class and subclass ...
0
votes
0
answers
27
views
Remove paired brackets and content within it
I need to process some data in python dataframe. The column "description" includes some special cases need to be removed.
In following example string: "LEATHER SEATS (REQ: include (Full ...
0
votes
0
answers
88
views
Evaluation of a function within a function in Mathematica
I apologise if the answer to my question is facile, but I'm new to Mathematica and normally use Matlab.
I have two variables that I define as follows:
delta = Sqrt[u^2 - 4DC(theta - lambda)];
xi = ...