how to instll PHP Mailparse PECL extension in Virtualmin

I am trying to install PHP Mailparse PECL extension in virtualmin
I go to software packages and search to install when I search PECL I se… | Read the rest of

php – imagen con extensión incorrecta

Tengo un código para guardar una foto de perfil pero el problema es que si tiene extensión .CR2 no salta el error de que la extensión es incorrecta¿Alguien sabe por qué pasa esto? Este es parte del códgio. El resto del código funciona correctamente.

Muchas gracias.

include 'conexion.php';

$extensiones = array("image/jpg", "image/jpeg", "image/png");
$tamanyo_maximo = 1024 * 768;
$tamanyo_minimo = 100 * 100;
$tipo = $_FILES('imagen')('type');
$error = $_FILES('imagen')('error');

// Array de errores
    $errores = array();
if ($error === UPLOAD_ERR_OK) {
    if (in_array($_FILES('imagen')('type'), $extensiones)) {
}else {
        echo $errores('imagen') = "<p class='error'>*La extensión es incorrecta. El archivo no ha podido subirse. </p>";

networking – Using 2nd router as extension of my main router, LAN works but WLAN doesn’t and after “x” time it just refuses to work at all

I recently followed a guide how to use an old router to extend my network at home. Everything was smooth, made sure the range I have set the DHCP Server won’t conflict with anything (Main Router, from my ISP.) I’ve used –

Moving on to the old router. I’ve disabled it’s DHCP so it wouldn’t conflict with the server, set the old router’s IP Address as I’ve setup the wireless options as well, made sure it has a different SSID, even changed the channel selection so it wouldn’t collide with anything. The LAN interface works, at the moment I’m connected to it as I’m typing this question. The only problem I’ve had is whenever an I try to connect to it wirelessly via an Android or iPhone it has limited connectivity. I am connected to the network, but I do not have an internet, the LAN ports work however. The 2nd/old router acts like a switch it seems. Any advice how to set this up properly?

How can I evaluate a library file (.wl extension) automatically on save?

I would like to have my library functions update on save so they are immediatly available in my notebook file where the library is imported.

sharepoint online – SPFX application extension to redirect user to home page if User doesn’t has appropriate permission

Stack Exchange Network

Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Is this the way to install php extension in Directadmin?


the above link is one way and the other is to go to directadmin custom build interface.

Now I installed a php extension using the link above and then by mistake I installed the same way in DirectAdmin custom build interface

Can this cause issue? What did exactly happen? When to use what?

magento2 – Magento 2 API: Extension Attribute with null value not showing

I’m retrieving from the Magento API an order by its increment_id attribute like this:

I have added a plugin to add a custom attribute to the Order items like this (etc/di.xml):

<?xml version="1.0"?>
<config xmlns:xsi=""
    <type name="MagentoSalesApiOrderRepositoryInterface">
        <plugin name="order_custom_extension_attribute"

And then adding the custom attribute (is_gift_card) to the OrderItem like this (etc/extension_attributes.xml)

<?xml version="1.0"?>
<config xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
    <extension_attributes for="MagentoSalesApiDataOrderItemInterface">
        <attribute code="is_gift_card" type="boolean"/>

Finally my plugin to add the extension attribute to the order items in the afterGet and afterGetList:

    public function __construct(
         MagentoSalesApiDataOrderExtensionFactory $extensionFactory
    ) {
        $this->extensionFactory = $extensionFactory;

    public function afterGet(MagentoSalesApiOrderRepositoryInterface $subject, MagentoSalesApiDataOrderInterface $order)
        return $this->addExtensionAttributes($order);

    public function afterGetList(MagentoSalesApiOrderRepositoryInterface $subject, MagentoSalesApiDataOrderSearchResultInterface $searchResult)
        $orders = $searchResult->getItems();

        foreach ($orders as &$order) {
           $order = $this->addExtensionAttributes($order);

        return $searchResult;

    private function addExtensionAttributes($order){

        $items = $order->getAllItems();
        foreach ($items as $item){
            $giftCard = $item->getData('is_gift_card');
            $extensionAttributes = $item->getExtensionAttributes();
            $extensionAttributes = $extensionAttributes ? $extensionAttributes : $this->extensionFactory->create();

        return $order;

The thing is that is_gift_card is added to the extension_attribute segment IF that attribute has any value, but it is not showing at all if it has a null value.

Is this a normal behaviour from the Magento API?

Thanks in advanced

Is there a Google Chrome Extension archive anymore?

There used to be a couple of websites that archived Chrome extensions because Google does not provide a way to download old versions of extensions.

However, those sites appear to longer be maintained.

Is there any Google Chrome archive site still working?

htaccess – How to set default page, but keep URL extension?

I am trying to set {mydomain}/forum to be the default URL that people are brought to when they go to {mydomain}. I have this working, as in my .htaccess I wrote DirectoryIndex index.php?route=/forum/ (this is the less simplified version of /forum, both work. just putting “forum” didn’t work so I replaced it with this). The problem is that it doesn’t redirect them to /forum, it just keeps them on /. It shows the right page, but doesn’t have /forum in the URL.

How can I fix this?

Arens–Eells Spaces: Linear Extension of Surjective Lipschtiz Map Is Surjective?

Let $X,Y$ be pointed metric spaces and let $f:Xto Y$ be a Lipschitz map preserving the base-point. If $f$ is surjective then is its unique extension to the Arens-Eells spaces $F:AE(X)rightarrow AE(Y)$ a (continuous) linear surjection?