Google Slides – File owner’s is in trash

I received a link to a file on Google Drive. When I try to open it, it says "File is in owner’s trash" and there is no Download button.

How can I download it?

magento2 – Cannot run setup:di:compile, generated directory file permissions

I am trying to set up a local instance of Magento. However, when I try to run php bin/magento setup:di:compile I get the following error:

  Class MagentoCronModelDeadlockRetrierInterface does not exist
  Class WyomindCronSchedulerPluginCronObserverProcessCronQueueObserverInterceptor generation error: The requested class did not generate properly, because the 'generated' directory permission is
  read-only. If --- after running the 'bin/magento setup:di:compile' CLI command when the 'generated' directory permission is set to write --- the requested class did not generate properly, then you mu
  st add the generated class object to the signature of the related construct method, only.

It seems the problem is that the generated directory file permissions are read only but I have run chmod -R 777 generated, when I run ls -la it shows this directory permissions are drwxrwxrwx. I’ve run all kinds of permissions commands from other answers and from the Magento Docs, but still get the same error message. Can anybody help?

sharepoint online – Import RESX translation file trough PowerShell/PowerAutomate

Took a lot of effort to translate each field from Dutch to French.
When I uploaded the resx file all was nicely translated.

Right now I would like to enable this translation on each site existing and newly created.

Trough PowerShell/PowerAutomate. Doesn’t matter.
I uploaded the file already on

tenant-admin.sharepoint.com/_layouts/15/importtranslations.aspx

, no success.

any suggestions?

attacks – What else can be done with R/W FTP file system?

Scenario:

Microsoft FTP server (Windows Server 2012 host) 

Attacker can access the remote filesystem which is READ/WRITE 

As well as being a risk in terms of malware injection (files on the server can be tampered with malicious code ) what else could an attacker do?

Transferring a payload (msfvenom technique) in order to start a meterpreter session, doesn’t make sense since FTP protocol doesn’t allow to execute arbitrary commands

I thought about exploiting some vulnerabilities related to Microsoft FTP server but I couldn’t find any (except one very old which doesn’t work).

sharepoint enterprise – Linking to content within MS Word file

Per my test currently this feature is not supported on word side.

If we add a hyperlink likes “http://site/shareddocuments/xx.doc/#Job” in SharePoint page to open the special location in the word client, it will open the whole document instead of the bookmark section.

In other words, if we use word online, it does not support creating hyperlinks (bookmarks or cross references) to other places in the same document.

So it will not work in SharePoint either.

nodejs – Error: ENOENT: no such file or directory, open ‘ca.key’

Buenas noches estoy teniendo este error, estoy arrancando una api node js con express, estaba hecha con protocolo http a la hora de hacer unos test en producción me sale un error de mixed en el cliente porque este esta recibiendo endpoints http y me bloquea las request.

Estoy tratando de pasar mi API de http a https, me base en la documentacion de los modulos fs y https de node pero a la hora de ejecutar poner a correr la API me sale este error Error: ENOENT: no such file or directory, open ‘ca.key’.

El codigo de mi index es asi:

import express, { Application } from "express";
import morgan from "morgan";
import cors from "cors";
import swaggerUi from "swagger-ui-express";
import * as swaggerDocument from "./swagger.json";
import ServerSocket from './socket';
import fs from 'fs';
import https from 'https';

require("dotenv").config();

import indexRoutes from "./routes/indexRoutes";
import productsRoutes from "./routes/productsRoutes";
import usersRoutes from "./routes/usersRoutes";
import storesRoutes from "./routes/storesRoutes";
import tagsRoutes from "./routes/tagsRoutes";
import favsRoutes from "./routes/favsRoutes";
import utilityRoutes from "./routes/utilityRoutes";
import sellsRoutes from "./routes/sellsRoutes";

class Server {
  public app: Application;

  constructor(
    private socket: ServerSocket,
  ) {
    this.app = express();
    this.config();
    this.routes();
    this.socket.startSocket();
    this.app.use("/swagger", swaggerUi.serve, swaggerUi.setup(swaggerDocument));
  }

  config(): void {
    this.app.set("port", process.env.PORT || 3000);
    this.app.use(morgan("dev"));
    this.app.use(cors());
    this.app.use(express.json());
    this.app.use(express.urlencoded({ extended: false }));
  }

  routes(): void {
    this.app.use("/", indexRoutes);
    this.app.use("/api/products", productsRoutes);
    this.app.use("/api/stores", storesRoutes);
    this.app.use("/api/users", usersRoutes);
    this.app.use("/api/tags", tagsRoutes);
    this.app.use("/api/favs", favsRoutes);
    this.app.use("/api/utility", utilityRoutes);
    this.app.use("/api/sells", sellsRoutes);
  }

  start() {
    https.createServer({
      cert: fs.readFileSync('ca.crt'),
      key: fs.readFileSync('ca.key')
    }, this.app).listen(this.app.get("port"), () => {
      console.log("Server on port", this.app.get("port"));
    });
  }
}

const socket = new ServerSocket();
const server = new Server(socket);
server.start();

Estoy trabajando con un WebSocket para envio de notifiaciones el cual esta configurado asi:

import express, { Application } from 'express';
import dotenv from 'dotenv';
import socketio, { Socket } from 'socket.io';
import https from 'https';
dotenv.config();

import usersRoom from './rooms/usersRoom';

export default class Server {

    public app: Application;
    public serve: any;
    io: any;
    
    constructor() {
        this.app = express();
        this.serve = https.createServer(this.app);
        this.io = socketio(this.serve);
        this.config();
        this.rooms();
    }

    config(): void {
        this.app.use(function (req, res, next) {
            res.header('Access-Control-Allow-Origin', process.env.ACCESS_SOCKET);
            res.header('Access-Control-Allow-Credentials', 'true');
            res.header('Access-Control-Allow-Methods', 'GET, POST, PUT ,DELETE');
            res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept');
            next();
        });
    }

    rooms(): void {
        this.io.on('connection',  (socket: Socket) => {
            console.log(`A user connected: ${socket.id}`);

            socket.on('join', ({ token }, callback) => {

                const { error, user, rol }: any = usersRoom.addUser({ id: socket.id, tokenUser: token });
                if(error) return callback(error);

                if (rol === 3) {
                    console.log(user, 'prueba');
                    socket.join(user?.roomUser);
                    socket.join(user?.roomStore);
                }

                if (rol === 2 || rol === 1) {
                    console.log(user, 'prueba');
                    socket.join(user?.roomUser);
                }
                

                // logica usuarios online suscritos a una tienda  
                // socket.broadcast.to(user?.room).emit('message', { user: 'admin', text: `${user?.name} has joined!` });                                                                         
            
              });
            
            socket.on('order', (data: any) => {
                data.map(({idSell, idStore, nameUser}: any) => {
                    socket.broadcast.to(`store${idStore}`).emit('order', { order: idSell, userName: nameUser });
                });
                console.log(data);
                //socket.broadcast.to(`user${data}`).emit('order', { user: data });
            });

            socket.on('stateOrder', ({idSell, idClient }: any) => {
                    socket.broadcast.to(`client${idClient}`).emit('stateOrder', { idSell: idSell, date: new Date });
            });

            socket.on('disconnect', () => {
                usersRoom.removeUser(socket.id);
                console.warn('WS: Disconnected!', socket.id);
            });
        });
    }

    startSocket() {
        this.serve.listen(4000, () => {
            console.log('ServerSocket on port', 4000);
        });
    }

}

Adjunto pantallazo del error que me sale:

introducir la descripción de la imagen aquí

We are using ClearCase version control and need to set up a symlink to sepete versions of a file

We are trying to set up symlinks to a file. While setting up the symlink is fine how can we point to specific version? We also want to point to several versions. For example in folder1 we have an upgrade script to go from 7.1 to 7.2 to 7.3 all on different branches. We want the symlink in directory 1 to point to the version on the 7.1 branch, the symlink in directory 2 to point to the version on the 7.2 branch and the symlink in the directory 3 to point to the version on the 7.3 branch. Is this possible?

javascript – Control text and images with a json file Vuejs

So I was wondering if anyone knew how to create some kind of master file that you can change any text or image and it will apply it after the JSON file is saved?

Instead of manually looking for the images and text that you want to replace in the code

I’ve looked around but I’m not even sure this exists or is possible.

Any assistance would be appreciated.

Textures rotated 90 degrees when importing a .glb file

I have a simple box, textured with bricks, in Blender:

enter image description here

I export this scene as glTF 2.0 and import into Godot. Here’s the result:

1

As you can see, the bricks are rotated 90 degrees for some reason. Why, and how can I make it right?

powershell – Sharepoint Download file CSOM – last step

Ok, so this maybe more PowerShell related than SharePoint. Actually, I am looking for the last step of downloading a file:

Write-Host "Load file ..."
$file = $ctx.Web.GetFileByServerRelativeUrl($Source)
$ctx.Load($file)
$ctx.ExecuteQuery()

So, I have the $file object, that is a Microsoft.SharePoint.Client.ClientObject, how can I get it? I intentionally do not use PnP. Thank you.