magento2 – Magento 2 folder location etc for development

I'm developing for the first time using Magento (2.3).

I'm building a widget that goes with an API.

I think the structure will work under app / code is as follows:

- /Company
  - /Product
    - /Api
      - registration.php
      - /etc
        - di.xml
        - module.xml
        - webapi.xml
    - /Widget
      - registration.php
      - /etc
        - module.xml
        - widget.xml

Will it work? Or should the / etc folder reach a level like this:

- /Company
  - /Product
    - /etc
      - di.xml
      - module.xml
      - webapi.xml
      - widget.xml
    - /Api
      - registration.php
    - /Widget
      - registration.php

If so, how can I handle multiple module.xml files? can I place multiple "module" elements in the "config" element?

The location of the source code for torch.mean ()

I'm trying to find the torch.mean source code and I can not find it in the Pytorch github. It is under mathematical operations but I do not find it at all.

I have looked everywhere and inspected most pages under pytorch / torch and I still can not find it.

linux – Nginx fastcgi cache in a block of different location

I'm trying to cache a different location with a different cache key box, but that does not work. The cache only works for the root location "https://serverfault.com/".

If I disable the cache for the location "https://serverfault.com/", it still does not work for another location.

Block Http:

fastcgi_cache_path /webcache/nginx levels=1:2 keys_zone=microcache:100m max_size=1000m inactive=45m use_temp_path=off;
fastcgi_cache_path /webcache/extreme levels=1:2 keys_zone=extreme:100m max_size=10400m inactive=99999m use_temp_path=off;
fastcgi_cache_key "$scheme$request_method$host$request_uri";

Server block:

location ~* "^/(20(0-1)(0-8)/)" {              
   try_files $uri $uri/ /index.php?$args;
    location ~ .php$ {
        try_files $uri = 404;
        fastcgi_split_path_info ^(.+.php)(/.+)$;
        fastcgi_pass unix:/var/opt/remi/php56/run/php-fpm/php-fpm.sock;
        fastcgi_index index.php;
        include /etc/nginx/fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_intercept_errors on;
        fastcgi_cache_key "$scheme$request_method$host$request_uri";
        fastcgi_no_cache $no_cache;
        fastcgi_cache_bypass $no_cache;
        fastcgi_cache extreme;
        fastcgi_cache_min_uses 1;
        fastcgi_cache_methods GET HEAD;
        fastcgi_cache_lock on;
        fastcgi_cache_lock_age 5s;
        fastcgi_cache_lock_timeout 5s;
        fastcgi_cache_valid 200 302 301 8760h;
        fastcgi_cache_valid 500 502 10s;
        fastcgi_cache_valid 403 404 10s;
        fastcgi_cache_use_stale updating error timeout invalid_header http_500;
        fastcgi_cache_background_update on;
        fastcgi_pass_header Set-Cookie;
        fastcgi_pass_header Cookie;

}

location / {
 try_files $uri $uri/ /index.php?$args;
}


     location ~ .php$ {
        try_files $uri = 404;
        fastcgi_split_path_info ^(.+.php)(/.+)$;
        fastcgi_pass unix:/var/opt/remi/php56/run/php-fpm/php-fpm.sock;
        fastcgi_index index.php;
        include /etc/nginx/fastcgi_params;
        fastcgi_intercept_errors on;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_no_cache $no_cache;
    fastcgi_cache_bypass $no_cache;
    fastcgi_cache microcache;
    fastcgi_cache_min_uses 1;
    fastcgi_cache_methods GET HEAD;
    fastcgi_cache_lock on;
    fastcgi_cache_lock_age 5s;
    fastcgi_cache_lock_timeout 5s;
    fastcgi_cache_valid 200 302 301 1m;
    fastcgi_cache_valid 500 502 10s;
    fastcgi_cache_valid 403 404 10s;
    fastcgi_cache_use_stale updating error timeout invalid_header http_500;
    fastcgi_cache_background_update on;
    fastcgi_pass_header Set-Cookie;
    fastcgi_pass_header Cookie;
    fastcgi_ignore_headers Cache-Control Expires Set-Cookie;


        }

godot – Change the location of the object at the instantiated moment

I try to instantiate an object (scene) and define its position of appearance at the moment of appearance. Here is the code I wrote:

func spawn_asteroid():
    var spawn_position: Vector3 = get_spawn_position()

    var asteroid_instance = asteroid_scene.instance()
    asteroid_instance.transform.origin = spawn_position
    spawned_asteroids.append(asteroid_instance)

    add_child(asteroid_instance)

Asteroid_scene is PackedScene, so start with the instance, then update its location, then use add_child to add the current scene tree.

This seems fine to me, but when I start the game, the object was created at (0,0,0), and then moved.

I've changed its position before it's added to the scene, but why always (0,0,0) and just after moving to the specified position?

In Unity, change the location of the object just after instantiation. In Godot Engine, is this approach invalid?

python – Inserts multiple columns in a specific location according to two conditions in other columns

need to rewrite code that I already have. It inserts columns for which a "standard deviation" column is missing. To do this, it checks if the previous column is a "variable" column and if there is already a "standard deviation" column.

Right now, I'm using a while loop that runs through the columns while checking df.iloc(1,x) and df.iloc(1,x+1).

i = 7
j = len(df.columns)-1

while i < j:
    if df.loc(1,i) != 'Standard Deviation' and df.loc(1,i) != 'Replicates' and df.loc(1,i) != 'Method':
        if df.loc(1,i+1) != 'Standard Deviation':
            df.insert(i+1,'Standard Deviation',np.nan)
            df.columns = pd.RangeIndex(df.columns.size)
            df.loc(1,i+1)='Standard Deviation'
    i+=1
    j = len(df.columns)-1

df.insert(len(df.columns),'Standard Deviation',np.nan)
df.columns = pd.RangeIndex(df.columns.size)
df.loc(1,len(df.columns)-1)='Standard Deviation'

Extract from dataframe (hard to understand):

50  51  52  53  54  55  56  57  58
0   Pour Point (°C) Pour Point (°C) Pour Point (°C) Pour Point (°C) Boiling Point Distribution- Temperature (°C)    Boiling Point Distribution- Temperature (°C)    Boiling Point Distribution- Temperature (°C)    Boiling Point Distribution- Temperature (°C)    Boiling Point Distribution- Temperature (°C)
1   Pour point  Standard Deviation  Replicates  Method  Initial Boiling Point   5%  10% 15% 20%
2   NaN NaN NaN NaN NaN NaN NaN NaN NaN
3   < -25   NaN NaN ASTM D97    NaN 35  52  70  88
4   < -25   NaN NaN ASTM D97    NaN 56  84  104 135
5   -6  NaN NaN ASTM D97    NaN 115 166 224 259
6   24  NaN NaN ASTM D97    NaN 279 303 322 339

Currently, the code works and gives the expected result. I just want to rewrite it more efficiently / elegantly.

I do not know how to do it without going through the columns to specify the verification df.iloc(1,i) and df.iloc(1,i+1)

django – Gitlab: Error setting certificate check location

I'm trying to run a runner on my self-hosted Gitlab instance. I installed a self-signed certificate and installed it as a root certificate on my Windows computer.

When I run the pipeline, I get this:

Running with gitlab-runner 12.4.1 (05161b14)
  on workstation_2 s8LV77t8
Using Shell executor...
Running on XYC..
Fetching changes with git depth set to 50...
Reinitialized existing Git repository in C:/Gitlab-Runner/builds/s8LV77t8/0/myusername/myprojectname/.git/
fatal: unable to access 'myIP/myusername/myprojectname.git/': error setting certificate verify locations:
  CAfile: C:Gitlab-Runnerbuildss8LV77t8usernameprojectname.tmpCI_SERVER_TLS_CA_FILE
  CApath: none
ERROR: Job failed: exit status 1

When I archive my builds folder, the certificate is actually placed in this location: C:Gitlab-Runnerbuildss8LV77t8usernameprojectname.tmpCI_SERVER_TLS_CA_FILE

On Linux everything works. That's my config.toml:

((runners))
  name = "workstation_2"
  url = "https://myip/"
  token = "mytoken"
  tls-ca-file = "gitlab.pem"
  executor = "shell"
  shell = "powershell"
  (runners.custom_build_dir)
  (runners.cache)
    (runners.cache.s3)
    (runners.cache.gcs)

It looks a lot like this: https://gitlab.com/gitlab-org/gitlab-runner/issues/1052
Still, the fix to use PowerShell does not work for me because I already use it. I can not change shell either, unfortunately.

No matter who has encountered the same problem or can help me ?? Would be very grateful for each help.

linux – Know the location and the IP address

You can not. Only LinkedIn administrators have this information and only communicate the private information of their users to the law enforcement agencies, after providing a valid reason and documents proving their legitimacy.

I would like to point out that there is a good chance that someone has tried to accidentally log into your account. As a server administrator, this is not very common, but it happens that a legitimate user does not spell out his or her username and accidentally attempts to log in to another account. account, or even trying to get the recovery code when they forget their passwords. So, you do not really have to worry about getting hacked. Unless you really have good reason to think that someone is trying to hack into your account, you should then contact the authorities, give your reasons, and then let them fix the problem.

Also, why does your question have a Firefox and Linux tag, and what is the content?

macos – How to change the location of the download folder of the user?

I want to change the path to a download folder created as the default download folder on my Mac, but I do not know how to proceed.

My goal is to have a different path for the default Downloads folder so that all applications can still access it, but on a different path.
Can this be done on a mac?

dnd 5th – Can an NPC cast a spell with a higher spell location?

A monster with the Spellcasting class function has a level of wizard and spell locations that it uses to cast its first level spells or more. (as explained in the player's manual). The spell checker level is also used for all traps included in the feature.

The monster has a list of known or prepared spells from a particular class. The list can also include spells of a feature of this class, such as the Cleric's Divine Domain feature or the Druid's Druid's Circle feature. The monster is considered a member of this class when it uses or uses a magic object requiring the sending of a member in the class or access to its list of spells.

A monster can cast a spell from its list at a higher level if it has the location to do it. For example, a drow mage with the 3rd level lightning spell can cast it as a 5th level spell using one of his 5th level spell slots (…)

The first section in bold shows that monsters follow the usual rules of casting spells and the second shows in particular that they can convert spells into higher level locations that they own.

apps – two Google email accounts with different location histories for yesterday

Our son has two Google email accounts. We left and check its location from time to time for personal reasons. The history of e-mail addresses differs from each other in our absence. They usually fit but this time they do not have it. In fact, he has 3 hours left with an old friend. But we spoke with him on the phone and we are so grateful to have watched both. Why did one have the other location? If he was looking at the map or calling them, could that be confused? We are not tech savvy, but we are trying to become more techie.

thank you,
Mac