Edit comments in an XML file

Is there a way to edit an XML file from the macOS terminal to remove the comment and line that is currently behind a comment? I tried an XSLT file and a sed command and none worked.

plugins – Quiz time! Is there a way to limit publisher editing permissions so that it can only edit posts from specific contributors?

We are forming a new team of writers, with a new publisher. I want the new editor to edit the messages created by the new team. But I do not want the publisher to be able to edit existing publications, or pages, most of which have been created by administrators.

Is there a way to do that, or a plugin that we could buy that would give us that capability? Thank you for your help! :]

Edit recently seen

I have trouble finding the model that shows recently viewed products (recently viewed). I have a theme installed anyway, but I can not change it to change the appearance. I need your help.

Please Sincerely

lightroom – How to edit photos to correct for monitor calibration?

I can only give a very limited answer that would apply if I had such a problem. I will only describe the general approach: I do not have solutions ready for use.

First case: all photos are RAW and are simply processed from there without further editing. In this case, we should aim to generate them again instead of editing the processed jpeg files.

Plus, it helps if it's raw-raw, like the Canon CR2 or the Sony ARW, etc. In this case, you will have an XMP file next to your raw file after editing. This is a text file that we can edit in batches.

If it is DNG, it is still possible to extract XMP from exiftool. (Normally, XMP is built into DNG after editing, and I personally hate it. all software touches my source files, so in my workflow, I always extract XMP from the DNG, and then restore their state in the camera. If you work with DNG, you will have two additional steps: extracting XMP, then eventually (possibly) integrating it.

Whatever it is, you must now write a script modifying the XMP. It depends on your tools. in the simplest case, you can simply replace the required parameters, such as crs:GreenHue="0" at crs:GreenHue="+3". Normally, you may want to read the parameter, interpret the number, and increment it if necessary. Perl or awk can do it; or you can use an appropriate XML parser.

What XMP system do you need? They are pretty self-descriptive, but to be sure, choose a sample photo, save its original XMP, edit the photo, save and compare the difference between the original and the new XMP.

Of course, back up your original XMP files! After mass replacement, treat your RAW mass as usual.

Second case: need to modify treated jpegs. For that, I would write a Photoshop action. Of course, this applies if you use Photoshop.

It's very simple: you can save an action from your manual manipulations on a sample image, make sure you save the result, and then you can easily perform this action recursively on your directory.

Again, since jpeg editing is destructive, you must save everything. if you do not like the result on some photos, it is better to get the original and reapply other corrections, rather than correct it. add more corrections on the result.

Addendum: how to see the calibration (correction curves)

The "perfect" solution consists of applying "opposite" curves to each image (for each primary color) to the correction curves created by the colorimeter. (Assuming you have no correction before). This can be done with one of the methods above, but involves (usually) more than repairing a "number". Always very feasible. The XMPs have the correction chart *, and of course, Photoshop has the Curves effect. The question is how to get the calibration curves.

Professional versions of the calibration software usually allow you to see the applied correction curves. But not all and not always properly.

We can therefore use independent software. The goal is to analyze the ICC profile (ICM) created by the provided software (Spyder, etc.) and read its 1-D LUT correction tables (the VCGT tag if I remember correctly). There are probably tools to do this specifically, but I do not know them well. Here is what I can suggest.

Download DisplayCAL free (and ArgyllCMS, he'll tell you). There in the menu select File -> Profile Information and load your ICM. At the top select Calibration curves. You will see that the correction is applied.

DisplayCAL calibration display

Most likely, the curves will be quite non-linear and different for each color, as in this photo **. I do not think you can export it as a table, but you can see the numbers on the screen below. Taking 3-4 points should be enough. You see in the example that Red 206 goes to 216: you will have to make 196. (This is not precisely yes, but is OK in practice, unless the corrections are extreme).

Having this data is useful even if you decide to make manual corrections or in small quantities: you know exactly what correction you need to make.

(You may also find that DisplayCAL is a much better software for color calibration than the Datacolor provided, I can not attest to that, I use a monitor-specific software, but it's worth the hardly try it).

(*) The difficulty may be that the table can already be used, whether by manual corrections or integrated non-linear contrast curves. In this case, you will have to superimpose the existing correction with yours, which is not trivial. While with Photoshop or any other correct editing software, you can apply multiple curves on top of each other.

(**) This applies to a cheap desktop LCD monitor – but after maximum color adjustment in its OSD menu.

plugins – Bulk edit an existing shortcode in a custom field

I have a question very similar to this: Custom Fields Edit Bulk

I would like to edit ALL data from a custom field, but instead of replacing values, I would like to add an attribute to the custom field of each page. Example:

This is an existing shortcode
[idx-listings linkid="387056" count="6"]
I want to add an attribute that looks like this:
[idx-listings linkid="387056" count="6" showlargerphotos="true"]
Is there a way to bulk after the showlargerphotos to assign to the inside of the existing shortcode without affecting the rest of the chain?

Sending Edit Logs of Multiple Google Sheet Files to a Single "Change Log" Worksheet

I create a large amount of spreadsheets in google drive and want to monitor / save the changes in a single spreadsheet (for example, file / date / time / user).
My goal would be to know how often and use these files in the drive without having to look at each spreadsheet.

I already have a simple code to log the last edition in each sheet but I want to create a sheet in which all the changes are logged.

Is it possible?

Is there a shortcut for Edit Master in Google Slides?

Is there a shortcut (keyboard or other) to quickly edit a slide master in G-suite?

In Powerpoint, you can click the display buttons, which works well. I'm looking for something similar for the Slide -> Edit Mask menu option.

enter the description of the image here

magento2 – The input values ​​of the edit form are empty, using the UI component – Magento 2

Here is the content of my UI component file:

vendor_modulename_shippingmethods_form.shippingmethods_form_data_source General Information templates/form/collapsible entity_id entity_id
text name Name input name false

and here is my data provider:

    namespace VendorModuleNameModelShippingMethods;

    use VendorModuleNameModelResourceModelShippingMethodsCollectionFactory;

    class DataProvider extends MagentoUiDataProviderAbstractDataProvider

        protected $_loadedData;

        public function __construct(
            CollectionFactory $employeeCollectionFactory,
            array $meta = (),
            array $data = ()
        ) {
            $this->collection = $employeeCollectionFactory->create();
            parent::__construct($name, $primaryFieldName, $requestFieldName, $meta, $data);

        public function getData()
            if (isset($this->_loadedData)) {
                return $this->_loadedData;
            $items = $this->collection->getItems();

If I display my query string in the getData() with echo $this->collection->getSelect();, the result is:

SELECT `main_table`.* FROM `mytable` AS `main_table` WHERE (`entity_id` = '') . My id is missing. Not sure how, any idea where to look ?  Thnx in advance

Unity – Why can not I directly edit the position of a prefab using transform.position? (Unity3D)

I am relatively new to Unity and am currently working on code. I'm trying to change the position of the controller in the first person the standard assets of Unity with the help of

player.position = anotherObject.position + offset;

I would like to add that I rule the player's position when he collides with a box collider.

However, it does not work for any reason. I've been trying to debug it using print instructions before and after the teleportation of the drive, and here's what I see:

Player position: (0, 2, 0)
Player position after teleport: (32, 2, 0)
Player position one frame later: (0, 2, 0)

After an image, the player returns to his original position, as if he had never been moved.

Here is my code, if it can help you better understand my problem.

public class PortalTeleporter : MonoBehaviour {

    public Transform player; // The player
    public Transform receiver; // Receiving portal

    private bool playerOverlap = false; // boolean to store whether player touches the box collider on portal

    void Update(){
            Vector3 portalToPlayer = player.position - transform.position;
            float dotProduct = Vector3.Dot(transform.up, portalToPlayer);
            if(dotProduct < 0f){
                float rotationDifference = Quaternion.Angle(transform.rotation, receiver.rotation);
                rotationDifference += 180;
                player.Rotate(Vector3.up, rotationDifference);

                Vector3 positionOffset = Quaternion.Euler(0f, rotationDifference, 0f) * portalToPlayer; // Offset between player and portal
                Vector3 pos = receiver.position + positionOffset;
                player.position = pos;

    // Triggered when player enters the portal
    void OnTriggerEnter(Collider other){
        if(other.tag == "Player"){
            playerOverlap = true;

    // Triggers when player untouches the portal
    void OnTriggerExit(Collider other) {
        if(other.tag == "Player"){
            playerOverlap = false;

Thank you for taking the time to answer my question!

How to create an event in the Microsoft Outlook web interface so that participants can edit it?

How to create an event in the Microsoft Outlook web interface so that participants can edit it?

For example, in Google Calendar, I can choose:

enter the description of the image here