79182368

Date: 2024-11-12 18:51:53
Score: 2
Natty:
Report link

There's a simpler solution I believe that I found in this medium article: https://kulembetov.medium.com/preventing-flash-of-unstyled-content-fouc-in-next-js-applications-61b9a878f0f7

Basically, it consists of adding visibility: hidden; to the body element by default and then adding the visibility back client side once the main layout has mounted (like so for instance: document.body.classList.add('body-visible');

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Faris Marouane

79182363

Date: 2024-11-12 18:49:52
Score: 2
Natty:
Report link

If you are using NewtonsoftJson, make sure to add Nuget package reference to Microsoft.AspNetCore.Mvc.NewtonsoftJson also.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Nitheesh George

79182352

Date: 2024-11-12 18:44:50
Score: 1
Natty:
Report link

I am also on Windows. I use --force-polling and it works. I got the solution from this Github issue

This flag forces Liquid to use polling rather than inotify. So, note that it is more CPU intensive.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: putawanDE

79182345

Date: 2024-11-12 18:40:50
Score: 2.5
Natty:
Report link

I faced this issue and was able to resolve it by updating my typescript version; I'm now currently using "typescript": "^5.6.3". Try that and see if it works. Good luck!

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Andrew D.

79182335

Date: 2024-11-12 18:36:49
Score: 3
Natty:
Report link

It is unprofessional that only 15 days have passed between the announcement of the deprecation of the functionality and its removal.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gabriel Alfredo Aros Garay

79182332

Date: 2024-11-12 18:35:48
Score: 4
Natty: 4
Report link

You need a the micro python from pimoroni to work with the GFX PACK

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28265806

79182330

Date: 2024-11-12 18:33:45
Score: 6 🚩
Natty:
Report link

I can only use REST API's to use instance_config to exclude fields. It is still not working with Python APIs. Would appreciate someone's help as there is no code samples for this feature from Vertex AI.

Reasons:
  • Blacklisted phrase (2): still not working
  • Blacklisted phrase (1.5): Would appreciate
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rishikesan Ravichandran

79182311

Date: 2024-11-12 18:26:43
Score: 2.5
Natty:
Report link

go to : Control Panel -> Credential Manager -> Generic Credentials

choose the edit option and update your "User name" and "Password"

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Saravanan B S

79182300

Date: 2024-11-12 18:23:43
Score: 3.5
Natty:
Report link

Check if you have mySQL installed and not just the workbench

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: urmomjei

79182298

Date: 2024-11-12 18:22:42
Score: 5
Natty: 5
Report link

I have less than 50 reputations, but I need to ask SUBHRA SANKHA, if he was able to find a way around this problem.

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (1.5): 50 reputation
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Daniel Adejumobi

79182297

Date: 2024-11-12 18:22:42
Score: 1
Natty:
Report link

Note: 🫵 You can help. This issue has been filed as Gerrit bug 40015217. Please +1 it and upvote this question to help it get the attention it deserves.

Cause

File rename operations in a git commit are identified by computing the similarity (percentage of lines unchanged) of pairs of files in the commit—one that was deleted and one that was added. If the similarity exceeds some threshold, the file deletion and file addition together are considered a file rename instead. Git’s default similarity threshold for rename detection is 50%. This is clearly documented and Google knows it well.

Gerrit uses JGit, and for some reason its similarity threshold for rename detection is 60% and has been since at least 2010 (commit 978535b). What’s more, the threshold isn’t customizable. jgit diff has a -M for detecting renames, but it doesn’t accept a custom threshold.

Effects

Here are some of the problems that Gerrit users face as a result of Gerrit using a different rename detection threshold than git:

Workarounds

Authors can usually work around this issue by splitting a file rename + edits into multiple commits. In some compiled languages like Java, file renames usually require some edits (such as to the package line and/or class name) for the file to continue compiling. The minimum amount of edits required to appease the compiler usually keep a file’s similarity index over 60% though. Other edits can come in separate (prior or follow-up) commits.

Authors may not realize, however, that Gerrit won’t properly identify their file rename until after they’ve prepared the commit, written a commit title and description, and uploaded it for review. Their local git installation and git tools (such as IntelliJ’s git integration, for example) properly identified the file rename before they uploaded the commit to Gerrit. At this point, reworking the commit to work around a Gerrit limitation may have significant time cost, since the commit may have several more on top of it, and all of them might need to be rebased and have acceptance tests run again as a result. In short, the workaround may not always be quick and low-cost.

Other reports

This issue has been reported and discussed in several other places.

Possible solutions

  1. JGit could be updated to use git’s default similarity threshold for rename detection (50%).
  2. JGit could be updated to make the similarity threshold for rename detection configurable, and Gerrit could set it to git’s default value (50%).
  3. JGit could be updated to make the similarity threshold for rename detection configurable, and Gerrit could create a setting for what threshold to use for the installation or for each repository.
  4. Gerrit could switch to using git rather than JGit for diffs.

Insights from other products

It seems that BitBucket (or Stash) recently made the copy/rename similarity thresholds configurable (BSERV-3249). They use git rather than JGit.

IntelliJ/IDEA (a Java application) once tried using JGit for its git plugin, but concluded in this IJPL-88784 comment (emphasis added):

My comments given 18 months ago are still valid. JGit is still below Git. Moreover, you might be surprised, but we actually gave JGit a try: we used it in IDEA 11.X and 12.0 for HTTP remote operations. Our users got a lot of problems that were not easy to fix or even to reproduce, so we've rolled back to native Git. If other projects are happy with JGit, that's their funeral, we have our own vision on the subject.

So it is not because we are lazy to rewrite the plugin. We just don't want to fix issues for the JGit team, and on the other hand we can't say users "blame JGit" if they experience problems with IDEA which they don't have in the command line: they will still blame IDEA, because they don't care which library do we use inside.

Reasons:
  • Blacklisted phrase (0.5): upvote
  • RegEx Blacklisted phrase (3): You can help
  • Long answer (-1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: jaredjacobs

79182290

Date: 2024-11-12 18:19:41
Score: 1.5
Natty:
Report link

I've solved installing ipywidgets

pip install ipywidgets
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Stefano Borzì

79182271

Date: 2024-11-12 18:13:39
Score: 1
Natty:
Report link

In my case export DOCKER_HOST="unix://${HOME}/.rd/docker.sock" also worked. If it works for you, be sure to add it to your shell startup. No need to enable administrative access in Rancher Preferences. Apparently default DOCKER_HOST is /var/run/docker.sock.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Yar

79182267

Date: 2024-11-12 18:11:38
Score: 3.5
Natty:
Report link

check redirect URI from google api console and try with updating expo configarations

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Karthik N G

79182253

Date: 2024-11-12 18:08:37
Score: 2.5
Natty:
Report link

If you are using MIUI. Turn off the MIUI optimization. For this: Settings > Developer options > MIUI optimisation

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: agelastrxn

79182245

Date: 2024-11-12 18:06:37
Score: 0.5
Natty:
Report link

The ElastiCache service is designed to be accessed exclusively from within AWS.

If you want to access it from your local machine, the easiest and the cheapest way is to you use AWS SSM Start-Session with port forwarding (https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-sessions-start.html#sessions-remote-port-forwarding).

First install the Session Manager plugin for AWS CLI (https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html)

Login via CLI to AWS and run:

aws ssm start-session \
    --target instance-id \
    --document-name AWS-StartPortForwardingSessionToRemoteHost \
    --parameters '{"host":["redis-host.us-east-2.elasticache.amazonaws.com"],"portNumber":["6379"], "localPortNumber":["6379"]}'

Then you can access your redis on localhost:6379. Make sure to test first with tls disabled.

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vasko

79182244

Date: 2024-11-12 18:06:37
Score: 1
Natty:
Report link

That was false positive case and it's already resolved https://github.com/detekt/detekt/issues/3145

As an enhancement, the check could look at the actual byte code generated. If the spread operator leads to a new array instantiation, the spread operator is a performance issue and should be reported. If the spread operator passes through an existing array, the spread operator is not a performance issue and should not be reported.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Grey2k

79182235

Date: 2024-11-12 18:03:35
Score: 1
Natty:
Report link

At my company we just started using .jenkinsfile as an extension.

build.jenkinsfile and deploy.jenkinsfileand so forth. It's worked well and our IDE's are able to parse the syntax just fine.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rb C

79182222

Date: 2024-11-12 18:01:35
Score: 3
Natty:
Report link

I hade same problem today, Try open Resource file with legacy and add files. Righ click Resource file => Open With => (Legacy) Hope this helps,

enter image description here

enter image description here

https://stackoverflow.com/a/78924871/2741974

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): Hope this helps
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Henrik

79182214

Date: 2024-11-12 17:58:34
Score: 1
Natty:
Report link

There's a new feature in terraform 1.9 that can help here, a variable validation can now refer to another variable: https://github.com/hashicorp/terraform/blob/v1.9/CHANGELOG.md#190-june-26-2024

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: jamiet

79182213

Date: 2024-11-12 17:57:33
Score: 1.5
Natty:
Report link

Events are fired if you call delete on each model, not on the builder.

//events not fired
Submission::query()->delete();

//events fired
Submission::query()->get()->each->delete();

Live code example in laravel sandbox: https://sandbox.ws/en/shared/e0eadb68-f145-46a2-9981-188ee3c34e8a

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nikolay

79182202

Date: 2024-11-12 17:54:33
Score: 3.5
Natty:
Report link

People why so complicated?

const ExtractDomain = url => url.includes('/') ? url.split('/')[2] : '';
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: MrMan

79182199

Date: 2024-11-12 17:53:32
Score: 1.5
Natty:
Report link

I'm starting to think it's something global or something. I started having this problem 2 or 4 days ago, nothing changed in my app, however today when I tried to do an npm run build, I get the same thing.

SyntaxError: Unexpected identifier '#Y'.
at wrapSafe (node:internal/modules/cjs/loader:1427:18)
at Module._compile (node:internal/modules/cjs/loader:1449:20)
at Module._extensions.js (node:internal/modules/cjs/loader:1588:10)
at Module.load (node:internal/modules/cjs/loader:1282:32)
at Module._load (node:internal/modules/cjs/loader:1098:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Module.require (node:internal/modules/cjs/loader:1304:12)
at mod.require (E:\git-challenge-traveler-visitor-visitant_modules_modules_next_distress-server-require-hook.js:65:28)
in require (node:internal/modules/helpers:123:16)

> A compilation error has occurred
Error: Failed to collect page data for /api/dashboard/create-company
at E:\git-challenge-traveler-visitant “client” modules “nextdistinct”.js:1268:15
in process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'Error'
}

I tried doing the build on past commits where the site was working fine, and it's still the same. Does anyone know where one could report such an error, I think probably in the vercel forum, however I was asked what I did and the truth is that nothing.

Reasons:
  • RegEx Blacklisted phrase (2): Does anyone know
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Happy

79182189

Date: 2024-11-12 17:52:32
Score: 1.5
Natty:
Report link

I was insanely jealous when Van Jacobson of LBL used my kernel ICMP support to write TRACEROUTE, by realizing that he could get ICMP Time-to-Live Exceeded messages when pinging by modulating the IP time to life (TTL) field. I wish I had thought of that! :-) Of course, the real traceroute uses UDP datagrams because routers aren't supposed to generate ICMP error messages for ICMP messages.

source: https://ftp.arl.army.mil/~mike/ping.html

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: wu Helious

79182178

Date: 2024-11-12 17:49:31
Score: 2.5
Natty:
Report link

it is working in live environment be sure that you visit the link http://localhost/opencart/index.php?route=custom/simplejson without any .PHP extension at the end

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Emad Abdulhannan

79182173

Date: 2024-11-12 17:45:28
Score: 12 🚩
Natty:
Report link

Problem solved, for those who need or have a similar problem I share the code. Thanks to everyone for commenting and responding.

    <?php
include("conexion.php"); // Asumiendo que tu conexión está configurada aquí
require __DIR__ . "/vendor/autoload.php";
$objCon = new Conexion();

use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\IOFactory;
use PhpOffice\PhpSpreadsheet\Cell\Coordinate;
use Monolog\Level;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Monolog\Handler\FirePHPHandler;

// Configuración básica para mostrar todos los errores
error_reporting(E_ALL);
ini_set('display_errors', 'On');

//Guardando el tipo_actividad e id_reporte
$tipo_Actividad=$_POST['tipo_actividad'];
$id_reporte = $_POST['id_reporte'];

class Registro
{
    public $interno;
    
    public function __construct($data)
    {
        $this->interno = [
            'doc_identidad' => $data['documento_identidad'],
            'datos_adicionales' => [
                'nombre_completo' => $data['apellidos_nombres_interno'],
                'fecha_ingreso' => $data['fecha_ingreso'],
                'fecha_nac' => $data['fecha_nacimiento'],
                'discapacidad' => $data['discapacidad'],
                'planificacion_intervencion' => $data['planificacion_intervencion'],
                'tipo_intervencion' => $data['tipo_intervencion'],
                'grupo_especifico' => $data['grupo_especifico'],
                'otros_relevantes' => $data['otros_relevantes'],
                'regimen' => $data['regimen'],
                'etapa' => $data['etapa'],
                'pabellon' => $data['pabellon'],
                'descripcion' => mb_convert_encoding($data['descripcion'], "UTF-8"),
                'dia' => $data['dia'],
                'nombre_sesion' => mb_convert_encoding($data['nombre_sesion'], "UTF-8"),
                'profesional' => $data['datos_profesional'],
                'observaciones' => $data['observaciones']
                // ... otros datos adicionales

            ]
        ];
        // $this->nombre_completo = $data['apellidos_nombres_interno'];



    }
}

class GeneradorReporteExcel
{
    private $spreadsheet;
    private $sheet;
    private $logger;
    

    public function __construct()
    {
        $this->spreadsheet = new Spreadsheet();
        $this->sheet = $this->spreadsheet->getActiveSheet();

        //Logs
        $this->logger = new Logger('my_app');
        $this->logger->pushHandler(new StreamHandler(__DIR__ . '/reportes/debug.log', Level::Debug));
        // $this->logger->info('My logger is now ready');
        $this->logger->pushHandler(new FirePHPHandler());
    }

    private function obtenerValor($registro, $columna, $fila, $tipoActividad)
    {
        switch ($columna) {
            case 'C':
                return $registro->interno['doc_identidad'];
            case 'D':
                return $registro->interno['datos_adicionales']['nombre_completo'];
            case 'E':
                return 'MASCULINO';
            case 'F':
                return $registro->interno['datos_adicionales']['fecha_ingreso'];
            case 'G':
                return $registro->interno['datos_adicionales']['fecha_nac'];
            case 'H':
                // Obtener la celda de fecha de nacimiento (suponiendo que 'G2' es relativa)
                $celdaFechaNacimiento = 'G' . $fila; // Ajusta la fila según tu lógica
                // Construir la fórmula completa
                $formula = "=(NOW()-" . $celdaFechaNacimiento . ")/365-0.5";
                return $formula;
            case 'I':
                return $registro->interno['datos_adicionales']['discapacidad'];
            case 'J':
                //planificacion d ela intervencion
                if ($registro->interno['datos_adicionales']['planificacion_intervencion'] == 1) {
                    $planificacion_intervencion = "PTI_EN_PROCESO";
                }

                if ($registro->interno['datos_adicionales']['planificacion_intervencion'] == 2) {
                    $planificacion_intervencion = "PTI_P";
                }

                if ($registro->interno['datos_adicionales']['planificacion_intervencion'] == 3) {
                    $planificacion_intervencion = "PTI_S";
                }
                if ($registro->interno['datos_adicionales']['planificacion_intervencion'] == 4) {
                    $planificacion_intervencion = "POPE_ANTIGUA";
                }
                return $planificacion_intervencion;
            case 'K':
                //tipo de intervencion
                if ($registro->interno['datos_adicionales']['tipo_intervencion'] == 1) {
                    $tipo_intervencion = "INDUCCION_Y_ADAPTACION_AL_REGIMEN_PENITENCIARIO";
                }
                if ($registro->interno['datos_adicionales']['tipo_intervencion'] == 2) {
                    $tipo_intervencion = "INTERVENCION_GENERAL";
                }
                if ($registro->interno['datos_adicionales']['tipo_intervencion'] == 3) {
                    $tipo_intervencion = "INTERVENCION_ESPECIALIZADA";
                }
                if ($registro->interno['datos_adicionales']['tipo_intervencion'] == 4) {
                    $tipo_intervencion = "PROGRAMACIÓN_SOBRE_NECESIDADES_DE_INTERVENCIÓN_COMPLEMENTARIA";
                }
                return $tipo_intervencion;
            case 'L':
                return $registro->interno['datos_adicionales']['grupo_especifico'];
            case 'M':
                return $registro->interno['datos_adicionales']['otros_relevantes'];
            case 'N':
                return $registro->interno['datos_adicionales']['regimen'];
            case 'O':
                return $registro->interno['datos_adicionales']['etapa'];
            case 'P':
                return $registro->interno['datos_adicionales']['pabellon'];
            case 'Q':
            case 'S':
            case 'U':
            case 'W':
            case 'Y':
            case 'AA':
            case 'AC':
                if ($tipoActividad === 1) {
                    $descripcion=$registro->interno['datos_adicionales']['descripcion']; // O el campo de descripción que corresponda
                } else {
                    $descripcion='';
                }
                return $descripcion;
            case 'R':
            case 'T':
            case 'V':
            case 'X':
            case 'Z':
            case 'AB':
            case 'AD':
                if ($tipoActividad === 1) {
                    $dia=$registro->interno['datos_adicionales']['dia']; // O el campo de descripción que corresponda
                } else {
                    $dia='';
                }
                return $dia;
            case 'AE':
            case 'AG':
            case 'AI':
            case 'AK':
            case 'AM':
                if ($tipoActividad == 2) {
                    // Manejar el caso cuando tipoActividad es 2 (si aplica)
                    $nombre_sesion=$registro->interno['datos_adicionales']['nombre_sesion']; // O el campo de nombre de sesión que corresponda
                } else {
                    $nombre_sesion='';
                }
                return $nombre_sesion;

            case 'AF':
            case 'AH':
            case 'AJ':
            case 'AL':
            case 'AN':
                if ($tipoActividad == 2) {
                    // Manejar el caso cuando tipoActividad no es 1 ni 2
                    $dia=$registro->interno['datos_adicionales']['dia']; // O el campo de nombre de sesión que corresponda
                } else {
                    $dia='';
                }
                return $dia;

            case 'AO':
                return $registro->interno['datos_adicionales']['profesional'];
            case 'AP':
                return $registro->interno['datos_adicionales']['observaciones'];
                // case 'AQ':
                //     return $registro->interno['datos_adicionales']['nombre_completo'];
            default:
                return '';
        }
    }



    private function escribirEnCelda($columna, $fila, $valor)
    {
        // $this->logger->debug("Escribiendo $valor en la celda $columna$fila");
        // $this->sheet->setCellValue($columna . $fila, $valor);

        try {
            // $this->logger->info('My logger is now ready');
            // $this->logger->debug("Escribiendo $valor en la celda $columna$fila");
            $this->sheet->setCellValue($columna . $fila, $valor);
        } catch (\Exception $e) {
            $this->logger->error("Error al escribir en la celda: " . $e->getMessage());
        }
    }

    private function getRangoColumnas($tipoActividad, $esNuevoRegistro)
    {
        if($tipoActividad==1){
        return $esNuevoRegistro ? ['C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'AA', 'AB', 'AC', 'AD'] : ['O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'AA', 'AB', 'AC', 'AD'];
        }else{
            return $esNuevoRegistro ?  ['C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'AE', 'AF', 'AG', 'AH','AI','AJ','AK','AL','AM','AN','AO','AP'] : ['AE', 'AF', 'AG', 'AH','AI','AJ','AK','AL','AM','AN'];
        }
    }

    private function buscarFilaPorDni($dni)
    {
        // Suponiendo que el DNI está en la columna C
        $highestRow = $this->sheet->getHighestRow();
        // $this->logger->debug("Cuantas filas hay?: $highestRow");
        for ($row = 2; $row <= $highestRow; $row++) {
            
            if ($this->sheet->getCell('C' . $row)->getValue() == $dni) {
                // $this->logger->debug("Fila del archivo Excel: $this->sheet->getCell('C' . $row)->getValue() == DNI: $dni");
                $tipoActividad = 2; //$this->sheet->getCell('A' . $row)->getValue(); // Suponiendo que el tipo de actividad está en la columna A
                $rangoColumnas = $this->getRangoColumnas($tipoActividad, false);
                return [
                    'fila' => $row,
                    'rangoColumnas' => $rangoColumnas
                ];
            }
            // $this->logger->debug("DNI EXCEL: $this->sheet->getCell('C' . $row)->getValue()  NO ES IGUAL A DNI SQL: $dni");
            
        }
       
        return false;
     
    }

 private function crearNuevaFila($fila, $registro, $rangoColumnas, $tipoActividad,$esNuevoRegistro) {
    $columnaIndex = 0; // Inicializamos el índice de columna

    foreach ($rangoColumnas as $columna) {
        if($tipoActividad=2 && $esNuevoRegistro==true){
            if($columnaIndex==16 || $columnaIndex==17 || $columnaIndex==18 || $columnaIndex==19 || $columnaIndex==20 || $columnaIndex==21 || $columnaIndex==22){
                // $this->logger->debug("columnaIndex: $columnaIndex - Pertenece a la columna: $columna ---> NO SE REGISTRO");
                continue;
            }
        }else{

       }
        
        $valor = $this->obtenerValor($registro, $columna, $fila, $tipoActividad);
        $this->escribirEnCelda($columna, $fila, $valor);
        // $this->logger->debug("columnaIndex: $columnaIndex - Pertenece a la columna: $columna ---> valor = $valor ");
        $columnaIndex++;
    }
}
 

    private function actualizarFila($fila, $registro,  $rangosAdicionales)
    {
        $tipoActividad = 2; //$registro->tipo_actividad;

        // Encontrar la primera columna vacía en el rango adicional
         $columnaVacia = null;

    //    $this->logger->debug("Rango: $rangosAdicionales[$tipoActividad]");
         foreach ($rangosAdicionales as $columna) {

             if ($this->sheet->getCell( $columna. $fila)->getValue() === null) {
                 $columnaVacia =  $columna;
                //  $this->logger->debug("Columna Vacia: $columnaVacia");
                 break;
             }
          }

        // Si se encontró una columna vacía, escribir el valor
         if ($columnaVacia) {
            //  $columnaIndex = array_search($columnaVacia, $rangosAdicionales);
            //  $this->logger->debug("ColumnaIndex: $columnaIndex ");
            $sesion =$registro->interno['datos_adicionales']['nombre_sesion']; // $this->obtenerValor($registro, $columna);
            $this->escribirEnCelda($columnaVacia, $fila, $sesion);
            //aumentando en 1 para el día
            $columnaVacia++;
            $dia=$registro->interno['datos_adicionales']['dia'];
            $this->escribirEnCelda($columnaVacia, $fila, $dia);
         }
    }



    public function generarReporte($registros, $rutaArchivo, $formatoArchivo,$tipoActividad)
    {
        // Cargar el archivo de formato
        $this->spreadsheet = IOFactory::load($formatoArchivo);
        $this->sheet = $this->spreadsheet->getActiveSheet();

        $fila = 2;

        foreach ($registros as $registro) {
            $tipoActividad = $tipoActividad; //$registro->datos_adicionales['tipo_intervencion'];

            // Determinar si es un nuevo registro o no ---> OK!
            if ($this->buscarFilaPorDni($registro->interno['doc_identidad'])) {
                $rangoColumnas = $this->getRangoColumnas($tipoActividad, false); // Registro existente
                //hayando la fila repetida
                // $dni = $registro->interno['doc_identidad'];
                 $resultadoBusqueda=$this->buscarFilaPorDni($registro->interno['doc_identidad'])['fila'];
                    //  $this->logger->debug("FILA REPETIDA: ".$resultadoBusqueda);
                // if (is_array($resultadoBusqueda)) {
                //     $filaExistente =  $resultadoBusqueda[0];//$this->buscarFilaPorDni($dni)[0];
                //     $this->logger->debug("FILA REPETIDA: $filaExistente");
                // }
                $this->actualizarFila($resultadoBusqueda, $registro, $rangoColumnas);
                //  $this->logger->debug("BuscarFilaDNI devuelve estos valores: ".json_encode($this->buscarFilaPorDni($registro->interno['doc_identidad'])));
            } else {
                $rangoColumnas = $this->getRangoColumnas($tipoActividad, true); // Nuevo registro
                $this->crearNuevaFila($fila, $registro, $rangoColumnas, $tipoActividad,true);
                $fila++;
                // $this->logger->debug("BuscarFilaDNI devuelve estos valores: ".$this->buscarFilaPorDni($registro->interno['doc_identidad']));
            }
        }

        // Guardar el archivo Excel
        $writer = IOFactory::createWriter($this->spreadsheet, 'Xlsx');
        $writer->save($rutaArchivo);
    }

}


// Consulta SQL
$sql = "SELECT I.doc_identidad AS 'DOCUMENTO_IDENTIDAD',
                            I.ape_nombres AS 'APELLIDOS_NOMBRES_INTERNO',
                            I.fecha_ingreso AS 'FECHA_INGRESO',
                            I.fecha_nacimiento AS 'FECHA_NACIMIENTO',
                            I.discapacidad AS 'discapacidad',

                            DET.planificacion_intervencion AS 'PLANIFICACION_INTERVENCION',
                            DET.tipo_intervencion AS 'TIPO_INTERVENCION',
                            GRUP.nombre_grupo_especifico AS 'GRUPO_ESPECIFICO',
                            DET.otros_relevantes AS 'OTROS_RELEVANTES',
                            REG.nombre_regimen AS 'REGIMEN',
                            ETP.nombre_etapa AS 'ETAPA',
                            I.pab_celda_etapa AS 'PABELLON',
                            DESCRIP.nombre_descripciones AS 'DESCRIPCION',
                            DET.dia_actividades AS 'dia',
                            SES.nombre_sesiones AS 'nombre_sesion',
                            CONCAT(U.ape_paterno,' ',U.ape_materno,' ',U.nombres) AS 'DATOS_PROFESIONAL',
                            DET.observaciones AS 'OBSERVACIONES',
                            DET.cambio_PTIP_PTIS AS 'PTI_P_PTI_S'
                        FROM reportes_mensuales REP
                        INNER JOIN detalle_reporte_mensual DET ON REP.id_reporte_mensual=DET.id_reporte_mensual
                        INNER JOIN grupo_especifico GRUP ON DET.id_grupo_especifico=GRUP.id_grupo_especifico
                        INNER JOIN internos I ON DET.id_interno=I.id_interno
                        INNER JOIN usuarios U ON REP.id_usuario=U.id_usuario
                        INNER JOIN regimen REG ON DET.id_regimen=REG.id_regimen
                        INNER JOIN etapa ETP ON DET.id_etapa=ETP.id_etapa
                        INNER JOIN descripciones DESCRIP ON DET.id_descripciones=DESCRIP.id_descripciones
                        INNER JOIN sessiones SES ON DET.id_sesiones=SES.id_sesiones

                        WHERE REP.id_reporte_mensual=:id_reporte"; // Tu consulta SQL completa

$rsDetalleReporte = $objCon->getConexion()->prepare($sql);
$rsDetalleReporte->bindParam(':id_reporte', $id_reporte, PDO::PARAM_INT);

if ($rsDetalleReporte->execute()) {
    $registros = [];
    while ($row = $rsDetalleReporte->fetch(PDO::FETCH_ASSOC)) {
        $registro = new Registro($row);
        $registros[] = $registro;

        // Imprimir los datos del registro para verificar
        // echo json_encode($registro)."<br>";
    }

    // Verificar si el array $registros está vacío
    if (empty($registros)) {
        echo "No se encontraron registros.";
    } else {
        // Generar el reporte
        $generador = new GeneradorReporteExcel();
        $generador->generarReporte($registros, 'reportes/reporte_actualizado.xlsx', 'reportes/FORMATO_SOCIAL.xlsx',$tipo_Actividad);
    }
} else {
    // Manejar errores en la ejecución de la consulta
    echo "Error al ejecutar la consulta: " . $rsDetalleReporte->errorInfo()[2];
}
?>
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): está
  • Blacklisted phrase (2): crear
  • RegEx Blacklisted phrase (2): Encontrar
  • RegEx Blacklisted phrase (2): encontr
  • RegEx Blacklisted phrase (2): encontraron
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): have a similar problem
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: rek

79182166

Date: 2024-11-12 17:41:27
Score: 1
Natty:
Report link

I've already done it on my own. Using another library - SpaCy

MyCode:

import spacy

# Загружаем модель spaCy для русского языка
nlp = spacy.load("ru_core_news_sm")

# Применяем spaCy для сегментации
doc = nlp("Какая погода в Москве?")

# Печатаем все найденные сущности
for ent in doc.ents:
   print(ent.text, ent.label_)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Blazer Progs

79182165

Date: 2024-11-12 17:41:27
Score: 1
Natty:
Report link
for /f “tokens=2 delims=:” %%a in (‘findstr “lines:” .\reports\publish\coverage.xml’) do set lines_coverage=%%a
for /f “tokens=2 delims=:” %%a in (‘findstr “functions:” .\reports\publish\coverage.xml’) do set functions_coverage=%%a
for /f “tokens=2 delims=:” %%a in (‘findstr “branches:” .\reports\publish\coverage.xml’) do set branches_coverage=%%a`

:: Remove whitespace characters and check the values
set lines_coverage=!lines_coverage: =!
set functions_coverage=!functions_coverage: =!
set branches_coverage=!branches_coverage: =!`

:: Check if coverage is greater than 90% for lines, functions, and branches
for /f “delims=.” %%a in (“!lines_coverage!”) do set lines_coverage_int=%%a
for /f “delims=.” %%a in (“!functions_coverage!”) do set functions_coverage_int=%%a
for /f “delims=.” %%a in (“!branches_coverage!”) do set branches_coverage_int=%%a`

if !lines_coverage_int! geq 90 (
echo Lines coverage is !lines_coverage!%%.
) else (
echo Lines coverage is below 90%%: !lines_coverage!%%
goto :fail
)

This is my code. Is there any issues with the if and else statements

Reasons:
  • Blacklisted phrase (1): Is there any
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Vandana Vijendra

79182164

Date: 2024-11-12 17:41:27
Score: 1.5
Natty:
Report link

Subscription policies are defined for specific subscriptions, that is, between a specific Application and an API. If you want to restrict access to a particular API after a certain number of requests, you may configure an Advance policy from the Admin portal and add restrictions for your API from the Publisher portal.

please refer, https://apim.docs.wso2.com/en/4.3.0/design/rate-limiting/adding-new-throttling-policies/#adding-a-new-advanced-rate-limiting-policy

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dakshina Ranmal

79182149

Date: 2024-11-12 17:34:25
Score: 2
Natty:
Report link

Yes, in Shopify, you can update the password for a customer using the Storefront API but not directly via the Admin API. This process requires sending a password reset email to the customer, where they can update their password themselves. Shopify does not provide direct access to customer passwords through the Admin API due to security concerns.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sajid Khan

79182145

Date: 2024-11-12 17:33:25
Score: 2
Natty:
Report link

Unfortunately you have to use and pay for IntelliJ IDEA Ultimate to have code completion for Node.js, as you can see in the comparison of IntelliJ IDEA Ultimate and IntelliJ IDEA Community Edition: https://www.jetbrains.com/products/compare/?product=idea&product=idea-ce

In the IntelliJ IDEA Community Edition code completion for Node.js and JavaScript is not supported.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: manuelbeck

79182140

Date: 2024-11-12 17:31:25
Score: 1
Natty:
Report link

In my case, in application.properties changing spring.security.oauth2.client.registration.google.scope=openid, profile, email to spring.security.oauth2.client.registration.google.scope=profile, email solved the problem for me.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: cscSun

79182136

Date: 2024-11-12 17:28:24
Score: 1.5
Natty:
Report link

Debian 12

apt install libmagickcore-6.q16-dev

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: 9-Pin

79182133

Date: 2024-11-12 17:28:24
Score: 1.5
Natty:
Report link

To access protected members of a class you need to use the keyword this as shown in the TypeScript documentation.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: nik0x1

79182128

Date: 2024-11-12 17:26:23
Score: 0.5
Natty:
Report link

Try this:

=JOIN(CHAR(10),E3:G3)&", "&H3&" "&I3

preview of function

Reasons:
  • Whitelisted phrase (-2): Try this:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sillycone

79182105

Date: 2024-11-12 17:18:22
Score: 2.5
Natty:
Report link

you can check with global styling with SafeAreaProvider - To manage safe areas across your entire app, use https://www.npmjs.com/package/react-native-safe-area-context package, which provides SafeAreaProvider and SafeAreaView components. Wrap your entire app with SafeAreaProvider in your root component.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Karthik N G

79182104

Date: 2024-11-12 17:18:22
Score: 1.5
Natty:
Report link

The purpose of SafeAreaView is to render content within the safe area boundaries of a device.

So if you want to apply the background color everywhere, you may do this instead :

<View style={{ flex: 1, backgroundColor: "olive" }}>
    <SafeAreaView style={{ flex: 1 }}>
        {/* ... */}
    </SafeAreaView>
</View>
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mike

79182101

Date: 2024-11-12 17:16:21
Score: 0.5
Natty:
Report link

Since your function is returning an object return {'--bg-color': props.bgm}, it seems that this exact object is being passed as a backgroundImage value. Background-image property cannot consume this value.

Try to return correct css background-image value of type string as per MDN documentation

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vasyl

79182094

Date: 2024-11-12 17:14:21
Score: 2.5
Natty:
Report link

Why do you need launching two PM2 instance?

PM2 can start process with different node version.

See my response to this question: https://stackoverflow.com/a/73266114/8807231

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why do you
  • High reputation (-1):
Posted by: Alaindeseine

79182085

Date: 2024-11-12 17:11:20
Score: 0.5
Natty:
Report link

The solution works for me is, go to each pom file of submodules, right click, Run Maven -> Reimport (and this could take a while).

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Lycheek1ng

79182077

Date: 2024-11-12 17:09:20
Score: 1
Natty:
Report link

This seems to work. I am unsure why my PivotFields name and Items are with the [].

Sub Filter_Single_Item()
   Dim pt as PivotTable, pf As PivotField, ws As Worksheet
   
   Set ws = ThisWorkbook.Worksheets ("Sheet1")
   Set pt = ws.PivotTables("pvt_1")
   Set pf = pt.PivotFields("[Table1].[filter1].[filter1]")

   pf.ClearAllFilters

   pf.VisibleItemsList = Array("[Table1].[filter1].&[item1]")
End Sub
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Coco Palafox

79182074

Date: 2024-11-12 17:06:19
Score: 1.5
Natty:
Report link

You need to enable Keycloak integration by adding to your JAVA_ARGS to artemis.profile: -Dhawtio.keycloakEnabled=true See more detailed: JMS Security Keycloak Example

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Leonid Shumikhin

79182052

Date: 2024-11-12 17:01:18
Score: 2
Natty:
Report link

Intellisense ist not supported for inline JavaScript in Visual Studio Code. There is an open issue for this since 2017: https://github.com/microsoft/vscode/issues/26338

And a PR, which would resolve it (from January 2023): https://github.com/microsoft/vscode/pull/171547

So this would be the reason, why the variable defined in your inline JavaScript is not found in another JavaScript file.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: manuelbeck

79182049

Date: 2024-11-12 16:58:17
Score: 3.5
Natty:
Report link

I suggest looking at this other thread that has some other good answer that may help you.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bogghi

79182047

Date: 2024-11-12 16:58:17
Score: 2
Natty:
Report link

To close this out, spoke to AWS Support and as of Feb 2024 this is not supported by Glue Schema Registry but is on the roadmap.

If you want to do imports, you will have to use a different schema registry otherwise you have to bake in everything you want to import.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ameer

79182028

Date: 2024-11-12 16:52:16
Score: 1.5
Natty:
Report link

This might be caused by the false folder permissions. In my case I needed to give 775 to my image folders in photos folder:

chmod -R 775 photos/*

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mcanvar

79182010

Date: 2024-11-12 16:46:15
Score: 2.5
Natty:
Report link

I agree with @guillaume blaquiere, Cloud Source repository 2nd gen does not exist.

This is the documentation with regards to Cloud Build repositories (2nd gen).

With Cloud Build repositories (2nd gen), you can create and manage repository connections programmatically. You can set up a single connection for a repository and use Secret Manager secrets from that connection to programmatically set up additional connections across regions and projects. You can also set up connections using Terraform, in addition to the Google Cloud console, gcloud command-line tool, and the API. You must create a host connection prior to linking repositories when using Cloud Build repositories (2nd gen).

Cloud Build repositories (2nd gen) can be used with the following providers:

You can invoke builds on commits and pull requests. You can also invoke builds manually, on a Pub/Sub topic, or on an incoming webhook event.

Reasons:
  • Blacklisted phrase (1): regards
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @guillaume
  • Low reputation (0.5):
Posted by: McMaco

79181995

Date: 2024-11-12 16:42:14
Score: 1.5
Natty:
Report link

In case anyone is still looking for this today, check out Ferrostar. We've learned a lot about how (not) to build apps and SDKs over the last decade. With Ferrostar, we're trying to optimize for extensibility (every navigation use case is slightly different) and composability (you can swap out just about everything from core behaviors like off-route detection all the way up to the UI).

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: ianthetechie

79181992

Date: 2024-11-12 16:41:14
Score: 3
Natty:
Report link

I think you use wrap_content height in CardView that's why and you use a Cardview as a main layout

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rishab Singh

79181989

Date: 2024-11-12 16:41:14
Score: 1.5
Natty:
Report link

My situation when I ran into this problem is different than other answers. All my settings were user settings. However, I wanted the default values to be empty or null so I gave none of the properties a default value.

The save didn't work until I did give them a default value.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Nottoc

79181987

Date: 2024-11-12 16:40:14
Score: 3
Natty:
Report link

@Mohamad's answer is on point, but if you want smoother animation and a shorter movement, try that:

.box {
  transition: all .3s ease-in-out;
}

.box:hover {
  transform: translateY(-5px);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Mohamad's
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Whelmer Neto

79181972

Date: 2024-11-12 16:35:12
Score: 0.5
Natty:
Report link

-- Explanation:

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Trinesh M

79181968

Date: 2024-11-12 16:35:12
Score: 2
Natty:
Report link

Step 4.2 in this guide: https://apim.docs.wso2.com/en/latest/install-and-setup/setup/setting-up-proxy-server-and-the-load-balancer/configuring-the-proxy-server-and-the-load-balancer/#step-4-configure-the-dynamic-callback-origin

Default value of "forwardedHeader" is "X-Forwarded-For", need change to "X-Forwarded-Host"

Reasons:
  • Blacklisted phrase (1): this guide
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: stecog

79181947

Date: 2024-11-12 16:28:11
Score: 3
Natty:
Report link

SELECT * FROM test_table WHERE primary_id = 1 FOR UPDATE;

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Saurabh Srivastava

79181946

Date: 2024-11-12 16:28:11
Score: 2
Natty:
Report link

if you copy project with env folder from another computer, you must change VIRTUAL_ENV in som files and correct any absolute address from another system.

1- pyvenv.cfg : in root of venv folder

2- activate.bat : venv/Scripts

3- Activate.ps1 : venv/Scripts

in Activate.ps1 maby don't need any change

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hadi Joghataei

79181915

Date: 2024-11-12 16:19:09
Score: 2
Natty:
Report link

I had generated my cert with an EC key and Azure didn't like it. The file format was correct but nothing worked until I regenerated with an RSA key.

Reasons:
  • Blacklisted phrase (1): but nothing work
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: sirdank

79181914

Date: 2024-11-12 16:19:09
Score: 2
Natty:
Report link

Dont use

FROM nginx:latest

use this

FROM debial:latest

and

&& apt-get install -y nginx \
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Guest

79181910

Date: 2024-11-12 16:18:08
Score: 1
Natty:
Report link

With python 3.13 "fig" is deprecated use "figure".

df = sns.load_dataset('iris')
sns_plot = sns.pairplot(df, hue='species', size=2.5)
fig = sns_plot.figure
fig.savefig('file.jpg')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: lisandro

79181903

Date: 2024-11-12 16:16:08
Score: 1
Natty:
Report link

you can update your stack option styles:

      screenOptions={{ navigationBarColor: 'white' }}> // update color
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Inayat Ali

79181898

Date: 2024-11-12 16:15:05
Score: 7.5 🚩
Natty:
Report link

I am still facing the same error the poster faced, i have tried the solutions provided after the post but still i get the cmdline error

Reasons:
  • RegEx Blacklisted phrase (1): I am still facing the same error
  • RegEx Blacklisted phrase (1): i get the cmdline error
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): facing the same error
  • Single line (0.5):
  • Low reputation (1):
Posted by: Delson Kashabano

79181888

Date: 2024-11-12 16:10:04
Score: 2
Natty:
Report link

I'd like to follow-up on Matt Warrick's response by saying that VSCode marked my requirements.txt file itself as UTF-16 (by auto-guessing). You can see how VSCode decodes the file by checking this section at the IDE's bottom-right corner:

VSCode Image

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: OdyAsh

79181874

Date: 2024-11-12 16:07:00
Score: 11.5 🚩
Natty: 4.5
Report link

Did you resolve the issue? I have a same issue for ios only. Android works fine.

Reasons:
  • RegEx Blacklisted phrase (3): Did you resolve the
  • RegEx Blacklisted phrase (1.5): resolve the issue?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have a same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Ali YÜCE

79181873

Date: 2024-11-12 16:07:00
Score: 2
Natty:
Report link

struggled so much with the same issue, the thing is with expo there's no need of NativeContainer element , just <Drawer.Navigator /> is enough no need to wrap it inside NativeContainer/

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kuppireddy Yeshitha

79181872

Date: 2024-11-12 16:05:59
Score: 4
Natty:
Report link

This related issue will happen due to the failure to handle the async operation properly.

Click on more options for AVD devices, you will see this screen, and click on the bug report menu. It will start to collect bugs and give you a brief idea. Please let me know if it is helpful for you. enter image description here

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: ushaikh

79181863

Date: 2024-11-12 16:03:59
Score: 1
Natty:
Report link

I found the code causing the program to crash out. In the class ActivationService I commented out the line relating the to the theme selector service. After some Testing I have not seen any negative effects. (Switching between light and dark themes still works.

private async Task InitializeAsync()
{
    //await _themeSelectorService.InitializeAsync().ConfigureAwait(false);
    await Task.CompletedTask;
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Niall O'Dwyer

79181862

Date: 2024-11-12 16:03:59
Score: 3
Natty:
Report link

To answer my own question, I managed this with one queue in the end, just filtering the s3 files with the glob filter

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Wev

79181861

Date: 2024-11-12 16:03:59
Score: 1.5
Natty:
Report link

try to add initializer in remember section as well:

var name by remember(inventoryItem.name ?: "") { mutableStateOf(inventoryItem.name ?: "") }

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Masha Gur

79181847

Date: 2024-11-12 15:56:56
Score: 2
Natty:
Report link

The free plan limits are very limited, and you probably need to upgrade to a Paid plan. You can do it at the API Keys page of the Google AI Studio.

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Amir

79181843

Date: 2024-11-12 15:55:56
Score: 3
Natty:
Report link

Try disabling the VerifyTests diff runner.

DiffRunner.Disabled = true;

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Espen

79181824

Date: 2024-11-12 15:52:55
Score: 2
Natty:
Report link

And in case anyone still couldn't access to their enums, even though your schema has been generated.

It's because prisma won't generate enum types if you don't use it in other table columns. "For GraphQL reasons"

see this issue

How did I solve it?!

Reasons:
  • RegEx Blacklisted phrase (1.5): solve it?
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Re9iNee

79181817

Date: 2024-11-12 15:49:55
Score: 2
Natty:
Report link

I am using these

filter: drop-shadow(100vw 0 0 #5e8141);
transform: translateX(-100vw);
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Meet Bhanabhagwan

79181814

Date: 2024-11-12 15:46:54
Score: 2.5
Natty:
Report link

In your firts example, you’re assigning the background color of the to the variable x but modifying x doesn’t affect the element because it simply reassigns x, without updating the actual style of the page.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Migk

79181811

Date: 2024-11-12 15:45:54
Score: 0.5
Natty:
Report link

This is a loaded question! Start by fixing the isEdit logic using the NovaRequest to properly detect if you’re in update or detail mode:

$isEdit = $request->isUpdateOrUpdateAttachedRequest() || $request->isResourceDetailRequest();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jon Menard

79181810

Date: 2024-11-12 15:45:54
Score: 3
Natty:
Report link

Zscaler is providing here documentation to add custom certificates for some applications (such as cURL) and languages.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alexandre D.

79181808

Date: 2024-11-12 15:45:54
Score: 0.5
Natty:
Report link

datetime.timedelta is useful for this type of thing:

import dateutil
import pytz
from datetime import timedelta
utc = pytz.UTC
print(utc.localize(dateutil.parser.parse('2024-10-31'))+timedelta(days=1)-timedelta(seconds=1))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Pete M

79181803

Date: 2024-11-12 15:44:53
Score: 2
Natty:
Report link

In distributed mode the individual jmeter workers send the samples to the jmeter master/controller. Any backend listener configured on the jmeter workers are ignored. The backend listener must be configured on the jmeter master in order for you to send metrics to influxdb. This means must configure the influxdb backend listener in the test plan itself BEFORE execute your test.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: George Li

79181786

Date: 2024-11-12 15:39:52
Score: 1.5
Natty:
Report link

Since Django 5.1, this is automatically handled by the querystring template tag. Documentation: https://docs.djangoproject.com/en/5.1/ref/templates/builtins/#querystring

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
Posted by: Pere Picornell

79181773

Date: 2024-11-12 15:36:51
Score: 0.5
Natty:
Report link

If your database is supporting analytical functions, you can consolidate into unique pairs before calculating count.

SELECT 
    LEAST("from", "to") AS user1,
    GREATEST("from", "to") AS user2,
    COUNT(*) AS count
FROM 
    messages
GROUP BY 
    LEAST("from", "to"), 
    GREATEST("from", "to");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jan Suchanek

79181756

Date: 2024-11-12 15:32:50
Score: 1.5
Natty:
Report link

I found an answer thanks to the hint from @acw1668;

I adjusted the <Configure> command to check the size of the scrollregion and compare it to the parent ScrollableFrame class window. If it is smaller, I change the scroll region to be the size of the ScrollableFrame.

Here are the adjustments I made to my class, including changing the window anchor to sit at the top left of the frame;

class ScrollableFrame(ttk.Frame):
    """
    """
    def __init__(self, parent):
        """
        """
        ...
        self.scrollableFrame.bind("<Configure>", self.update_scroll_region)
        ...
        self.canvas.create_window((0, 0), window=self.scrollableFrame, anchor='nw')

    def update_scroll_region(self, event):
        bbox = self.canvas.bbox('all')  
        sfHeight = self.winfo_height()
        if (bbox[3] - bbox[1]) < sfHeight:
            newBbox = (bbox[0], 0, bbox[2], sfHeight)
            self.canvas.configure(scrollregion=newBbox)
        else:
            self.canvas.configure(scrollregion=self.canvas.bbox("all"))
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @acw1668
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: SPZHunter

79181749

Date: 2024-11-12 15:31:49
Score: 2.5
Natty:
Report link

i was using an AI generated code that used a non existing AWS REGION !

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Sid Ali

79181742

Date: 2024-11-12 15:29:46
Score: 10 🚩
Natty: 6.5
Report link

i also need upgrade to angular 16, but ngx-admin (newest version 11) seems doesn't support angular 16;

how did you solve it?

Reasons:
  • Blacklisted phrase (1): how did you solve it
  • RegEx Blacklisted phrase (3): did you solve it
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Emanuele T

79181731

Date: 2024-11-12 15:27:46
Score: 3
Natty:
Report link

Create new database and try restore dump.sql file in that database or import data in new database.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Saurabh Srivastava

79181722

Date: 2024-11-12 15:24:45
Score: 1.5
Natty:
Report link

The solution ended up being to update my play-services-location dependency from 21.0.1 to 21.3.0, which is the latest as of now. So, this must have been a bug they were aware of, and, thankfully, fixed!

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Nelson

79181715

Date: 2024-11-12 15:22:44
Score: 3
Natty:
Report link

As it turns out, I didn't have write access to workspace2. After getting permissions to write, I was able to import the resource.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: 0x SLC

79181707

Date: 2024-11-12 15:20:43
Score: 0.5
Natty:
Report link

I don't think you are missing anything at all. The warning indicates, that the deployed version is a in-process function which is different than the version you are deploying. Which is expected after migrating an existing function.

You can check in the Portal which language is used. And update it to dotnet-isolated. As far as I know, this should resolve the warning.

Azure Portal Screenshot showing the language selection

If you are using ARM Templates, ensure you set properties.siteConfig.netFrameworkVersion to "v8.0"

If you go to https://resources.azure.com/, you should be able to see the metadata of the App Service, or if you look into the audit logs after applying the settings over the portal (from above). But those are set indirectly by deploying the first time or by updating the language

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Julian Hüppauff

79181703

Date: 2024-11-12 15:20:43
Score: 0.5
Natty:
Report link

I think you might want to remove method and includeNames from your config as they could override your custom order:

storySort: {
  order: [
    'COMPONENTS',
    ['*', 'Docs'],
    'TOKENS',
    'PAGES',
  ],
},
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sen Lin

79181701

Date: 2024-11-12 15:18:43
Score: 3
Natty:
Report link

You are using a 11 years old package. Please use relevant technologies. Furthermore websockets don't work at Fontys hosting.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Stan van Oers

79181697

Date: 2024-11-12 15:18:43
Score: 2
Natty:
Report link

Two things to consider: In the physical world, an empty box is different than not having a box. It may also help when moving code from one language to another, if the source language allowed empty arrays.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: David Hill

79181686

Date: 2024-11-12 15:16:42
Score: 0.5
Natty:
Report link

иногда бывает необходимость скопировать в образ контейнера с помощью диррективы COPY файл, если файл лежит в той же директории что и Dockerfile - проблемм не возникает, но если копируемому файлу нужно прописать путь, то при попытки сбилдить на основе этого докерфайла произойдет ошибка с вот таким выводом:

ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 02757e0a-7111-496b-9495-ef436149a3e3::vf3kakk5pbsck0j30bd045zou: "/assets": not found

решить можно двумя способами:

  1. Сложить все копируемые файлы в директорию в которой находиться Dockerfile.
  2. Добавить к команде COPY флаг --parents, и указать правильный относительный путь от Dockerfile к Копируемому файлу. Кроме этого изменнеия вносимого в Dockerfile, при запуске команды docker build нужно указать флаг --build-arg BUILDKIT_SYNTAX:docker/dockerfile:1.7-labs, т.к. в документации написано следующее:

Not yet available in stable syntax, use docker/dockerfile:1.7-labs version.

docker build --build-arg BUILDKIT_SYNTAX:docker/dockerfile:1.7-labs -t my-image ./
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • No latin characters (1):
  • Low reputation (1):
Posted by: sekira

79181681

Date: 2024-11-12 15:15:42
Score: 8
Natty: 7.5
Report link

Same problem here, any updates?

Reasons:
  • RegEx Blacklisted phrase (1): Same problem
  • RegEx Blacklisted phrase (0.5): any updates
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Julian

79181676

Date: 2024-11-12 15:13:41
Score: 0.5
Natty:
Report link

The behavior you’re experiencing does sound unusual, especially because Chrome's Inspect Element changes should reset after a page reload, and they should not persist across different browsers.

1. Persistent Local Cache or Service Workers

2. Check for Local Storage or IndexedDB Entries

Check Local Storage and IndexedDB for any entries that might hold style information. Clear any suspicious entries that may be saving your edited styles.

3. Disable Extensions

Disable any Chrome extensions that may interfere with DevTools or site styles.

4. Try in an Incognito

Open the site in an incognito window in Chrome. If the style changes don’t persist here, it indicates that it’s likely cached in your regular browser session.

5. Check for Browser Profile Syncing

Try signing out of Chrome temporarily and see if the changes persist.

6. Verify the CSS Source Files

If you’re using a live-reloading dev server that might apply local changes automatically.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Chandan Kumar

79181675

Date: 2024-11-12 15:12:41
Score: 2.5
Natty:
Report link

This problem is likely to happen when you add livewire to your breeze scaffolding. When you add livewire you will have multipine alpineJS running. To solve this you will have to remove the import of alpineJS from the app.js. If you remove it the dashboard and profile page will not have alpineJS for the dropdown. To solve this add @livewireScripts to your app-layout page.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @livewireScripts
  • Low reputation (1):
Posted by: Fredrick Adjei Quansah

79181664

Date: 2024-11-12 15:10:40
Score: 0.5
Natty:
Report link

I was able to fix this issue by adding this to rules in .eslintrc.js

'prettier/prettier': ['error', { endOfLine: 'auto' }],

hope it helps

Reasons:
  • Whitelisted phrase (-1): hope it helps
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Muhammad Putra Age

79181659

Date: 2024-11-12 15:09:40
Score: 2
Natty:
Report link

I'm not sure there's actually a question to answer here. And then Zimon seems to answer his own problem when he states, "Tried to give it a set date and that worked perfectly fine." I know we're supposed to avoid responding to other answers, but UTC (Coordinated Universal Time) is not a time zone. It's a standard used to establish time zones worldwide.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Henri Coderre

79181655

Date: 2024-11-12 15:09:38
Score: 9.5 🚩
Natty: 6.5
Report link

Did you solve this? You've made it further than me, I can't get my assistant to generate a response. So the fact that you have an image analysis in firebase is great! I take it all you need to to is to have your code retrieve the analysis from firebase to your user interface. Did you sort that out?

Reasons:
  • RegEx Blacklisted phrase (3): Did you solve this
  • RegEx Blacklisted phrase (1.5): solve this?
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you solve this
  • Low reputation (1):
Posted by: Stephen McDermott

79181648

Date: 2024-11-12 15:07:37
Score: 0.5
Natty:
Report link

Running 1 test using 1 worker

  1. [chromium] › test.spec.ts:53:9 › Main description › Description
Error: Must start tracing before stopping

attachment #1: trace (application/zip) ─────────────────────────────────────────────────────────
E2E\test-results\test-chromium\trace.zip
Usage:

    npx playwright show-trace E2E\test-results\test-chromium\trace.zip

────────────────────────────────────────────────────────────────────────────────────────────────

Slow test file: [chromium] › test.spec.ts (29.0s) Consider splitting slow test files to speed up parallel execution 1 failed [chromium] › test.spec.ts:53:9 › Main Description › Description

This is everything that I get.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: edinf

79181634

Date: 2024-11-12 15:03:36
Score: 1.5
Natty:
Report link

995577777642 b7457240-e767-466a-9Owner Gaia Id,Item Id,Conference Id,Item Type,Meeting Code,Event Id,Thread Id,Inbox Id,Call Direction,Start Time,End Time,Duration,Direct Call Result,Participation State,Call Counterparts,Meeting Media Type 995577777642,b7457240-e767-466a-9572-00ad330e51f1,R-D9eHfke6kIVNqTv87NDxIQOAIIigIgABgBCA,meet:meeting,gsv-iooh-wan,,thread_b7457240-e767-466a-9572-00ad330e51f1,meet,,2024-10-23 00:33:19 UTC,2024-10-23 00:59:14 UTC,0:25:55,,,,

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Erika Rios

79181631

Date: 2024-11-12 15:02:35
Score: 2
Natty:
Report link

From documentation on console.firebase.google.com you need to do that to have working notification :

enter image description here

then you need to :

enter image description here

then last step :

enter image description here

I don't know which documentation your followed but there is no need to do anything in the main.kt nor chaning anything to the AndroidManifest as you did :)

Hope the answer will help you !

Cheer,

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Nicolas Le Bot

79181619

Date: 2024-11-12 14:58:34
Score: 0.5
Natty:
Report link

I found the problem and fixed it
Firstly, IC dose not support web-related features like JavaScript, so we need to adjust gradle.properties

IC means Idea Community
IU means Idea Ultimate

platformType = IU

References to PSI dependencies are also not configured in the build.gradle.kts
configured that also in gradle.properties

platformBundledPlugins = com.intellij.java, JavaScript

this property means we need to use Java and JavaScript PSI

platformBundledPlugins = JavaScript only works when platformType = IU

we can remove the PSI dependency configuration in build.gradle.kts
Before the end, we need to add language <depends></depends> to plugin.xml

<depends>com.intellij.modules.platform</depends>
<depends>com.intellij.modules.lang</depends>
<depends>com.intellij.modules.javascript</depends>
<depends>com.intellij.java</depends>

if miss this, PSI like JSCallExpression will raise ClassNotFindException in runtime

Finally, you can build, run and debug the plugin!

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: zheng xu

79181614

Date: 2024-11-12 14:57:33
Score: 1
Natty:
Report link

Instead of adding the trigger programmatically, I would add the trigger through the Apps Script project interface menu for triggers. You can use the menu to schedule as you need.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Kreeszh