identify this – Identifying a Romanesque church in France from a 1900s photo

I’m trying to identify this building:

romanesque church supposed to be in France

For completeness, this is the unrestored uncropped version:

enter image description here

According to metadata, the image was taken in 1900-1910 and it is captioned as “facade of a building with a Romanesque entrance” and the location is stated as “France”, with a “Bassignac” listed as a possible location.

I have checked images of churches from Bassignac (Cantal) and the whole Cantal with no results. I have also tried the two other villages in France named Bassignac.

From other images in the collection we know that the photographer traveled to Carcassonne and Paris, but also into southern Germany and Switzerland and in northern Spain up to Galicia, although most of his photographs were taken in Catalonia – however I don’t expect that building to be in Catalonia because it would likely be already identified and because we have very few large Romanesque buildings.

I’ve tried around Carcassonne, also without results.

The image can be found in Wikimedia Commons or at its original location.

For details about my motives to identify the building, please read the end of the first question in this series – today’s one is the third one and I’m afraid this is getting harder as it goes.

algorithms – What is the best way to identify highly performing groups?

I am currently working on a project that involves sorting people into groups based on their ability to work well with others.

While it is a bit of a simplification, I have a problem that is essentially as follows:

Let us say we have 100 people. These people have to complete a task, and will subsequently receive a score depending on how well they performed. In order to complete the task, the participants are allowed to form groups of up to 5. When they collectively complete the task, they will also receive a single score. How can I identify (1) individuals that have a high capacity for teamwork; and (2) specific groups that are extremely good at performing said task (by receiving high scores)?

I’ve given it some thought but not many good answers come to mind. For example, I could make all the possible combinations of groups of 2, 3, 4, and 5 and try to identify such high performance groups. However, the number of combinations is astronomical and so I would like to determine a more elegant solution.

Thank you for your help. Please ask me any questions, I will be happy to answer if I have missed anything.

windows – Computer getting Unable to Identify Network UNLESS Vlan is changed

Question moved from Network Engineering to Server Fault.

This is a problem that has long plagued this environment.
At seemingly random times (measured generally in months), a computer may suddenly lose connectivity to the network.

It still is able to send packets through, reach and get an IP from the DHCP server, but it will simply fail to identify the network and display the yellow ! icon.

All the typical fixes – rebooting PC/port/switch, switching from DHCP to static or vise versa, changing ports, resetting NIC/winsock, reinstalling driver, etc. None of them will work.

But somehow, changing the access VLAN of the port will suddenly allow it to work. And seemingly nothing else. It doesn’t have to be a VLAN it was on before, or even one that existed on the switch before. I think I found out by accident from completely wiping the port config and forgetting to put anything back.

This is of course, not a great solution or workaround and trying to search for the problem is kinda difficult given the far more commonplace issues with the same error.

I have seen this happen with Win 7 and some older machines. Possibly a Win 10 but I don’t recall. Cisco Catalyst switches of various models. I’ve removed all but switchport mode access, and switchport access vlan ### from the switchport so it doesn’t seem to depend on anything besides the vlan.

dnd 5e – For the purpose of the Detect Magic and Identify spells, is a magic item that is currently out of power still treated as a magic item?

On the basis that things do only what they say, a magical item remains magical unless there is a rule stating otherwise.

The rules call out several cases where magic items do lose their magic. Here’s a sampling (all citations from Dungeon Master’s Guide):

Once used, a consumable item loses its magic. (pg. 141)

Once it hits a target, the ammunition is no longer magical. (pg. 150)

Once an arrow of slaying deals its extra damage to a creature, it becomes a nonmagical arrow. (pg. 152)

Doing so ends that pellet’s magic. (pg. 166)

If a magic bead is removed from the necklace, that bead loses its magic. (pg. 182)

On a 1, the staff becomes a nonmagical quarterstaff. (pg. 201)

However, many items that can regain their abilities do not include this wording:

The bowl can’t be used this way again until the next dawn. (p.g 156)

The cube starts with 36 charges, and it regains 1d20 expended charges daily at dawn. (…) If the cube has insufficient charges remaining, nothing happens. (pg. 156–160)

On a 1, the staff retains its +2 bonus to attack and damage roll but loses all other properties. On a 20, the staff regains 1d8 + 2 charges. (pg. 202)

Many items also call out circumstances under which they are destroyed, in which case there is no longer an item to be magical.

It sounds like your mirror is a homebrew item, in which case the DM is welcome to add a rule stating that the item is nonmagical when without crystals, but this would be a specific exception, not a general rule.

dnd 5e – For the Purpose of Detect Magic and Identify. Would a Magic item that ran out of power for the moment be considered a magic item?

On the basis that things do only what they say, a magical item remains magical unless there is a rule stating otherwise.

The rules call out several cases where magic items do lose their magic. Here’s a sampling (all citations from Dungeon Master’s Guide):

Once used, a consumable item loses its magic. (pg. 141)

Once it hits a target, the ammunition is no longer magical. (pg. 150)

Once an arrow of slaying deals its extra damage to a creature, it becomes a nonmagical arrow. (pg. 152)

Doing so ends that pellet’s magic. (pg. 166)

If a magic bead is removed from the necklace, that bead loses its magic. (pg. 182)

On a 1, the staff becomes a nonmagical quarterstaff. (pg. 201)

However, many items that can regain their abilities do not include this wording:

The bowl can’t be used this way again until the next dawn. (p.g 156)

The cube starts with 36 charges, and it regains 1d20 expended charges daily at dawn. (…) If the cube has insufficient charges remaining, nothing happens. (pg. 156–160)

On a 1, the staff retains its +2 bonus to attack and damage roll but loses all other properties. On a 20, the staff regains 1d8 + 2 charges. (pg. 202)

Many items also call out circumstances under which they are destroyed, in which case there is no longer an item to be magical.

It sounds like your mirror is a homebrew item, in which case the DM is welcome to add a rule stating that the item is nonmagical when without crystals, but this would be a specific exception, not a general rule.

php – Identify design pattern of project

I need to verify what design pattern is used in this PHP project; I cannot identify which one from this List is. I leave the link of the project and the List of patterns.

Please download the project and check this Code running.

And I need to know the name of this type of syntax; is a call to a function:

Core_App::$obj_class('GEN')('VARSMANAGER')->VarExport();

php – Identify design pattern of project

I need to verify what design pattern is used in this code; I cannot identify which one from this List is. I leave the link of the project and the List of patterns. If it does not exist leave your opinion in the comments.

Please download the project and check this Code running.

<?php
class Class_Manager
{
    public function LoadClass()
    {
        $this->ClassLoaderGen();
    }
    private function ClassLoaderGen()
    {
        $files = array_diff(scandir(CLASSGEN, 1), ('..', '.'));
        $dl    = ();
        foreach ($files as $key => $name) {
            if (strpos($name, 'class-') !== false) {
                $dl = $this->CheckFileIntegrity(CLASSGEN . $name);
                if (!$dl('st')) {
                    $this->RequireClassFile(CLASSGEN . $name);
                    $name = preg_replace('#.php#', '', $name);
                    $name = explode('-', $name);
                    foreach ($name as $key => $cl_name) {
                        $name($key) = ucfirst(strtolower($cl_name));
                    }
                    $new_name_class                              = implode('', $name) . 'Manager';
                    $instance_class                              = strtoupper(preg_replace('#Class#', '', $new_name_class));
                    Core_App::$obj_class('GEN')($instance_class) = $this->$instance_class = new $new_name_class();
                } else {
                    echo 'PHP files cannot have line breaks at the beginning or at the end. ' . EOL_SYS . ' There is a problem with this file: ' . CLASSGEN . $name . EOL_SYS . $dl('smg');
                    die;
                }
            }
        }
    }
    private function RequireClassFile($fileDir)
    {
        return require_once $fileDir;
    }
    private function CheckFileIntegrity($file)
    {
        $dl    = array('st' => false, 'smg' => '');
        $smg1  = $smg3  = '';
        $smg2  = ();
        $fileR = file($file);
        $c     = 1;
        foreach ($fileR as $line) {
            if (!strlen(trim($line))) {
                $smg1 .= 'Incorrect space/Linebreak found file: ' . $file . EOL_SYS . 'Line: ' . $c . EOL_SYS;
                $dl('st') = true;
                $c++;
            } else {
                break;
            }
        }
        $dl('smg') = $smg1;
        return $dl;
    }
}

Usage:

<?php
class Core_App
{
    public static $obj_var   = null;
    public static $obj_class = null;
    public function Main()
    {
        require_once 'const/constant.php';
        require_once 'class/class-manager.php';
        $class_Manager = new Class_Manager();
        $class_Manager->LoadClass();
        Core_App::$obj_class('Array') = (
            'Beta'  => (12, 11),
            'joder' => true,
        );
        Core_App::$obj_class('GEN')('VARSMANAGER')->VarExport(Core_App::$obj_class);
        Core_App::$obj_class('GEN')('VARSMANAGER')->VarExport(Core_App::$obj_var);
    }
}

differential geometry – How to identify specific Christoffel symbols and Riemann Tensor components from a general solution

I want to learn how to identify specific Christoffel Symbols and Riemman Tensor components from the general solution provided by Mathematica. Let us work out an example to see what I mean clearly.

Given the following metric

$g_{mu nu} =
begin{pmatrix}
1 & 0 & 0 & 0 \
0 & r^2+b^2 & 0 & 0 \
0 & 0 & (r^2+b^2)sin^2(theta) & 0 \
0 & 0 & 0 & -1
end{pmatrix}
$

Using the following code

ChristoffelSymbol(g_, xx_) := 
 Block({n, ig, res}, n = Length(xx); ig = Inverse(g);
  res = Table((1/2)*
     Sum(ig((i, s))*(-D(g((j, k)), xx((s))) + D(g((j, s)), xx((k))) + 
         D(g((s, k)), xx((j)))), {s, 1, n}), {i, 1, n}, {j, 1, n}, {k,
      1, n});
  Simplify(res))
(* The coordinates *)
xx = {r, (Theta), (Phi), t};

(* The metric *)
g = {{1, 0, 0, 0}, {0, r^2 + b^2, 0, 0}, {0, 
    0, (r^2 + b^2) Sin((Theta))^2, 0}, {0, 0, 0, -1}};

ChristoffelSymbol(g, xx)

We get the general result

enter image description here

So how to identify from such general solution that the symbols are

$Gamma^{1}_{22}=-r$

$Gamma^{1}_{33}=-rsin^2(theta)$

$Gamma^{2}_{21}=frac{r}{b^2+r^2}$

$Gamma^{2}_{33}=-cos(theta)sin(theta)$

$Gamma^{3}_{31}=frac{r}{b^2+r^2}$

$Gamma^{3}_{32}=cot(theta)$

? (i.e. what code could we use?)

Same story with the Riemann Tensor;

Using the following code

RiemannTensor(g_, xx_) := 
    Block({n, Chr, res}, 
           n   = 4; Chr = ChristoffelSymbol( g, xx);
           res = Table(  D( Chr((i,k,m)), xx((l))) 
                       - D( Chr((i,k,l)), xx((m)))
                       + Sum( Chr((i,s,l))*Chr((s,k,m)), {s, 1, n})
                       - Sum( Chr((i,s,m))*Chr((s,k,l)), {s, 1, n}), 
                        {i, 1, n}, {k, 1, n}, {l, 1, n}, {m, 1, n}); 
           Simplify( res))

RiemannTensor(g, xx) 

We get the general result

enter image description here

But how to identify the specific $R_{mu nu rho sigma}$ components?