2,988 questions
0
votes
0
answers
67
views
PostCSS parent Selector is adding :is() pseudo after compilation and not producing compatible css
I have just migrated from SCSS to PostCSS and encountered only one issue I cannot resolve.
The issue concerns how to alter a the styles of a nested element when its parent has a specific class.
The ...
0
votes
0
answers
37
views
Parent/Child sum when each parent has different number of children (and the excel is formatted poorly)
I've looked all week for a solution to this - would love some help.
I inherited a (maybe poorly designed) excel.
I would like the cells in the blue highlighted line to sum the values for the month ...
0
votes
1
answer
77
views
The parent attribute of the wp_insert_term function only works on one level
Would anyone have the solution to this problem that has been poisoning my life for 2 days already?
Here is my extremely simplified code:
<?php
// Creation of the first level: "niveau 0"
$...
0
votes
0
answers
46
views
Wpf MenuItem's parent is null in mvvm mode
I want to get the parent of menuitem in mvvm mode, so that I can add the input binding on the parent control.Here is my code.
ViewModel
namespace MenuItemMinimumDemo
{
public class MainViewModel : ...
1
vote
0
answers
26
views
Non-parent property aggregating Maven project
I have dozens of separate automated tests Maven projects. Many of these projects depend on other projects, as they all test different modules of one, massive system.
Maintaining the cohesion of these ...
0
votes
1
answer
60
views
Unhiding Parent and Children Sheets and move to Right of Index Sheet
I am calling the Parent sheet with the Listbox, and the Parent Sheet should be moved to the right of the "Index" Sheet, and then the Case Statement with the Array Sheets, which are the ...
0
votes
1
answer
426
views
How to get class name from PhpParser\Node\Stmt\Property
I am creating a Rector (rector/rector) rule that should alter properties based on some of their attributes.
PhpParser is from nikic/php-parser.
I have no problem fetching the Properties, I simply ...
0
votes
1
answer
550
views
MAUI CollectionView Parent value to children example/guidance needed
This should (hopefully) be an easy thing to answer. I have a collection view that is bound to a JSON data source, and a button in the first level of the JSON file that I store a value for (in ...
0
votes
2
answers
61
views
Put information in localStorage with react
I am working on a showcase website for an alcohol brand and I would like when the site is initialized, a component (a modal that I have already created) is displayed for the user's first visit, but ...
-1
votes
1
answer
59
views
Why does element a not take the text color from its predecessors [duplicate]
This is the code
<nav class="navbar">
<h1 class="logo">ADVENTURE</h1>
<ul class="nav-links">
<li><a href=&...
1
vote
0
answers
158
views
PowerShell, Create a separate Parent process that will not die when the creating process dies
This question has been asked here, but I do not find any workable solution there (it is pointed out in comments below that Start-Process powershell.exe does create an independent process so that I am ...
0
votes
1
answer
51
views
Nesting bindable components within components Blazor
Say I have the following scenario:
Parent.razor
<Child bind-Value=registration />
@code{
Registration registration = new();
}
Child.razor
<InputText class="form-control" @bind-...
0
votes
3
answers
72
views
CSS size nested DIV based on parent parent DIV size
Say I have this HTML
<div id="outer">
<div id="inner">
<div id="nested">
</div>
</div>
</div>
Where
all the DIVs are ...
1
vote
0
answers
58
views
Container Inset box-shadow over child image
I have a container which holds a child image, and that container has a scrollable overflow. I'm trying to add an inset box-shadow which overlays the image to give the impression that the image is set ...
1
vote
0
answers
26
views
How to Get Parent node path for Child node in Inner JSON structure for Java?
Sample JSON format is like below, need to fetch parent of child node each one step up and at-last have to capture complete path from child node -> top node. Any sample references would be really ...
1
vote
0
answers
538
views
How to Remove slug from Custom Post type created from Custom Post Type UI WordPress plugin?
I have created a custom post type called "product" using 'Custom Post Type UI' WordPress plugin and have created few pages using "product CPT" with assigning a parent.
Existing url ...
1
vote
1
answer
77
views
Optionally reference parent struct
I'm trying to implement a "scope" in Rust in which it can contain values. It can optionally have a parent scope which it can look up if the parent contains the value but it doesn't.
The ...
2
votes
1
answer
129
views
Debugging parent class constructor
I am trying to debug the constructor of an R6 parent class via invoking the child class.
Here is the code
library(R6)
parent <- R6Class(
"parent",
public=list(
y=data.table(),
...
1
vote
0
answers
95
views
how to save entity with parent in gorm
I have entity in gorm
type Category struct {
ID string `json:"id"`
Name string `json:"name"`
ParentID string `json:"parent_id" gorm:"...
1
vote
0
answers
1k
views
Import struct from main package into another package in golang
I have two packages main and test. I'm working on test package and I need to import a struct that is decalared inside main package, but it seems to be impossible!
This is my directory structure:
root/
...
0
votes
1
answer
258
views
Create a parent React project (Shared)
We are going to create a new React environment and we need to create multiple projects that will have the same visual, sort of (same nav bar, components, etc).
I want to know if it's feasible to do ...
0
votes
0
answers
68
views
What is parent directory of a process?
In lsof output, it mentions 3 types of directories, cwd, rtd and pd. I understand cwd and rtd. But what is pd aka., parent directory for a process? I tried lsof | grep ' pd ', but I got no output. So ...
1
vote
1
answer
77
views
Get the Window for a JMenuItem?
Is there a way to get the Window which a JMenuItem belongs to? I tried this proof of-concept:
JFrame testFrame = new JFrame();
testFrame.setSize(300, 100);
testFrame.setLocationRelativeTo(null);
...
1
vote
1
answer
227
views
Powershell find and add files to zip by matching filename and its parent folder-name
Need powershell script for the below:
provided comma-separated filenames with parent folder like below:
$itemsToInclude = "stage\arsw.war,dev\deployfile"
I wish to search recursively for ...
1
vote
2
answers
58
views
java Script give an error when i make new div
i have this html code
<div class="form-group">
<label>Debt Type:</label>
<select id="debtType" placeholder="Chose Type of Debt" ...
0
votes
0
answers
35
views
create a folder out of working folder without use of double period with Dir.mkdir
Is it possible to create a folder outside of working folder without direct use of double period with ruby's Dir.mkdir s or mkdir_p s. I am interested in linux-like systems only.
My goal it to sanitise ...
1
vote
1
answer
235
views
Xamarin Forms Inconsistent 'Page must not already have a parent' crash
When navigation buttons are clicked way to quickly in an app the app used to crash, as Xamarin would get confused about which page to add and try to push or popto one that didn't exist. This bug has ...
0
votes
2
answers
51
views
Why my child component is not re-rendering after addition and deletion of comments
I have singlePost component in which post is loaded now I create another component Comments, when I add or delete comment from the Comment section it is not re-rendering to show me result of that ...
1
vote
1
answer
74
views
AspectJ declare parents JPanel+
I would like to make a few classes extending JPanel actually extend a class of my own in between.
So, I tried this:
public aspect MyAspect
{
public static class MyPanel
extends JPanel
{
...
0
votes
2
answers
362
views
How can i remove a filter svg from the children?
i'd like to remove the svg filter i added to a div from the button children but i'm blocked
HTML
<div id="parchment" class="contain">
<button style="background-...
1
vote
0
answers
33
views
VBA to move Email from Inbox to a Created Default/Parent Folder (Not a Subfolder) in Outlook [duplicate]
We have a folder in Outlook named "Reports" that was actually created on the same level as the default folders in Outlook (i.e. Inbox, Drafts, Sent Items, etc.)
Most of the tutorials out ...
0
votes
1
answer
603
views
how to traverse and get the text value of the sibling of a parent in Cypress
Is there a way to get the text of the sibling of a parent in Cypress?
I tried this but cypress can't find the element of the siblings
cy.get('[role="switch"]')
.parentsUntil('[class="...
0
votes
0
answers
282
views
Javascript Node.contains() returning true and false when checking if element is child of parent
I am trying to restrict the navigation on my web application to a specific element while cycling through elements using the ''tab'' key. I check if the element I just ''tabbed'' to is a child of this ...
0
votes
1
answer
29
views
Populate arraylist with different objects inherited from multiple classses
I have class parent A with children B,C,D.
Now I have another class E which should have an arraylist containing objects from classes B, C, D.
I thought of class E should extend class A, but I do not ...
0
votes
0
answers
174
views
Child branch not animating with parent view
I have the following custom action sheet with options (details omitted for simplicity):
var sheet: some View {
VStack {
HStack { /* some stuff here */ }
list(of: options)
...
1
vote
1
answer
199
views
Use localPosition and localRotation of a child to align parent (Unity, QR-Codes)
I'm using an editor to spread QR-Codes in local space of an object. For better understanding, I'll try to explain it with an example:
First I load a model of a car into the editor. This model is our ...
0
votes
1
answer
41
views
Parent Component State Array does not update properly
I am building a game on React.
The first part is an array which is a state defined this way:
const [mainBoard, setMainBoard] = useState(
new Array(9).fill({ val: null, disabled: false })
);
...
0
votes
0
answers
83
views
Calling virtual function in a parent/inherited class
I have the following code in C++:
#include <iostream>
using namespace std ;
class A{
public:
void m1(){
cout << "A" << endl;
}
virtual void m2(){
cout <&...
-1
votes
1
answer
33
views
How do I fix the tree traversal in my find_parents method?
I have the following tree and the function find_parents() from my class:
├── A
│ ├── B
│ │ ├── D
│ │ └── E
│ └── C
│ ├── F
│ └── D
├── E
└── F
class Knoten:
def __init__(...
0
votes
1
answer
27
views
|Python| Find Parents from Tree Methode doesn't word (EN/DE)
I have the following tree and function from a class:
├── A
│ ├── B
│ │ ├── D
│ │ └── E
│ └── C
│ ├── F
│ └── D
├── E
└── F
def find_parents(self, target_val, parents=None):
...
0
votes
1
answer
96
views
How to override parent's styles in css? [duplicate]
In this example, I want the purple rectangle to change its opacity to 100% regardless of the value of the parent. I tried using all: unset/initial and !important but it doesn't seem to work.
.rect ...
0
votes
1
answer
34
views
Find element by class under the same parent
Any particular reason about this isn't matching the element with that class?
I have checked a million times and can't see what is that I'm doing wrong.
$('.lnk-folder').click(function(e) {
e....
0
votes
2
answers
63
views
Get parent element reference in a json query
I have the following json:
{
"virtual_machines": [
{
"guest_name": "guest1",
"mac_address": [
"00:01:02:03:04:05"
],
...
2
votes
1
answer
63
views
How to add class to parent elements?
For the span element with the class "arrows", I'm trying to add a class to the div with the class "collapse" from its parents and also an attribute to the div with the class "...
0
votes
2
answers
29
views
Rails model related to two models with a common grandparent...how to create a validation and factory?
I have a Submission model that belongs_to two different models: Student and Quiz.
Student and Quiz each individually belong_to a Course.
When a student sends a Submission for a quiz, it is assumed ...
1
vote
1
answer
45
views
Django: check if the object has a parent and a grandparent
I'm developing a website with a 3-level hierarchy of pages, so each page may have a parent and a "grandparent" (actually, a parent of parent) page.
In my PageUpdateView I have a ...
0
votes
1
answer
65
views
Django request select_related how to access grandparent
I'm constructing a website with a 3-level hierarchy of pages, so my Page model have a foreign key, referring to itself:
class Page(models.Model):
...
parent = models.ForeignKey('...
0
votes
1
answer
51
views
How to limit nested model total counts?
as title, I have product & order model with nested relationship, like:
resources :products do
resources :orders
end
Products has a filed, it name is 'amount', for example is 5.
how can I limit ...
2
votes
0
answers
430
views
"parent error" when using callbacks in lightning.pytorch Trainer
I am trying to replicate the multimodal transformer tutorial shown here in a colab notebook. However, this is a relatively old script and lightning.pytorch has changed significantly. I've adapted it ...
0
votes
0
answers
3k
views
Flutter GoRouter Shell Route with Parent Navigator Key
Using GoRouter, a GoRoute can be added a parent ShellRoute's navigator by using the parentNavigatorKey property.
However, there are certain situations where it would be necessary for that GoRoute's ...