Does including a Konami-code triggered Easter Egg negatively impact keyboard accessibility?

On an open-source project I’m involved in, one of our devs added a mini-game for April Fools Day, which could be opened and played by pressing the Konami Code sequence on your keyboard (up, down, up, down, left, right, left, right, B, A, enter).

In a GitHub issue, we received a complaint about the game, which included this line:

… but I hope the Codidact team would have the decency to acknowledge that such “easter eggs” can be disastrous to users with mobility impairments who use the keyboard to control the mouse, and promise to not allow such “easter eggs” in the future.

A couple years ago I spent some time using the keyboard and not my mouse, and personally never had a problem with accidentally triggering something with the Konami Code, because it’s not a sequence that – in my experience – is likely to be typed accidentally. It’s hard to get such a specific sequence if you’re not trying.

However, since I’m not an expert on this topic, I figured it’d be worth it to confirm one way or the other: Is having a Konami Code Easter Egg an accessibility problem, from a keyboard-user standpoint?

filters – Woocommerce – Remove fields from woocommerce_form_field including validation

I am trying to customise the Woocommerce myaccount page, in particular the edit address page.

I want to display both the shipping + billing address forms on a single page. Ideally, in a single form with a one save button. I also need to remove a lot of the fields, so that it’s a much simpler form of just an address (no name, company, etc).

I have implemented the code found on This Answer. It works nicely in that it shows both forms. However, I cannot remove the fields from the forms. If I try code like this:

function custom_override_checkout_fields( $fields ) {
  unset($fields('billing')('billing_country'));
  return $fields;
}
add_filter('woocommerce_checkout_fields','custom_override_checkout_fields');

It doesn’t work, the field still shows, and it also still tries to validate it. I tried adding a condition to the foreach to not show the fields based on the key, like this:

foreach ( $billing_fields as $key => $field ) :
   if($key != 'billing_first_name' && $key != 'billing_last_name') :
      woocommerce_form_field( $key, $field, $userMeta($key)(0) );
   endif;
endforeach;

This removes the field from displaying, BUT the validation still exists – and any filter code I add to functions using woocommerce_checkout_fields to remove the validation doesn’t seem to affect this form at all.

Is there a way to either:

  1. Remove fields from this form generated by woocommerce_form_field including the validation?
  2. Create a custom form that allows me to set the input fields manually in the code, and update any fields that are there, ignoring the validation from Woocommerce completely?

user research – What’s best practice for including correct answers in tree tests?

Let’s say I’m creating a tree test to validate my IA for a grocery shopping website. When I’m creating the tree, I’m wondering if I should include the target in the tree, or stop the tree at the next highest category. For instance:

If I want the customer to locate cucumbers. My tree might look like:

Vegetables > Green vegetables > Cucumber

Should I include cucumber in the tree, or should it stop at green vegetables?

My concern with including cucumbers is the participant might just search through until word association kicks in, while stopping it at green vegetables might make them think more critically about it.

Would appreciate your thoughts!

design process – Should I cover every single user flow including error states in wireframes for web and mobile applications?

While creating wireframes, I mostly create the obvious screens and flows, and leave out all the micro flows like error states or less important screens. These are then fleshed out when creating the high-fidelity prototype. But due to this, I often end up missing screens that the developer then has to work with me on to build out. In some situations we miss out on the screen entirely resulting in users winding up in dead ends.

One way I thought to solve the problem was to create detailed task flows and then using the task flows as a reference to create wireframes that cover every single flow. But my concern is that this is going to end up being an unnecessarily time consuming effort.

Have you followed this process and seen good results?
Is it worth the extra time?
Can I just create detailed task flows and skip creating detailed wireframes and go directly to the low-fidelity mockup? (will still wireframe high-priority flows)

Any advice is appreciated. Thanks in advance.

posts – OrderBY meta_key_value including null value

I am trying to do a simple query in wordpress ordered by a meta_value_num of a custom field, the problem is that not all the inputs have a value so it gives me a null value and it does not show very well in the query, it only shows the ones that have value, i have this code:

 <ul class="post">
                <?php $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;
                $args = array(
                    'post_type'   => 'post',
                    'paged'       => $paged,
                    'meta_key'    => 'votes_count', 
                    'orderby'     => 'meta_value_num', 
                    'order'       => 'DESC',
                    'post_status' => 'publish'
                ); 
                $the_query = new WP_Query( $args );
                if ( $the_query->have_posts() ) :
                    while ( $the_query->have_posts() ) : $the_query->the_post();
                        get_template_part( 'public/partials/template/loop' );
                    endwhile; ?> 
                    <li class="numeration">
                        <div class="paginavi">
                             <?php YESPLEASE_Add_Theme_Support::yesplease_pagination(); ?>  
                        </div>
                    </li>
                <?php endif;?>                  
            </ul>

I would appreciate your answers

Will including the page number in the title of the articles in a series affect SEO?

When writing a title for SEO, the unique and keyword rich parts of the title should come first. Parts of the title that are the same across many pages or which don’t contain keywords for which it would be good to rank should come at the end. The following would be much more SEO friendly titles:

  • Functions – Python Tutorials Part 1
  • Understanding Object Oriented – Python Tutorials Part 2
  • Test Driven Development in Python – Python Tutorials Part 23

This also makes sense for usability. When a user has several parts of the tutorial open in different tabs, they need to be able to identify each tab. Browsers usually only show 20 to 30 characters in each tab, so you want as much of the specific part of the tutorial to be identified early as possible. Which your original titles, it would be very possible for a set of tabs to look like:

Python Tutorials - Par | Python Tutorials - Par | Python Tutorials - Par

With my titles, the tabs would look like:

Functions - Python Tut | Understanding Object O | Test Driven Developmen

The word “part” and the following number are not keywords for which you want to rank. Using them in the title isn’t going to help SEO at all. It should be fine for SEO to have them in the title, but I’d make sure they come at the end. You could also consider omitting it altogether:

  • Functions – Python Tutorials 1
  • Understanding Object Oriented – Python Tutorials 2
  • Test Driven Development in Python – Python Tutorials 23

or abbreviating it like a page number:

  • Functions – Python Tutorials p1
  • Understanding Object Oriented – Python Tutorials p2
  • Test Driven Development in Python – Python Tutorials p23

or showing the “out of 47” if there are 47 total parts to the tutorial:

  • Functions – Python Tutorials 1/47
  • Understanding Object Oriented – Python Tutorials 2/47
  • Test Driven Development in Python – Python Tutorials 23/47

The other issue with your titles is that brand name can be very important in titles. It could be very powerful to have the author or group that wrote the tutorials in the title. Assuming you are the one writing these tutorials, you could use something like:

  • Functions – Tolga’s Python Tutorials p1
  • Understanding Object Oriented – Tolga’s Python Tutorials p2
  • Test Driven Development in Python – Tolga’s Python Tutorials p23

Doing so makes it a lot easier for people to search for this specific Python Tutorial. It helps in 2 ways:

  1. Search engines will be more likely to rank it for “Tolga’s Python Tutorial.”
  2. Making the brand name prominent lets users know what they should be searching the next time they need to find it.

replication – there is a solution to replicate a postgresql 9.2 databases including DDL operations?

there is a solution to replicate a postgresql 9.2 databases including DDL operations?

i found solutions : Slony and bucardo but dont support DDL

The native solution of postgres streaming replication (hot-Standby)it is not useful to me because i need replication of specific databases of other Postgresql databases servers

Regards

functional programming – Passing Multiple Arguments Including A List To A Function In Haskell

Your use of mutliplesOfKLessThanN is not correct

mutliplesOfKLessThanN((3,5) 1000)

Is not interpreted by Haskell as

Apply mutliplesOfKLessThanN with (3,5) and 1000.

but instead it is interpteted as

Apply (3,5) to 1000 and apply multiplesOfKLessThanN to the result.

I think your misconception is in how function application occurs. In many languages function application requires parentheses e.g. f(x). For Haskell parentheses, only ever mean do this operation first, and function application is achieved by putting things next to each other. So f(x) works in Haskell because it is the same as f x, but f(x y) is the same as f(x(y)) and tells Haskell to evaluate x y first and then give it to f.

With your code Haskell can’t apply (3,5) as a function, which is what Haskell is telling you, it expected a function (in fact a specific type of function).

The proper way to write this would be

multiplesOfKLessThanN (3,5) 1000

This should handle that main error you are getting.

Form submissions including HTML in email notifications

I have a website where the core contact form is submitting the form markup along with the content.

So for example, this is in the email notifying the site owner of the submission:

<div class="field__label">The sender's name</div>

          <div class="field__item">Williamjeply</div>

      </div>
<div class="field__label">The sender's email</div>

          <div class="field__item">artofnegotiations@theonlinepublishers.com</div>

      </div>
<div class="field__label">Subject</div>

          <div class="field__item">How negotiations work! A must read  book</div>

      </div>
<div class="field__label">Message</div>

          <div class="field__item">LISTENEVERYHOW – How Negotiations  Work, is an easy-to-read book and pragmatic approach to get the best results  from a negotiation. It is adaptable in content and style – as a story book  for leisure readers, life skills manual for entrepreneurs and  professionals, or even as a business school handbook. <br />&#13;  <br />&#13; This book is written with clarity and easy eloquence of a man who knows what  he is talking about, telling captivating stories in well sequenced chapters  that all end with enticing nuggets. A rudiment skill in negotiation is  listening and the major themes of this book are reflective of the insights that  make the difference in negotiations. <br />&#13;  <br />&#13; You are one click away from having this excellent book for just $5.99  https://www.amazon.com/dp/B08W5DMQV3/ref=cm_sw_r_cp_awdb_t1_6E8T8CE1VW6P49PPQF8F_nodl</div>

      </div>

I’ve made sure the permission allowing HTML emails is checked in the SMTP settings and there are no other obvious errors.
Does anyone have any clues why this is happening?
The issue queue doesn’t provide much help on this.

The site was recently upgraded to 8.9.12 and is just using the core contact form.

Thanks in advance.

edit: apparently I’m using this module as well https://www.drupal.org/project/smtp

Multilevel navigation in data-table including details and actions

I have multiple interactions from one screen to another and from that screen to the next screen. At least 4 levels of navigation happens in one use case.

Example

User lands on the data table which has many columns and multiple rows with pagination.
Now the user will click on one row and gets into details of that row and perform a particular action where the user might open different popups and confirm the action.

Current Approach

Currently, I have opened up the popup with details and performing actions.
But I am not confident about this approach.

Main goal

The user should not lose the context from the main screen when performing the action.

Any suggestions? Thanks in advance.