Simulation: How can I efficiently save multidimensional data that can be retrieved by key?

I am doing some simulations in Mathematica where I calculate a spectrum intensity (frequency) for a variation of parameters in my samples. So, in the following image, for example, I vary the concentration of the charge carrier of a layer and obtain the following graph:
sample chart of parameter variation

What I have to do now is to make a variation of 5-10 different parameters (charge carrier concentration, mobility, effective mass, thickness, …) and see the influence of each one, depending on each one. So I don't want to get 5 of these graphs, because on the graph all the other parameters are constant; instead I want to change all the parameters and then e.g. 3D plots to show the influence of two parameters at the same time.

Since this is a lot of simulations, I want to include a list of values ​​for each parameter, do all the individual simulations, eg. a week of calculation, fill in the results in a large n-dimensional hypercube of data and save it. Later, I would like to be able to extract data from this hypercube of saved data in a controlled way by asking p. for all data points with: mobility = 5, effective mass = 3, etc.

Since I would like to use this setting for different samples, or maybe it is used by other people, or the parameters themselves could also change, … so I would prefer to use keys instead of just listing indexes as data ((1,1 , 1, all)).

I was thinking of making a dataset with each data point added separately, like the documentation example:

    dataset = Dataset({
   <|"a" -> 1, "b" -> "x", "c" -> {1}|>,
   <|"a" -> 2, "b" -> "y", "c" -> {2, 3}|>,
   <|"a" -> 3, "b" -> "z", "c" -> {3}|>,
   <|"a" -> 4, "b" -> "x", "c" -> {4, 5}|>,
   <|"a" -> 5, "b" -> "y", "c" -> {5, 6, 7}|>,
   <|"a" -> 6, "b" -> "z", "c" -> {}|>})

and then I would use all the parameters as key-value pairs to find a row, while the list shown in "c" in this example would be a list of lists {{x1, x2, …}, {y1, y2 , …}} with the intensity (frequency) data that I want to plot for this set of parameters.

Does that seem plausible? It will probably result in billions of data points and maybe I would like to interpolate some of the data later. Is there a better way to do this?

I would like to receive some input and I really couldn't find an answer to this question by searching for multidimensional data and similar requests. Thank you very much in advance!

Contacts: Data from ".db" and ".ad-wal" files needs to be retrieved urgently

I have some ".db" and ".ad-wal" files from the internal memory of a Samsung phone and I need to get the data from them.

I don't know how to do it and I have no experience in this domain at all, but I have been informed that in the "stack overflow" there would be experts who can do it the right way.

So if someone can do it, please contact me urgently, either by mail or WhatsApp to get in touch and send the files to them, also let me know what their cost will be.

My email is: fadi.ehab.adly@hotmail.com
WhatsApp: +201111221736

How can Japanese characters be stored, retrieved and displayed using the BASIC programming language?

I used BASIC to develop a program to enter customer data. Some of the information that should be stored is in narrative form. Japanese customer data is entered in Japanese and stored, and then retrieved and displayed. However, when I visualize the data on the screen, it is displayed as garbage instead of kanji, katakana and hiragana. I think I have Japanese correctly installed on my computer because all other applications display the data correctly (for example, Word, Excel, Firefox, Explorer) and I can surf the web in Japanese. I just can't make BASIC display the data correctly. Any ideas? Do I need to use a specific compiler? Please notify. Thanks in advance!

Can the coordinates of the bounding box for words in a WordCloud be retrieved?

The documentation shows how Mathematica can associate the behavior with the words in WordClouds, but I couldn't find anything when retrieving the coordinate list from the bounding box.
Is it available to the user?

__
I'm in version 11.2

Will JavaScripts retrieved with HTTP and HTTPS be cached separately?

Let's say if a web server supports HTTP and HTTPS, if a browser gets a Javascript from this server using HTTP and HTTPS, and the script is cached, will it be cached separately, one for HTTP and one for HTTPS?

Is this behavior consistent for any type of browsers, and how about the CDN cache and the reverse proxy level?

magento2 – How are category IDs of a product stored and retrieved?

I've been trying to understand, how is Magento managing the category_ids attribute for the product in the database and at the code level? I noticed that this attribute is handled differently than the other static backend_type eav attributes.

If someone already had the opportunity to analyze it, their finding can save me time. Thank you

php – How to mount data retrieved from an AJAX in a modal

Good guys, good night, I'm very secular in JS and the like and I'm looking for the best way to recover data from an AJAX and mount it in a modal.

Case: the user clicks on "view history" of task X> opens modal with data of the chosen task X

Here is the click / link you call modal, in it I will insert a class that calls my AJAX.

Ver Alteraçōes

And here is AJAX

            var id      = $(this).data("id")

            $.ajax({
                type: "GET",
                url: "operacoes/timeline",
                data: {empresa_id:id},
                dataType: "json",
                success: function (response) {
                    });

                },
                error: function (response) {
                }
            });
        })

My question is, how to finish this AJAX and mount the data in my modal / what is the best way to rescue to mount the data of this AJAX in which the records in my route will be obtained.

In a nutshell: I need to click on an option in my drop-down menu that calls a modal with the information of the task the user clicked on, I thought about doing it directly on the model, but the way it was done / started on project won't work, so I thought about rescuing through AJAX by the controller (OperationsController @ timeline)

Note: I am using Laravel 5.4

google search console: sitemap could not be retrieved

Having examined the structure of your directory, it would appear that many (all?) Files at the root of the document (where you have uploaded sitemap.xml) are not accessible: all return 404 Not found when publicly accessed.

It seems that this could be a Laravel application and maybe you're rewriting everything in the /public subdirectory (a pattern of typical use with Laravel). In which case you should move sitemap.xml (and any other file that should be publicly accessible) to /public subdirectory.

To confirm this, we would need to see the content of its root .htaccess archive. (Edit your question to include this).

TO UPDATE: your .htaccess The file confirms the above.

RewriteRule ^$ public/ (L)
RewriteRule (.*) public/$1 (L)

From your .htaccess file at the root of the document we can see that all requests are rewritten in the /public subdirectory. So, a request for example.com/sitemap.xml is rewritten internally to example.com/public/sitemap.xml.

This means that the root of your document is "effectively" /home/winnerrs/public_html/publicno /home/winnerrs/public_html, as you thought for the first time.

You need to move the sitemap.xml archive of the public_html directory to the public_html/public directory.

java: data storage on a map that can be retrieved with N keys

I often have data stored on a Map that I need to recover for something other than the Key, so I wanted to write a generic class that allows you to define up to N keys (with the possibility that each key has a different class). The methods are defined to retrieve both the first matching result and all matching results.

I accomplished this by internally creating an ID that is assigned to the data, and keys that are assigned to a list of their matching IDs. Here is my implementation:

public class MultiKeyMap {

private Map                            dataMap = new HashMap<>();
private Map, Map>>  keyMaps = new HashMap<>();
private long                                    id      = 0;

/**
 * Construct a data map with the given data and key function(s)
 * 
 * @param data
 * @param keyFunctions
 */
@SafeVarargs
public MultiKeyMap(Collection data, Function... keyFunctions) {
    addAll(data);
    for (Function f : keyFunctions) {
        addKey(f);
    }
}

/**
 * Add an additional key function to this data map.
 * 
 * @param keyFunction
 * @return
 */
public  MultiKeyMap addKey(Function keyFunction) {
    if (keyFunction == null) {
        throw new RuntimeException("Key function must not be null");
    }
    Map> keyMap = new HashMap<>();
    Class keyClass = keyFunction.apply(dataMap.values().iterator().next()).getClass();
    if (keyMaps.containsKey(keyClass)) {
        keyMap = keyMaps.get(keyClass);
    }
    for (Entry e : dataMap.entrySet()) {
        K key = keyFunction.apply(e.getValue());
        if (!keyMap.containsKey(key)) {
            List l = new ArrayList<>();
            l.add(e.getKey());
            keyMap.put(key, l);
        } else {
            keyMap.get(key).add(e.getKey());
        }
    }
    keyMaps.put(keyClass, keyMap);
    return this;
}

/**
 * Add a single element to this data map
 * 
 * @param data
 */
public void add(T data) {
    if (data == null) {
        throw new RuntimeException("Data must not be null");
    }
    dataMap.put(id++, data);
}

/**
 * Add a collection to this data map
 * 
 * @param data
 */
public void addAll(Collection data) {
    if (data == null || data.isEmpty()) {
        throw new RuntimeException("Data must not be empty or null");
    }
    for (T t : data) {
        dataMap.put(id++, t);
    }
}

/**
 * Returns true if there is a mapping for the given key
 * 
 * @param key
 * @return
 */
public boolean containsKey(Object key) {
    return keyMaps.get(key.getClass()).containsKey(key);
}

/**
 * Get a single result from the given key
 * 
 * @param key
 * @return
 */
public T get(Object key) {
    return dataMap.get(keyMaps.get(key.getClass()).get(key).get(0));
}

/**
 * Get a list of results from the given key
 * 
 * @param key
 * @return
 */
public List getAll(Object key) {
    return keyMaps.get(key.getClass()).get(key).stream().map(a -> dataMap.get(a)).collect(Collectors.toList());
}

/**
 * Return the size of the map
 * 
 * @return
 */
public int size() {
    return dataMap.size();
}

/**
 * Returns true if the map is empty
 * 
 * @return
 */
public boolean isEmpty() {
    return dataMap.isEmpty();
}

/**
 * Return true if this map contains the given value
 * 
 * @param value
 * @return
 */
public boolean containsValue(Object value) {
    return dataMap.containsValue(value);
}

/**
 * Clear this map of all of its data
 */
public void clear() {
    dataMap = new HashMap<>();
    keyMaps = new HashMap<>();
    id = 0;
}

/**
 * Return a list of all key sets generated for this map
 * 
 * @return
 */
public List> keySets() {
    return keyMaps.values().stream().map(a -> a.keySet()).collect(Collectors.toList());
}

/**
 * Return the key set for the given class
 * 
 * @param keySetClass
 * @return
 */
public Set keySet(Class keySetClass) {
    return keyMaps.get(keySetClass).keySet();
}

/**
 * Return all values in this map
 * 
 * @return
 */
public Collection values() {
    return dataMap.values();
}

}

Internally, the key class is used to populate the key map, for faster data recovery, since the keys that are defined will almost always be of a different class. In the event that they are not, this may produce additional search results, but this is acceptable (for example, if for a Person, a key is defined as firstName (String.class) and a second as lastName (String.class ), when searching for "Smith", all matching Smith names and surnames will be returned, for example, "John Smith" and "Smith Jones")

Given a class of Person as an example:

public class Person {
    private String  firstName;
    private String  lastName;
    private String  streetName;
    private int     doorNumber;
}

MultiKeyMap could be initialized like this,

MultiKeyMap map = new MultiKeyMap<>(data, Person::getLastName, Person::getDoorNumber);

which would allow to recover the data by his last name or the number of the door.

I tried it compared to a traditional nested Map approach, and this seems to run at approximately the same time or less (comparing only the recovery time as the initialization time is not a problem here).

My questions: could this code be improved? Are there cases in which it may not work?

(EDIT) A unit test (based on the same kind of person as before) was added to show how this could be used and what results are expected next.

@Test
public void tester() {
    List data = new ArrayList<>();
    Person p1 = new Person("John", "Smith", "Street", 6);
    Person p2 = new Person("Smith", "Jones", "Road", 7);
    Person p3 = new Person("Alex", "Brown", "Street", 6);
    Person p4 = new Person("Jane", "Smith", "Road", 8);
    data.add(p1);
    data.add(p2);
    data.add(p3);
    data.add(p4);

    MultiKeyMap map = new MultiKeyMap<>(data, Person::getLastName, Person::getLastName);

    Assert.assertEquals(p2, map.get(7));

    List expected = new ArrayList<>();
    expected.add(p1);
    expected.add(p4);
    expected.add(p2);

    Assert.assertEquals(expected, map.getAll("Smith"));
}

bloatware: can the system's reserved memory be retrieved after relocation?

Let's say I have a rooted phone, and "delete" it by removing some applications from the system. This means removing apk files from /system binder. On the other hand, the applications installed by the user in the internal memory are going to /data/app folder, according to this answer.

Does this mean that the reserved system space is not yet available for application installation unless you use something like an application systematizer (which forcibly stores apk files in /system binder)?