on-internet

Checking email uniqueness in php

I am building a basic user authentication system in PHP 8 using PDO and native sessions ($_SESSION), and I would like to verify if my implementation follows current security best practices—specifically regarding session fixation protection, Post/Redirect/Get (PRG) with flash messages, and input handling. <?php session_start(); if (isset($_SESSION['usuario'])) { header('Location: bienvenida.php'); exit; } require_once 'bd.php'; $errores = []; $nombre = ''; $email = ''; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $nombre = trim($_POST['nombre'] ?? ''); $email = trim($_POST['email'] ?? ''); $con

Join the discussion →

Delphi 13 FireMonkey Android app crashes immediately on Huawei/Xiaomi devices but works on Samsung

After Delphi 13 Community Edition became available, I started migrating my Android application ZAXXON Remake to the new version. For quite some time, users have been reporting that the app displays only a black screen immediately after startup and then terminates on certain devices. After extensive testing, I found that the behavior strongly depends on the device manufacturer. The app runs reliably on Samsung devices, while it reproducibly crashes on Xiaomi devices. To isolate the root cause, I created a heavily simplified test application that contains nothing more than the startup form. This

Join the discussion →

Is Khronos' SPIR-V just a newer version of SPIR(-not-V)?

SPIR-V is an intermediate representation (IR), and surrounding tooling, devised and maintained by the Khronos consurtion. But then, even on the SPIR-V page, there's a link to a section named "SPIR for OpenCL", where one finds links to specs for "SPIR for OpenCL" versions 1.x and 2.0. The 2.0 spec is apparently 12 years old, while SPIR-V just had another minor release in September 2026. So, is the SPIR-not-V an older version of what is now SPIR-V? Is it a sub-spec? A complementary spec? I don't quite understand the relations between the two.

Join the discussion →

Have Investors Lost Their Faith in the AI Boom?

"A yearslong AI boom showed signs of unraveling this week in spectacular fashion," writes NPR, adding that "investors now fear that a potential bubble in the sector could be bursting, which could spark wider financial repercussions." While the world embraced the AI boom ,"now many are having regrets," argues a Washington Post technology reporter: The AI boom's key ingredient has always been faith — that more money can be found to pay for it, that AI will keep rapidly improving, that the masses will come to love it, that business productivity and profits from AI are just around the corner. Fait

Join the discussion →

Sellers are Closing Etsy Stores in Response to Its New AI Training Policy

"I burned my Etsy shop to the ground this week," illustrator Aaron Millard posted on Instagram: 8 years, 11,200 sales, 3k+ reviews, hundreds in a customer base. Deleted. Etsy decided that selling on their platform now means letting them train AI on our artwork AND resell that data to third parties, with no way to opt out (in Canada, anyways)... Etsy's new Terms of Use — going into effect December 15 — include this language in their section about "Your Content": You also recognize our legitimate interest in using it... This also includes the right for us and our third party partners and vendors

Join the discussion →

What doe the async|deferred default policy of std::async mean?

The cppreference page for std::async says: template< class F, class... Args > std::future async( F&& f, Args&&... args ) Behaves as if ... called with policy ... std::launch::async | std::launch::deferred Well, IIRC, launch::async means that when I make this call, a new thread will start that runs functor f; and launch:deferred means that the functor and its arguments are stored, and the functor is invoked when you wait on the std::future, with the invocation happening on the waiting thread. These two policies seem to be more contradictory than complementary. So, what exactly does the "bitwise

Join the discussion →

Cloud Run built-in Cloud SQL connection drops all pooled connections at once every few hours, but Auth Proxy sidecar doesn't

Setup: Cloud Run service (Node.js, mysql2 pool, TCP keep-alive on) connecting to Cloud SQL for MySQL 8.4 (europe-west2) through the built-in connection (--set-cloudsql-instances, unix socket /cloudsql/...). Problem: Since mid-November, several times a day (about every 6 to 13 hours, at irregular times), every pooled connection closes at the same moment. Queries in flight fail with PROTOCOL_CONNECTION_LOST ("The server closed the connection"). On the client the close is a graceful end (via=end), not a reset or a timeout. Server log, for each burst, for every connection within a few ms: Aborted

Join the discussion →

Expand a tuple to explicitly instantiate multiple function templates

In C++, I want to instantiate a given template for N types with a type list template<class... Ts> struct typelist{}; using types = typelist<int,long,std::string>; template<class T> void f(){} // how to variadically expand this for those 3 types? template void f<types>()...; // I want it to be equal to template void f<int>(); template void f<long>(); template void f<std::string>(); For classes, I found an answer already but it doesn't seem clear to me how to do it for free functions. Please do not mention using a preprocessor solution as the tuple will be generated using metaprogramming and wou

Join the discussion →

"Cannot overload functions distinguished by return type alone" when only one definition is present

I'm new to C++ (just went through a tutorial last week) and I'm trying to make a function that returns the version of my program. I'd like it to be constexpr, as I want to learn how to use the features of C++. Here's my header file: // MyApp.h #pragma once namespace MyApp { inline constexpr int MAJOR_VERSION = 0; inline constexpr int MINOR_VERSION = 1; inline constexpr int PATCH_VERSION = 0; inline constexpr std::string_view VERSION_SEPARATOR{ "." }; constexpr std::string_view VERSION() { return MAJOR_VERSION + VERSION_SEPARATOR + MINOR_VERSION + VERSION_SEPARATOR + PATCH_VERSION; } } And for

Join the discussion →

New report demonstrates urgent need to expand high school level cybersecurity courses

submitted by rnduser314 to technology 4 points | 0 comments https://nkytribune.com/2026/11/new-report-demonstrates-urgent-need-to-expand-high-school-level-cybersecurity-courses/ “employers want a combination of technical credentials, workplace skills, hands-on experience, and AI cybersecurity knowledge that they say too few early-career candidates have.” Business leaders apparently unaware of this thing called “university”, advocate for more cyber security training in pre-K programs. /s

Join the discussion →
Older stories