usability – Group of buttons to filter the time range with no default value selected

I am currently working on a timeline component, and by default, this timeline would display the day's activities / events.

Users can select predefined time slots such as day, week, month, etc. In addition, it has a date selection element that allows the user to choose a custom date range.

The problem I am facing here is that by default, the button group has a time range value of "Today" selected. But when the user selects a custom date range value, the button group has no value selected.

I know that button groups are similar to radio buttons and it is OK to have no default selected for radio groups when there is no accepted default possible. (Like payment options)

But does it work in button groups / segmented control?

Is there an established model for this scenario?

enter description of image here

color – What white balance should be selected if the photo is supposed to completely surround the viewer?

Suppose you are photographing a cubemap to view in a room with walls, a ceiling and a floor representing screens showing the scene you have taken. Monitors must obviously show the images as close as possible to what would be "shown" by the same size windows in the scene. This means that we should not try to do a white balance to eliminate any hue.

But there is no setting in the camera like "no white balance" or "white balance as is". Likewise, the raw photos (when taking Bayer's "red" for red, the average "green" for green and "blue" for blue), according to my experiences with LibRaw, seem to have colors very different from reality: on my Canon EOS 1100D, they are much too green: even if I capture a red laser pointer (640 nm) on the wall, there is visible green. The images must be corrected by coefficients provided by the camera to get closer to reality. I guess this is what is called the neutral profile in RawTherapee.

Now how can I process the photos so that they are displayed on the screen as close as possible to what actually hit the camera sensor? How can I reproduce photometrically correct colors instead of those that humans would think there are under certain particular environmental conditions?

navigation – Display the parent of the selected menu with the children in the sidebar

I have a menu built with a taxonomy menu structured like this:

Agenda

New

Access

My main navigation is like this (no children): Calendar | News | Access

What I want to do is when I click on Agenda for example, I would like to display in the agenda page in the sidebar the blocking menu corresponding to children

Agenda

Display the children of the parent menu in the sidebar
Get menu link siblings
How to display a block with child menu items by program?

I am trying the menu block module to do this but when I set the initial visibility level = 1, the whole menu with children is displayed, but I would just like to show the selected menu with her children

When I set the initial visibility level> 1, nothing is displayed

Any help is welcome

woocommerce – How to display with and without tax each time a different variation is selected?

How to display with and without tax each time a different variation is selected?

I used the code above and it works but I can't figure out how to display two prices (one with taxes and one without)?

// Utility function to obtain the default variation (if it exists)
get_default_variation ($ product) function {
$ attributes_count = count ($ product-> get_variation_attributes ());
$ default_attributes = $ product-> get_default_attributes ();
// If there is no default variation, we leave
if ($ attributes_count! = count ($ default_attributes))
false return;

// Loop through available variations
foreach( $product->get_available_variations() as $variation ){
    $found = true;
    // Loop through variation attributes
    foreach( $variation('attributes') as $key => $value ){
        $taxonomy = str_replace( 'attribute_', '', $key );
        // Searching for a matching variation as default
        if( isset($default_attributes($taxonomy)) && $default_attributes($taxonomy) != $value ){
            $found = false;
            break;
        }
    }
    // If we get the default variation
    if( $found ) {
        $default_variaton = $variation;
        break;
    }
    // If not we continue
    else {
        continue;
    }
}
return isset($default_variaton) ? $default_variaton : false;

}

add_action (& # 39; woocommerce_before_single_product & # 39 ;, & # 39; move_variations_single_price & # 39 ;, 1);
move_variations_single_price () function {
global $ product, $ post;

if ( $product->is_type( 'variable' ) ) {
    // removing the variations price for variable products
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );

    // Change location and inserting back the variations price
    add_action( 'woocommerce_single_product_summary', 'replace_variation_single_price', 10 );
}

}

replace_variation_single_price () function {
overall product;

// Main price
$ price = array ($ product-> get_variation_price (& # 39; min & # 39 ;, true), $ product-> get_variation_price (& # 39; max & # 39 ;, true));
$ active_price = $ price (0)! == $ price (1)? sprintf (__ (& # 39; From:% 1 $ s & # 39 ;, & # 39; woocommerce & # 39;), wc_price ($ price (0))): wc_price ($ prices (0));

// Selling price
$ price = array ($ product-> get_variation_regular_price (& # 39; min & # 39 ;, true), $ product-> get_variation_regular_price (& # 39; max & # 39 ;, true));
sort (price in $);
$ regular_price = $ price (0)! == $ price (1)? sprintf (__ (& # 39; From:% 1 $ s & # 39 ;, & # 39; woocommerce & # 39;), wc_price ($ price (0))): wc_price ($ prices (0));

if ($ active_price! == $ regular_price && $ product-> is_on_sale ()) {
$ price = & # 39;". $ regular_price. $ product-> get_price_suffix ()." ". $ active_price. $ product-> get_price_suffix ().""
} other {
$ price = $ regular_price;
}

// When a default variation is defined for the variable product
if (get_default_variation ($ product)) {
$ default_variaton = get_default_variation ($ product);
if (! empty ($ default_variaton (& # 39; price_html & # 39;)))) {
$ price_html = $ default_variaton (& # 39; price_html & # 39;);
} other {
if (! $ product-> is_on_sale ())
$ price_html = $ price = wc_price ($ default_variaton (& # 39; display_price & # 39;));
other
$ price_html = $ price;
}
$ disponibility = $ default_variaton (& # 39; availability_html & # 39;);
} other {
$ price_html = $ price;
$ availability = & # 39; & # 39 ;;
}

// Styles?>






<? php

echo & # 39;

& # 39 ;. $ price_html. & # 39;

SKU: & # 39 ;. $ product-> get_sku (). "
& # 39 ;. $ availability. & # 39;
& # 39 ;. $ price. & # 39;
"

}

responsive design – When to validate if all of the selected elements are fully valid for the operation?

Case: Enterprise web client solution for sales orders, user must select many items to perform a bulk transaction and not all items are applicable for this transaction (due to hidden settings, State, etc.). Please indicate which practice is best to follow:
A) allow the user to select anything / everything and let the back-end validate the selection and if an unsuitable item is found – cancel the operation to delete the message listing the items caused the restoration.
B) validate the selection on the user interface by clicking on the button allowing to send to the backend only the set of elements 100% valid, so the backend will not fail.

Until now, we can only choose from these options due to performance issues.

sharepoint online – Custom column validation formula to ensure that each item is selected in a choice question

I have a choice column (Required Checks) with CheckA, CheckB, and CheckC as options; several options are activated.

I have another choice column (Verdict) with Approved and Denied. (and other options, but we keep that simple).

I would only authorize Approved choice in the Verdict column … IF everything in the Required Checks are selected. In other words, they cannot select Approved in the Verdict column if they have already selected CheckA, CheckB, and CheckC in the column "Verifications required".

Optionally, I’d just like to give them a warning, but let them select Approved.

diy – My nikon D3200 cannot enter PASM mode, even if the dial button has been selected on PASM

I cannot enter PASM mode even if I dialed P / A / S / M mode.
I upgraded and downgraded the firmware, but it still doesn't work.

Please do not recommend bringing the camera to the service center, there is no service center in my area and it is very far and takes a long time for me. I was ready to do it myself and ready to risk damaging the camera. I have disassembled this camera several times, but for this one problem alone, I cannot solve it.

If you have a "Dial Button" installation diagram on Nikon, please share it. Thanks a lot for your answers.

interaction design – How to display selected elements in a paginated array?

enter description of image here
A user selects 3 three items on page 1, then the first four on the second page, how to display this? How is my previous selection followed?

The selection of all the elements is another challenge when you have a table that is paginating. Do you select everything in the current view or all in the database?

SQL query: update the meta key for the selected publication IDs

I am trying to update the meta_value for the selected post_ids .. need help

combinatorial optimization – Finding an efficient way to maximize "pair scores" for a subset of 30 selected from 50 to 10,000 objects

Context: I have a mosaic program which uses a first directed width search algorithm. It is "led" by what I call "pairwise scoring". There are N polyforms (pieces) used in tiling. I have an NxN table with a score at each location. While tiling, I try to maximize the sums of pairs of unused pieces. At the start, I add up all the scores, find the average score, and subtract the average of all the scores so that they are zero. As I tile, I can find the new total just by adjusting the current total for the node by deleting the scores belonging to the last piece placed.

I generate the table NxN & # 39; even score & # 39; in mosaic of a small shape with about 6 to 10 pieces, for each mosaic found, I look at the border cells of each room & # 39; a & # 39; in the mosaic, and wherever it touches the part & # 39; b & # 39;, I increment (a, b) and (b, a). And wherever it touches the edge of the shape, I increase (a, a).

It works fairly well, but I suspect I could further optimize the “ final game '' & # 39; by encouraging a tendency to end with one of the “ local maxima '', being the group (s) of coins that “ mark the best as '' together & # 39; & # 39; .

In order to know if my algorithm finds such maxima, I must first find them myself so that I know when the node scores miss these maxima.

So my question is, how can I efficiently find the highest score sets from 1 to M on N pieces, where M goes up to around 30 and N up to 1000 or more?

There is some redundancy available in the table, I am currently repeating (a, b) in (b, a). I could use (a, b) for the score of the pair when a <b and (b, a) for something else. I already use (a, a) to keep track of the number of times a piece hits an edge square in a tessellation of smaller shape. I can adjust the importance of this edge score using a simple "edge score factor".

It would be nice to have an algorithm fast enough to track these local maxima as they change due to the parts used, without affecting the tiling speed too much. Then I would know fairly quickly that I had "gone wrong", that is to say that even if I had a good high knot score, I had used a set of pieces that would reduce my best possible end game, and I could use it to direct the BFS in addition to the single knot score.

Or is it the case that the node score already gives me that?