Get the list of all Weight attribute members

I have, in SSAS, a fact PERSONS which contains the Measures [Number of PERSONS] and [Weight]. The first one has the value 844. In order to achieve some calculus, I would like to get the list of all Weights, not only the list of the different ones.

The query

WITH member number as COUNT (NONEMPTY( [Measures].[Weight]   ))  SELECT number ON 0 FROM [mycube] 

produces: result

I don’t understand this result. It is not the result of an aggregation.

The query:

WITH member number as COUNT (NONEMPTY([Dim Date].[Date].[Date].members , [Measures].[Weight]   ))  SELECT number ON 0 FROM [mycube] 

used to bypass some aggregation produces: too many results

which is not the correct number.

An answer could to create a dimension (I could get the entire list with the function ‘.members’) but it is goes against the purpose of Weight, which is a measure, not a group.

thank you.

Return product list based on current product attribute

I have modified my single-product.php and want to pop in a block of other products that share the same brand name which I have specified in a product attribute called ‘brand’.

This is my code so far but it is returning all the products and NOT filtering by the pa_brand.

<!-- Custom 4 up product filtered by Brand attribute -->         <ul class="products">                 <?php             $  args = array(                 'post_type' => 'product',                 'posts_per_page' => 4,                 'taxonomy' => 'pa_brand',                 'field'    => 'slug',                 'terms'    => $  product->get_attribute( 'brand' )                 );             $  loop = new WP_Query( $  args );             if ( $  loop->have_posts() ) {                 while ( $  loop->have_posts() ) : $  loop->the_post();                     wc_get_template_part( 'content', 'product' );                 endwhile;             } else {                 echo __( 'No products found' );             }             wp_reset_postdata();         ?>     </ul><!–/.products–> 

Is there a potential XSS in this html action attribute?

I’m working on a website and I noticed that if I go to the following URL: this message is reflected in the action form. I tried to close the action attribute using double quotes in order to try a classic like " onload="alert(1)" but double quotes are URLencoded if i read the source code. Do you have some suggestion? Or is just a rabbit hole? Thanks

 <form method="post" action="./page?alert()" id="cn"> <div class="n"> 

How can I emulate Orderless attribute?

Suppose I want an expression to automatically sort its arguments. This can be done via

SetAttributes[f, Orderless] f[3, 2, 1] (*output is f[1, 2, 3]*) 

Just as an exercise, I want to emulate this behavior myself with

f[x__] := f[Sequence @@ Sort[{x}]] 

which doesn’t work due to infinite iteration.

I would be enlightened if anyone can show me an example how to implement this.

What is the appropriate way to represent type attribute of one entity in a conceptual model?

I have a vehicle entity, and this vehicle can be of different types. How a model this in a conceptual design?, I place the type as an attribute of the vehicle entity? and if each vehicle has its own set of attributes, how do I model each vehicle type if it is already as a vehicle attribute?

How to break out of href attribute?

I was learning about XSS and found a website that takes my input say “example“(without quotes) and converts it to <a href = "**example**" > Link </a>

After hit and trial, I found that it HTML encodes “,’,<,> . Is there a way for me to implement alert(1); here?

Arcane Disciple and Spell Versatility – Casting high level Domain spells with your main casting attribute?

Can you use Spell Versatility from Geomancer, to “mix and match your spellcasting parameters” to change the Arcane Disciple’s Wisdom requirement to your primary arcane spellcasting attribute (eg Int for Wizards or Char for Sorcerers)?

Arcane Disciple (Feat, Complete Divine)

You may learn these spells as normal for your class; however, you use Wisdom (rather than the normal ability for your spellcasting) when determining the save DC for the spell. In addition, you must have a Wisdom score equal to 10 + the spell’s level in order to prepare or cast a spell gained from this feat.

combined with

Spell Versatility (Class feature of Geomancer, Complete Divine)

[H]e can mix or match spellcasting parameters from any of his classes to gain the maximum possible advantage for any spell with a spell level equal to or less than his spell versatility score. Thus, as a 4th-level geomancer, he can cast any of his 3rd-level or lower sorcerer/wizard spells with no chance of arcane spell failure from armour. (The druidic prohibition against metal armour still applies to druid/geomancers, however, since this stricture stems from a spiritual oath rather than a practical limitation.) The geomancer may use his Wisdom modifier to set the save DC for arcane spells, or his Charisma or Intelligence modifier (whichever he would normally use for arcane spells) to set the save DC for divine spells.