debian – Is it possible to receive email for aliases of multiple domains on a single KVM?

I’m pretty new, so please do go easy on me. 🙂

Tl dr; is it possible to receive email for aliases of multiple domains on a single KVM?

I had a digital ocean server with multiple websites hosted on it, and needed email aliases of more than one of those domains. On several occasions, mail was not delivered, I believe it’s possible that this is because the corresponding domain did not use a PTR record (Could be wrong, I’m new, here.)

The PTR records with DO are tied to droplet names, so it seemed impossible to have PTR records for multiple domains, thus I was stuck with incomplete MX records and that may have been the cause of my undelivered mail.

I was thinking, there must be a way around this issue, besides renting another KVM.

please share your advice.

Best regards,
Glenn

filters – How do I target a single page to modify the comment form of only that page?

If I want to globally change the comment form for a theme I would use add_filter for “comment_form_default_fields”. Then I might use add_action for “comment_form_logged_in_after” and “comment_form_after_fields”. What I want to do, however, is create a single page with customised comment form fields.

My first thought was to add filters and use hooks in a custom page template. But that will, at best, work for one or two sites. What I am hoping to find is another way that I can target a chosen page. Is there a hook, filter, or logical test I can apply to modify a single page?

8 – Import single view configuration fail – layout_builder__layout will not exists after import

I have Drupal 8.9.13 and I want to export/import single views configuration to other Drupal 8.9.13. I can select single view to export, but when I import it I get the next error:

The configuration core.entity_view_display.node.page.default depends on the configuration of field.field.node.page.layout_builder__layout that will not exists after import.

This is one of the views I want to import. The problem happens with all views:

uuid: xxxxx
langcode: es
status: true
dependencies:
  config:
    - field.storage.user.field_documento
    - user.role.administrator
  module:
    - mycustommodule
    - file
    - rest
    - serialization
    - user
id: custom_user_files
label: 'User files'
module: views
description: 'REST Export user files'
tag: ''
base_table: file_managed
base_field: fid
display:
  default:
    display_plugin: default
    id: default
    display_title: Master
    position: 0
    display_options:
      access:
        type: role
        options:
          role:
            administrator: administrator
      cache:
        type: tag
        options: {  }
      query:
        type: views_query
        options:
          disable_sql_rewrite: false
          distinct: false
          replica: false
          query_comment: ''
          query_tags: {  }
      exposed_form:
        type: basic
        options:
          submit_button: Apply
          reset_button: false
          reset_button_label: Reset
          exposed_sorts_label: 'Sort by'
          expose_sort_order: true
          sort_asc_label: Asc
          sort_desc_label: Desc
      pager:
        type: mini
        options:
          items_per_page: 10
          offset: 0
          id: 0
          total_pages: null
          expose:
            items_per_page: false
            items_per_page_label: 'Items per page'
            items_per_page_options: '5, 10, 25, 50'
            items_per_page_options_all: false
            items_per_page_options_all_label: '- All -'
            offset: false
            offset_label: Offset
          tags:
            previous: ‹‹
            next: ››
      style:
        type: serializer
      row:
        type: fields
        options:
          inline: {  }
          separator: ''
          hide_empty: false
          default_field_elements: true
      fields:
        filename:
          id: filename
          table: file_managed
          field: filename
          relationship: none
          group_type: group
          admin_label: ''
          label: ''
          exclude: false
          alter:
            alter_text: false
            text: ''
            make_link: false
            path: ''
            absolute: false
            external: false
            replace_spaces: false
            path_case: none
            trim_whitespace: false
            alt: ''
            rel: ''
            link_class: ''
            prefix: ''
            suffix: ''
            target: ''
            nl2br: false
            max_length: 0
            word_boundary: false
            ellipsis: false
            more_link: false
            more_link_text: ''
            more_link_path: ''
            strip_tags: false
            trim: false
            preserve_tags: ''
            html: false
          element_type: ''
          element_class: ''
          element_label_type: ''
          element_label_class: ''
          element_label_colon: false
          element_wrapper_type: ''
          element_wrapper_class: ''
          element_default_classes: true
          empty: ''
          hide_empty: false
          empty_zero: false
          hide_alter_empty: true
          click_sort_column: value
          type: file_filemime
          settings:
            link_to_entity: 0
          group_column: value
          group_columns: {  }
          group_rows: true
          delta_limit: 0
          delta_offset: 0
          delta_reversed: false
          delta_first_last: false
          multi_type: separator
          separator: ', '
          field_api_classes: false
          entity_type: file
          entity_field: filename
          plugin_id: field
        field_documento:
          id: field_documento
          table: user__field_documento
          field: field_documento
          relationship: reverse_field_documento_user
          group_type: group
          admin_label: ''
          label: ''
          exclude: false
          alter:
            alter_text: false
            text: ''
            make_link: false
            path: ''
            absolute: false
            external: false
            replace_spaces: false
            path_case: none
            trim_whitespace: false
            alt: ''
            rel: ''
            link_class: ''
            prefix: ''
            suffix: ''
            target: ''
            nl2br: false
            max_length: 0
            word_boundary: true
            ellipsis: true
            more_link: false
            more_link_text: ''
            more_link_path: ''
            strip_tags: false
            trim: false
            preserve_tags: ''
            html: false
          element_type: ''
          element_class: ''
          element_label_type: ''
          element_label_class: ''
          element_label_colon: false
          element_wrapper_type: ''
          element_wrapper_class: ''
          element_default_classes: true
          empty: ''
          hide_empty: false
          empty_zero: false
          hide_alter_empty: true
          click_sort_column: target_id
          type: astec_fichero_base64
          settings: {  }
          group_column: ''
          group_columns: {  }
          group_rows: true
          delta_limit: 0
          delta_offset: 0
          delta_reversed: false
          delta_first_last: false
          multi_type: separator
          separator: ', '
          field_api_classes: false
          plugin_id: field
        fid:
          id: fid
          table: file_managed
          field: fid
          relationship: none
          group_type: group
          admin_label: ''
          label: ''
          exclude: false
          alter:
            alter_text: false
            text: ''
            make_link: false
            path: ''
            absolute: false
            external: false
            replace_spaces: false
            path_case: none
            trim_whitespace: false
            alt: ''
            rel: ''
            link_class: ''
            prefix: ''
            suffix: ''
            target: ''
            nl2br: false
            max_length: 0
            word_boundary: true
            ellipsis: true
            more_link: false
            more_link_text: ''
            more_link_path: ''
            strip_tags: false
            trim: false
            preserve_tags: ''
            html: false
          element_type: ''
          element_class: ''
          element_label_type: ''
          element_label_class: ''
          element_label_colon: false
          element_wrapper_type: ''
          element_wrapper_class: ''
          element_default_classes: true
          empty: ''
          hide_empty: false
          empty_zero: false
          hide_alter_empty: true
          click_sort_column: value
          type: number_integer
          settings:
            thousand_separator: ''
            prefix_suffix: false
          group_column: value
          group_columns: {  }
          group_rows: true
          delta_limit: 0
          delta_offset: 0
          delta_reversed: false
          delta_first_last: false
          multi_type: separator
          separator: ', '
          field_api_classes: false
          entity_type: file
          entity_field: fid
          plugin_id: field
      filters: {  }
      sorts: {  }
      header: {  }
      footer: {  }
      empty: {  }
      relationships:
        reverse_field_documento_user:
          id: reverse_field_documento_user
          table: file_managed
          field: reverse_field_documento_user
          relationship: none
          group_type: group
          admin_label: field_documento
          required: true
          entity_type: file
          plugin_id: entity_reverse
      arguments:
        uuid:
          id: uuid
          table: users
          field: uuid
          relationship: reverse_field_documento_user
          group_type: group
          admin_label: ''
          default_action: default
          exception:
            value: all
            title_enable: false
            title: All
          title_enable: false
          title: ''
          default_argument_type: query_parameter
          default_argument_options:
            query_param: uuid
            fallback: ''
            multiple: and
          default_argument_skip_url: false
          summary_options:
            base_path: ''
            count: true
            items_per_page: 25
            override: false
          summary:
            sort_order: asc
            number_of_records: 0
            format: default_summary
          specify_validation: false
          validate:
            type: none
            fail: 'not found'
          validate_options: {  }
          glossary: false
          limit: 0
          case: none
          path_case: none
          transform_dash: false
          break_phrase: false
          entity_type: user
          entity_field: uuid
          plugin_id: string
      display_extenders: {  }
    cache_metadata:
      max-age: -1
      contexts:
        - 'languages:language_content'
        - 'languages:language_interface'
        - request_format
        - url
        - url.query_args
        - user.roles
      tags:
        - 'config:field.storage.user.field_documento'
  rest_export_1:
    display_plugin: rest_export
    id: rest_export_1
    display_title: 'REST export'
    position: 1
    display_options:
      display_extenders: {  }
      path: custom-user-files
      pager:
        type: none
        options:
          offset: 0
      style:
        type: serializer
        options:
          formats:
            json: json
      row:
        type: data_field
        options:
          field_options:
            filename:
              alias: ''
              raw_output: true
            field_documento:
              alias: ''
              raw_output: false
            fid:
              alias: ''
              raw_output: true
            uuid:
              alias: ''
              raw_output: true
      auth:
        - basic_auth
        - key_auth
        - cookie
    cache_metadata:
      max-age: -1
      contexts:
        - 'languages:language_content'
        - 'languages:language_interface'
        - request_format
        - url
        - user.roles
      tags:
        - 'config:field.storage.user.field_documento'

I don’t use layout builder templates. field_documento is a field in the user profile. How could I solve this issue?.

magento2.3 – 2. Assigning multiple drop ship vendors for a single SKU in Magento 2.4.2

  1. Assigning multiple drop ship vendors for a single SKU:

What would be best way to have an item record store “Drop Ship Vendor Information” for that specific SKU or SKU Variant (i.e. product comes in two sizes: small and large. Size Small via drop ship supplier 1 and size large via drop ship supplier 2). In addition, we will connect to the drop ship vendors via EDI to obtain up-to-date costs and QTY Available (aka stock availability).

For instance, each SKU should have an option to add a minimum of 4 drop ship vendors:

Vendor 1 Name Vendor 1 SKU Vendor 1 Cost Vender 1 QTY Available

Vendor 2 Name Vendor 2 SKU Vendor 2 Cost Vender 2 QTY Available

Vendor 3 Name Vendor 3 SKU Vendor 3 Cost Vender 3 QTY Available

Vendor 4 Name Vendor 4 SKU Vendor 4 Cost Vender 4 QTY Available

This way, our system and our customer service agents are able to know which vendor or vendors have this item. I need to have this info on the Magento item record since my CS agents won’t have to our ERP system.

This is how it’s done now with our NetSuite ERP (from the item record):

NOTE: Not all Drop Ship vendors use the same SKU (Code) for the same exact item, therefore, it’s important to have SKU for each vendor.

Any suggestions, please?

wp query – display comment type count of post single page

I have comment type. when author marks any standart comment. standart comment convert to sticky comment type. but how can I display sticky comment type. This stikcy comment is used as accepted answer to post like stackexcahnge

<?php
    $args = array(
        'comment_type' => 'bestcomment' 
    );
        $bestcomment = get_queried_object();
   $bestcomment = get_comments($args);
    echo count($bestcomment);?>

8 – Single webform submission creates multiple submission entries

I’ve got a number of webform forms on a website and when a user submits a form, it creates 2-3 duplicate entries in the database. Everything in the entry is the same, timestamps et al.

I’m sure it is not because of ‘accidental’ multiple clicks on the submit button, because I’ve tried it myself multiple times and the results are always the same.

Any help/tip/suggestion is greatly appreciated, because this is very annoying.

I’m using Drupal 8.9.13 and webform 8.x-5.25

Thanks in advance.

Stephan

LibGDX Shader that converts sprite to single colour with blurred edges

I made a shader which turns all the colours of the texture to black but I also want it to be blurred at the edges where the opaque sprite turns transparent.

Original texture with desired output.

enter image description here

#ifdef GL_ES
    precision mediump float;
#endif

varying vec4 v_color;
varying vec2 v_texCoords;

uniform sampler2D u_texture;

void main() {
  vec4 c = v_color * texture2D(u_texture, v_texCoords);
  gl_FragColor = vec4(0,0,0, c.a);
}

A simple gaussian blur with good performance is what I want.

This shadertoy shader looks ideal: https://www.shadertoy.com/view/Xltfzj

I managed to convert the above mentioned shadertoy to GLSL which works fine, but I don’t know how to make it first turn the texture black before blurring.

#ifdef GL_ES
    #define PRECISION mediump
    precision PRECISION float;
    precision PRECISION int;
#endif

varying vec4 v_color;
varying vec2 v_texCoords;

uniform sampler2D u_texture;
uniform vec2 resolution;

void main() {
    float Pi = 6.28318530718; // Pi*2
    
    // GAUSSIAN BLUR SETTINGS {{{
    float Directions = 16.0; // BLUR DIRECTIONS (Default 16.0 - More is better but slower)
    float Quality = 4.0; // BLUR QUALITY (Default 4.0 - More is better but slower)
    float Size = 8.0; // BLUR SIZE (Radius)
    // GAUSSIAN BLUR SETTINGS }}}
   
    vec2 Radius = Size / resolution.xy;
    
    // Normalized pixel coordinates (from 0 to 1)
    vec2 uv = v_texCoords;
    // Pixel colour
    vec4 Color = texture2D(u_texture, uv);
    
    // Blur calculations
    for( float d=0.0; d<Pi; d+=Pi/Directions) {
        for(float i=1.0/Quality; i<=1.0; i+=1.0/Quality) {
            Color += texture2D( u_texture, uv+vec2(cos(d),sin(d))*Radius*i);        
        }
    }
    
    // Output to screen
    Color /= Quality * Directions - 15.0;
    gl_FragColor =  Color;
}

LibGDX Shader that converts image to single colour with blur

I made a shader which turns all the colours of the texture to black but I also want it to be blurred.

#ifdef GL_ES
    precision mediump float;
#endif

varying vec4 v_color;
varying vec2 v_texCoords;

uniform sampler2D u_texture;

void main() {
  vec4 c = v_color * texture2D(u_texture, v_texCoords);
  gl_FragColor = vec4(0,0,0, c.a);
}

A simple gaussian blur with good performance is what I want. I tried various blur shaders but haven’t managed to get any to work well.

This shadertoy shader looks ideal but not sure how to convert it or make it output only one colour https://www.shadertoy.com/view/Xltfzj

EDIT: I managed to convert the above mentioned shadertoy but the output doesn’t seem to really be blurred, just almost transparent. Not sure whether I converted it correctly or not though:

#ifdef GL_ES
    #define PRECISION mediump
    precision PRECISION float;
    precision PRECISION int;
#endif

varying vec4 v_color;
varying vec2 v_texCoords;

uniform sampler2D u_texture;
uniform vec2 resolution;

void main() {
    float Pi = 6.28318530718; // Pi*2
    
    // GAUSSIAN BLUR SETTINGS {{{
    float Directions = 16.0; // BLUR DIRECTIONS (Default 16.0 - More is better but slower)
    float Quality = 4.0; // BLUR QUALITY (Default 4.0 - More is better but slower)
    float Size = 8.0; // BLUR SIZE (Radius)
    // GAUSSIAN BLUR SETTINGS }}}
   
    vec2 Radius = Size / resolution.xy;
    
    // Normalised pixel coordinates (from 0 to 1)
    vec2 uv = gl_FragCoord.xy / resolution.xy;
    // Pixel colour
    vec4 Color = texture2D(u_texture, v_texCoords);
    
    // Blur calculations
    for( float d=0.0; d<Pi; d+=Pi/Directions) {
        for(float i=1.0/Quality; i<=1.0; i+=1.0/Quality) {
            Color += texture2D( u_texture, uv+vec2(cos(d),sin(d))*Radius*i);        
        }
    }
    
    // // Output to screen
    Color /= Quality * Directions - 15.0;
    gl_FragColor =  Color;
}

Original texture with desired output.

enter image description here

sharepoint online – How do we vertically delete values from a single column?

Within a SharePoint Online list, there are options to either enter and exit out of Grid view to select and edit various parts of a list in a grid like fashion.

I see I can use my mouse to select, pull, and drag in order to select multiple row values from a single column.

My list example

Column A | Column B | Column C
value1
value2
value3
etc...

But, how do we bulk delete all values from a single column and still keep the column?

In my example above its, value1, value2 …. value1000.