<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andrea Tadioli on Medium]]></title>
        <description><![CDATA[Stories by Andrea Tadioli on Medium]]></description>
        <link>https://medium.com/@andreatadioli?source=rss-14ce8b4b6178------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*fTr5lne5MFiXPbOi</url>
            <title>Stories by Andrea Tadioli on Medium</title>
            <link>https://medium.com/@andreatadioli?source=rss-14ce8b4b6178------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 12:21:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andreatadioli/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Critical PHP Security Update: Fix Two RCE Vulnerabilities]]></title>
            <link>https://medium.com/@andreatadioli/critical-php-security-update-fix-two-rce-vulnerabilities-332ca06aa15e?source=rss-14ce8b4b6178------2</link>
            <guid isPermaLink="false">https://medium.com/p/332ca06aa15e</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[php-developers]]></category>
            <dc:creator><![CDATA[Andrea Tadioli]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 15:12:32 GMT</pubDate>
            <atom:updated>2026-10-21T15:12:32.997Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9f4JoFIKXKNPAJHWG9u_gg.png" /></figure><p><em>PHP has released security updates for two critical remote code execution vulnerabilities. Here is what developers and infrastructure teams need to check, update, and verify.</em></p><p>A routine security update can quickly become an urgent infrastructure task when it affects the runtime behind production applications. On October 21, 2026, the PHP team published a security advisory for two critical vulnerabilities that can allow unauthenticated remote code execution (RCE).</p><p>The issue is especially serious because an attacker may be able to trigger vulnerable code paths before an application has a chance to apply its own validation or authentication logic. Updating a framework or a CMS alone will not fix a vulnerability in the PHP runtime itself.</p><p>If you operate PHP websites, APIs, WordPress installations, Laravel applications, or servers running PHP-FPM, treat this advisory as an infrastructure-level priority. Inventory your installations, check the packages provided by your operating system or hosting vendor, and apply the relevant security fix as soon as possible.</p><h3>Which PHP versions contain the fixes?</h3><p>The PHP project released these corrected versions on October 21, 2026:</p><ul><li><strong>PHP 8.5.12</strong></li><li><strong>PHP 8.4.27</strong></li><li><strong>PHP 8.3.36</strong></li><li><strong>PHP 8.2.35</strong></li></ul><p>These releases address both vulnerabilities described in the official advisory. PHP strongly encourages users to update immediately. If you install PHP through a Linux distribution or a long-term support vendor, check that vendor’s security notices and install its patched packages. Package versions do not always match upstream version numbers because vendors may backport fixes.</p><p>PHP 8.1 and older no longer receive routine updates from the PHP project. Some distributions and LTS providers may supply backported patches, so verify the status of your specific package rather than assuming that an older version is either patched or vulnerable based on its version string alone. If no supported patch is available, plan a migration to a supported PHP branch.</p><p>PHP 8.2 is approaching end of life on December 31, 2026. Applying PHP 8.2.35 addresses these vulnerabilities, but teams still using this branch should plan an upgrade before security maintenance ends.</p><h3>Why remote code execution is so dangerous</h3><p>Remote Code Execution is a high-impact vulnerability class because it can allow an attacker to execute instructions on the affected server. The consequences depend on the privileges of the PHP process and on the surrounding environment, but potential impacts include reading accessible application files, exposing configuration secrets, accessing data, changing application behaviour, or using a compromised server as a foothold for further attacks.</p><p>The critical detail in this advisory is that the vulnerable paths exist inside PHP. Application-level controls remain important, but they cannot reliably repair incorrect memory handling or internal runtime state. Authentication middleware, request validation, framework upgrades, and plugin updates are not substitutes for a patched runtime.</p><h3>CVE-2026–109618: remote code execution through out-of-memory corruption</h3><p>The first issue, <strong>CVE-2026–109618</strong>, involves PHP’s handling of out-of-memory (OOM) conditions. Under certain circumstances, a memory allocation failure can interrupt request processing while internal request data is only partially initialized. During cleanup, PHP may then treat invalid data as if it were valid, creating a memory-corruption condition that can lead to remote code execution.</p><p>This is a reminder that software must handle failure paths as carefully as normal execution. Error handling, partial initialization, and resource cleanup are complex parts of a runtime. A failure that appears to be a simple allocation problem can become a security issue if internal invariants are not preserved.</p><p>Server resource limits and request-size controls can help reduce exposure to some attack paths, but they do not correct the underlying defect. The PHP advisory specifically warns that mitigations are incomplete and that updating is the only safe choice.</p><h3>CVE-2026–109619: remote code execution through stale global state</h3><p>The second issue, <strong>CVE-2026–109619</strong>, concerns stale internal state associated with a request. Request-owned data can remain referenced after the memory backing it has been freed. A later request handled by the same worker may use that stale state before normal initialization resets it.</p><p>This matters in long-running worker models, where a process may handle multiple requests over its lifetime. Correctly releasing memory is not enough: references to released memory must not remain usable, and every request must begin with a valid, predictable internal state.</p><p>As with the first vulnerability, the fix belongs in PHP itself. Application code changes may reduce specific exposure paths, but they cannot guarantee that the runtime’s internal state management is safe.</p><h3>Which PHP server configurations are affected?</h3><p>The advisory covers PHP installations that serve web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP, and LiteSpeed. The PHP team identifies Apache with mod_php as the highest-risk configuration because a demonstrated exploit can trigger the issue through a single unauthenticated request before application code runs.</p><p>Do not interpret that distinction as proof that other configurations are safe. A reverse proxy, web application firewall, load balancer, or modern framework does not automatically remove a vulnerability in the PHP runtime. These controls may form part of a defence-in-depth strategy, but the underlying runtime still needs to be patched.</p><p>Check every place PHP runs: production and staging servers, container images, command-line jobs, queue workers, administrative tools, and secondary sites on the same host. It is common for the command-line executable and the runtime used by a web server to come from different packages or versions.</p><h3>How to check the PHP version on Linux</h3><p>Start by checking the PHP CLI executable:</p><pre>php -v</pre><p>This reports the version used by the command-line shell. It does not prove that Apache or PHP-FPM uses the same runtime. On Debian or Ubuntu, list installed PHP packages with:</p><pre>dpkg -l | grep -E &#39;php[0-9.]|php-fpm&#39;</pre><p>To discover PHP-FPM services registered with systemd, run:</p><pre>systemctl list-units --type=service | grep -i php</pre><p>Use these commands as an initial inventory, then inspect the actual web-server configuration, PHP-FPM pools, containers, and package repositories. If several PHP branches are installed side by side, verify each one and identify which sites or services use it. Updating the CLI package alone will not protect a website that continues to run a vulnerable PHP-FPM service.</p><h3>How to update PHP on Ubuntu and Debian</h3><p>The correct procedure depends on the operating-system release, the package source, and the PHP branch in use. Before changing a production server, confirm that the configured repository provides a package containing the fix. Distribution vendors may publish patched packages on their own schedule and may use version strings that differ from upstream releases.</p><p>Refresh the package index:</p><pre>sudo apt update</pre><p>Review packages that can be upgraded:</p><pre>apt list --upgradable</pre><p>Apply the security updates using your distribution’s normal change-management process. On production systems, check application compatibility, PHP extensions, dependencies, and rollback options before proceeding. Avoid blindly upgrading every package during an incident if that could introduce unrelated changes without testing.</p><p>After installing the correct package, restart or reload the relevant services as required so that new worker processes use the patched runtime. For example, on a server that actually uses the PHP 8.4 FPM service:</p><pre>sudo systemctl restart php8.4-fpm<br>sudo systemctl status php8.4-fpm</pre><p>The service name is only an example. Adapt it to the installed PHP branch and your server configuration. Then verify the package version, service health, application logs, and the behaviour of critical application flows. A successful package installation is not enough if a vulnerable service or container is still running.</p><h3>Temporary mitigations: useful, but not a substitute for patching</h3><p>The PHP advisory describes measures that can reduce exposure to specific attack paths if an immediate update is not possible. The project is explicit: these measures do not make an installation safe, and there are no complete mitigations. Use them only as temporary risk-reduction steps while arranging the update.</p><p>For CVE-2026–109618, the advisory recommends setting memory_limit=-1, preferably in an administrator-controlled configuration such as php_admin_value in an FPM pool or Apache configuration. Check that no pool, directory, or application setting restores a finite limit. This removes the controllable PHP memory-limit failure, but an underlying allocation failure can still reach the vulnerable path. Because this setting removes PHP&#39;s per-request memory limit, evaluate its operational consequences carefully and use other resource controls to protect service availability.</p><p>The advisory also recommends keeping post_max_size low. For applications that do not need file uploads, it suggests post_max_size = 8M; where uploads are required, it suggests post_max_size = 32M, with upload_max_filesize kept below that value. Enforce appropriate limits at the web-server or proxy layer as well, including decoded request size and relevant multipart and input-count limits. Choose values that fit the application, and do not treat them as a complete fix.</p><p>For CVE-2026–109619, the advisory recommends setting session.upload_progress.enabled=0 in configuration that applies before request parsing, then restarting every affected worker. Do not rely on ini_set() or FPM .user.ini for this mitigation. On PHP 8.5, it also recommends setting fatal_error_backtraces=0 to block a confirmed fatal-backtrace attack path. This is not a general solution to the vulnerability.</p><p>The advisory further recommends removing invalid or deprecated per-request settings that emit diagnostics before initialization, and fixing attacker-reachable fatal errors and execution timeouts in callbacks, upload or import processing, and cleanup. Hiding diagnostics with error_reporting, display_errors, or the @ operator does not address the issue. Review the official advisory before applying any mitigation, and prioritise patching.</p><h3>WordPress, Laravel, and custom applications need a runtime update</h3><p>WordPress administrators may instinctively start by updating plugins and themes. Laravel developers may focus on Composer dependencies or framework releases. Those tasks remain essential, but neither fixes a vulnerability in the PHP engine.</p><p>Because these flaws can be triggered before application code runs, the remediation must reach the runtime serving the application. Check the PHP version configured for each virtual host, FPM pool, container, and background worker. If your hosting provider manages PHP for you, ask which patched package is deployed and when it will be applied.</p><p>For agencies and IT teams responsible for many sites, this is also an inventory and process test. An accurate record of domains, PHP branches, package sources, and service owners makes it much easier to identify exposure and prove that remediation is complete.</p><h3>Build a repeatable security-update process</h3><p>Critical advisories are easier to handle when the response does not begin from scratch. Maintain an inventory of runtime versions and where they are used. Track security notices from your operating-system and hosting vendors. Test updates on representative staging systems, document the production rollout, and confirm that the patched runtime is actually running.</p><p>Containerised environments need particular attention: updating a host package does not patch PHP inside an existing image. Rebuild images with a corrected base image or package, redeploy them, and verify that old containers have been replaced. The same principle applies to scheduled jobs and queue workers that may continue running after a web service has been updated.</p><p>Least-privilege service accounts, network segmentation, resource limits, logging, and monitoring can help limit the impact of a compromise. They are valuable layers of defence, not alternatives to security updates.</p><h3>Final checklist: what to do now</h3><ul><li>Inventory all PHP runtimes serving web requests, including PHP-FPM, Apache modules, CGI, containers, and secondary applications.</li><li>Check the PHP security advisory and your operating-system or hosting vendor’s package status.</li><li>Upgrade to PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35, or install a verified vendor package containing the fixes.</li><li>Restart or redeploy affected services and workers as required.</li><li>Verify the running runtime, service health, application logs, and critical application flows.</li><li>Plan migration away from unsupported PHP branches, including PHP 8.2 before its security support ends.</li></ul><p>The October 21, 2026 PHP advisory is a reminder that application security depends on more than application code. A well-written application can still be exposed by a vulnerable runtime beneath it. The immediate priority is to patch every affected installation, verify that the fix is active, and make the next security response faster through better inventory and deployment practices.</p><p><strong>Have you checked the PHP runtimes in your production environment? Share in the comments how you track PHP versions and roll out critical security updates across servers, containers, and client applications.</strong></p><h3>Official reference</h3><p><a href="https://www.php.net/archive/2026.php#2026-10-21-5">PHP security advisory: Critical remote code execution vulnerabilities, October 21, 2026</a></p><p><strong>Suggested Medium topics:</strong> PHP, Cybersecurity, Web Development, DevOps, Linux, Software Engineering, Information Security.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=332ca06aa15e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Traditional Hosting Fails News Websites — And What AWS Changes]]></title>
            <link>https://medium.com/@andreatadioli/why-traditional-hosting-fails-news-websites-and-what-aws-changes-90f631eb15d2?source=rss-14ce8b4b6178------2</link>
            <guid isPermaLink="false">https://medium.com/p/90f631eb15d2</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[news-portal]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[aws-managed-service]]></category>
            <category><![CDATA[editoria]]></category>
            <dc:creator><![CDATA[Andrea Tadioli]]></dc:creator>
            <pubDate>Sun, 07 Jun 2026 07:35:51 GMT</pubDate>
            <atom:updated>2026-06-08T07:53:24.984Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y-SkzHW4B1f9GCrmlKqDpQ.png" /><figcaption>AWS Cloud for News Wordpres website</figcaption></figure><p><strong>Your editorial site works fine for weeks. Then a story goes viral. And everything breaks.</strong></p><p>You run an online newspaper, a digital magazine, or a news portal. Traffic is steady, the site loads well, the team is happy. Then something happens — a local story picked up by national media, an article shared thousands of times in an hour — and the site goes down. Pages timeout. Readers get 502 errors. The moment you need your infrastructure the most, it fails you.</p><p>The problem isn’t WordPress. It isn’t your theme or your plugins.</p><p>It’s the underlying infrastructure, which was never designed to handle the traffic spikes that define editorial publishing.</p><h3>The core issue with traditional hosting</h3><p>Shared hosting and standard VPS servers work well when traffic is predictable and consistent. Editorial sites don’t work that way.</p><p>News has sudden, unpredictable spikes. A single article can receive in 20 minutes the same volume of traffic that normally comes in over a week. When that happens, a traditional server exhausts its resources — RAM, PHP connections, database queries — and stops responding.</p><p>There’s no elasticity. No automatic scaling. Just a fixed ceiling, and when you hit it, users bounce.</p><h3>What changes with a WordPress infrastructure on AWS</h3><p>Instead of a single server trying to handle everything, an AWS architecture assigns each responsibility to a specialized component:</p><p><strong>EC2</strong> runs WordPress itself. <strong>Aurora Serverless</strong> manages the database and scales automatically under load — no manual intervention needed. <strong>ElastiCache Redis</strong> caches frequent queries in memory, dramatically reducing database pressure during traffic spikes. <strong>CloudFront</strong> serves static assets (images, CSS, JavaScript) from edge locations geographically close to the reader, cutting load times significantly. <strong>S3</strong> stores media files reliably and at scale.</p><p>The result is a site that absorbs traffic spikes automatically and returns to baseline the same way — without anyone needing to wake up at 3am.</p><h3>A real case: migrating a regional news outlet to AWS</h3><p>We designed and migrated the full infrastructure of <strong>quindicinews.it</strong>, an Italian editorial outlet published by Editrice Milanese S.R.L., to AWS.</p><p>Before migration: a fixed-resource VPS, recurring slowdowns during peak hours, manual interventions required for every critical update.</p><p>After migration: stable uptime, significantly improved response times, automatic traffic spike management, and a CloudFront-powered content delivery layer that guarantees fast load times for readers across Italy.</p><p>The editorial team noticed nothing changed in their workflow. They still use the same WordPress interface, the same plugins, the same publishing flow. The infrastructure became invisible — which is exactly what good infrastructure should be.</p><h3>Infrastructure is a SEO issue, not just a technical one</h3><p>This is underestimated more often than it should be.</p><p>Since 2021, Google has included <strong>Core Web Vitals</strong> as an official ranking factor. Three metrics directly measure loading experience quality:</p><p><strong>LCP</strong> (Largest Contentful Paint) measures how fast the main content loads. <strong>INP</strong> (Interaction to Next Paint) measures responsiveness to user interaction. <strong>CLS</strong> (Cumulative Layout Shift) measures visual stability during page load.</p><p>A performant WordPress hosting setup with CloudFront as CDN improves all three metrics directly. For a news site that depends on organic traffic, that translates into more readers without increasing ad spend — a compounding advantage over time.</p><h3>Who this architecture is actually for</h3><p>A managed WordPress infrastructure on AWS makes sense for:</p><ul><li>Local newspapers and online outlets with active editorial teams</li><li>Digital magazines publishing content frequently</li><li>Industry portals with seasonal or event-driven traffic spikes</li><li>Digital publishers who want to scale without managing the technical layer</li></ul><p>It’s not the right fit for brochure sites updated a few times a year or personal blogs with low traffic. For those cases, simpler and cheaper solutions exist and work perfectly well.</p><h3>What managed infrastructure actually includes</h3><p>When we take on an editorial client, the annual service contract covers:</p><ul><li>Architecture design and AWS migration</li><li>Continuous performance and uptime monitoring</li><li>WordPress core, theme, and plugin updates managed through a staging environment before production deployment</li><li>Periodic AWS cost optimization</li><li>Technical support with defined response times</li></ul><p>We hold an <strong>AWS Certified Cloud Practitioner</strong> certification and work exclusively with tested, documented architectures.</p><h3>The question worth asking</h3><p>If you run a news site or editorial platform, the real question isn’t whether your hosting is cheap enough. It’s whether it can handle the moment that actually matters — when your story breaks and thousands of people show up at once.</p><p>If you’re not sure, that’s worth finding out before it happens.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90f631eb15d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Check Your Wordpress with Essential Plugin Backdoor with bash script solution]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@andreatadioli/how-to-check-your-wordpress-with-essential-plugin-backdoor-with-bash-script-solution-caa07ac073f5?source=rss-14ce8b4b6178------2"><img src="https://cdn-images-1.medium.com/max/1536/1*StRFjCuuhYfbc5wcw3529g.png" width="1536"></a></p><p class="medium-feed-snippet">A trusted 31 WordPress plugins, installed over 4 million times, was quietly turned into a malware delivery network from April 2026.</p><p class="medium-feed-link"><a href="https://medium.com/@andreatadioli/how-to-check-your-wordpress-with-essential-plugin-backdoor-with-bash-script-solution-caa07ac073f5?source=rss-14ce8b4b6178------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@andreatadioli/how-to-check-your-wordpress-with-essential-plugin-backdoor-with-bash-script-solution-caa07ac073f5?source=rss-14ce8b4b6178------2</link>
            <guid isPermaLink="false">https://medium.com/p/caa07ac073f5</guid>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[wordpress-plugins]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[backdoor]]></category>
            <dc:creator><![CDATA[Andrea Tadioli]]></dc:creator>
            <pubDate>Tue, 21 Apr 2026 04:21:01 GMT</pubDate>
            <atom:updated>2026-04-21T04:21:01.439Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[PHP 8.5: Deep Dive into New Features and RFCs]]></title>
            <link>https://medium.com/@andreatadioli/php-8-5-deep-dive-into-new-features-and-rfcs-11283842381c?source=rss-14ce8b4b6178------2</link>
            <guid isPermaLink="false">https://medium.com/p/11283842381c</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[php85]]></category>
            <dc:creator><![CDATA[Andrea Tadioli]]></dc:creator>
            <pubDate>Mon, 20 Apr 2026 07:14:05 GMT</pubDate>
            <atom:updated>2026-04-20T07:14:05.015Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mlu9lcrC7Um6UXbYO3yQBg.png" /></figure><p>PHP continues its steady evolution with a clear direction: stronger typing, better performance, and a cleaner language design. While PHP 8.5 is still under active development, several RFCs and internal discussions already outline what developers can expect.</p><p>This article is not a generic overview. Instead, we take a deeper, more technical look at the upcoming changes, with practical code examples and analysis of their real-world impact.</p><h3>PHP Evolution Strategy: Incremental but Strategic</h3><p>Since PHP 8.0, the language has shifted toward a more predictable and type-safe environment. Each release introduces incremental improvements rather than disruptive changes.</p><ul><li>Reduced dynamic behavior in favor of explicit typing</li><li>Better static analysis compatibility</li><li>Cleaner internal APIs</li></ul><p>PHP 8.5 continues along this trajectory.</p><h3>Advanced Type System Improvements</h3><p>The type system remains one of the most actively evolving areas. PHP 8.5 is expected to extend capabilities introduced in previous versions, particularly around union and intersection types.</p><p>Consider this example:</p><pre>function normalize(int|string|float $value): int {<br>    if (is_string($value)) {<br>        return (int) trim($value);<br>    }<br>    return (int) $value;<br>}</pre><p>Future improvements may introduce stricter enforcement and better error reporting when type coercion fails.</p><p>There is also discussion around refining how mixed and nullable types behave in edge cases, particularly in internal functions.</p><h3>Property Hooks and Object Model Enhancements</h3><p>Following the introduction of property hooks in PHP 8.4, PHP 8.5 may refine and stabilize this feature.</p><p>This allows developers to intercept property access at runtime:</p><pre>class User {<br>    private string $name;<br>    public function __get(string $property): mixed {<br>        if ($property === &#39;name&#39;) {<br>            return strtoupper($this-&gt;name);<br>        }<br>        throw new Exception(&quot;Undefined property&quot;);<br>    }<br>}</pre><p>Future iterations may bring more granular control, reducing reliance on magic methods and improving performance.</p><h3>Engine-Level Performance Optimizations</h3><p>Performance improvements are not always visible at the syntax level but have a massive impact in production environments.</p><p>Areas of optimization include:</p><ul><li>Zend Engine opcode execution</li><li>Memory allocation strategies</li><li>Improved opcache heuristics</li></ul><p>In high-load systems, even small improvements at this level can reduce infrastructure costs significantly.</p><h3>Closures and Functional Patterns</h3><p>Short closures introduced in PHP 7.4 have become a standard tool. PHP 8.5 discussions include potential enhancements to closure behavior and scope handling.</p><p>Example:</p><pre>$multiplier = 3;<br>$result = array_map(<br>    fn(int $n): int =&gt; $n * $multiplier,<br>    [1, 2, 3]<br>);</pre><p>Future improvements may address edge cases in variable binding and immutability.</p><h3>Error Handling and Exceptions</h3><p>Error handling continues to evolve toward a more exception-driven model.</p><p>Expected improvements include:</p><ul><li>More consistent exception types across internal functions</li><li>Reduction of silent failures</li><li>Clearer stack traces</li></ul><p>This aligns PHP with modern languages that prioritize explicit error handling.</p><h3>Deprecations and Cleanup</h3><p>Every major PHP release removes legacy behavior that no longer aligns with modern standards.</p><p>Potential deprecations in PHP 8.5 include:</p><ul><li>Legacy string handling functions</li><li>Inconsistent internal APIs</li><li>Edge-case behaviors in type juggling</li></ul><p>Example of risky legacy pattern:</p><pre>$value = &quot;10 apples&quot;;<br>if ($value == 10) {<br>    // true in loose comparison<br>}</pre><p>Future versions may further restrict this behavior to avoid unexpected bugs.</p><h3>Impact on Laravel and Modern Frameworks</h3><p>Frameworks like Laravel benefit directly from improvements in the PHP core.</p><p>With PHP 8.5, developers can expect:</p><ul><li>Better performance in request lifecycle</li><li>Cleaner service container bindings</li><li>More robust type hints in controllers and services</li></ul><p>Example:</p><pre>class UserService {<br>    public function find(int $id): ?User {<br>        return User::find($id);<br>    }<br>}</pre><p>Stronger typing improves both IDE support and runtime safety.</p><h3>What Developers Should Do Today</h3><p>Even before PHP 8.5 is officially released, there are concrete steps you can take:</p><ul><li>Enable strict_types in all new files</li><li>Avoid mixed wherever possible</li><li>Refactor legacy code using modern syntax</li><li>Adopt static analysis tools like PHPStan or Psalm</li></ul><p>Example:</p><pre>declare(strict_types=1);<br>function sum(int $a, int $b): int {<br>    return $a + $b;<br>}</pre><h3>Conclusion</h3><p>PHP 8.5 is not about flashy features, but about maturity. The language continues to move toward predictability, performance, and maintainability.</p><p>For experienced developers, this is where PHP becomes truly powerful: fewer surprises, more control, and better tooling integration.</p><p>Are you already preparing your codebase for PHP 8.5, or waiting for the stable release? Share your approach in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11283842381c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Industry 4.0 and Transition 5.0: Software Incentives]]></title>
            <link>https://medium.com/@andreatadioli/industry-4-0-and-transition-5-0-software-incentives-5d315ffbe82d?source=rss-14ce8b4b6178------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d315ffbe82d</guid>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[industry-4-0]]></category>
            <category><![CDATA[energy-efficiency]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[tax-credits]]></category>
            <dc:creator><![CDATA[Andrea Tadioli]]></dc:creator>
            <pubDate>Thu, 26 Mar 2026 14:03:56 GMT</pubDate>
            <atom:updated>2026-03-26T14:03:56.170Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wARnSnFJ56-FDdyD9aO4_Q.png" /></figure><h3>How to leverage tax credits for custom software and web apps</h3><p>In recent years, Industry 4.0 and Transition 5.0 programs have become key drivers for companies looking to innovate their processes and accelerate digital transformation. With the latest updates introduced in 2026, these incentives are no longer limited to machinery and hardware — they now strongly support custom software development, web applications, and digital services.</p><p>This opens a major opportunity for businesses: investing in tailored digital solutions while benefiting from significant tax credits.</p><h3>What are Industry 4.0 and Transition 5.0</h3><p>Industry 4.0 was designed to push companies toward automation and digitalization through technologies like IoT, cloud computing, artificial intelligence, and advanced data integration.</p><p>Transition 5.0 builds on this foundation by introducing a new focus on energy efficiency and sustainability, rewarding companies that reduce consumption while innovating.</p><ul><li>Industry 4.0: digital transformation and automation</li><li>Transition 5.0: innovation + energy efficiency</li><li>Tax credits for eligible investments</li><li>Support for software and digital integration</li></ul><p>These incentives allow companies to significantly reduce the real cost of digital transformation projects.</p><h3>Can software development be eligible?</h3><p>One of the most important evolutions is the inclusion of software among eligible investments. Custom-built solutions can qualify as intangible assets if they are integrated with business processes and production systems.</p><p>Eligible projects may include:</p><ul><li>Custom ERP and management software</li><li>Web applications for process automation</li><li>Data collection and analytics platforms</li><li>Business intelligence dashboards</li><li>System integrations between machines and software</li></ul><p>This means companies are no longer limited to off-the-shelf tools — they can build exactly what they need.</p><h3>Why custom software is a strategic investment</h3><p>Many businesses rely on generic software that only partially meets their needs. This often leads to inefficiencies, manual workarounds, and limited scalability.</p><p>With custom software, companies can:</p><ul><li>Automate specific workflows</li><li>Reduce operational errors</li><li>Integrate different systems</li><li>Monitor real-time data</li><li>Increase productivity</li></ul><p>When combined with tax incentives, the ROI becomes even more compelling.</p><h3>Real-world examples of eligible projects</h3><p>Here are some practical examples of projects that may qualify:</p><ul><li>Custom production management systems</li><li>Web-based inventory and order platforms</li><li>Machine data acquisition systems</li><li>Energy monitoring software</li><li>Cloud-based workflow automation tools</li></ul><p>Each project must meet technical and regulatory requirements, but the potential is significant.</p><h3>How tax credits work</h3><p>The mechanism is simple: companies invest in digital solutions and recover part of the cost through tax credits.</p><ul><li>Reduction of payable taxes</li><li>Recovery over multiple years</li><li>Percentages vary based on investment type</li></ul><p>Under Transition 5.0, incentives increase when investments lead to measurable energy savings.</p><h3>Official regulatory framework</h3><p>The Transition 5.0 plan has been introduced and updated through recent Italian legislation, defining incentives for both tangible and intangible assets that support digital and energy transformation.</p><p>To qualify, companies must demonstrate measurable improvements in efficiency, typically requiring a reduction in energy consumption at either process or company level.</p><p>This regulatory framework ensures that investments are not only innovative but also sustainable.</p><h3>The importance of a technology partner</h3><p>Accessing these incentives requires both technical expertise and regulatory understanding. Working with an experienced development partner is essential.</p><p>A specialized partner can support:</p><ul><li>Business needs analysis</li><li>Custom software design</li><li>Web and cloud application development</li><li>System integration</li><li>Technical documentation for compliance</li></ul><p>This approach ensures that projects are both effective and eligible for incentives.</p><h3>Why you should act now</h3><p>These incentives are not permanent and are subject to regulatory updates. Companies that act early gain a competitive advantage.</p><ul><li>Lower development costs</li><li>Increased competitiveness</li><li>Faster digital transformation</li><li>Future-ready business processes</li></ul><p>Delaying means missing a concrete opportunity.</p><h3>Conclusion</h3><p>Industry 4.0 and Transition 5.0 are more than tax incentives — they are strategic tools for business growth and innovation.</p><p>Investing in custom software and web applications today allows companies to build long-term competitive advantages while reducing costs through tax credits.</p><p>Are you considering a digital project for your business? Share your thoughts in the comments or start evaluating how these incentives can support your next step.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d315ffbe82d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Artificial Intelligence and Automation: Real Business Value Today]]></title>
            <link>https://medium.com/@andreatadioli/artificial-intelligence-and-automation-real-business-value-today-ac740a009fc5?source=rss-14ce8b4b6178------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac740a009fc5</guid>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[ai-automation]]></category>
            <category><![CDATA[business-automation]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[decision-making]]></category>
            <dc:creator><![CDATA[Andrea Tadioli]]></dc:creator>
            <pubDate>Thu, 15 Jan 2026 14:25:57 GMT</pubDate>
            <atom:updated>2026-01-15T14:25:57.503Z</atom:updated>
            <content:encoded><![CDATA[<h3>How decision makers can integrate AI into operations through measurable, governed automation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*Yf90jA5bzmIMxxUWiVB_Qw.png" /></figure><p>Artificial intelligence has become a familiar term in boardrooms and executive discussions. However, in many organizations, AI adoption is still limited to isolated experiments: tools tested occasionally, without a tangible impact on daily operations or business outcomes.</p><p>For decision makers, the value of AI does not lie in the technology itself, but in its ability to <strong>reduce operational friction, improve consistency, and accelerate decision-making</strong>. This happens only when AI is embedded into well-designed <strong>automation workflows</strong> that support real business processes.</p><p>Without automation, AI remains a standalone tool. With automation, it becomes part of the operating model.</p><h3>From experimental AI to operational AI</h3><p>Many companies approach AI starting from the question “Which tool should we use?”. A more effective question is “Which process is slowing us down, generating errors, or scaling poorly?”.</p><p>Operational AI focuses on repeatable activities, structured governance, and measurable outcomes. It is not about replacing people, but about eliminating bottlenecks and enabling teams to focus on higher-value work.</p><h3>AI, automation, and processes: a necessary distinction</h3><p>Successful AI initiatives clearly separate three layers:</p><ul><li><strong>Artificial intelligence</strong>: interprets unstructured data such as emails, documents, and conversations; classifies, summarizes, and supports decisions.</li><li><strong>Automation</strong>: orchestrates events, rules, and systems, ensuring consistency and reliability.</li><li><strong>Business processes</strong>: define responsibilities, controls, exceptions, and objectives.</li></ul><p>AI without automation delivers limited value. Automation without clear processes amplifies existing inefficiencies. Business impact emerges only when all three layers are aligned.</p><h3>Where AI-driven automation delivers immediate impact</h3><p>The fastest returns typically come from areas with high repetition, unstructured inputs, and time-sensitive responses. Common examples include:</p><ul><li><strong>Email and communication management</strong>: request classification, routing, and response assistance.</li><li><strong>Document processing</strong>: data extraction from PDFs, orders, confirmations, and technical documents.</li><li><strong>Customer support</strong>: conversation summarization, solution suggestions, and response standardization.</li><li><strong>Executive reporting</strong>: synthesis of operational data into decision-ready summaries.</li><li><strong>Content workflows</strong>: controlled generation, review, and publishing of business content.</li></ul><p>In each case, the goal is not full automation, but <strong>selective automation with human oversight</strong>.</p><h3>Practical AI automation scenarios for decision makers</h3><h3>Email intake and commercial workflows</h3><p>Incoming emails are analyzed by AI to identify intent, urgency, and key data points. Automation updates the CRM, assigns ownership, and generates a response draft aligned with company guidelines. Final approval remains with the operator.</p><p><strong>Business impact:</strong> faster response times, improved consistency, better opportunity tracking.</p><h3>Operational and administrative documents</h3><p>AI extracts structured information from documents such as orders or delivery notes. Automation validates data, flags anomalies, and prepares entries for internal systems. Human intervention is required only for exceptions.</p><p><strong>Business impact:</strong> reduced manual data entry, fewer errors, predictable processing times.</p><h3>Customer support and knowledge management</h3><p>AI summarizes ticket conversations, suggests solutions, and detects recurring issues. Automation updates ticketing systems and supports the creation of internal knowledge base content.</p><p><strong>Business impact:</strong> shorter resolution times, improved service quality, scalable support operations.</p><h3>Architecture and governance: what executives should require</h3><p>Operational AI must be built on an architecture that ensures control and accountability. Key requirements include:</p><ul><li>logging and auditability of automated decisions;</li><li>access control and data protection;</li><li>approval mechanisms for high-risk actions;</li><li>cost monitoring and usage transparency;</li><li>integration with existing enterprise systems.</li></ul><p>Well-designed governance avoids vendor lock-in and allows automation initiatives to evolve over time.</p><h3>A pragmatic adoption model</h3><p>Effective AI adoption does not require large, upfront transformation programs. A pragmatic approach typically follows four steps:</p><ul><li>identify a repetitive, measurable process;</li><li>define inputs, outputs, and control points;</li><li>deploy a production-ready MVP;</li><li>measure results and scale progressively.</li></ul><p>This reduces risk and builds internal confidence while delivering early results.</p><h3>Conclusion</h3><p>Artificial intelligence delivers real value when it is embedded into automation workflows designed around actual business processes. It does not replace people; it <strong>removes operational friction</strong> and improves the quality and speed of decisions.</p><p>For decision makers, success is measured in reduced cycle times, controlled costs, and the ability to scale operations without increasing complexity.</p><p><strong>Which process in your organization is currently the most manual or time-consuming?</strong> That is often the best place to start with AI-driven automation.</p><p>If you have experience, questions, or contrasting views on this topic, feel free to share them in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac740a009fc5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Asked ChatGPT What Happens to the Data I Write With It]]></title>
            <link>https://medium.com/@andreatadioli/i-asked-chatgpt-what-happens-to-the-data-i-write-with-it-68666dc34fc2?source=rss-14ce8b4b6178------2</link>
            <guid isPermaLink="false">https://medium.com/p/68666dc34fc2</guid>
            <category><![CDATA[gdpr]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Andrea Tadioli]]></dc:creator>
            <pubDate>Fri, 24 Oct 2025 08:03:13 GMT</pubDate>
            <atom:updated>2025-10-24T08:03:13.844Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Find out where your ChatGPT data really goes, how long it’s stored, and how safe your conversations actually are.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-0jYbcHtuRd4-jAZW42tkQ.jpeg" /></figure><p>We live in an age where we share everything online — ideas, drafts, code, and even business strategies. ChatGPT has become a daily assistant for millions, but one question inevitably arises: what happens to all the data we write into it?</p><h3>The Question Everyone Eventually Asks</h3><p>After using ChatGPT for a while, most users start to wonder if their messages are truly private. According to ChatGPT, your data is not public and not sold to third parties, but it can be temporarily stored for security checks, system reliability, and quality assurance.</p><h3>Where Your Data Is Stored</h3><p>OpenAI uses secure cloud infrastructure to host ChatGPT. Some servers are located in the United States, while enterprise services hosted on Microsoft Azure keep data within the region chosen by the customer, such as the European Union.</p><p>Every conversation is encrypted both in transit and at rest, meaning that data travels and is stored securely, minimizing the risk of interception.</p><h3>How Long the Data Is Kept</h3><p>Chats may be retained for up to 30 days before being permanently deleted. If you use “Temporary Chat,” messages are automatically erased after a short period.</p><p>For users on ChatGPT Plus or ChatGPT Team, OpenAI specifies that your conversations are not used to train the model — an essential point for anyone handling sensitive or business-related content.</p><h3>Who Can See Your Conversations</h3><p>Chats are not visible to the public. In some rare cases, automated systems or internal reviewers may examine specific messages flagged for potential policy violations — such as abuse or unsafe use — to maintain platform integrity.</p><h3>Understanding Memory in ChatGPT</h3><p>ChatGPT can remember certain details — like your preferences or projects — but only if you explicitly allow it. You can delete this information anytime or ask the system to “forget everything.” The memory feature exists solely to personalize your experience, not to train OpenAI’s models.</p><h3>How to Protect Your Privacy</h3><ul><li>Avoid sharing sensitive data such as passwords, client information, or personal identifiers.</li><li>Turn off model training in the settings if you don’t want your inputs used to improve ChatGPT.</li><li>Use Temporary Chat for private or short-term conversations.</li><li>Regularly review and clear your chat history.</li></ul><h3>Encryption and Security</h3><p>OpenAI encrypts data both during transmission and storage. This ensures that even if someone intercepted your traffic, they wouldn’t be able to read its content.</p><p>Here’s a quick best practice for developers integrating OpenAI’s API into their projects:</p><pre>// Avoid sending sensitive data directly<br>const prompt = &quot;Analyze this sales report summary without including customer names.&quot;;<br>const response = await openai.chat.completions.create({<br>  model: &quot;gpt-4o&quot;,<br>  messages: [{ role: &quot;user&quot;, content: prompt }]<br>});</pre><h3>GDPR Compliance</h3><p>For European users, ChatGPT operates under GDPR compliance. You can request to export or delete your personal data at any time. OpenAI maintains detailed records of data handling and offers clear user controls.</p><h3>For Business Users</h3><p>Companies dealing with confidential projects should consider <strong>ChatGPT Team</strong> or <strong>Enterprise</strong>. In these versions, data is not used for model training, stays fully encrypted, and remains within the organization’s environment — meaning your prompts stay yours.</p><h3>Trust, But With Awareness</h3><p>ChatGPT is a powerful tool, but it should be used mindfully. It’s not a personal diary or a permanent archive. It’s a virtual assistant designed for usefulness and security — yet, like any technology, it operates within rules and limits.</p><p>Knowing where your data goes and how it’s handled is the first step toward using AI responsibly. Trust the system, but understand how it works.</p><h3>In Summary</h3><p>ChatGPT’s data policy balances privacy protection with technical functionality. Nothing is published or sold, but some logs exist temporarily for safety and maintenance. Ultimately, the user controls what stays and what goes.</p><p>If you’re a developer, marketer, or writer using ChatGPT for work, take time to explore the privacy settings and align them with your workflow.</p><p><strong>And you?</strong> Have you ever wondered where your data actually ends up? Share your thoughts in the comments — the conversation about privacy and AI is just beginning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68666dc34fc2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Lambda and RSS: Automating News into Audio]]></title>
            <link>https://medium.com/@andreatadioli/aws-lambda-and-rss-automating-news-into-audio-c4292304c1ce?source=rss-14ce8b4b6178------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4292304c1ce</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[podcast]]></category>
            <category><![CDATA[amazon-polly]]></category>
            <dc:creator><![CDATA[Andrea Tadioli]]></dc:creator>
            <pubDate>Mon, 22 Sep 2025 13:32:35 GMT</pubDate>
            <atom:updated>2025-09-22T13:32:35.384Z</atom:updated>
            <content:encoded><![CDATA[<p><em>From RSS feeds to an automated podcast: a practical, production-grade blueprint with Amazon Bedrock and Amazon Polly.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LYdao2hN86VrwBMCxvoEXg.png" /><figcaption>AWS Lambda and RSS</figcaption></figure><h3>Why turn RSS into audio with AWS</h3><p>Audio scales attention. A short daily briefing often beats a long article, especially for busy professionals walking, commuting, or training. An automated pipeline lets you ship a consistent, on-brand audio brief without editors staying up late. <strong>AWS Lambda</strong> provides serverless execution, <strong>Amazon Bedrock</strong> produces readable summaries from raw articles, and <strong>Amazon Polly</strong> converts those summaries into natural-sounding MP3 files. Together, they deliver a low-ops, low-cost content factory.</p><ul><li><strong>Serverless:</strong> no servers to patch, scale, or babysit.</li><li><strong>Event-driven:</strong> run on a schedule or on feed updates.</li><li><strong>Pay-as-you-go:</strong> costs track real usage.</li><li><strong>Modular:</strong> swap models, voices, or outputs without rebuilding the whole stack.</li></ul><h3>High-level architecture</h3><p>The pipeline is simple and robust:</p><ol><li><strong>Trigger:</strong> EventBridge Scheduler invokes a Lambda function every N minutes.</li><li><strong>Fetch:</strong> Lambda downloads and parses one or more RSS feeds.</li><li><strong>Deduplicate:</strong> Lambda checks which items are new (DynamoDB or S3 manifest).</li><li><strong>Summarize:</strong> Text is condensed via an LLM running on Amazon Bedrock.</li><li><strong>Synthesize:</strong> The summary is turned into MP3 with Amazon Polly.</li><li><strong>Store &amp; serve:</strong> Assets land in Amazon S3 with deterministic keys.</li><li><strong>Syndicate:</strong> A generated podcast RSS references the S3 MP3 URLs.</li></ol><p>Each step is idempotent. If the same item appears twice, the function reuses the same object key and skips duplicate work.</p><h3>IAM and security foundations</h3><p>Keep your Lambda role tight. Grant only what is needed: read/write to a specific S3 prefix, read/write to a single DynamoDB table, and permissions to call Bedrock runtime and Polly synthesis.</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    { &quot;Effect&quot;: &quot;Allow&quot;, &quot;Action&quot;: [&quot;s3:PutObject&quot;,&quot;s3:GetObject&quot;,&quot;s3:ListBucket&quot;], &quot;Resource&quot;: [&quot;arn:aws:s3:::your-podcast-bucket&quot;,&quot;arn:aws:s3:::your-podcast-bucket/*&quot;] },<br>    { &quot;Effect&quot;: &quot;Allow&quot;, &quot;Action&quot;: [&quot;dynamodb:PutItem&quot;,&quot;dynamodb:GetItem&quot;,&quot;dynamodb:Query&quot;], &quot;Resource&quot;: [&quot;arn:aws:dynamodb:REGION:ACCOUNT_ID:table/FeedItems&quot;] },<br>    { &quot;Effect&quot;: &quot;Allow&quot;, &quot;Action&quot;: [&quot;bedrock:InvokeModel&quot;], &quot;Resource&quot;: &quot;*&quot; },<br>    { &quot;Effect&quot;: &quot;Allow&quot;, &quot;Action&quot;: [&quot;polly:SynthesizeSpeech&quot;], &quot;Resource&quot;: &quot;*&quot; },<br>    { &quot;Effect&quot;: &quot;Allow&quot;, &quot;Action&quot;: [&quot;logs:CreateLogGroup&quot;,&quot;logs:CreateLogStream&quot;,&quot;logs:PutLogEvents&quot;], &quot;Resource&quot;: &quot;*&quot; }<br>  ]<br>}</pre><p>Store API keys (if any), feed URLs, and feature flags in <strong>AWS Systems Manager Parameter Store</strong> or <strong>Secrets Manager</strong>. Never hardcode configuration inside the handler.</p><h3>Parsing RSS reliably in Lambda (Python)</h3><p>RSS feeds vary wildly. Defensive parsing prevents messy failures. Limit the number of entries, normalize whitespace, and prefer plain text over HTML when summarizing.</p><pre>import hashlib, json, os, re, time<br>import urllib.request<br>from html import unescape</pre><pre>def fetch(url: str, timeout=10) -&gt; str:<br>    req = urllib.request.Request(url, headers={&quot;User-Agent&quot;: &quot;LambdaRSS/1.0&quot;})<br>    with urllib.request.urlopen(req, timeout=timeout) as r:<br>        return r.read().decode(&quot;utf-8&quot;, &quot;ignore&quot;)</pre><pre>def strip_html(html: str) -&gt; str:<br>    text = re.sub(r&quot;&lt;[^&gt;]+&gt;&quot;, &quot; &quot;, html)<br>    text = unescape(re.sub(r&quot;\s+&quot;, &quot; &quot;, text)).strip()<br>    return text</pre><pre>def parse_rss(xml: str, limit=5):<br>    # Minimal, resilient parse: title, link, description/pubDate<br>    items = re.findall(r&quot;&lt;item&gt;(.*?)&lt;/item&gt;&quot;, xml, flags=re.S)<br>    out = []<br>    for raw in items[:limit]:<br>        t = re.search(r&quot;&lt;title&gt;(.*?)&lt;/title&gt;&quot;, raw, re.S)<br>        l = re.search(r&quot;&lt;link&gt;(.*?)&lt;/link&gt;&quot;, raw, re.S)<br>        d = re.search(r&quot;&lt;description&gt;(.*?)&lt;/description&gt;&quot;, raw, re.S)<br>        p = re.search(r&quot;&lt;pubDate&gt;(.*?)&lt;/pubDate&gt;&quot;, raw, re.S)<br>        out.append({<br>            &quot;title&quot;: strip_html(t.group(1)) if t else &quot;&quot;,<br>            &quot;link&quot;: strip_html(l.group(1)) if l else &quot;&quot;,<br>            &quot;summary&quot;: strip_html(d.group(1)) if d else &quot;&quot;,<br>            &quot;pubDate&quot;: strip_html(p.group(1)) if p else &quot;&quot;,<br>        })<br>    return out</pre><pre>def stable_id(item: dict) -&gt; str:<br>    key = (item.get(&quot;link&quot;) or item.get(&quot;title&quot;) or &quot;&quot;) + (item.get(&quot;pubDate&quot;) or &quot;&quot;)<br>    return hashlib.sha1(key.encode(&quot;utf-8&quot;)).hexdigest()[:16]</pre><p>For richer metadata (authors, categories, GUID), use a dedicated parser like feedparser, but the lightweight approach above works well for many feeds and keeps Lambda layers minimal.</p><h3>Tracking processed items with DynamoDB</h3><p>Use a single table to mark what you have already published. That gives you idempotency across reruns and easy metrics.</p><pre>import boto3<br>ddb = boto3.resource(&quot;dynamodb&quot;)<br>table = ddb.Table(os.environ.get(&quot;DDB_TABLE&quot;,&quot;FeedItems&quot;))</pre><pre>def is_processed(item_id: str) -&gt; bool:<br>    r = table.get_item(Key={&quot;id&quot;: item_id})<br>    return &quot;Item&quot; in r</pre><pre>def mark_processed(item_id: str, meta: dict):<br>    table.put_item(Item={&quot;id&quot;: item_id, &quot;ts&quot;: int(time.time()), &quot;meta&quot;: meta})</pre><h3>Summarization via Amazon Bedrock</h3><p>Summaries must be consistent, brief, and safe. Prompt with constraints (tone, length, prohibited content) and include the article title for context.</p><pre>import boto3, json<br>bedrock = boto3.client(&quot;bedrock-runtime&quot;)<br>def summarize(title: str, text: str) -&gt; str:<br>    prompt = (<br>        &quot;You are a concise news editor. Produce a 3-4 sentence neutral summary. &quot;<br>        &quot;Avoid hype, avoid speculation, include one concrete fact and the source domain if present. &quot;<br>        f&quot;Title: {title}\nArticle:\n{text}\nSummary:&quot;<br>    )<br>    resp = bedrock.invoke_model(<br>        modelId=os.environ.get(&quot;BEDROCK_MODEL&quot;,&quot;anthropic.claude-3-haiku&quot;),<br>        body=json.dumps({&quot;prompt&quot;: prompt, &quot;max_tokens&quot;: 300}).encode(&quot;utf-8&quot;),<br>        contentType=&quot;application/json&quot;,<br>        accept=&quot;application/json&quot;<br>    )<br>    payload = json.loads(resp[&quot;body&quot;].read())<br>    return payload.get(&quot;output_text&quot;) or payload.get(&quot;completion&quot;) or &quot;&quot;</pre><p>Pick a fast, cost-efficient model for daily briefs. For long-form editorial projects, switch to a higher-quality model and raise token limits.</p><h3>Text-to-speech with Amazon Polly</h3><p>Choose a neural voice compatible with your target audience. Keep speed natural and add SSML for prosody if needed.</p><pre>import boto3<br>polly = boto3.client(&quot;polly&quot;)<br>def synthesize_to_s3(text: str, s3_uri: str, voice=&quot;Joanna&quot;):<br>    s3_bucket, s3_key = s3_uri.replace(&quot;s3://&quot;,&quot;&quot;).split(&quot;/&quot;, 1)<br>    r = polly.synthesize_speech(Text=text, OutputFormat=&quot;mp3&quot;, VoiceId=voice)<br>    import io<br>    import boto3<br>    s3 = boto3.client(&quot;s3&quot;)<br>    s3.upload_fileobj(r[&quot;AudioStream&quot;], s3_bucket, s3_key, ExtraArgs={&quot;ContentType&quot;:&quot;audio/mpeg&quot;})<br>    return f&quot;s3://{s3_bucket}/{s3_key}&quot;</pre><p>For multilingual feeds, map each item to a locale-specific voice. Cache identical summaries to avoid paying twice for synthesis.</p><h3>Deterministic S3 layout and caching</h3><p>File organization impacts cacheability and cleanup. Use a deterministic pattern that encodes date and stable IDs:</p><pre>def s3_key_for(item_id: str, date_iso: str, ext=&quot;mp3&quot;) -&gt; str:<br>    # Example: briefs/2025/09/22/abcd1234.mp3<br>    y, m, d = date_iso.split(&quot;-&quot;)<br>    return f&quot;briefs/{y}/{m}/{d}/{item_id}.{ext}&quot;</pre><p>Expose the MP3s via S3 static hosting or, better, put the bucket behind CloudFront for global performance. Set Cache-Control aggressively; these files are immutable.</p><h3>Generating the podcast feed</h3><p>Create a small function that emits an RSS 2.0 podcast feed referencing your MP3s. Keep titles compact, include duration, and ensure enclosure is present with proper length and MIME type.</p><pre>from datetime import datetime<br>import email.utils as eut<br>def podcast_xml(channel_title, channel_desc, items):<br>    # items: list of dict(title, url, length, pubDate)<br>    head = f&quot;&quot;&quot;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;rss version=&quot;2.0&quot;&gt;<br>&lt;channel&gt;<br>  &lt;title&gt;{channel_title}&lt;/title&gt;<br>  &lt;description&gt;{channel_desc}&lt;/description&gt;<br>  &lt;lastBuildDate&gt;{eut.format_datetime(datetime.utcnow())}&lt;/lastBuildDate&gt;&quot;&quot;&quot;<br>    body = []<br>    for it in items:<br>        body.append(f&quot;&quot;&quot;<br>  &lt;item&gt;<br>    &lt;title&gt;{it[&#39;title&#39;]}&lt;/title&gt;<br>    &lt;pubDate&gt;{it[&#39;pubDate&#39;]}&lt;/pubDate&gt;<br>    &lt;enclosure url=&quot;{it[&#39;url&#39;]}&quot; length=&quot;{it[&#39;length&#39;]}&quot; type=&quot;audio/mpeg&quot;/&gt;<br>    &lt;guid isPermaLink=&quot;false&quot;&gt;{it[&#39;guid&#39;]}&lt;/guid&gt;<br>  &lt;/item&gt;&quot;&quot;&quot;)<br>    tail = &quot;\n&lt;/channel&gt;\n&lt;/rss&gt;&quot;<br>    return head + &quot;\n&quot;.join(body) + tail</pre><p>Write the resulting XML to S3 at a stable key (for example, podcast/feed.xml) and point your listeners or downstream platforms to that single URL.</p><h3>The Lambda handler (end-to-end)</h3><p>The following handler stitches the entire flow: fetch, deduplicate, summarize, synthesize, publish.</p><pre>import os, json<br>import boto3<br>from datetime import datetime<br>s3 = boto3.client(&quot;s3&quot;)<br>BUCKET = os.environ.get(&quot;BUCKET&quot;,&quot;your-podcast-bucket&quot;)<br>FEEDS = os.environ.get(&quot;FEEDS&quot;,&quot;https://example.com/rss.xml&quot;).split(&quot;,&quot;)<br>CHANNEL_TITLE = os.environ.get(&quot;CHANNEL_TITLE&quot;,&quot;Daily Tech Brief&quot;)<br>CHANNEL_DESC = os.environ.get(&quot;CHANNEL_DESC&quot;,&quot;Concise, automated audio briefs.&quot;)<br>def handler(event, context):<br>    published = []<br>    for feed_url in FEEDS:<br>        xml = fetch(feed_url.strip())<br>        for item in parse_rss(xml, limit=8):<br>            text = (item[&quot;summary&quot;] or item[&quot;title&quot;]).strip()<br>            item_id = stable_id(item)<br>            if is_processed(item_id) or not text:<br>                continue<br>            short = summarize(item[&quot;title&quot;], text)<br>            today = datetime.utcnow().strftime(&quot;%Y-%m-%d&quot;)<br>            key = s3_key_for(item_id, today, &quot;mp3&quot;)<br>            s3_uri = f&quot;s3://{BUCKET}/{key}&quot;<br>            synthesize_to_s3(short, s3_uri, voice=os.environ.get(&quot;VOICE&quot;,&quot;Joanna&quot;))<br>            # Head request to get length<br>            head = s3.head_object(Bucket=BUCKET, Key=key)<br>            url = f&quot;https://{BUCKET}.s3.amazonaws.com/{key}&quot;<br>            published.append({<br>                &quot;title&quot;: item[&quot;title&quot;][:80],<br>                &quot;url&quot;: url,<br>                &quot;length&quot;: head[&quot;ContentLength&quot;],<br>                &quot;guid&quot;: item_id,<br>                &quot;pubDate&quot;: item[&quot;pubDate&quot;] or datetime.utcnow().strftime(&quot;%a, %d %b %Y %H:%M:%S +0000&quot;)<br>            })<br>            mark_processed(item_id, {&quot;feed&quot;: feed_url, &quot;key&quot;: key})<br>    if published:<br>        xml = podcast_xml(CHANNEL_TITLE, CHANNEL_DESC, published)<br>        s3.put_object(Bucket=BUCKET, Key=&quot;podcast/feed.xml&quot;,<br>                      Body=xml.encode(&quot;utf-8&quot;),<br>                      ContentType=&quot;application/rss+xml&quot;,<br>                      CacheControl=&quot;no-cache&quot;)<br>    return {&quot;published&quot;: len(published)}</pre><h3>Scheduling with EventBridge</h3><p>Create an EventBridge Scheduler rule that targets your Lambda every 15 minutes (or match your source feeds). Use a dead-letter queue for resilience and alarms on error rates. For spikes, Lambda scales automatically; your only practical limit is external API rate limits.</p><h3>Error handling and observability</h3><ul><li><strong>Time budgets:</strong> RSS fetches can hang; set short timeouts and fail fast.</li><li><strong>Circuit breakers:</strong> If a feed fails repeatedly, pause it for an hour.</li><li><strong>Structured logs:</strong> Log JSON: feed, item_id, stage, duration.</li><li><strong>Metrics:</strong> Emit custom metrics (items processed, Polly seconds, Bedrock tokens).</li><li><strong>Tracing:</strong> Enable AWS X-Ray to see end-to-end latencies.</li></ul><h3>Cost controls and performance tips</h3><ul><li><strong>Model choice matters:</strong> Start with a lightweight Bedrock model for summaries; upgrade only when needed.</li><li><strong>Batching:</strong> Summarize multiple items in one call when token limits allow.</li><li><strong>Idempotency:</strong> Reuse existing MP3s when content hasn’t changed to avoid Polly costs.</li><li><strong>Right-size memory:</strong> Lambda runs faster with more memory; total cost can still fall due to shorter execution time.</li><li><strong>Cold starts:</strong> Use a provisioned concurrency of 1 during peak publishing windows if latency matters.</li></ul><h3>Quality: from “OK” to “great”</h3><p>Quality hinges on prompt design and audio polish. Add a style guide to your prompt (tone, reading level, forbidden phrases). For audio, prefer neural voices and introduce short silences between items using SSML breaks. Keep each episode under five minutes for stickiness.</p><pre>&lt;speak&gt;<br>  &lt;prosody rate=&quot;medium&quot;&gt;Good morning. Here are your top three stories.&lt;/prosody&gt;<br>  &lt;break time=&quot;500ms&quot;/&gt;<br>  First: ...<br>  &lt;break time=&quot;700ms&quot;/&gt;<br>  Second: ...<br>&lt;/speak&gt;</pre><h3>Testing strategy</h3><ul><li><strong>Unit tests:</strong> RSS parsing, deduplication, S3 key generation.</li><li><strong>Integration tests:</strong> A canary feed with fixed items in a staging bucket.</li><li><strong>Load tests:</strong> A replay script that invokes the handler with synthetic feeds.</li><li><strong>Rollback:</strong> Versioned Lambda + alias; deploy with traffic shifting.</li></ul><h3>Going beyond the basics</h3><ul><li><strong>Multilingual editions:</strong> Detect language and route to locale-appropriate summarization and voice.</li><li><strong>Editorial controls:</strong> Approve summaries in a small web UI (API Gateway + Cognito) before publishing.</li><li><strong>Chaptered episodes:</strong> Concatenate multiple items into one file and include chapter markers via ID3 tags.</li><li><strong>Notifications:</strong> Push a short text brief to email or mobile whenever a new episode drops.</li><li><strong>Monetization:</strong> Prepend an audio bumper; rotate sponsors by day and track impressions.</li></ul><h3>Conclusion</h3><p>With Lambda, Bedrock, and Polly you can turn any reliable RSS source into a crisp daily audio brief — hands-off, scalable, and affordable. Start small: one feed, one voice, one channel. Iterate on voice, pacing, and prompt until your listeners stick. Then add languages, topics, and formats. The result is a durable content asset that ships itself.</p><p><strong>Tell me in the comments</strong> which feeds you would automate first, and whether you prefer one short episode per item or a single daily episode that blends several stories.</p><h3>Topics</h3><p>AWS, Cloud Computing, AWS Lambda, Automation, Podcast, Amazon Polly, Amazon Bedrock, Serverless, DevOps</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4292304c1ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Daily Automations with ChatGPT Projects and Custom GPTs]]></title>
            <link>https://medium.com/@andreatadioli/daily-automations-with-chatgpt-projects-and-custom-gpts-7da7243a2bc8?source=rss-14ce8b4b6178------2</link>
            <guid isPermaLink="false">https://medium.com/p/7da7243a2bc8</guid>
            <category><![CDATA[organize]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai-automation]]></category>
            <dc:creator><![CDATA[Andrea Tadioli]]></dc:creator>
            <pubDate>Sat, 02 Aug 2025 08:41:56 GMT</pubDate>
            <atom:updated>2025-08-02T08:41:56.466Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*3_Te5YpBuVQarNS8nX0OMg.png" /><figcaption>Image generated by chatgpt.</figcaption></figure><h3>How I use AI every day to work smarter and faster</h3><p>Since I started working with artificial intelligence, I stopped seeing it as just a tool. Today, ChatGPT is my digital colleague: it executes tasks, proposes solutions, writes, replies, analyzes. But not alone. It works within an ecosystem I built using two powerful tools: <strong>Projects</strong> and <strong>Custom GPTs</strong>.</p><h3>ChatGPT Projects: my automated dashboard for recurring tasks</h3><h3>What Projects are and why I use them</h3><p>ChatGPT Projects (available in the paid plan) are organized spaces where I collect documents, prompts, instructions, and chat history for each specific task. They’re ideal for ongoing and repetitive activities. More details in the <a href="https://help.openai.com/en/articles/10169521-projects-in-chatgpt">official OpenAI guide</a>.</p><h3>How I organize my workflows</h3><p>Each Project has a clear name, description, and consistent structure. Examples of my workspaces include:</p><ul><li><strong>SEO &amp; Copywriting</strong>: article generation, title suggestions, readability analysis</li><li><strong>Customer Communication</strong>: email replies, FAQs, automated templates</li><li><strong>AI Training</strong>: lesson scripts, slides, quizzes, real-world examples</li><li><strong>Technical Projects</strong>: Laravel logic, AWS deployment, VPN and network management</li></ul><h3>Real-life automation examples</h3><ul><li>Weekly generation of personalized article ideas for Medium</li><li>SEO analysis of drafts and improvement suggestions</li><li>Automated generation of formatted emails for clients and suppliers</li><li>Editorial schedule creation and marketing plans</li></ul><h3>Custom GPTs: tailored assistants for each business area</h3><h3>How I create a custom GPT</h3><p>Just click on “Explore GPTs” and create a new assistant with a well-built system prompt. I customize it with detailed instructions, tone of voice, examples, and scope limitations.</p><h3>Key instructions I set</h3><ul><li>Clear role (e.g., “You are an expert in Teltonika RUT955”)</li><li>Response style (formal, concise, technical)</li><li>Preferred output format (bullet points, code, examples)</li><li>Usage context (Laravel dev, Ubuntu admin, SME consulting, etc.)</li></ul><h3>Everyday practical examples</h3><ul><li><strong>Maintenance GPT</strong>: generates optimized routes based on schedule, priority, and location</li><li><strong>AI Training GPT</strong>: provides prompts, use cases, and commented slides</li><li><strong>Tech GPT</strong>: assists with Teltonika, OpenVPN, Livewire, Laravel, AWS Lambda</li><li><strong>Marketing GPT</strong>: analyzes copy tone, CTA strength, UX wording, and funnels</li></ul><h3>Strategies and best practices</h3><ul><li><strong>Consistent naming</strong>: each GPT has a prefix tied to its function (e.g., “GPT-Tech”, “GPT-SEO”)</li><li><strong>Solid system prompts</strong>: better one long prompt upfront than many adjustments later</li><li><strong>Project vs GPT</strong>: Projects = memory + flow; GPT = skilled executor</li><li><strong>Sharing and testing</strong>: I share GPTs with clients so they can test and use them independently</li></ul><h3>Automations with APIs and external tools</h3><p>AI on its own is powerful, but when integrated it’s transformative. Here are some connections I use:</p><ul><li>Google Sheets API to send data to GPT and collect results</li><li><a href="https://zapier.com/">Zapier</a> to trigger GPT prompts on incoming emails</li><li>Python scripts on AWS Lambda to read RSS feeds and send them to GPT</li><li><a href="https://aws.amazon.com/polly/">Amazon Polly</a> to convert GPT outputs into MP3s</li><li><a href="https://www.azuracast.com/">AzuraCast</a> + SFTP to broadcast those audios on webradio</li></ul><h3>Limits, risks, and opportunities</h3><ul><li>I always test GPTs internally before production use</li><li>I monitor results for 2 weeks before full delegation</li><li>I use a checklist to assess every GPT’s weaknesses</li></ul><h3>Conclusion: working with AI, not replaced by it</h3><p>ChatGPT isn’t here to replace us — it’s here to amplify what we can do. When we train it well, it becomes a reliable and daily ally.</p><p>You don’t need 10 GPTs or 5 Projects to start. Just one. But make it useful, well-designed, and actually used every day.</p><blockquote><em>And you? Are you already using custom GPTs or Projects in your workflow? Want some suggestions to improve your productivity? Let me know in the comments.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7da7243a2bc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build an AI Agent with ChatGPT That Works for You]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@andreatadioli/build-an-ai-agent-with-chatgpt-that-works-for-you-2a2e5f10dd4c?source=rss-14ce8b4b6178------2"><img src="https://cdn-images-1.medium.com/max/680/1*PwzIPQMaDEZey7JgYYdGJQ.jpeg" width="680"></a></p><p class="medium-feed-snippet">Discover how to turn ChatGPT into a true AI Agent that automates tasks, takes actions, and works independently for your business</p><p class="medium-feed-link"><a href="https://medium.com/@andreatadioli/build-an-ai-agent-with-chatgpt-that-works-for-you-2a2e5f10dd4c?source=rss-14ce8b4b6178------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@andreatadioli/build-an-ai-agent-with-chatgpt-that-works-for-you-2a2e5f10dd4c?source=rss-14ce8b4b6178------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a2e5f10dd4c</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Andrea Tadioli]]></dc:creator>
            <pubDate>Sat, 24 May 2025 07:37:38 GMT</pubDate>
            <atom:updated>2025-05-24T07:37:38.025Z</atom:updated>
        </item>
    </channel>
</rss>