<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ajiboye Toluwalase </title>
    <description>The latest articles on DEV Community by Ajiboye Toluwalase  (@metrosmash).</description>
    <link>https://dev.to/metrosmash</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F963342%2F45be7358-0545-4b49-900d-407c76d4e897.jpeg</url>
      <title>DEV Community: Ajiboye Toluwalase </title>
      <link>https://dev.to/metrosmash</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/metrosmash"/>
    <language>en</language>
    <item>
      <title>A Little Halloween Magic for Any Website</title>
      <dc:creator>Ajiboye Toluwalase </dc:creator>
      <pubDate>Sun, 01 Nov 2026 21:45:41 +0000</pubDate>
      <link>https://dev.to/metrosmash/a-little-halloween-magic-for-any-website-285h</link>
      <guid>https://dev.to/metrosmash/a-little-halloween-magic-for-any-website-285h</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week4-2026-10-26"&gt;Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Every October, the internet fills with spooky colors, glowing pumpkins, and tiny bats flying across the screen. I wanted to bring some of that seasonal fun to the websites people already use—not by rebuilding them, but by giving them a temporary Halloween makeover.&lt;/p&gt;

&lt;p&gt;That idea became the &lt;strong&gt;Halloween Website Decorator&lt;/strong&gt;: a small web app that takes a public website or uploaded HTML files and turns them into an isolated, Halloween-themed preview.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;The app accepts either a public URL or a website upload. For uploads, you can provide one HTML file with optional CSS and images, or a ZIP containing those files. It then prepares a static copy, chooses a theme, adds decorations, and opens the result beside an original-page view.&lt;/p&gt;

&lt;p&gt;The design is intentionally a collaboration between code and AI:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The AI can suggest decoration placements, an accent color, and optional CSS flourishes.&lt;/li&gt;
&lt;li&gt;The app checks those suggestions against its theme, placement, and intensity rules.&lt;/li&gt;
&lt;li&gt;A CSS allowlist sanitizer filters model-generated styles before they reach the preview.&lt;/li&gt;
&lt;li&gt;If an AI response is unavailable or unusable, the app tries a configured fallback provider, then its built-in sample provider, and finally a code-only design.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The result is meant to feel like a seasonal mode—not a claim that every website can be copied perfectly. Static HTML works best; JavaScript is removed for safety, and sites that require login or client-side rendering may not display completely.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;Try the live demo at &lt;a href="https://halloween-decor.onrender.com" rel="noopener noreferrer"&gt;halloween-decor.onrender.com&lt;/a&gt;. You can also run the app locally with the built-in provider, which works without API credentials:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;python&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-m&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;venv&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;halloween_env&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;\halloween_env\Scripts\Activate.ps1&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nx"&gt;python&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-m&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;pip&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;install&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-r&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;requirements.txt&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;Copy-Item&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;env&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;example&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;env&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nx"&gt;python&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;run.py&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then open &lt;code&gt;http://127.0.0.1:5000&lt;/code&gt;. The demo helper pre-warms three sample pages before starting the server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;python&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;scripts\demo.py&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;The source is organized around a few focused pieces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;app/parser.py&lt;/code&gt; reads and validates the design response.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;app/pipeline.py&lt;/code&gt; coordinates provider calls, retries, fallback, and CSS sanitization.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;app/content/themes.py&lt;/code&gt; and &lt;code&gt;app/content/decor/&lt;/code&gt; hold the curated themes and individual SVG decorations.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;app/steps/assemble.py&lt;/code&gt; places decorations into the prepared page.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;app/__init__.py&lt;/code&gt; provides the Flask routes, bounded background jobs, cache, and request limits.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The project also includes a fixture matrix that checks five sample pages across all three intensity levels:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;python&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;scripts\matrix.py&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--provider&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;fake&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;I built the app in milestones, starting with a working upload-and-preview flow and adding themes, decorations, and reliability features as the project grew.&lt;/p&gt;

&lt;p&gt;The model does not generate HTML. Instead, it returns a small line-based design description, such as a theme choice and a few allowed decoration slots. Keeping markup and SVG assets hand-authored makes the output easier to validate and keeps the model focused on visual decisions.&lt;/p&gt;

&lt;p&gt;The provider interface supports OpenAI-compatible chat-completion APIs. That makes it possible to configure different compatible services without changing the app’s design pipeline. A primary provider can be followed by a secondary LLM; a deterministic sample provider and code-only design are available as further fallbacks. API credentials are configured server-side or supplied transiently for a request, rather than being saved in job results.&lt;/p&gt;

&lt;p&gt;For reliability, the app also has bounded background jobs, visible progress and errors, request limits, result caching, and a regeneration option. The fixture matrix exercises output preservation, decoration budgets, CSS filtering, and preview security headers. The test suite currently covers the parser, uploads, provider behavior, and app routes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;For this project, open innovation means being able to experiment with different compatible models and providers while keeping the rest of the application stable. The provider can change; the design format, validation rules, curated decorations, and preview assembly remain under the project’s control.&lt;/p&gt;

&lt;p&gt;That separation also makes failure less dramatic. If a provider is down or returns a response the app cannot use, the user can still get a themed preview from the sample or code-only design. The app does not need to trust a model with arbitrary page markup to make something fun.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Spirit of It
&lt;/h2&gt;

&lt;p&gt;The goal is small and cheerful: let someone take a page they know and see it wearing a Halloween costume. Maybe a familiar article gets a tiny moon in the corner, a pumpkin between sections, and a warmer palette—without losing the words that made the page theirs.&lt;/p&gt;

&lt;p&gt;It’s a playful way to make the web feel seasonal, one little decoration at a time.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>Built a Hospital Lenght Of Stay Predictor Web app</title>
      <dc:creator>Ajiboye Toluwalase </dc:creator>
      <pubDate>Sun, 15 Feb 2026 07:51:55 +0000</pubDate>
      <link>https://dev.to/metrosmash/built-a-hospital-lenght-of-stay-predictor-web-app-2lgf</link>
      <guid>https://dev.to/metrosmash/built-a-hospital-lenght-of-stay-predictor-web-app-2lgf</guid>
      <description>&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;Heya, i built a Hospital lenght of stay predictor web app in which the user selects the conditions of his or her predicament in the hospital and the model predicts how long they stay at the hospital.&lt;/p&gt;

&lt;p&gt;its a full-stack machine learning web application that predicts patient hospital stay duration using XGBoost. Features interactive map-based hospital selection across New York State, a 13-feature clinical assessment form, and real-time predictions with risk factor analysis. Built with Flask, JavaScript, Leaflet.js, and deployed on Render.&lt;/p&gt;

&lt;h1&gt;
  
  
  Overview
&lt;/h1&gt;

&lt;p&gt;This predictor dashboard was built using the Hospital Inpatient Discharges (SPARCS De-Identified) 2017 dataset released by the New York State Department of Health. The platform addresses a real-world scenario: when patients or their relatives visit hospitals, they can predict the expected length of stay based on clinical, demographic, and facility factors.&lt;/p&gt;

&lt;h1&gt;
  
  
  Why This Matters
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;For Patients &amp;amp; Families: Plan work leave, childcare, and financial arrangements&lt;/li&gt;
&lt;li&gt;For Hospitals: Optimize bed management and discharge planning &lt;/li&gt;
&lt;li&gt;For Healthcare Administrators: Resource allocation and capacity forecasting&lt;/li&gt;
&lt;li&gt;For Researchers: Explore social determinants of health and disparities in care&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Demo
&lt;/h1&gt;

&lt;p&gt;Here is a live demo on web app on &lt;a href="https://hospital-los-predictor.onrender.com/" rel="noopener noreferrer"&gt;Render&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Check out the Github Repo here pls comment,star and fork &lt;br&gt;


&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/metrosmash" rel="noopener noreferrer"&gt;
        metrosmash
      &lt;/a&gt; / &lt;a href="https://github.com/metrosmash/Hospital_LOS_Predictor" rel="noopener noreferrer"&gt;
        Hospital_LOS_Predictor
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A full-stack machine learning web application that predicts patient hospital stay duration using XGBoost. Features interactive map-based hospital selection across New York State, a 13-feature clinical assessment form, and real-time predictions with risk factor analysis. Built with Flask, JavaScript, Leaflet.js, and deployed on Render
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;🏥 Hospital Length of Stay Predictor&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="https://www.python.org/downloads/" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/5d93683edb8c07343416dd43d001407612a076960545ee5518241b30bda34a29/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f507974686f6e2d332e382b2d626c75652e737667" alt="Python"&gt;&lt;/a&gt;
&lt;a href="https://flask.palletsprojects.com/" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/ff3194065091e983901fc6cb0f3c59d21a613929745a41331d48320796641a2b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f466c61736b2d332e302e302d677265656e2e737667" alt="Flask"&gt;&lt;/a&gt;
&lt;a href="https://xgboost.readthedocs.io/" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/93c89de833f01573e922ad88620d0a5b565b8a93ab879a6b75efab980285db68/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5847426f6f73742d4d4c2d6f72616e67652e737667" alt="XGBoost"&gt;&lt;/a&gt;
&lt;a href="https://github.com/metrosmash/Hospital_LOS_Predictor/LICENSE" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667" alt="License"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;An interactive web-based healthcare analytics platform that predicts hospital Length of Stay (LOS) using machine learning. Built with real-world data from 2.3+ million hospital discharges across New York State, this tool helps patients, families, and healthcare administrators make informed decisions about hospital admissions.&lt;/p&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/metrosmash/Hospital_LOS_Predictor/assets/screenshots/index.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fmetrosmash%2FHospital_LOS_Predictor%2Fassets%2Fscreenshots%2Findex.png" alt="Dashboard Preview"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;📋 Overview&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;This predictor dashboard was built using the &lt;strong&gt;Hospital Inpatient Discharges (SPARCS De-Identified) 2017&lt;/strong&gt; dataset released by the New York State Department of Health. The platform addresses a real-world scenario: when patients or their relatives visit hospitals, they can predict the expected length of stay based on clinical, demographic, and facility factors.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Why This Matters&lt;/h3&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;For Patients &amp;amp; Families&lt;/strong&gt;: Plan work leave, childcare, and financial arrangements&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;For Hospitals&lt;/strong&gt;: Optimize bed management and discharge planning&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;For Healthcare Administrators&lt;/strong&gt;: Resource allocation and capacity forecasting&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;For Researchers&lt;/strong&gt;: Explore social determinants of health and disparities in care&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;✨ Features&lt;/h2&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;🗺️ &lt;/h3&gt;…&lt;/div&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/metrosmash/Hospital_LOS_Predictor" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;




&lt;p&gt;*&lt;em&gt;Thank you for your time *&lt;/em&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>html</category>
      <category>programming</category>
      <category>python</category>
    </item>
  </channel>
</rss>
