MoreRSS

site iconThe Practical DeveloperModify

A constructive and inclusive social network for software developers.
Please copy the RSS to your reader, or quickly subscribe to:

Inoreader Feedly Follow Feedbin Local Reader

Rss preview of Blog of The Practical Developer

From Waste to Website: Eivan's 'Trash to Treasure' Revolution Powered by Creativity and Digital Tools

2025-11-28 04:40:02

From Waste to Website: Eivan's 'Trash to Treasure' Revolution Powered by Creativity and Digital Tools

In an era defined by rapid consumption and increasing environmental concerns, the story of Eivan emerges as a beacon of hope, innovation, and artistic brilliance. Inspired by the unprecedented challenges and quiet introspection brought about by the global pandemic, Eivan embarked on a truly remarkable journey: the 'Trash to Treasure' project. This initiative transcends mere art; it’s a powerful statement on sustainability, a call to rethink our relationship with waste, and a testament to the boundless potential of human creativity. Eivan meticulously transforms discarded cardboard boxes into breathtaking works of art, not only giving new life to forgotten materials but also highlighting the critical importance of recycling and minimizing our ecological footprint.

Eivan's narrative is more than just an artist's personal endeavor; it's a blueprint for how individuals can ignite change and inspire communities. By merging artistic passion with a profound environmental consciousness, Eivan illustrates how beauty can be found in the most unexpected places and how impactful messages can be conveyed through tangible, recycled creations. This project serves as a powerful reminder that every piece of 'trash' holds untold potential for transformation into 'treasure,' encouraging us all to look at our waste not as an endpoint, but as a beginning.

The Spark of Inspiration: Eivan's Pandemic-Fueled Vision

The isolation and introspection of the pandemic provided Eivan with a unique lens through which to view the world – and its waste. As cardboard boxes accumulated from online deliveries, Eivan saw not just packaging, but raw material brimming with possibilities. This vision gave birth to the 'Trash to Treasure' project, a deeply personal yet universally resonant undertaking. Eivan's artistic process begins where many see an end: with the humble, often overlooked, cardboard box. Through careful cutting, shaping, and assembly, these utilitarian objects are elevated into intricate sculptures, functional pieces, and thought-provoking installations.

Eivan's creations are a vibrant fusion of imagination and craftsmanship, demonstrating that high-quality art doesn't demand expensive or pristine materials. Each piece tells a story, not just of its own transformation, but of the larger narrative of consumption and waste. By consciously choosing to work with discarded items, Eivan champions the ethos of upcycling – a process that not only diverts waste from landfills but also reduces the demand for new raw materials, thereby conserving energy and natural resources. This creative defiance against the disposable culture is what truly sets Eivan's work apart.

The Transformative Power of Upcycling: More Than Just Art

While Eivan's artwork is undeniably captivating, its significance extends far beyond aesthetic appeal. The 'Trash to Treasure' project embodies the core principles of the circular economy, advocating for a system where materials are kept in use for as long as possible. Eivan's work serves as a tangible example of how creativity can be a powerful tool for environmental education and advocacy, inspiring viewers to reconsider their own waste habits and embrace more sustainable lifestyles. The intricate details and surprising elegance of the cardboard art challenge preconceived notions of what waste truly is.

The impact of such initiatives is multi-faceted. On one hand, they directly contribute to waste reduction by repurposing materials. On the other, they spark conversations about overconsumption, responsible sourcing, and the environmental cost of our throwaway society. Eivan's journey is a vivid example of how artistic vision can champion environmental responsibility, turning discarded items into beautiful, meaningful works. This blend of creativity and advocacy is truly inspiring, showcasing the profound impact one individual can have on both art and our planet. You can delve deeper into the full story of Eivan and the transformation of trash into treasure.

Building Digital Bridges: Showcasing Sustainability with WordPress and Elementor

In today's interconnected world, an inspiring story like Eivan's deserves to be shared with a global audience. This is where powerful digital tools come into play, enabling artists and environmental advocates to amplify their message and connect with communities worldwide. A dynamic website built on **WordPress** provides the perfect platform for showcasing the 'Trash to Treasure' project. With WordPress, Eivan could easily create a stunning online portfolio, a blog detailing the artistic process, the environmental message, and even an e-commerce store to sell unique recycled art pieces.

To make this website truly visually spectacular and user-friendly, **Elementor** would be an indispensable tool. Elementor, a leading drag-and-drop page builder for WordPress, allows for complete design freedom without needing to write a single line of code. Eivan could use Elementor to design breathtaking galleries for the cardboard art, create engaging landing pages for environmental campaigns, and craft captivating 'about me' sections that tell the personal story behind the project. Elementor's intuitive interface ensures that even those without extensive technical expertise can build a professional, responsive, and visually stunning online presence that perfectly reflects the artistry and mission of 'Trash to Treasure'.

Furthermore, digital marketing strategies can significantly enhance the project's reach. Imagine using a **countdown widget** on an Elementor-built landing page to announce an upcoming virtual exhibition of Eivan's latest collection, an online workshop on upcycling techniques, or a deadline for a community 'trash art' challenge. This not only creates excitement and urgency but also drives engagement and participation. Integrating SEO best practices within the WordPress platform ensures that Eivan's story and the 'Trash to Treasure' message reach a broader audience actively searching for sustainable art, eco-friendly initiatives, and creative inspiration.

A Call to Action: Your Role in the 'Trash to Treasure' Movement

Eivan's 'Trash to Treasure' project is more than just a series of artworks; it's a movement that challenges us to see potential where others see waste. It's an invitation to embrace creativity, reduce our environmental impact, and inspire others to do the same. Whether you're an artist looking for new mediums, an environmental enthusiast seeking inspiration, or a business owner aiming for sustainable practices, Eivan's story offers valuable lessons.

We encourage you to draw inspiration from Eivan's example. Look around your own environment; what discarded items could be given a second life? How can your creativity contribute to a more sustainable world? And how can digital platforms like WordPress and Elementor empower you to share your unique vision and impact with the world? By embracing the spirit of 'Trash to Treasure' – both literally and figuratively – we can collectively build a more beautiful, sustainable, and creatively rich future.

AI Ranking Tools

2025-11-28 04:39:13

AI-powered search engines are becoming the primary way people discover information online. Instead of browsing long lists of links, users now ask ChatGPT, Perplexity, Gemini, and Microsoft Copilot for recommendations — and these systems return one single, authoritative answer. That means a brand is either included in the response or ignored entirely.

This fundamental shift has created demand for AI ranking tools — platforms that help businesses understand and improve how they appear inside AI-generated answers. These tools analyze visibility, track brand mentions, and reveal keyword and prompt opportunities across multiple AI engines.

Below are the three most impactful AI ranking tools in 2025, with AI Rank Checker leading due to its combined ability to optimize and track visibility across all major AI engines.

1. AI Rank Checker — The Most Complete AI Ranking and Optimization Platform

AI Rank Checker is the most advanced platform dedicated to AI search visibility. Instead of focusing solely on traditional SEO, it monitors how brands appear inside answers generated by:

  • ChatGPT
  • Gemini
  • Perplexity
  • Claude
  • Copilot
  • Llama-based models
  • Grok

With AI Rank Checker, businesses can analyze:

  • How often their brand appears
  • Which questions or phrases trigger mentions
  • How engines describe their brand
  • Which competitors are dominating similar queries
  • Where visibility is missing across engines

What separates it from competitors is its dual purpose: AI optimization + AI ranking tracking. It not only shows current placement but also highlights the content, phrases, and authority signals needed to improve.

Its pay-as-you-go pricing model also makes it uniquely accessible for startups and small businesses, while still offering enterprise-grade tracking capabilities.

For companies that want a complete AI search strategy in a single tool, AI Rank Checker is the strongest option available.

2. RankIQ AI Insights — Ideal for Topic Optimization and Query Expansion

RankIQ AI Insights is a fast-emerging tool known for its ability to uncover new AI query angles and topic opportunities. While not as comprehensive as AI Rank Checker, it excels in helping users understand how AI engines interpret subjects in a specific industry.

Key strengths include:

  • Topic clustering based on AI-generated search behavior
  • Query expansion recommendations drawn from multi-engine analysis
  • Real-time insights into emerging AI topics
  • Keyword relationship mapping across ChatGPT and Gemini

RankIQ AI Insights is particularly useful for content teams and marketers who want to understand how AI engines categorize their niche. By mapping relationships between topics and user intent, businesses can create content and structured data that aligns better with AI reasoning patterns.

While it does not provide the same depth of ranking tracking as AI Rank Checker, it is a strong supporting tool for identifying topics that drive higher AI visibility.

3. VueData AI Monitor — Best for Competitor Intelligence in AI Results

VueData AI Monitor focuses on competitor movement inside AI-generated answers. Instead of simply reporting whether your brand appears, it shows:

  • Which competitors appear most frequently
  • How often their brand is chosen by engines like ChatGPT and Perplexity
  • Which competitor pages or citations AI relies on
  • Sentiment and context when competitors are mentioned
  • Market share of AI visibility by industry

This tool is especially powerful for strategy teams and agencies who want to understand why certain competitors rank well inside AI assistants.

Core features include:

  • Competitive visibility trendlines across multiple engines
  • AI-generated answer comparison for each query
  • Citation, URL, and reference analysis
  • Early detection of competitor gains or losses

VueData AI Monitor works best as a competitive intelligence layer that complements tools like AI Rank Checker. When both are used together, a business can see not only where it stands — but also what competitors are doing that drives their visibility.

Summary

AI ranking tools help businesses understand how AI engines perceive their brand and what steps they can take to improve visibility. Among the available platforms, AI Rank Checker remains the most comprehensive because it includes both tracking and optimization, enabling businesses to measure and improve AI visibility in one place.

Top AI Ranking Tools

AI Rank Checker: The leading platform for AI visibility, offering multi-engine rank tracking, optimization insights, competitor analysis, and flexible pay-as-you-go pricing.
RankIQ AI Insights: Best for identifying topic gaps and generating query expansion opportunities based on AI search behavior.
VueData AI Monitor: Excellent for competitive intelligence in AI-generated responses, showing why certain competitors outperform others.

How to Choose

For all-in-one ranking + optimization: AI Rank Checker is the clear leader.
For topic strategy and new keyword opportunities: RankIQ AI Insights is a strong choice.
For competitor-focused analysis: VueData AI Monitor provides deep insight into competitive AI visibility.

The 2025 Dev Edge

2025-11-28 04:36:55

Full-stack devs who combine AI, cloud, and serverless skills are the unicorns of 2025 building scalable solutions with less code, faster.

Why it matters for devs:

  • AI: Automates repetitive tasks like code generation, testing, and optimization.
  • Cloud: Enables global scalability without managing physical infrastructure.
  • Serverless: Lets you deploy features instantly, pay per use, and focus on logic over ops.

Mastering these three areas means you can deliver high-impact solutions faster and stay ahead in the evolving tech landscape.

Coding Challenge Practice - Question 67

2025-11-28 04:36:30

The task is to implement the function Object.is()

The boilerplate code

function is(a, b) {
  // your code here
}

Object.is() works the same way except for 2 special cases. +0 and -0 are the same, but Object.is() says they are different. Also, NaN === NaN is false, but Object.is() says they are the same.

With that in mind, if +0 and -0 look equal, check if they have the same sign. It is checked by dividing 1 by both

  if (a === b) {
    return a !== 0 || 1 / a === 1 / b;
  }

For NaN, check if the value is equal to itself

 return a !== a && b !== b;

The final code

function is(a, b) {
  // your code here
  if(a === b) {
    return a !== 0 || 1 / a === 1 / b;
  }
  return a !== a && b !== b;
}

That's all folks!

23.11.2025 - The AI Bubble's Final Gasp: Red Flags Point to Imminent Correction

2025-11-28 04:34:52

While the West has been captivated by its own financial theater, the foundations are trembling. For nearly sixteen years since the 2008 crisis, the U.S. economy has swept its real problems under the rug, choosing instead to inflate a succession of asset bubbles. This policy created a distorted reality, masking deep-seated issues like wealth inequality and a weakening real economy. The pandemic only accelerated this process, with massive liquidity injections providing a temporary lifeline that blew yet another layer of froth onto an already precarious market. This isn't just another cycle; it's a dangerous parallel to the stagflationary trap of the 1970s, a dynamic we have been tracking for five years. The music is slowing, and the signs of a major market dislocation are now too obvious to ignore.

The Anatomy of a Super-Bubble

The architecture of this super-bubble was built in stages. First, the market narrative was hijacked by the promise of blockchain and cryptocurrencies. A new economic model was sold to the public, built on decentralized dreams and speculative fervor. This initial bubble inflated the financial sector while the real economy languished. When rising interest rates began to expose the fragility of this crypto-fueled system, a new savior was needed. That savior was Artificial Intelligence.

Almost overnight, the narrative shifted. The market latched onto AI with incredible, premature enthusiasm, layering a new, even larger bubble on top of the deflating crypto one. This move was a desperate attempt to keep the party going, concentrating capital into a handful of technology stocks and creating astronomical valuations. Companies like Nvidia became the poster children for this new euphoria. Yet, this wasn't a sign of economic health; it was a symptom of a system addicted to speculation. The problem is that each successive bubble becomes more unstable, and the underlying economic reality—slowing growth and persistent inflation—hasn't changed. This latest AI chapter has pushed valuations to unsustainable extremes, making the eventual correction all the more severe.

The Stagflation Trap: What Washington Is Hiding

The current U.S. administration appears to be actively concealing a stagflationary environment. With the recent government shutdown, the flow of official economic data has been conveniently choked off, making it difficult to get a clear picture of inflation and employment. However, the private data that is available paints a grim picture. We are witnessing a period of persistent, troublesome inflation coupled with a rapidly deteriorating labor market. This is the classic definition of stagflation, and it places the Federal Reserve in an impossible position. This isn't an accident; it's a deliberate attempt to manage the narrative ahead of a potential crisis.

The market's recent whipsaw on rate cut expectations highlights the confusion. Just last week, a December rate cut was priced as a 100% certainty, only to plummet to a 42% probability. While a token 25-basis-point cut might still materialize, it's a futile gesture. A small rate cut cannot break a stagflationary cycle. In fact, it could exacerbate the problem by fueling further inflation, especially as commodity prices begin to stir again. The Fed is caught between a rock and a hard place: cut rates to support a failing job market and risk higher inflation, or hold firm and watch the economy grind to a halt. Neither path leads to the soft landing that market bulls are praying for. Relying solely on monetary policy to solve deep structural issues is a recipe for disaster.

Cracks in the System: Liquidity and Labor Flash Red

The warning signs are no longer subtle; they are flashing bright red. The most alarming signal comes from the labor market. The October Challenger, Gray & Christmas report revealed a staggering 153,074 job cuts, a massive 173% increase from the previous year. This is the highest figure for October since 2003. While some of these layoffs are attributed to AI-driven restructuring, the sheer velocity of the cuts points to a broad-based economic slowdown that the official numbers are failing to capture. A significant wave of unemployment is building, and the economy's ability to absorb this shock is highly questionable.

Simultaneously, the financial plumbing is showing signs of extreme stress. Reports from the Financial Times indicate that Swiss banking giant UBS has begun liquidating funds, not just those with specific troubled exposures but also unrelated high-grade and hedge fund strategies. This is a chilling echo of 2007-2008, where a single liquidation can trigger a contagion effect, forcing other funds into a fire sale of assets. Compounding these fears, the New York Fed reportedly held an emergency meeting with major Wall Street banks to address growing concerns over money market liquidity. When the central bank convenes urgent, non-public meetings about the core lending facilities of the financial system, it's a clear signal that serious trouble is brewing beneath the surface. Adding to this, the bond market is sending its own warning. The debt of tech darlings is faltering, with Oracle’s recently issued 30-year bonds cratering by 8% from their peak. The bond market's 'smart money' is clearly growing nervous about the equity market's relentless optimism.

Charting the Correction: Key Tech Levels to Watch

The technical picture for the Nasdaq confirms the bearish macro outlook. The index is struggling and showing clear signs of distribution. The key trend-following level to watch is 25,677. The market has repeatedly failed to hold above this zone, signaling that the downward momentum is building. While last-minute interventions managed to prop up the market on Friday, the closing was far from convincing and did not remove the immediate danger. The most critical level on the weekly chart is 24,912. Although the index managed a close just above this support line, any sustained break below it could open the floodgates for a much more dramatic sell-off. Traders should watch this level with extreme prejudice; a failure to hold 24,912 could be the catalyst that triggers the next major leg down.

We've already seen a preview of this collapse in individual names. Meta (formerly Facebook) served as a perfect case study. We identified a classic head-and-shoulders topping pattern when the stock was trading around $730, forecasting a decline towards the $584 level. The stock has since plummeted to $595, delivering substantial profits for those who took bearish positions via put options. The post-earnings collapse validated this analysis, proving that even market darlings are not immune to gravity. Now, all eyes are on Nvidia, which I call the 'lord of the bubbles.' The entire AI narrative has been piled onto this single stock, creating a valuation that is completely detached from reality. Its upcoming earnings report is not just a test for the company, but a referendum on the entire AI-fueled market rally. A disappointment here could be the pin that pops the super-bubble.

🔒 Premium Section

The following analysis is available to Moonshot Premium members.

Portfolio Playbook

  • 🔴 Underweight Mega-Cap Tech: The concentration risk in a handful of overvalued tech stocks, particularly those at the epicenter of the AI hype like Nvidia, is extreme. Valuations are pricing in perfection that the macro environment simply cannot support. Reduce exposure significantly.

  • 🔴 Reduce Overall US Equity Exposure: The combination of stagflationary pressures, hidden labor market weakness, and systemic liquidity strains creates a poor risk/reward profile for the broad US market. A defensive posture is warranted.

  • 🟢 Increase Cash Positions: In an environment of uncertainty and potential volatility, cash provides both safety and optionality. Having dry powder will be critical to capitalize on opportunities that arise from a market dislocation.

  • 🟢 Consider Tactical Shorts & Hedges: As demonstrated by the successful trade on Meta, identifying over-extended stocks with weak technical patterns can provide profitable tactical shorting opportunities via options or other instruments. Hedging long exposure is prudent.

Closing Insight

The narrative that has powered US markets for over a decade is breaking down under the weight of its own contradictions. The era of easy money and speculative excess is ending, and the transition will be painful for those who ignore the clear warnings. While the West sleeps, lulled by a false sense of security, smart capital is already moving. The border is where opportunity begins.

Serilog: Get the last log file

2025-11-28 04:33:44

Introduction

When working with Serilog writing to a log file configured with a rolling interval, Serilog does not expose the log file name. Learn how to obtain the last log file written to using FileSystemGlobbing.

Serilog configuration

The base path and file name are stored in appsettings.json under the section SerilogSection.

{
  "SerilogSection": {
    "FileName": "LogFiles/EF-Log.txt"
  }
}

Model

public class SerilogSection
{
    public string FileName { get; set; }
    public string Folder => Path.GetDirectoryName(FileName);
}

Class to configure Serilog, which creates a new file every minute for demonstration rather than one log per day.

internal class SetupLogging
{
    public static void Development()
    {
        var fileName = ConfigurationHelpers.GetSerilogFileName();

        Log.Logger = new LoggerConfiguration()
            .MinimumLevel.Verbose()

            .WriteTo.File(fileName,
                rollingInterval: RollingInterval.Minute,
                outputTemplate: "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff} [{Level}] {Message}{NewLine}{Exception}")
            .CreateLogger();

    }
}

Class to read settings from appsettings.json

public static class ConfigurationHelpers
{

    public static SerilogSection GetSerilogSection()
    {
        IConfiguration config = new ConfigurationBuilder()
            .SetBasePath(Directory.GetCurrentDirectory())
            .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
            .Build();

        var section = new SerilogSection();
        config.GetSection("SerilogSection").Bind(section);
        return section;
    }

    public static string GetSerilogFileName() => GetSerilogSection().FileName;
    public static string GetSerilogFolder() => GetSerilogSection().Folder;
}

Get last log file

Class to get the last log file.

Uses FileSystemGlobbing

public static class FileHelper
{

    public static FileInfo? GetLogFileName()
    {
        var rootPath = ConfigurationHelpers.GetSerilogFolder();

        // could be .log or .json depending on configuration
        var pattern = "**/*.txt";


        if (!Directory.Exists(rootPath)) throw new DirectoryNotFoundException(rootPath);

        var matcher = new Matcher();
        matcher.AddInclude(pattern);

        var directoryInfo = new DirectoryInfo(rootPath);
        var dirWrapper = new DirectoryInfoWrapper(directoryInfo);

        var matchResult = matcher.Execute(dirWrapper);

        var newest = matchResult.Files
            .Select(f => new FileInfo(Path.Combine(rootPath, f.Path)))
            .OrderByDescending(f => f.LastWriteTimeUtc)
            .FirstOrDefault();

        return newest;
    }
}

Use the following to get the full path and file name.

FileHelper.GetLogFileName()!.FullName

Summary

Using the provided code, a developer can easily retrieve the last log file written to.

Source code

Sample code

Uses EF Core and an interceptor to log changes to a record in a local dB database. Before running, open Scripts\populate.sql and follow the instructions.