Nested Custom Post Type or Custom Post Type Parents?

I’m looking to create some functionality on my custom theme I’m not sure if I need to research nested CPT or CPT with a page parent.

So my site will have two pages Cars & Bikes Each car & bike can be bought and sold at different locations there maybe more or less locations in the future so locations in my mind will be a CPT. The pages will have different information on depending on if the parent is a bike or car.

Slug Structure;

domain.com/car/london

domain.com/bike/london

What would be the best approach to setup this sort of link structure? Currently cars & bikes are pages. I can create a custom post type for locations and use categories as a taxonomy to tag them to specific categories. This will resolve any issues with page development identifying which page is page but won’t give me the urls I’m after.

Filtering nested lists while maintaining the list level

some help is needed to address an issue that even though I have been searching around I have not been able to fix it the way I want (I am a novice to Mathematica). I need to filter out sublists of a nested list while maintaining the nested list level. E.g., I have the following list (Matrix) :

{
 {
  {
   {O1,2,22,24,28,14,D1},
   {O1,1,21,23,27,13,D1},
   {O1,2,22,24,28,27,13,D1},
   {O1,2,22,24,28,14,13,D1},
   {O1,2,22,24,23,27,13,D1},
   {O1,2,22,21,23,27,13,D1},
   {O1,2,1,21,23,27,13,D1},
   {O1,1,21,23,27,28,14,D1},
   {O1,1,21,23,27,13,14,D1},
   {O1,1,21,23,24,28,14,D1},
   {O1,1,21,22,24,28,14,D1},
   {O1,1,2,22,24,28,14,D1},
   {O1,2,22,24,28,27,13,14,D1},
   {O1,2,22,24,23,27,28,14,D1},
   {O1,1,2,22,21,23,25,9,10,26,24,28,18,17,27,13,14,D1},
   {O1,1,2,22,21,23,25,9,10,26,24,28,16,15,27,13,14,D1},
   {O1,1,2,22,21,23,25,7,8,26,24,28,20,19,27,13,14,D1},
   {O1,1,2,22,21,23,25,7,8,26,24,28,18,PoP2,17,27,13,D1},
   {O1,1,2,22,21,23,25,7,8,26,24,28,18,17,27,13,14,D1},
   {O1,1,2,22,21,23,25,7,8,26,24,28,16,15,27,13,14,D1},
   {O1,1,2,22,21,23,5,PoP1,6,24,28,18,PoP2,17,27,13,14,D1},
   {O1,2,1,21,22,24,26,12,11,25,23,27,17,PoP2,18,28,14,13,D1},
   {O1,2,1,21,22,24,26,10,9,25,23,27,17,PoP2,18,28,14,13,D1},
   {O1,2,1,21,22,24,26,8,7,25,23,27,17,PoP2,18,28,14,13,D1},
   {O1,1,2,22,21,23,25,11,12,26,24,28,18,PoP2,17,27,13,14,D1},
   {O1,1,2,22,21,23,25,9,10,26,24,28,18,PoP2,17,27,13,14,D1},
   {O1,1,2,22,21,23,25,7,8,26,24,28,18,PoP2,17,27,13,14,D1}
  }
 }
}

the point is to select those sublists that contain an ordered sequence of PoP1,PoP2 and exclude the rest while still maintaining the list level, in this case it would be only the following:

{{{{O1,1,2,22,21,23,5,PoP1,6,24,28,18,PoP2,17,27,13,14,D1}}}}

but the actual list is in fact much bigger. I have tried with the following

Select[Flatten[Matrix, {1, 2, 3}], ContainsAll[{PoP1, PoP2}]] 

but this is not correct due to missing orderliness while the other one is not working

Select[Flatten[Matrix, {1, 2, 3}], {PatternSequence[_, (PoP1 & PoP2)]}]

Any help is really appreciated.

jenkins pipeline nested parallel

Jenkins pipeline, declarative.

simple question, how do I create a parallel stages inside stage which is parallel by itself?

pipeline {
agent { label 'master' }
options {
    timestamps()
    timeout(time: 15, unit: 'MINUTES')
    ansiColor('xterm')
}

stages {
        stage('Main parallel') {
            parallel {
                stage('Start containers') {
                agent { label 'my-agent' }
                    stages {
                        stage('Start Linux containers') {
                            steps {
                                script {
                                    dir (""){
                                        println "running"
                                    }
                                }   
                            }
                        }

                    }
                }
                stage('Build UI') {
                    stages {
                        stage('Cleanup main workspace'){
                            steps {
                                    dir("") {
                                        cleanWs()
                                    }
                            }
                        }
                        stage('Git checkout') {
                            steps {
                                dir("") {
                                        checkout()
                                }
                            }
                        }

                        stages {
                            stage('Gradle build') {
                                parallel{
                                    stage('gradle1') {
                                        steps {
                                            dir("") {
                                                script {
                                                            buildInfo = rtGradle.run switches: gradleParams , tasks: 'clean deploy'

                                                        }
                                                }
                                            }
                                        }
                                    }
                                    stage('gradle2') {
                                        steps {
                                            dir("") {
                                                script {
                                                        buildInfo2 = rtGradle2.run switches: gradleParams , tasks: 'unitTests'

                                                    }
                                                }
                                            }   
                                        }
                                    }   
                            }
                        }
                }
            }
        }
    }
}

I am sure it is possible, but how?

thanks

A whale of a nested riddle

Each line has an answer. Each line’s answers are clues for the paragraph’s answer. Those in turn are clues for the section’s final answer. The five final answers form a subjective list composed by me.

Partial answers are welcome.

Number five

A side spin in pool or a man from Ross-on-Wye,
with rocket or mad; someone from TSRI,
the father of Jacob or writer of scifi.

The flakes that keep floating around in the cold air,
the colour of what you find just outside Dover,
a melon, banana or lime or d’Anjou pear.

With murder, extinction; a Catholic sermon,
a luminous square in the birthplace of Merman,
increase in velocity can be determined.

Number four

The Pianist and Chinatown director’s first name,
with Weimar or people’s; most countries this form claim,
some twelve of these were understood by John Paul’s brain.

“What’s up”, a term used by a Bunny quite snidey,
profession of J. Jonah Jameson in Spidey,
creator of Windows, IT house now mighty.

A stingy thing followed by golf exclamation,
the dominant degree in chordal progression,
between Mike and Oscar in NATO’s expression.

Number three

A city that always (some claim) is too windy,
a nightclub with theater, a place for a shindig,
the animals which are called Billy in Hindi.

A German word meaning a cellar or basement,
the husband of Marge in prime-time entertainment,
with woman or one hit; a term of amazement.

Deciduous trees used for veniks and vihtas,
the top-level domain for Indian tweeters,
the most-spoken Germanic tongue with Norse features.

Number two

With path or star; something that sparkles or lustres,
the first name of Trinity and Leia’s actors,
distress just loves company despite all factors.

Both red and white ones are found inside the bloodstream,
the ink on one’s skin used to illustrate some theme,
the pope’s Swiss ones are a protective escort team.

A little naïve girl who gets herself eaten,
in 2007 World Series unbeaten,
the world’s tallest trees are found nowhere near Eton.

Number one

An organ two of which you have close to your nose,
tall structure that’s linked to no castles or châteaux,
through Oxford and Reading this waterway outflows.

A term coined by More in his 1516 book,
what black is to white and what hook is to unhook,
with tense or bright; forecasts predicting its outlook.

In contrast to alien, a.k.a. Earthling,
between quid and quo, or professional’s shortening,
in Genesis; making of something from nothing.

How to enter text into a text field nested in an iFrame?

I am using Ruby with Cucumber and attempting to build up a suite of automated tests against a dynamics 2013 system. We have a cart that is a nested into an iFrame and we are attempting to enter a product into a text field.

The code that we have is :

@browser.switch.frame(id: 'navLink{bd27b00e-3d5e-b7b5-0ddb-864216077292}AreaFrame')
@browser.input(id: 'addQuickProductTextBox').set("MM-000001-NF Nurse Full")

But using this code I get the message:

Watir::Exception::UnknownFrameException: unable to locate iframe using
{:id=>”navLink{bd27b00e-3d5e-b7b5-0ddb-864216077292}AreaFrame”,
:tag_name=>”iframe”}

The HTML is in attached snap:

Top Level IFrames
Table Details
Data Field

Applying a set of styles both with a media query and with nested rules

I am working on an application which responds to different screen resolutions. At a certain minimum DPI, we want to apply a set of styles. We also want to apply that same set of styles if the class hidpi is present on the root html element. Our project uses LESS.

This is the code I inherited. I’ve replaced the styles with some placeholders for the sake of this question (so don’t mind the colors):

@media all and (min-resolution: 96dpi) {
  .foo {
    color: "maize";
  }
  .bar {
    color: "blue";
  }
}

html.hidpi {
  .foo {
    color: "maize";
  }
  .bar {
    color: "blue";
  }
}

Attempt at reducing duplication

As you can see, the code between the media query and html.hidpi is exactly the same, so I figured I should be able to reduce duplication. I came up with a solution using a mixin:

.mixinHidpi() {
  .foo {
    color: "maize";
  }
  .bar {
    color: "blue";
  }
}

@media all and (min-resolution: 96dpi) {
  .mixinHidpi();
}

html.hidpi {
  .mixinHidpi();
}

Can any more be done to reduce duplication? Are there any problems with the way I’m doing things now? In particular, I’ve only ever seen very simple examples of using mixins, so I’m not sure if I’m using them in the way they are supposed to be used.

Nested models for forcing

Given a model $M$ of ZFC, we can define $mathbb{P}$-names and generic extensions $M[G]$ in terms of $M$.

But the usual framework for forcing involves an outer model $Msubseteq V$ of ZFC and $M$ is required to be transitive and countable with respect to $V$. The forcing extensions then become $Msubseteq M[G] subseteq V$.

Does anyone know why this outer model $V$ is important for forcing? Extending $M$ looks enough to prove independances of axioms such as Choice or the Continuum Hypothesis.

Nested search filters

I’m designing a new filter on my search page, however, I’m slightly concerned it’s over-elaborate. Below is a screenshot of the filter. I’ve had to replace the real values with fake data.

enter image description here

enter image description here

How the search works:

New search 1:

Checking ‘Online’ will run the search. Once the search has run the nested options (Browser types), which are hidden by default, will be displayed.

New search 2:

Clicking on the chevron next to ‘Online’ will not run a search, instead, this will reveal the nested options. If one of the options are checked then a search will be run.

The nested options are hidden to save space.

I’ve added the chevron so users can easily refine their search, without having to search on the top-level ‘Online’ first.

My question is:

Have I over complicated this filter by adding the chevron which reveals the nested options, without running a search. Any feedback would be greatly appreciated.

Using Nested Query Results in Lightning Input component

I am trying to access the value of a child object from an embedded query in a given lightning component. I am unable to assign the “checked” attribute to the checkbox component based on the nested query result. Is this just not possible in Lightning or am I missing something? I am pretty new to salesforce, but I haven’t come across any post that deals with such a situation.


                        
     

The variable of interest here is –

{!item.ObjectA_ObjectB__r.SomeBooleanValue__c}

I am loading the NestedQueryResult object from the doInit() initializer based on the Nested Soql Query, as below –

SELECT Id, Name,
            (SELECT id,SomeBooleanValue__c
             FROM ObjectA_ObjectB__r WHERE ObjectA__c = :givenId) 
FROM ObjectB__c

The Relationship between the objects is as follows –

(Master)Object_A —-> (Child)ObjectA_ObjectB

(Master)Object_B —-> (Child)ObjectA_ObjectB

Basically ObjectA_ObjectB is a link between ObjectA and ObjectB.

Help Required To Input Data in a text field nested in an iframe

I am using Ruby with Cucumber and attempting to build up a suite of automated tests against a dynamics 2013 system. We have a cart that is a nested iframe and attempting to enter a product into a text field.

The code that we have is –
@browser.switch.frame(id: ‘navLink{bd27b00e-3d5e-b7b5-0ddb-864216077292}AreaFrame’)
@browser.input(id: ‘addQuickProductTextBox’).set(“MM-000001-NF Nurse Full”)

but using this code I get the message –
Watir::Exception::UnknownFrameException: unable to locate iframe using {:id=>”navLink{bd27b00e-3d5e-b7b5-0ddb-864216077292}AreaFrame”, :tag_name=>”iframe”}

The HTML is attached.
What are we missing?

Many Thanks
Matt

Top Level IFrames
Table Details
Data Field