architecture – Patterns for updates for other rows on a create of entity for an user?

Consider an entity that can have multiple rows for each user and it has a property that should be true for only one row for a given user. I am on the NoSQL database (AWS DynamoDB)

On my service layer – create method, what is the best way to reset the property for all other rows for that user? An async method to fetch and update but I need to guarantee that the results (resets) are done before returning createResult to clients. Any clean architecture patterns or suggestions for a moderate scalability environment – say a million calls per hour?

I figure out I could move that property to user object to set the id of the entity but cannot change the model now.

wp admin – How to allow WordPress updates to only one specific administrator?


We take this code and paste it to functions.php :

function createit_hide_upd_for_other_adm_users() {
    $current_user = wp_get_current_user();
    if ( 777 != $current_user->ID ) { //change the user ID
        add_filter( 'pre_site_transient_update_core', 'disable_updates' );
        add_filter( 'pre_site_transient_update_plugins', 'disable_updates' );
        add_filter( 'pre_site_transient_update_themes', 'disable_updates' );
    } else {
add_action( 'init', 'createit_hide_upd_for_other_adm_users' );

You just need to find the correct WordPress user ID and put it in place of 777, thats it!

apt – How to solve “Unable to download updates: failed to refresh cache: disco Release?

The software updater doesn’t work good and the system also keeps asking me to report a problem, I believe this error is the reason but what do I have to do to solve it? Updater also says that i should upgrade to 20.04 lts because my 19.04 version is no longer updated, but then i click on “upgrade” and nothing happens. Let me know if i have to paste something specific.

The full error message is:

Unable to download updates: failed to refresh cache: E: The repository 
' disco Release' does not have a Release file. 

categories – Show subcategories broken when WP/WC updates

I’ve been given to mantain a site who wasn’t updated for a while: it had WP 4.9.15 and WooCommerce 2.6.14

Now I’ve made a site test where i’ve updated all these things and now i have WP 5.4.2 and WC 4.3.1

One thing that is broken and i’m not able to figure why is the page showing the products by category: they have a 3 level category tree. It worked this way: if the category asked was a leaf, the page showed the product list. If it wasn’t a leaf, it showed all the subcategories.

The template page doing this is archive-product.php which has this simple loop to show everything:

            <h1 class="page-title"><?php woocommerce_page_title(); ?></h1>

            <?php if ( have_posts() ) : ?>

                     * woocommerce_before_shop_loop hook
                     * @hooked woocommerce_result_count - 20
                     * @hooked woocommerce_catalog_ordering - 30
                    do_action( 'woocommerce_before_shop_loop' );

                <?php woocommerce_product_loop_start(); ?>

                    <?php woocommerce_product_subcategories(); ?>

                    <?php while ( have_posts() ) : the_post(); ?>

                        <?php wc_get_template_part( 'content', 'product' ); ?>

                    <?php endwhile; // end of the loop. ?>

                <?php woocommerce_product_loop_end(); ?>

                     * woocommerce_after_shop_loop hook
                     * @hooked woocommerce_pagination - 10
                    do_action( 'woocommerce_after_shop_loop' );

            <?php elseif ( ! woocommerce_product_subcategories( array( 'before' => woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?>

                <?php wc_get_template( 'loop/no-products-found.php' ); ?>

            <?php endif; ?>

Now this page works only if the category requested is a leaf thus it has to display a list of products. If the category requested is not a leaf, no subcategory is shown and the page is blank with only the category name (page_title) showing. So it means that the query is somewhat did good, but why no category is shown? Thank you if you can help me solving this trouble

nt.number theory – Updates on a least prime factor conjecture by Erdos

In the 1993 article “Estimates of the Least Prime Factor of a Binomial Coefficient,” Erdos et al. conjectured that
$$operatorname{lpf} {N choose k} leq max(N/k,29).$$

Where $operatorname{lpf}(x)$ denotes the smallest prime factor of $x$.

I am posting here to ask whether any progress has been made toward this conjecture; ie. has this been proven for an integer greater than $29$?

keyboard – After installing windows 10 1903 July 21, 2020-KB4562900 updates few of the keys have stopped working

After running windows 10 1903 updates July 21, 2020-KB4562900 Cumulative Update Preview for .NET Framework on 30th July few of the keys have stopped working. The keys 0, 9, o, l, ., up down right left keys are not functioning. Uninstalled the quality update and even tried to uninstall from Advance Options but after uninstalling the update, again it had installed two other updates KB4560960 and KB4565633. The windows application log show the event ‘The program explorer.exe version 10.0.18362.959 stopped interacting with Windows and was closed. Log Name: Application Source: Application Hang Date: 30-07-2020 19:37:11 Event ID: 1002’ exact during the time the key blocking issue start to show up.

When tried to update the Standard PS/2 keyboard driver from the Device Manager it show ‘The best driver for the device are already installed’ message. Even after all this the keys are still not functioning.

android 10 – Adaptive Notifications re-enabling itself after some updates

I have a OnePlus 6T running Android 10 / OxygenOS 10.3.4. The problem I’m about to describe has, I believe, been present since the system upgrade to Android 10.

Screenshot showing suggestions

I started seeing these suggestions on various notifications – mainly from messaging apps; the above is a WhatsApp notification. I don’t want them, and didn’t have a clue how to turn them off because I didn’t know what they were called.

Googling various related things (‘suggestions’, ‘smart notifications’, etc.) didn’t get me any closer, but I eventually found some article on a feature that’d just debuted called ‘Adaptive Notifications’. While it didn’t mention the above behaviour explicitly, I figured this must’ve been it.

Switching them off (temporarily)

Sure enough, when I dug through my settings, found the option under Apps & notifications > Special app access > Adaptive Notifications, and switched it to ‘None’, these suggestions on notifications disappeared after a few minutes.

However, they periodically reappear after I apply a bunch of Play Store updates – and every time they do reappear, I find that ‘Adaptive Notifications’ has been re-enabled in my settings.

I’m unsure precisely what updates trigger this, but I’d hazard a guess at it being Play Services.

So, how do I stop this from happening?

SharePoint 2010: Send an email to someone based on Form updates to a List

I am very new to SharePoint and only started using it this past week (2010 version).

I created a List for workforce updates and would like to be able to automatically send an email through Outlook to a specific person when a List Item is added or modified through a Form. The person receiving this email will be whoever the user filling out the Form specifies as the “New Manager” on the Form, and hence will be a different person each time.

Can someone please advise me on how to do this / if this is possible? I am seeing things about using workflows, but I do not believe that I have access to SharePoint Designer to create a new workflow. Is there a way to get around this? Thanks.