virus – Finding a specific malware sample for malware analysis

virusshare.com is another excellent repository of malware samples, having a large number of samples. An overview of the website home page:

enter description of image here

Access is by invitation only, so you will need to send a letter to the site administrator.

Another good resource I know – www.deependresearch.org

8 – Why this specific chain is untranslatable

I want to translate "You can only change the parent menu item for published version of this content "which belongs to the Menu UI module.

The chain is defined in /core/modules/menu_ui/src/Plugin/Validation/Constraint/MenuSettingsConstraint.php as below:

published version of this content.';
  public $messageWeight = 'You can only change the menu item weight for the published version of this content.';
  public $messageParent = 'You can only change the parent menu item for the published version of this content.';
  public $messageRemove = 'You can only remove the menu item in the published version of this content.';

}

This extends a Symfony class and does not use the t () function, but other strings defined in the same way are translatable (which means you can find the string in localize.drupal.org). Here is an example of a translatable string.


 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace SymfonyComponentValidatorConstraints;

use SymfonyComponentValidatorConstraint;

/**
 * @Annotation
 * @Target({"CLASS", "PROPERTY", "METHOD", "ANNOTATION"})
 *
 * @author Fabien Potencier 
 * @author Bernhard Schussek 
 */
class Expression extends Constraint
{
    const EXPRESSION_FAILED_ERROR = '6b3befbc-2f01-4ddf-be21-b57898905284';

    protected static $errorNames = (
        self::EXPRESSION_FAILED_ERROR => 'EXPRESSION_FAILED_ERROR',
    );

    // This string is translatable.
    public $message = 'This value is not valid.';
    public $expression;

    /**
     * {@inheritdoc}
     */
    public function getDefaultOption()
    {
        return 'expression';
    }

    /**
     * {@inheritdoc}
     */
    public function getRequiredOptions()
    {
        return ('expression');
    }

    /**
     * {@inheritdoc}
     */
    public function getTargets()
    {
        return (self::CLASS_CONSTRAINT, self::PROPERTY_CONSTRAINT);
    }

    /**
     * {@inheritdoc}
     */
    public function validatedBy()
    {
        return 'validator.expression';
    }
}

I guess there are Drupal wrappers to make strings from Symfony class implementations translatable. But why does the string in the menu user interface remain untranslatable? It's not urgent, but I'm curious.

EDIT:
The presentation of the entity validation API indicates
"The Symfony validator is configured to use a Drupal translator class, so violation messages execute correctly via t ().". So, if I understand correctly, the untranslatable chain is also wrapped in t () finally …?

block – Reindex / Re-download from a specific height?

I seem to have discovered corrupted blocks on one of my nodes. The node is on all the time to stay synchronized and the rest of my nodes connect to it to retrieve block data when they need to synchronize. The node that is on all the time seems to be working fine, but when syncing my other nodes using the data from it, they report these five repetition errors after a certain block height:

2020-02-16T05:08:34Z ERROR: AcceptBlock: bad-witness-merkle-match, ContextualCheckBlock : witness merkle commitment mismatch (code 16)
2020-02-16T05:08:34Z ERROR: ProcessNewBlock: AcceptBlock FAILED (bad-witness-merkle-match, ContextualCheckBlock : witness merkle commitment mismatch (code 16))
2020-02-16T05:08:34Z ERROR: ProcessNewBlock: AcceptBlock FAILED (bad-txnmrklroot, hashMerkleRoot mismatch (code 16))
2020-02-16T05:08:34Z ERROR: ProcessNewBlock: AcceptBlock FAILED (bad-txnmrklroot, hashMerkleRoot mismatch (code 16))
2020-02-16T05:08:34Z ERROR: ProcessNewBlock: AcceptBlock FAILED (bad-txnmrklroot, hashMerkleRoot mismatch (code 16))

I assume this means that the data provided by the primary node is corrupt. My question: is there a way to redownload and reindex from a specific block height instead of reindexing everything? Would reindexing even solve this problem? The block data seems to be wrong, but the node does not know it.

Google sheets – How can I count the number of non-empty cells in a row, including only the cells that are in a column containing a specific value?

Here is my example sheet:
https://docs.google.com/spreadsheets/d/1xxmTnRTaA0DPAyibbiXK00YPqhwT5NXH8kf8PtBh0jg/edit?usp=sharing

enter description of image here

I am creating a formula for the column "Total" which would contain the total quantity of non-empty cells for this row, counting only the cells which are in a column which contains the value "B". (0 counts as not empty)

Finding the sum of these columns is actually quite easy, using this formula (for row 2 as an example):
=SUMIF($1:$1,"B",2:2)

However, to count non-empty cells, I couldn't find such an easy way to do this. I tried to approach this using FILTER and COUNTIFBut I couldn't understand.

Filter only specific images using ffmpeg from video and audio

Is it possible to use ffmpeg, for example, to take every second frame of a video (vid.mp4) and the corresponding audio bits for that frame and output them in .mp4?
ffmpeg -i vid.mp4 filter_complex "......." every2nd_vid.mp4
I would like to use raw images without PTS etc. inside the filters. Curiously, ffmpeg is very picky on all videos being perfect with timestamps and "quality" images.

Google sheets – How to find the sum of a specific row of values, but only for columns containing a different specific value?

My sheet looks like this:
enter description of image here

I'm trying to create a formula for the Total Profit column, which would be the sum of the gains / losses for this person for this row. So, for example, for Person1, the value would be -41.15, (ie. –70 + 13.05 +15.8).

My approach was something like this: Get the columns that have at least one cell that has the exact value "Gains / Losses". From these columns, add the values ​​of the row corresponding to the current person.

I have tried to use formulas like FILTER, ARRAYFORMULA, VLOOKUP, etc., to no avail, I can't get them to do what I want. I found that the formulas on the sheets were not intuitive. probably because I come from an imperative programming environment (C, Python, Typescript, etc.). Any help is appreciated.

WP: How do I disable 404 redirect for a specific page or a single page?

I need to turn off the 404 redirect feature for a specific page or a single page in WordPress. I have tried some examples found on google, but they do not work? An idea?

How to grant a user in AD groups who is denied DML commands, to update on specific tables

I have an Active Directory user account named SQLQRY on my SQL server. SQLQRY is only allowed to read the data. These users can use the onyl select statement. I need to give update and delete permission on specific tables to multiple developers who are in the SQLQRY AD account. How can I do this without removing them from the group?

macos – Disable mac at a specific time to force bedtime

I recently activated a script on my PC to shut down my Windows machine at a specific time. He works as an administrator, and I went so far as to make warning pop-ups half an hour before. It was easy because you can do scheduled tasks on Windows …

However, I am writing this at 1:30 am. I'm sitting watching YouTube videos of things that don't interest me on my macbook pro. I will be exhausted tomorrow.

How can I do the same for my Mac?

I want to turn off the computer as an administrator so that it cannot be shut down or delayed. I want to be able to set it so that it turns off every few minutes, even if it means creating multiple routines. I think it should be a bash script .. but I'm certainly not the first sleepy programmer to have this need.

blocks – Using a calculated field in a view for a specific content type

I have a calculated field (entity reference) which automatically generates a date in a specific "Issue" format Month / Month Year (string) for my content type "Article". I have a "date" (datetime) (date_field) field in a view (block) that I would like to replace the output of the "date" field with my calculated field for all "article" types.

How can I accomplish this? Any help would be greatly appreciated, thanks!