Tutorial on serving embedded resources in ASP.NET Core for debugging/simple scenarios, covering .csproj configuration and C# examples for accessing resources.
In .NET 9, please use Scalar. Add a dark theme to your ASP.NET Core Swagger UI. This guide provides two methods: serving a CSS file from wwwroot or using an embedded resource.
An opinion piece arguing that Mark Zuckerberg and the Metaverse project are moral failures, criticizing the investment of billions into a virtual world while real-world problems persist and discussing the ethics of directing vast wealth towards projects that don’t benefit humanity.
Configure ASP.NET Core routes to automatically follow method names using
[Route("[controller]/[action]")]
on the controller, reducing the need for individual route decorators and streamlining API development.
Since my yt-dlp propaganda on YouTube is getting many views, I thought I’d create this article and a future video on how to use yt-dlp to download audio from websites, primarily YouTube.
Troubleshooting
For most errors like 403: Forbidden, try upgrading yt-dlp.
pip install --upgrade yt-dlp
Installing yt-dlp
-
winget install yt-dlp
choco install yt-dlp
scoop install yt-dlp
-
brew install yt-dlp
-
-
sudo pacman -Syu yt-dlp --noconfirm
-
Exploring examples of perceived corruption in Canada, including government expenses, conflicts of interest, inter-provincial trade issues, and critiques of government spending and contracts.
An analysis arguing that internet pornography contributes to brain degeneration, particularly in young men, due to overstimulation. The post discusses psychological/social impacts and explores challenges and potential solutions for addressing porn addiction.
Comprehensive notes on International Strategy (BU 491), covering multinational enterprises, global integration vs. national responsiveness, worldwide competitive advantage, transnational organizations, innovation, cross-border collaboration, strategy implementation, and case studies.
Comprehensive notes for BU 473 Investment Management, covering asset classes, trading, risk and return, CAPM, APT, bonds, interest rates, financial analysis, options, and futures.
Comprehensive notes for BU 357 Taxation I, covering the Income Tax Act structure, residency, employment income, business income, property income, capital gains, taxable income calculation, tax credits, and sales tax.
Comprehensive notes for CS 490 Information Systems Management, covering IS fundamentals, architecture, planning, IT infrastructure, business processes, project management, and information security.
Notes for CS 492 Social Implications of Computing, exploring technology’s impact on society, privacy, security, communication, addiction, e-voting, and cryptocurrencies.
Sharing painful experiences with cross-platform mobile development frameworks (Uno, Flutter, React Native), highlighting issues and arguing for native development (Kotlin/Swift) as a more stable alternative despite writing code twice.
A concise tutorial on implementing JWT authorization in ASP.NET Core, with code examples for configuration, setup, token generation, and securing API routes.
An opinion piece analyzing a video of Steven Crowder’s interaction with his wife, arguing that his behavior constitutes emotional abuse based on a definition from the National Domestic Violence Hotline and discussing the understanding of abuse.
A concise step-by-step tutorial with screenshots on how to add a directory to the PATH environment variable on Windows using the graphical interface.
Comparing iOS and Android, arguing that Android has matched or exceeded iOS in many areas, leaving few compelling reasons for an iPhone beyond specific use cases, and discussing the broader Mac vs. Windows debate.
A detailed tutorial on installing and rooting PixelExperience ROM on OnePlus 6T, covering backup, tools, firmware upgrade, bootloader unlock, flashing (including dynamic partitions), Magisk rooting (SafetyNet), and troubleshooting common issues.
Proposing Fixed Seats Proportional Representation (FSP-R) as a novel electoral reform for Canada, combining PR, FPTP, and ranked ballots to ensure every vote contributes to a proportional government body, with analysis of 2021 election data.
An analysis of the USDC de-pegging event in March 2023, arguing that the drop below 1:1 USD was primarily due to panic selling rather than fundamental risk, and discussing the author’s perspective on the Silicon Valley Bank collapse.
A guide for developers on permanently disabling Windows Real-Time Protection to reduce unnecessary CPU usage. Learn how to install the Group Policy Editor and follow steps to turn off the protection.
Learn how to implement logging and use tracepoints in your Uno Platform applications for effective debugging and monitoring.
A fast Python method to convert XLSX files to CSV on Windows using
win32com.client
, requiring Microsoft Excel. Includes a Python function and basic command-line usage.
Get your local area network (LAN) IPv4 address using Python.
Recollections of childhood memories from living in Riyadh, Saudi Arabia around 2005-2006, including everyday moments, significant events, and cultural experiences.
Implement hyphen-separated (kebab-case) routes in ASP.NET Core 7.0 by creating a custom parameter transformer and adding it to your MVC conventions.
Learn how to serialize enums as strings in ASP.NET Core for consistent JSON handling on both the backend and client-side using
JsonStringEnumConverter
.
Handle optional JSON fields and serialize enums as strings in ASP.NET Core. Configure
JsonSerializerOptions
globally or use attributes for precise control over JSON output.
Configure your ASP.NET Core Web API project for debugging in Visual Studio Code using a custom
launch.json
file, enabling a native development experience.
Learn how to configure systemd services to be started, stopped, and restarted by a non-root user without requiring a password using sudoers.
An overview of key concepts from an introductory database management course, covering relational models, SQL, schema refinement, transactions, indexing, data analytics, and NoSQL systems.
Notes and concepts from a university-level operating systems course, covering topics like processes, threads, concurrency, scheduling, virtual memory, I/O, file systems, and more.
Implement a custom titlebar in your Tauri and ReactJS application, including handling window controls, translations, and ensuring rounded corners on Windows 11.
An exploration of the concept of greed, defining it as excessive wanting that negatively impacts others, and examining its manifestations in various aspects of life including finance, relationships, and personal desires.
Dive into JSON handling using serde within the context of the Rocket web framework.
Learn how to make network requests in Rust using the
reqwest
crate, handle JSON responses with serde_json
, and integrate requests within a Rocket web framework backend.
Get started with Rust programming by learning how to set up and manage projects using Cargo, including installation, project initialization, basic code, and compiling/running.
A guide for Windows developers to set up their environment and contribute to Monero projects like
monero
or monero-gui
without a Linux VM, covering prerequisites, VS Code setup, dependency installation, building, and contributing.
Troubleshoot and fix the ‘unable to get local issuer certificate’ SSL error when making HTTPS requests in Python, often caused by missing intermediate certificates in the server’s chain.
Discover essential VS Code extensions for developers, covering themes, icons, language support, Git integration, and various utility extensions to enhance your coding workflow.
Theorizes the potential of Universal Basic Income (UBI) to boost innovation and wages by offering financial security for R&D, and discusses related concepts such as patent law reform and merit-based funding.
Explore practical React.js tips for optimizing performance, managing state, and improving code structure. Learn about efficient object updates, using React Fragments, structuring props, leveraging Providers for contexts, advanced type comparisons, and effective cookie usage with useCookie. Discover insights on useLayoutEffect, persisting state with useRef, and forcing component updates.
An analysis of Pierre Poilievre’s key policies, including housing affordability, carbon tax, Bill C-69, disability benefits, and more.
Discover helpful JavaScript snippets for converting between Date objects and various YYYYMMDDHHMM string formats
A 5-year review of the OnePlus 6T, covering its durability, OxygenOS software features like Wi-Fi sharing via QR code, performance limitations with multitasking and camera, and the author’s reasons for upgrading.