Possibility of adding meta description to harvester engine settings ?

Hello,

i have a new question. 

Is it possible to use the “Aditional header / settings”  optin in the harvester setitngs to also grab meta description/ or meta title  when harvesting urls?

And can i display it (the description) in the main window?

Why –  in my experience it is MUCH easier to understand if a site is or is not relevant from URL AND meta description than from just url alone.
so, its way faster to filter out bad results.

thanks.

privacy – How is this Identity aware encryption description different from simple authorized access?

This does sound kind of smoke-and-mirrors (you’ll find that all over the place in infosec, sadly). They could have been adding some meaningful security if the app couldn’t decrypt user data without the user logging in – that would mean somebody walking off with the whole system still would have had no access; they’d need to do an online attack against each user as the sign in, which takes longer, risks detection, and doesn’t work if you do something like steal a backup.

Mind you, the “steal a backup” case – which does happen – is an example where encrypting the data using a key that the server (much less the DB) doesn’t store does help. But as you point out, adding per-user encryption really doesn’t add much there; if the attacker can get any key out of the HSM, they can presumably get them all. I guess one possible advantage of per-user keys is that, if an attacker gets write access to the DB, they can’t overwrite data in one part with data from another part (depending on the cipher and the way it uses IVs/nonces, and how granular or holistic the integrity checks are, this might otherwise be possible).

EDIT: I suppose it could be useful as a second layer of authorization check. If somebody finds an authz bypass in the app then normal access controls wouldn’t stop them from accessing another user’s data. However, if each user’s data is encrypted with per-user keys, then an authz bypass might not actually let you access somebody else’s data anyhow. So yeah, it might be a defense-in-depth thing.


Tech companies in general, and especially fintech companies, love to make extravagant claims about their security. Most of them are meaningless, though, or at best are addressing some tiny threat when the most likely attack vector by far is simply spearphishing or similar. I think this is likely to be one of them. But… hey, at least they use encryption at rest and store the keys in an HSM? That’s better than a shocking number of companies (though those facts alone don’t guarantee any added security, depending on how those systems are used).

Toggle buttons – what do you think of using them in SaaS platform if description is still necessary?

The core issue is clarity, regardless of the control.

We’re discussing toggle buttons at the moment, but this is about user understanding. This can apply to any control, which either shifts a view, filters data, or changes a configuration.

Is switching this toggle a potentially destructive action?

If this is a UI which is part of a complex configuration, where a choice has some consequences once it’s applied, having a visible info tip could tell them what each choice represents.

Or is this just a view preference?

If this is the case, just having a hover tip when the cursor appears can be enough to tell them what this choice means.

enter image description here

plugins – How do I hide the event description within template of The Events Calenar using Ultimate Member shortcode?

OK, so the goal is to hide the event description with Ultimate Member shortcode (um_loggedin).

I tried doing echo do_shortcode but it’s not working…

This is the code I used within wp-content/themes/hello-elementor/tribe-events/single-event.php:

<?php echo do_shortcode('(um_loggedout)'."Sorry, but only loggedin users are allowed to access the details".'(/um_loggedout)');?>

<?php echo do_shortcode('(um_loggedin)'.the_content().'(/um_loggedin)');?>

actions – How to hook add_action() into after category description with id?

I’m using newspaper theme for my web blog. I want to create post highlight into certain category. For example in this url: https://blog.bookingtogo.com/category/destinasi/wisata-domestik/pulau-bali/

I want to insert this code after category content or before post content.

I tried to insert shortcode from admin panel: post > category > bali. but not worked.

This is my code that i make:

  function balihighlight(){
    $post = get_post( 2183 ); 
    $title = $post->post_title;
    $excerpt = get_the_excerpt($post);
    $excerpt = substr( $excerpt, 0, 260 ); 
    $result = substr( $excerpt, 0, strrpos( $excerpt, ' ' ) );
    
    ?>
<style>
    .container{
        position: relative;
        text-align: center;
        color: black;
    }
    .highlight{
        position: absolute;
        background-color:yellow;
        margin-left: 25px;
        margin-top: 10px;
        width: 148px;
        left: -25px;
        font-weight: bold;
    }

    
</style>
<div class="td_module_11 td_module_wrap td-animation-stack">
    <div class="container"> 
        <div class="td-module-thumb">
                <?php echo get_the_post_thumbnail( $post,'medium' );  ?>
            </div>
        <div class="highlight">HIGHLIGHT</div>
    </div>
    <div class="item-details">
        <h3 class="entry-title td-module-title">
            <a href="https://blog.bookingtogo.com/destinasi/tempat-wisata-di-bali/" title="<?php echo $title; ?>"><?php echo $title; ?></a>
        </h3>
        <div class="td-excerpt">
            <?php echo $result;  ?>
        </div>
        <div class="td-read-more">
            <a href="https://blog.bookingtogo.com/destinasi/tempat-wisata-di-bali/">Read more</a>
        </div>
    </div>
</div>

    <?php
    
    
}
add_shortcode('balihighlight', 'balihighlight');

Is there any hook that can insert this code into after category content or before post content? for info: my bali category id is: 284. I hope I get the solution, Thank you very much.

Add text under AddToCart Button in Product Description Page Frontend – Magento2.3.5-p2

I tried so many ways to add text under addtocart button in PDP page, but nothing works. My block and phtml not getting called.

catalog_product_view.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
    <referenceContainer name="product.info.form.content">
        <block class="MyVendorMyProjectBlockProductMessage" name="product.infor.message" after="product.info.addtocart"
template="MyVendor_MyProject::product/message.phtml">
        </block>
    </referenceContainer>
</body>
</page>

I tried with the following blocks and its not working.

name="product.info.options.wrapper.bottom"
name="product.info.addtocart.additional"

i think just because im referring child block or container, it’s not working.

theming – Add taxonomy term description to views-view-fields–taxonomy_banner.html.twig

using taxonomy term view to render my products in Drupal 8.9 with commerce 2 .
I am trying to add the term description under a banner .. but struggling to find what I need to add.

new to twig,and theming
any help appreciated.

I have added

<p>{{ fields.description.content }}</p> 
{% set banner =  row._entity.field_banner %}
{% if fields.name %}
    <h3><strong>{{ fields.name.content }}</strong></h3>
{% endif %}
{% if banner is not empty %}
<div class="owl-carousel boxed-banner-carosel owl-theme" data-plugin-options='{"items":1}'>
    {% for value in banner %}
    <div class="boxed-banner">
        <img src="https://drupal.stackexchange.com/{{ file_url(value.entity.fileuri) }}" alt="Banner">
            <p>{{ fields.description.content }}</p>
    </div>
    
    {% endfor %}
</div>
{% endif %}

If someone could kindly explain where I am going wrong …thanks

enter image description here

8 – How to get url and description of FileFieldItemList’s items in node template

I am able to access the uri, and I can generate url from it by a Twig filter.

{{ content.field_document.0('#file').uri.value|urlFromUri }}
{{ content.field_document.1('#file').uri.value|urlFromUri }}
{{ content.field_document.2('#file').uri.value|urlFromUri }}

and the description:

{{ content.field_document.0('#description') }}
{{ content.field_document.1('#description') }}
{{ content.field_document.2('#description') }}

the Twig filter:

<?php

namespace Drupalsomething_generalTwigExtension;

use DrupalCoreUrl;


class Custom extends Twig_Extension
{

  /**
   * Generates a list of all Twig filters that this extension defines.
   */
  public function getFilters()
  {
    return (
      new Twig_SimpleFilter('urlFromUri', array($this, 'UrlFromUri')),
    );
  }


  /**
   * Gets a unique identifier for this Twig extension.
   */
  public function getName()
  {
    return 'custom.something_general.twig_extension';
  }


  /**
   * @param $uri
   */
  public static function UrlFromUri($uri)
  {
    $realpath = drupal_realpath($uri);
    $path = str_replace($_SERVER('DOCUMENT_ROOT'), '', $realpath);

    return $path;
  }

}

I am also able, to get the number of the items of the FileFieldItemList:

{% for index in 1..node.field_document.getValue|length %}
{% endfor %}

And finally the iteration in the node--publication.html.twig file:

{% for index in 1..node.field_document.getValue|length %}
  {% set document = content.field_document( (index-1) ) %}

  {{ dump(document('#file').uri.value|urlFromUri) }}
  {{ dump(document('#description')) }}

{% endfor %}

algebraic geometry – Global description of holomorphic foliations of $mathbb P^n$

The nice thing about working with a projective variety $V subset mathbb P^n$ is that, to study it, you do not need to dance the annoying dance of taking affine charts and applying transition functions all the time. Instead, you work with the system of equations that defines its affine cone $C(V) subset mathbb A^{n+1}$, and remember that you are actually interested in the orbits of the rescaling $mathbb C^star$-action (after removing the origin).

However, I am working with 1-dimensional foliations of $mathbb P^n$, rather than subvarieties of $mathbb P^n$. From what I have seen, such foliations are described in terms of a polynomial vector field on the affine part $mathbb A^n$:

$$mathscr F : P_1 , frac partial {partial x_1} + dots + P_n , frac partial {partial x_n}$$

Suppose I want to get a description of $mathscr F$ on another affine chart of $mathbb P^n$, say,

$$y_1 = frac 1 {x_1}, qquad y_2 = frac {x_2} {x_1}, qquad dots qquad y_n = frac {x_n} {x_1}$$

Then I need to compute the pushforward of the change of coordinates and then apply it to the vector field. It is not a terribly difficult operation to perform, but it is still annoying to have to do it all the time. What I wish I could do is define a single polynomial vector field $X$ on $mathbb A^{n+1}$ such that the differential of the projection $pi : mathbb A^{n+1} setminus { 0 } to mathbb P^n$ sends $X(p)$ to a generator or $mathscr F_{pi(p)}$. In particular, $X(p)$ should be tangent to the $mathbb C^star$-orbit if and only if $pi(p)$ is a singular point of $mathscr F$.

  1. Is this always possible?

  2. If so, how?

  3. If not, why?