Correct value for ItemAvailability in structured data vs. google shopping feed

I’ve been working on implementing a data feed for Google merchant center and after submitting it for the first time I noticed that Google’s automatic update changed some of our items’ availability from out of stock to in stock with this message:

Your product’s availability status was automatically updated to match the data on your landing page.

A help article (https://support.google.com/merchants/answer/6098259) explains that this is likely to occur due to a discrepancy between the data provided in the feed and structured data shown on the product page itself. It goes on to say:

Check your product data for those products (using the item ID), and make sure that each item has the same values for availability as is represented on your own site and in its structured data.

There is a problem here though since we use OnlineOnly in our structured data and this option is not valid in the merchant center feed. My best guess is that Google classifies OnlineOnly the same as in stock.

The items in question are items that we don’t keep physical stock of, but like many online retailers these items are available directly from the supplier and fulfilled for orders as they are placed. We don’t want to falsely claim that they are in stock, so originally OnlineOnly seemed like the best option for our structured data.

At this point I’m left with a few options that I can think of to resolve this:

• Change both values to out of stock
• Change both values to in stock
• Allow the discrepancy stand and let Google do as they see fit

Can anyone advise what is the most correct value for availability on both the feed and our structured data in this situation?

Assigning values to nodes and edges a tree to maximize node whose value is larger than all adjacent edges

A node is valid if its value is greater than all of its adjacent edges.

Task is to maximize the number of valid nodes.

Given $$n$$ values for nodes and $$n-1$$ values for edges, how do I assign these values (to nodes and edges) to a given input tree so the number of valid nodes is maximized?

Choosing an independent hash function, given hash function value

Supposed we have a function $$h:U\to [m_1]$$. Given this hash function, can we generate without using randomization or a universal hash collection another hash $$h’:U \to [m_2]$$, which depends on $$h$$ and the values of $$h'(x)$$ are uniform? i.e., for every value $$y\in [m_2]$$ we have $$\Pr_{x} (h'(x)=y|h)=1/m_2$$ ($$x$$ is chosen at random).

I know that if $$U=[2^t]$$, $$m_1=2^{n_1}$$, $$m_2=2^{n_2}$$, $$t>n_1+n_2$$ and $$h(x)$$ is the first $$n_1$$ bits of $$x$$ this problem is easy: we can select $$h'(x)$$ to be the bits $$n_1+1$$ till $$n_2$$ of $$x$$. My question is how to generalized this approche.

query returns the same value multiple times

I have following command :

select * from Books  JOIN Keys ON Books.Bnumber = Keys.Bnumber where ( Books.Author1 like '%,%' and Books.Author1 like '%,John%' or (Books.Author2 like '%,John%' and Books.Author2 like '%,%')) and Name1 like '%' and Keys.Keyword like '%' order by NAME1 ; 

The query returns the same record multiple times.

The repeating parts in query (Books.Author1 like '%'…) are needed, for my application requires it. ( I think it should have nothing to do with my problem)

What could cause this ?

Either there is a security hole or I’m missing information about something.

While I was testing how Surfingkeys addon works I’ve noticed that it has command yf to copy form content on current web page. I though about testing it on “Sign In” and “Log In” forms on few websites to see if it would be able to retrieve typed passwords in plain text. It was successful if standardized <form> tags were used.

Then I’ve noticed that in most web applications password is kept in <input value=""> attribute in plain text which to me seems like by-standard security hole for whole W3 stack (HTML, CSS, JS, etc.). If this addon was able to get password from DOM then any addon can do that. The only piece missing is sending that data to server of a 3rd party who are owners of such malicious addon – such situation already had place with Stylish.

So attack scenario looks like this:

2. They add to addon generic <form> parser script which retrieves data from <input value="">.

3. For each known website they make their addon “decorate” submit buttons with script which on click 1st sends request with credentials to their server and then to host of that website. Or they just send requests each time parser script is able to get new data.

4. After some time they perform an attack using gathered credentials.

I find that scenario possible show me that it can’t happen. Also my question is: given that is Web security flawed by design?

The thing is that no one discourages from using <input value=""> as a password holder it seems that there is no other option by standard. Web developers can only come up with their own ideas to obfuscate where a password is stored before request is made.

WARNING: pga_aggregate_limit value is too high for the amount of physical memory on the system

WARNING: pga_aggregate_limit value is too high for the amount of physical memory on the system

Average value of function with 2 variables

How would I determine the average value of a function of two intervals, both of which have given bounds if the function f[x,y] (below) has bounds x,y=[0,5]. I assume by using the integration function, but I’ve only done that with a function of 1 variable.

Sqrt[1 + .25y^2 ((2.5 + 1.5 Cos[Pi/3 x] - 2.75)^2 + y^2(2.4 +    1.1 Sin[Pi/3 x] - 3.75)^2)] 

How to search a post knowing only taxonomy value?

I have created a search bar with auto-completion which trigger the property-search.php script. The search function is working well, but for the moment I can only search for the post name, eg:

$args = array( 'post_type' => 'zoacres-property', 'posts_per_page' => absint( 10 ), 'order' => 'DESC', 's' => esc_attr($  _GET['prop_name'] ),     'meta_query' => $meta_query, 'tax_query' =>$  tax_query );  $query = new WP_Query($  args ); $found_posts =$  query->found_posts; 

My goal is allow the user to search a property using the name of the property (as already did), the property region and the zone.

For enable the property region and zone, I used the meta_query parameter and filled the array with the taxonomy linked to the property, eg:

$region_tax_array = array( 'key' => 'property-region', 'value' => 'foo', //only for test purpose 'compare'=> 'IN' );$  meta_query = array(     'relation' => 'AND',     \$  property_region ); 

the main problem here is that no content is returned, and that is strange ’cause the table contains the following values:

wp_terms

term_id | name | slug | term_group     62      foo    foo       0 

wp_term_taxonomy

term_taxonomy_id | term_id | taxonomy             62              62      property-region      

wp_term_relationships

 object_id | term_taxonomy_id |      29848           62 

what I did wrong?

Post Taxonomy Value get from User Field Value

• I have user field such as “gender and country” on register form (Created with ACF).
• Also I have post (wp default posts and CPT) taxonomies called “gender and country
• My member can create unlimited posts and others can filter posts by taxonomy gender and country.

My question is: For each post when publish author, gender and country taxonomy value will get from user field value of gender and country. So, my member never again select gender and country. What kind code i should add function.php?

If we can this, when site admin change any user field such as gender value from male to female, all posts taxonomy will change for that author’s post. Hope my question is clear with y bad english.

Best Regards