Posts
Setting up css maxHeight for sliding effect in react
- Get link
- X
- Other Apps
Setting up maxHeight for sliding effect in react import React, { useState , useRef , useEffect } from "react" ; //... const accordionItemContentRef = useRef ( null ); useEffect (() => { if ( accordionItemContentRef . current && slideEffect) { accordionItemContentRef . current . style . maxHeight = activeIndex === null ? 0 : accordionItemContentRef . current . scrollHeight + "px" ; } }, [activeIndex]); //... <div ref = { accordionItemContentRef } // Ref to the content div
Stupid error in HeidiSQL 12.8.0.6908 could not connect to server: Connection refused (0x0000274D/10061)
- Get link
- X
- Other Apps
How to fix PHP Curl HTTPS Certificate Authority issues on Windows (link)
- Get link
- X
- Other Apps
How to scroll inside scrollable block smoothly and do not scroll main window.
- Get link
- X
- Other Apps
Logitech MX Anywhere 3 mouse is incompatible with Dell Precision 5570 and Microsoft Windows Version 11 Pro
- Get link
- X
- Other Apps
Logitech MX Anywhere 3 mouse is incompatible with Dell Precision 5570 and Microsoft Windows Version 11 Pro My system Dell Precision 5570 laptop, Microsoft Windows Version 11 Pro, 24H2 (OS Build 26100.2894) The product Logitech MX Anywhere 3 mouse is incompatible with Microsoft Windows Version 24H2 (OS Build 26100.2894) not updating Logi app, not updating firmware, not deinstalling any windows updates did not resolve the problem "mouse becoming inoperable (UI is becoming partly unresponsible) after some time of using, sometimes it becomes unresponsible instantly after windows is loaded. Even connection through the Unified USB receiver didn't help. So, verdict: Do not buy it if you have this same OS & laptop like mine, because you will lost your temper and money! PS: this is only my IMHO. You decide! PSS: Temporary resolution of the problem is invoking Task Manager by pressing CTL+ALT+DEL or Turn mouse OFF and then Turn it ON (sometimes may help) try...
Reducing Bugs With Static Code Analysis: PHP[Tek] 2023
- Get link
- X
- Other Apps
Getting Started with Test-Driven Development at PHPtek 2023
- Get link
- X
- Other Apps
Ping command statistics hot key for windows without interruption command run
- Get link
- X
- Other Apps
What to do if the input element outline css property doesn't fit form element
- Get link
- X
- Other Apps
If your public key is not working from .env variable file (frontend)
- Get link
- X
- Other Apps
WSL IP Address and vise versa
- Get link
- X
- Other Apps
WSL IP Address and vise versa WSL IP: wsl -d <DistributionName> hostname -I Windows IP from WSL: ip route show | grep -i default | awk '{ print $3}' additional useful docs here: https://learn.microsoft.com/en-us/windows/wsl/networking if you have backend service on your windows side for example Apache server with many virtual hosts and you want to address it from WSL just refer to it on your WSL side just as localhost (without naming the virtual host name or its 127.0.0.x address) , windows will make the rest and you will get access to your windows backend
Is json_decode() dangerous?
- Get link
- X
- Other Apps

Is json_decode() dangerous? The line of PHP code $response_decoded = json_decode($response); itself isn't inherently dangerous, but the context in which it is used can determine whether it poses security risks. Potential Risks: Untrusted Input : If $response contains data from an untrusted or user-controlled source (like an API response or user input), there could be risks associated with deserializing malicious JSON data. Error Handling : If the JSON string is malformed, json_decode will return null . If this isn't handled properly, it could lead to unintended behavior in your application. Data Injection : Maliciously crafted JSON could potentially be used to inject unwanted data or exploit vulnerabilities in the application, especially if the decoded data is used directly in further processing without proper validation or sanitization. Recommendations: Validate Input : Always validate and sani...