Website design: Is it sometimes correct to capitalize the words in the middle of the sentence in the computer user interfaces?

In English, both on computers and under the blue roof, the capital letters in the title (uppercase in the first letters of almost all words) are for the titles, and the capitals in the style of sentences (in capital letters only the first letter of the first word) are for sentences. Titles generally include headings for your documents, pages and sections and labels for controls. They are often fragments of sentences that lack the subject or predicate. The sentences are "regular" content, each of which generally includes a subject and a predicate, although sentences in the sense of the command often have "you" as the implicit subject.

There are some gray areas. Style guides provide specific guidelines on when to use each. For example, Apple recommends the title style for menu names, menu items, buttons and any label other than a complete sentence. Apple recommends the style of prayer for messages, check boxes and radio buttons, even if they are not sentences.

However, style guides do not all coincide with each other and sometimes change. For example, the Windows UX Guidelines used to recommend the use of capital letters in the title style for buttons and menu items, but now recommends the use of capital letters in the style of prayer. Title-style capitals are only recommended for tabs, window titles, pages, programs, folders, and other "main components."

In these gray areas, the capitalization style is primarily a matter of, uh, style. Sentence-style capital letters give your application a more conversational tone, as if the user were interacting with an agent instead of a tool, which may or may not be a good idea in your case. I suspect that capital letters in the title style can make it easier to scan keywords on labels, but that's just a hunch.

domain-driven design: what is the correct way to post messages in saga using kafka?

I am designing a library using the cqrs pattern. I treat the saga as an aggregate using the method mentioned at https://blog.jonathanoliver.com/cqrs-sagas-with-event-sourcing-part-i-of-ii/.

Here I have a question about how to implement the delivery of messages subscribed by a saga.

Let's say I have two aggregates, Account and MoneyTransferSaga in the application.
The TransferMoney command would trigger the MoneySent event that reduces the amount of the account balance.
The MoneySent event would trigger the creation of MoneyTransferSaga that sends the ReceiveMoney command to another account that would increase the amount of the account balance.

Then, we can see that MoneyTransferSaga is subscribing to the MoneySent event. The question I would like to ask is, what is the correct way to send this MoneySent event to the saga?

I am using kafka as a message broker and here I have account command themes and account events for account addition.

Approach A: Mark MoneyTransferSaga as another group of consumers who subscribe to the "account events" topic. When the next event matches the "MoneySent" type, activate the saga event handler. The event handler in the saga will ignore other events.

Approach B: Create a theme called "money transfer saga events". When the event is sent to account events, the account event handler duplicates the event to the "money transfer-saga events" topic. MoneyTransferSaga subscribes the theme "money-transfer-saga-events" instead of "account-events".

Not sure which approach is better.

Using approach A, the saga instance would receive all the events from the account.

Using approach B, the account service must know about the existence of MoneyTransferSaga.

Thank you.

Correct UX task and page views

I have a funnel setting for a page that tracks the click of button A, B, C to complete the task. You can only do this if there is an item on this page.

My question is should I follow the page visits at the beginning of this funnel? I am concerned to correlate it with the success metrics because there could be times when the user is only looking at the elements on a page or lands on the page without the intention of completing the task (i.e. feed notification).
However, I also want to track to see if any user wants to act but is stuck using the first A button.

How do other UX users track the success of the task and how many times a user landed on that page with the function?

Thank you.

php – What is the correct way to search for 3 custom fields only in WordPress?

I have three custom fields. I want the search form to look for a match in:

  • _cth_featured_zip_code_1

  • _cth_featured_zip_code_2

  • _cth_featured_zip_code_3

This is the query I have written:

$wpdb->prepare(
                " LEFT JOIN $wpdb->postmeta AS laddress_meta ON laddress_meta.post_id = {$wpdb->posts}.ID AND laddress_meta.meta_key = %s",
                '_cth_featured_zip_code_1','_cth_featured_zip_code_2','_cth_featured_zip_code_3'                
            );

Am I thinking about this correctly? that is, does this statement manage to join the publication metatab and ask you to search only those fields from that table?

When I'm going to try, it seems that all I get are results that match the first custom field in the list. When I try to add another condition & # 39; AND & # 39; u & # 39; OR & # 39; When trying to include the other two fields, this causes a critical error on the site.

What is the correct way to check the other 2 custom fields in addition to the first? Is there another operator that I should be using? I have spent most of the morning solving the joint piece. I am hanging here.

Any slight confirmation in the right direction would be greatly appreciated.

database – Correct code in C ++

I have the following code that generates a grid of cubes, first a structure is generated for a 3-dimensional point which is used in the main function when building a cube in each step, but when compiling I have a problem, it has to do with the structure when saving the coordinate value in the matrix

 #include   
 #include     
 #include               
 #include      
 #include      
 #include          

 using namespace std;


 typedef struct {

   float x;
   float y;
   float z;
 } point3D;


 int main(){
    float x_size, xe, xs, y_size, ye, ys, z_size, ze, zs, x_step, y_step, z_step, n_step;
    int n;

    n_step = 1e5;

    xe = 0.0;
    xs = 10.0;

 x_size = xs - xe;   // Tamaño
 y_size = ys - ye;
 z_size = zs - ze;

 x_step = x_size/n_step;
 y_step = y_size/n_step;   // # de pasos
 z_step = z_size/n_step;

 n = n_step + 1;    // Aumento de los pasos

 point3D grid(n*n*n);       //Alloc o malloc

 for (int i = 0; i < n; i++) { //move on x axis

   for (int j = 0; j < n; j++) { //move on y axis

     for (int k = 0; k < n; k++) { //move on z axis

       point3D p;
       p.x = xs + x_step * i;
       p.y = ys + y_step * j;
       p.z = zs + z_step * k;
       grid(i+n*j+n*n*k) = point3D;
     } 
   }
 }
    getch();
 return 0;
    }

A cube has 8 vertices which are obtained from the combination of the iterators for (I J K), groups of 8 points are the corners of each cube, and so on, until the nth step.

I need a function that defines each cube from its corners

 (x, y, z)
 1: (0, 0, 0)
 2: (0, 0, 1)
 3: (0, 1, 0)  
 4: (0, 1, 1)
 5: (1, 0, 0)
 6: (1, 0, 1)
 7: (1, 1, 0)
 8: (1, 1, 1)

custom post types: the search function does not search for the correct type_post_type even if post_type is defined in the search arguments

I have a custom post type of job_listing and a custom_post_type of job_application.

Each job_application the publication has a father within job_listing type of message

So, if a work list for an Office receptionist has 5 requests, then this publication will have 5 children within the job_application post_type everyone has their post_parent ID as the Office receptionist post in the job_listing CPT (I hope this makes sense?)

Now here is the problem …

A list of jobs could easily have a couple of hundred requests (secondary publications in the job_application CPT) and we need to be able to search for the name of an applicant within these applications

There are a couple of routes I could take, such as using WP search or WP_Query (I'm using WP_Query here, but both methods seem to be facing the same problem …)

The following works as expected and returns all job applications for the job listing with a publication ID of 34806

  $args = array(
    'post_type'   => 'job_application',
    'post_status' => 'publish',
    'post_parent' => 34806,
    'fields'      => 'ids'
  );

  $apps = new WP_Query($args); 

Query objects start like this (this is relevant in a short time …)

WP_Query Object
(
  (query) => Array
    (
        (post_type) => job_application
        (post_status) => publish
        (post_parent) => 34806
        (fields) => ids
    )

  (query_vars) => Array
    (
        (post_type) => job_application
        (post_status) => publish
        (post_parent) => 34806
        (fields) => ids
        ...

Now here is the problem: let's say & # 39; Richard & # 39; Call to see how your job application is going, and I need to search within my applications for all applicants with Richard's name (applicants' names are all like the_title in the CPT)

If I try to search like this, it does not recognize any publication with the term Richard In the title…

  $args = array(
    'post_type'   => 'job_application',
    'post_status' => 'publish',
    'post_parent' => 34806,
    's'           => 'Richard',
    'fields'      => 'ids'
  );

  $apps = new WP_Query($args); 

After banging my head against my desk for a couple of days, I noticed that query_vars of the WP_Query object (print_r($apps->query_vars);) behaves differently now that I've added the 's' => 'keyword' parameter to the $args

WP_Query Object
(
  (query) => Array
    (
        (post_type) => job_application
        (post_status) => publish
        (post_parent) => 34806
        (s) => Richard
        (fields) => ids
    )

  (query_vars) => Array
    (
        (post_type) => Array
            (
                (0) => job_listing
            )

        (post_status) => publish
        (post_parent) => 34806
        (s) => Richard
        (fields) => ids
        ...

By adding the s parameter, we have gone from

(post_type) => job_application

to

(post_type) => Array (
  (0) => job_listing
)

So I guess this is where the problem lurks: I've searched everywhere, but this parent / child relationship between two types of separate publications seems to be a borderline case where I desperately need your help.

(For your information, I thought the problem was somewhere in the CPT configuration; this does not seem to be the case, but in both cases the publication types share the following configuration)

'public'              =>  true,
'exclude_from_search' =>  false,
'publicly_queryable'  =>  true,
'capability_type'     =>  'post',

Thanks in advance for your help and for taking the time to read this.

Correct ad width on mobile devices

Hoping that the development team can fix the following announcement to make the forum easier to navigate on a mobile device.

See attached file 249640

You need to iterate the values ​​of the entire collection of fields mentioned in the screenshot, you cannot get the correct method

1: I have a collection of 3 fields in block form and I cannot iterate target identifiers in foreach

apache2: correct website from outside LAN, but not accessible from inside

I am hosting a private instance of Nextcloud on a Raspberry PI on my network. In the DNS records of the public domain I also have an A record for a subdomain that points to my public (and relatively constant) IP address (let's call it nc.sample.com for the purposes of this question). My router is configured to forward port 443 to my RasPI.

Now the very strange thing is the following:

When I am on my cell phone (not connected to my WLAN) I can access https://nc.sample.com without any problem.

When I connect the cell phone to the WLAN (or from any other computer on my network) I can access https: //, but not https://nc.sample.com!

Usually, you would expect things to go differently, but now I am quite lost, since I have never experienced this problem before.

Getting this error when installing Wine: Unable to correct problems, it has retained broken packages

enter the description of the image here

The following package has unsatisfied dependencies:
winehq-stable: Depends: wine-stable (= 5.0.0 ~ disk)
E: Unable to correct problems, it has retained broken packages.