Determine correctly the correct location to store the "state" inside a Rust box

I'm working on a procedural macro that needs a place to store the state in the system where it runs. The state must be cleared when clean load it ran

In the past, I have assumed that objective The directory is the right place. However, my guess is probably incorrect because:

  1. My files and directories may conflict with those of rust Y load.
  2. the location of the destination directory can be changed from the default one.

In an effort to avoid these problems, I have been trying to determine a way to locate a location correctly but I have not been successful. The closest thing I have found is the environment variable. OUT_DIR that load is set for compilation scripts that, unfortunately, is not configured for procedure macro executions.

My question is: How can I determine a suitable place where I can store the artifacts that are cleaned when clean load Does it run?

Keep in mind that this question is not a duplicate of a similar question here. That question covers the macro procedural status in general. This question is about determining an appropriate location within the file structure of a drawer.

google – The Wizard icon does not appear in the search box

I have two phones Both are Moto X4 with Android 9, with the same variant and security updates.

One shows the classic Google microphone icon in the search box. The other shows the Wizard icon.

All applications are updated through the Play Store. Both accounts have the Google Assistant enabled, and it is displayed when you press the start button for a longer time. The only difference I see is in the Google account in which each device is registered.

How can I get the Wizard icon on the top device?

Please note that I have also tried to delete data from Google applications and Google Play Services, without success.


Database of white box tests?

Hello dear,

Please tell me What is the white box test database?

8 – Mark the selection box of the results-based autocomplete users

I have a drupal 8 site that uses the paragraph module. In one of the paragraphs there is a field that contains an autocomplete field. It is already configured to reference a small list of content types. For example, "News, Events, Product, Image" are four references for the autocomplete.

In another paragraph, includes this autocomplete but also has a field called "Select a content type", which lists ALL types of content. This is used in the content type. When someone adds new content, you are presented with a list of all types of content such as a check box and the autocomplete field.

My goal is to show only the selected results of the "select a content type" field in the autocomplete field.

Then, when a user selects a "news" / "events" / "Product" / "image" in the "Select a content type" field, the autocomplete only shows the nodes of what was selected. If I select news, only news appear when I start entering data. If I select News and events, both will appear. If I do not select any, a personalized message appears.

I have looked around and found how to overwrite the getReferenceable Entities, but I do not see a way to pass two variables: one from the field of the check box and the value entered from autocomplete.

I suspect there will be JS involved for the form to send both the check box and the search value, but I do not know where to start.

Partitioning – Windows partition dual-boot access through virtual box

So I have a dual boot system running Windows 10 and Ubuntu 16.04. I have separated them by partition.

I have certain programs and files in the Windows partition that I need from time to time and it is a nuisance to close Ubuntu and restart in Windows, especially if I have terminals and open programs with states that I do not want to close and restart. open.

So my question is: is it possible to start the Windows partition in a VBox while using Ubuntu? And if so, how do I do this?

User behavior – Links in content (ie, box and cards) vs Navigation

I see a lot of discussion in UX circles about search versus navigation. What I do not see much is any kind of test or research on how quickly people access the menu of a site, and if different people access the content in a different way.

Who clicks on the link to the slide show or on the design of the card in front of who is looking for the search or a link on the second level of the menu?

I have extracted from reading many, many articles (and a little, but not much of direct user testing) that avoid the problem that it is something like this …

Casual browsers It will click on familiar things, or things that are marked.
They have arrived at the site with the mentality "what is this all about?"
They will have to navigate through the things that are on the page. They will scroll until they find something they like and then click.
They can look at the navigation to guide them towards something they might want to find (about / our work / clothes / that kind of thing) but they do not dive deep into menus or searches.

Directed browsers I'm looking for something specific.
They have come to the site looking for something. Men's t-shirts please? Are there jobs in my areas? etc
They will search your content. They will practically ignore the content of the page and go directly to a search or to go deeper into the menu, or they will even reach the page they need through the search.

I wondered if anyone knows of any good resource on this. I feel that the above statements are learned rather than assumed, but it would be great if there was some good evidence about these things somewhere.

smart tv – VLC crashes when playing a video file in a Xiaomi TV box

I have an international version of Xiaomi Tv Box. But I have a problem that I can not understand and solve. When I play a video with more than 3.5GB ~ in the VLC application. The execution of the film crashes about half the duration and hits me. The experience is not satisfactory, so when I try to change the video player, the error persists.

  • What is the maximum video size of the file that can be managed by Xiaomi TV Box?
  • Another player alternative?
  • Anyone having the same problem?

Any ideas?

How can I reload the shipping methods when the custom check box address attribute is clicked?

Is there any way to update the shipping methods when I click on my custom check box attribute?
When I change the city or zip code, the shipping method is reloaded but not with my custom checkbox.

Thank you!


load balancing: how to design a fault-tolerant and high-availability file storage location in Linux box

I am trying to build a highly available and fault-tolerant file removal location on the Linux server. Please find the current system design below:

enter the description of the image here

We obtained 2 Linux servers in a secure area where several clients will fall from an unsafe area records in batch mode using xcom utility. Each client has different schedules to send files according to the case of business use. Now all clients have been configured to place the file on server1. But this design is not adequate since it does not address the following problems:

  • If server1 does not work, clients can not send files to a secure zone unless the settings are updated to send to server2 manually.
  • If server1 goes down, there is no backup of the files on server2.

I am looking for a solution such as a load balancer that can put the files in a rotating shift mode OR keep the server2 in passive mode (it is automatically accepted when server 1 goes down).

enter the description of the image here

I'm not sure this is the best approach. Please share your views and ideas to achieve this.

Design patterns – What are the differences between primary actions and secondary actions for the check box?

The text of that section is short but quite simple:

  1. Secondary action
    This check box is the secondary action of the item in the list.
  2. Primary action
    This check box is the main action of the item in the list. and status indicator.

In the case of a secondary section, the check box is a simple selection while the element in the list can also present other information (for example, the images in its example). In a primary case, the main purpose of the item in the list is to be selected.

Basically, it is about locating the selection element in a dominant position or less annoying.