Sign In

Blog Posts

All
Programming
Health & Fitness
Science
SaaS
Summary
etc
Build Log of MapleTing
Monitoring Android applications in real-time and getting notified when they crash or stop running is a critical need for game server operators, device managers, and app developers. I built MapleTing - a cross-platform monitoring and notification system that uses a native Android app for device monitoring and modern Web Push API for delivering notifications to users across all platforms. Architecture Overview The system follows a three-tier architecture: The Android app monitors applications directly on the device using native APIs, eliminating the need for ADB or complex setup. When a monitored app transitions from running to stopped (or vice versa), the server detects the state change and delivers push notifications to all subscribers via Web Push API. Technical Deep Dive: Android App Implementation The Android app is the most complex component, featuring real-time app state detection without any external dependencies. Let me break down the key architectural decisions. 1. Event-Driven Monitoring with AccessibilityService
  1. Programming
  2. SaaS
  • Shane
Detecting Android Emulator Crashes with Web Push: A Short but Insightful Project
I spent about 6 hours building a small project. The idea itself was simple, but it turned out to be a surprisingly rich technical exercise, so I wanted to write it up and share what I learned. GitHub repository: https://github.com/shanefully-done/mapleting Live domain: https://mapleting.vercel.app Problem Statement The goal was straightforward: When running a game on an Android emulator on a PC, if the game process crashes or exits, I want to detect that automatically and receive a notification — without having to constantly check the emulator manually. In short: detect disconnections and notify proactively. High-Level Architecture The system is composed of three main parts: A lightweight monitoring program running on the PC Uses ADB to periodically check whether a specific Android package is running A server that receives heartbeat and state-change events Tracks status per nickname A notification layer Sends push notifications to clients subscribed to a given nickname At a glance, this sounds trivial. In practice, some parts were much more subtle than expected.
  1. Programming
  2. SaaS
  • Shane
Startup Pricing Strategy
Pricing is one of the most critical decisions a startup founder can make. It directly affects revenue, profit margins, and market positioning, yet it's often one of the most uncertain areas. Early-stage founders frequently ask, What should we charge? The better question is, What value does our product deliver, and how do we communicate that value through price? For startups, getting the price right can significantly impact short-term cash flow and long-term sustainability. This guide focuses on how startups can develop a practical pricing strategy aligned with their goals, customers, and growth stage. The Startup Pricing Challenge For startups, pricing often feels like a guessing game. Founders worry about scaring away customers with high prices or undervaluing their products with low ones. Unlike established businesses with historical data, startups must balance assumptions about customer value with competitive dynamics and financial sustainability. The advantage: startups can test, iterate, and refine pricing early without legacy systems or expectations. Pricing is a process, not a one-time decision. Treating it as such helps you find the right balance over time.
  1. SaaS
  2. etc
  • Shane
Solving USB 3.0 Interference With 2.4GHz Wireless Devices
I recently ran into a frustrating issue: my wireless keyboard and mouse kept stuttering, disconnecting, or becoming completely unusable whenever they were connected near a USB 3.0 port. After digging around, I discovered the cause—USB 3.0 devices emit electromagnetic noise that overlaps with the 2.4GHz band. This directly interferes with wireless peripherals that rely on that frequency, leading to unstable connections. It’s not a defect in the peripherals themselves; it’s a byproduct of how USB 3.0 signaling works. The Fix The solution turned out to be straightforward: distance. By moving the wireless dongles away from USB 3.0 ports, the interference drops off quickly. I achieved this with a simple setup: A USB extension cable A dedicated USB hub running only USB 2.0 devices (keyboard, mouse, etc.) With the dongles plugged into the hub, far from direct USB 3.0 noise, everything works flawlessly again. Key Takeaway If you’re experiencing jittery or unresponsive 2.4GHz wireless peripherals near USB 3.0 ports, don’t blame your mouse or keyboard. It’s likely electromagnetic interference. A short USB extension cable or a hub dedicated to 2.0 devices can eliminate the issue.
  1. etc
  • Shane
Protein for Satiety: More Isn't Always Better
You've likely heard that protein is more satiating than carbs or fats. While this is often true, the context matters, especially for strength-trained individuals already consuming adequate protein for muscle growth. The question isn't just "does protein make you feel full?" but "does more protein make you feel fuller once you're already meeting your muscle-building needs?" Our Study: High Protein vs. Even Higher Protein To investigate this, we conducted a randomized crossover study with strength-trained individuals. Participants followed a diet with a 20% energy deficit for a week, once consuming 1.8 grams of protein per kilogram (0.8 g/lb) of body weight per day (generally sufficient for muscle growth) and another time with a significantly higher intake of 2.9 g/kg (1.3 g/lb) per day. Our findings were clear: there were no significant differences between the two protein intakes in any measure of hunger (including fullness, desire to eat, and cravings), energy levels, mood, training enjoyment, or training motivation. We also observed no habituation effects, suggesting similar long-term outcomes.
  1. Health & Fitness
  • Shane
How Much Protein Do You Really Need for Muscle Growth?
Protein is fundamental for building muscle, and there's a general consensus that strength trainees benefit from a high-protein diet. However, the idea that "more is always better" isn't necessarily true. So, what's the optimal amount? The Science Behind Protein Intake Early research and nitrogen balance studies, once considered the gold standard, suggested that exceeding 1.6 grams per kilogram (0.72 grams per pound) of body weight per day showed no significant additional benefits for muscle growth, strength development, fat loss, or muscle protein synthesis. Based on this, a daily target of at least 1.8 g/kg was often recommended, with a statistical margin of safety. A 2017 meta-analysis, co-authored with leading fitness researchers, further supported this. It identified a cutoff point at exactly 1.6 g/kg (0.72 g/lb) per day beyond which no further gains in fat-free mass were observed. While the statistical significance of this breakpoint was close (p = 0.08) and the 95% confidence interval extended to 2.2 g/kg/d (1 g/lb/d), it suggests that some small benefits might exist for certain individuals at higher intakes.
  1. Health & Fitness
  • Shane
Low-Carb Dieting, Testosterone, and Carb Cycling for Men: Hormonal Trade-Offs and Muscle Strategy
Low-carb diets can be effective for fat loss, but very restrictive versions (around 50g net carbs/day) may lead to increased Sex Hormone Binding Globulin (SHBG), potentially reducing free testosterone and hindering muscle growth. High-protein versions of low-carb diets (protein ≥35% of calories or >3.4g/kg/day) can directly lower total testosterone. Moderate-carb diets (150-200g/day) or strategic carb cycling may offer a better balance for hormonal health and muscle building. I. Introduction 1.1 Relevance to Men on Low-Carb Diets Low-carbohydrate diets have gained significant popularity among men seeking effective strategies for fat loss, improved metabolic health, and enhanced body composition. These diets, often characterized by a daily carbohydrate intake of less than 50 grams or a significant reduction in the percentage of total daily calories derived from carbohydrates, promise rapid weight reduction and better control over appetite and blood sugar levels , . However, for men who are not only focused on shedding excess body fat but are also keen on preserving or even building muscle mass and maintaining optimal hormonal balance, the implications of such dietary restrictions extend beyond simple calorie counting. The primary concern addressed in this lecture is the potential impact of low-carbohydrate diets on male hormonal physiology, particularly concerning testosterone levels and its bioavailability. Testosterone, a crucial hormone for men, plays a vital role in muscle protein synthesis, libido, mood regulation, bone density, and overall vitality. Therefore, understanding how dietary choices, specifically carbohydrate intake, influence testosterone production, its binding proteins like Sex Hormone Binding Globulin (SHBG), and the resulting free, biologically active testosterone is of paramount importance for this demographic. The audience for this lecture consists of men who are currently following or considering low-carbohydrate dietary approaches, such as ketogenic or carnivore diets, and are looking to navigate the potential hormonal trade-offs to achieve their body recomposition goals effectively and sustainably.
  1. Health & Fitness
  2. Science
  • Shane
The Critical Link Between Sleep and Your Physique
We often hear that sleep is important, but its impact on our body composition is frequently underestimated. Beyond how you feel or how your brain functions, sleep plays a crucial role in determining whether you gain muscle or lose fat effectively. The Science of Sleep and Body Composition Several studies highlight just how significant sleep is for your physique: Fat Loss vs. Muscle Loss: A randomized crossover trial by Nedeltcheva et al. (2010) found that individuals sleeping around 5 hours per night, compared to 7.5 hours, saw a 55% decrease in the proportion of weight lost as fat and a 60% increase in fat-free mass (muscle) loss. Specifically, fat loss dropped from 1.4 kg (3.1 lb) to 0.6 kg (1.3 lb), while fat-free mass loss increased from 1.5 kg (3.3 lb) to 2.4 kg (5.3 lb). Even Minor Deprivation Has Major Effects: A study by Wang et al. (2018) showed even more drastic results. Losing just 40 minutes of sleep during the midweek shifted the ratio of lean to fat mass loss from approximately 20% lean mass loss to a staggering 80% lean mass loss.
  1. Health & Fitness
  • Shane
1
utilsfor.dev - Fast Browser Based Dev Tools
Summary utilsfor.dev offers fast, free, browser‑based dev tools covering 18+ utilities for everyday programming and privacy. Key Takeaways Provides 18+ tools including UUID, password, JSON, base64, cron, regex, QR code, gradients. Fully client‑side; no data leaves browser—ensures privacy and zero tracking. Lightning‑fast performance via local JavaScript/WebAssembly execution. Tools remain free with no feature limitations or subscription prompts. Consistent UI and clipboard integration make tool‑to‑tool chaining seamless. UUID tool supports RFC‑4122 versions v1–v5 with batch generation options. CRON parser converts expressions to human‑readable schedules with extended syntax. JWT decoder displays token claims client‑side without network calls. Gradient generator previews CSS gradients and exports production‑ready code. Offline support: most tools (e.g. QR, password) work without internet post‑load. Conclusion Centralizes essential developer utilities in a single, privacy‑focused platform.
  1. Programming
  2. SaaS
  • Shane
Cost-effective vibe coding setup with Gemini and OpenRouter
Here’s a quick overview of the cost-effective setup I’ve been using lately: VS Code Roo Code extension Modes: Orchestrator: Gemini 2.5 Flash, Gemini 2.5 Pro, DeepSeek V3 0324 Other modes: Gemini 2.0 Flash (via OpenRouter) Key Points: Gemini 2.5 Flash, used as the orchestrator, can be accessed using a free API key from Google AI Studio. It has a large context window and strong performance, making it ideal for overseeing the overall workflow. For code editing or debugging, a slightly less powerful model still works fine. If you top up just $10 on OpenRouter, your rate limit is relaxed — even if you don’t use it. This allows you to use models tagged with :free at no cost. Additionally, if you enter your Google AI Studio API key in OpenRouter’s Integrations settings, it’s automatically used as a fallback.
  1. Programming
  • Shane
OpenAI’s Claude Code: Understanding Codex and codex-mini
Claude Code offers features similar to OpenAI’s Codex, allowing users to leverage AI agents for coding within a terminal environment. Recently, OpenAI has expanded its ecosystem by releasing codex-mini, a model specialized for coding tasks. This article explores the core features and characteristics of Codex and codex-mini, their relationship with Claude Code, and their potential applications in development environments. Codex: A New Frontier in AI Coding Codex is an AI model developed by OpenAI that understands natural language commands and can generate, modify, or complete code. It helps developers automate the initial stages of code writing and handle complex tasks more efficiently. Supporting multiple programming languages, Codex contributes to improving both the quality and efficiency of code. Key features of Codex include: Natural Language Understanding: It interprets user instructions in natural language to generate code, making it accessible even to beginner coders. Code Generation: It writes code to perform specific functions or generates new code based on existing code.
  1. Programming
  • Shane
Kilo Code: a combination of Cline and Roo?
Kilo Code is making waves in the developer community as an open-source AI agent extension for Visual Studio Code. But what exactly is it, and what makes it stand out in a crowded field? This article delves into the features, benefits, and potential of Kilo Code, offering a professional perspective on this intriguing tool. Core Features and Functionality Kilo Code distinguishes itself by aiming to be a comprehensive AI coding assistant, integrating features found in other popular tools like Cline and Roo. The extension boasts several key modes designed to streamline the coding process: Orchestrator Mode: This mode tackles complex projects by breaking them down into manageable subtasks. This is a valuable feature for managing intricate coding tasks, enhancing project organization, and improving code quality. Architect Mode: Before writing a single line of code, this mode allows developers to design elegant solutions. This proactive approach can significantly reduce development time and improve the overall structure of a project, leading to more maintainable code.
  1. Programming
  • Shane
How I Created a Secure, Bidirectional Network Without Installing Extra Hardware
For a recent project, I needed a secure way to access a development environment running on a mobile setup, while still allowing that environment to communicate back with a client system at home. The catch? I couldn’t rely on traditional port forwarding or dynamic DNS, and I didn’t want to set up or maintain a dedicated device like a Raspberry Pi, VPN server, or Pi-hole. After exploring several networking solutions, I found a surprisingly simple and elegant answer: ZeroTier. 🛠 The Problem I had two devices: One at home, behind NAT and a dynamic IP. Another on the go, where I had no control over the router or firewall. Both needed to connect to each other reliably — and in both directions. Traditional methods like reverse SSH tunnels or manually configuring a VPN were either fragile, high-maintenance, or required additional hardware acting as an always-on relay. ✅ The Solution: ZeroTier ZeroTier creates a virtual LAN over the internet. Once both devices are joined to the same virtual network, they can communicate as if they were on the same local network — regardless of where they are in the world.
  1. Programming
  2. SaaS
  • Shane
Plant-Based vs. Animal-Based Protein for Muscle Protein Synthesis: A Deep Dive
Skeletal muscle is a dynamic tissue, constantly rebuilding itself through a balance between protein synthesis (MPS) and breakdown. This balance is crucial for muscle growth and maintenance, and it's heavily influenced by our diet, exercise habits, and overall health. Protein intake plays a central role in stimulating MPS, with amino acids acting as the building blocks and triggers for this process. Recent trends towards plant-based diets raise important questions about whether these protein sources can effectively support muscle protein synthesis compared to traditional animal-based proteins. Let's delve into the current research to provide a comprehensive overview. Understanding the Role of Protein and Amino Acids The impact of protein ingestion on MPS is a well-established concept. Factors like how quickly a protein digests, how well amino acids are absorbed, and the availability of these amino acids in the bloodstream all influence MPS. After eating a protein-rich meal, MPS can jump by 30-100%, leading to a positive net muscle protein balance.
  1. Science
  2. Summary
  • Shane
Leveraging Shell Aliases and Functions in Lazygit for Enhanced Workflow
Lazygit, a terminal UI for Git, provides a command prompt (accessed with :) that allows you to execute shell commands without leaving the application. A common desire among users is to seamlessly integrate their existing shell aliases and functions within this environment. This integration significantly streamlines your workflow, letting you leverage familiar commands and custom scripts directly from within Lazygit. Let's explore how to make this happen. Configuring Lazygit to Recognize Your Shell Aliases and Functions The key to integrating your shell shortcuts with Lazygit lies in configuring the shellFunctionsFile option within Lazygit's configuration. This setting tells Lazygit where to find the definitions of your aliases and functions. To set this up, you will need to edit the Lazygit configuration file. The location of this file depends on your operating system and how you installed Lazygit. Refer to the Lazygit documentation for the exact location. Within this file, locate or add the os: section, and then specify the shellFunctionsFile option. This configuration might look like this:
  1. Programming
  • Shane
Cursor for Visual Communication, beyond slides
PageOn.AI 2.0: Revolutionizing Visual Communication Are you tired of the same old static slides? In a world where visual communication is key, the way we present information can make or break our message. PageOn.AI 2.0 emerges as a potential game-changer, promising to transform how we create and share visual content. It's not just about slides anymore; it's about building dynamic, engaging pages that capture attention and deliver your message effectively. Beyond Slides: Introducing Dynamic Pages PageOn.AI 2.0 aims to move beyond the limitations of traditional slide presentations. Imagine a tool that takes your goals and, with the help of AI, crafts compelling visual narratives. Instead of spending hours designing, researching, and formatting, users can leverage AI agents to plan, research, and design stunning pages. The core idea is simple: you provide the objective, and the AI handles the heavy lifting, creating what they call a "Visualized Notion for Storytellers." The core concept behind PageOn.AI 2.0 is likely to offer a more interactive and dynamic approach to visual communication. The platform may allow users to build presentations like building blocks, a bit like visual Legos. This "Lego-like" approach allows for flexibility, and the AI component ensures that the visuals are compelling and optimized for impact.
  1. SaaS
  • Shane
Discover the Impact of Time-Restricted Eating on Weight Loss in Obese Adults: Groundbreaking Study Results
In recent years, time-restricted eating (TRE) has gained significant attention as a potential strategy for weight loss and improved metabolic health. A recent randomized controlled trial investigated the effects of isocaloric, time-restricted eating on body weight in adults with obesity, offering new insights into this popular dietary approach. Study Overview The study, conducted over a 12-week period, aimed to explore whether restricting the eating window, without reducing caloric intake, would impact weight loss and metabolic health in obese adults. Participants were divided into two groups: one group consumed their daily calories throughout the day, while the other group consumed 80% of their daily calories before 1 PM. Key Findings No Significant Weight Loss Difference: The results indicated that there was no significant difference in weight loss between the two groups. Both groups experienced similar weight reductions, suggesting that the timing of calorie intake alone does not play a critical role in weight loss.
  1. Science
  2. Summary
  • Shane
How Lower Repetition Training Boosts Performance as Effectively as Heavy-Resistance Lifts
In the realm of strength training and athletic performance, the concept of Post-Activation Potentiation (PAP) and Post-Activation Performance Enhancement (PAPE) has garnered significant attention. Recent research suggests that lower repetition training can offer performance benefits similar to those achieved through heavy-resistance lifts, such as those used in traditional 1-repetition maximum (1RM) training. This post delves into how utilizing lower repetitions can enhance performance effectively, offering practical insights for athletes and fitness enthusiasts. Understanding PAP and PAPE Post-Activation Potentiation (PAP) refers to the temporary increase in muscle contraction strength following a high-intensity exercise. Essentially, after engaging in a high-load resistance exercise, muscles experience enhanced performance in subsequent activities. Post-Activation Performance Enhancement (PAPE), a related concept, specifically highlights how certain exercises can temporarily boost strength and power.
  1. Science
  2. Summary
  • Shane
Extracellular Vesicles: The Hidden Messengers of Adipose Tissue in Obesity
In the complex world of obesity research, a groundbreaking study has unveiled fascinating insights into the role of extracellular vesicles (EVs) secreted by adipose tissue. This article delves into the key findings of a comprehensive research project that sheds light on how these tiny cellular messengers may hold clues to understanding and potentially treating obesity-related disorders. The Hidden World of Extracellular Vesicles Extracellular vesicles are minuscule membrane-bound structures released by cells, acting as crucial communication vehicles in our bodies. Recent research has revealed that adipose tissue, commonly known as fat, is a significant source of these vesicles. But what role do they play in obesity? Visceral Fat: A Prolific EV Producer One of the study's most striking findings is that visceral adipose tissue (VAT) - the fat surrounding our internal organs - secretes more EVs than subcutaneous adipose tissue (SAT), the fat just beneath our skin. This discovery is particularly significant because VAT is strongly associated with metabolic complications in obesity.
  1. Science
  2. Summary
  • Shane
Exploring the Efficacy of Intermittent and Long-Term Fasting for Weight Loss
Intermittent fasting (IF) and long-term fasting have garnered significant attention as potential strategies for weight loss and overall health improvement. With a plethora of information available, it can be challenging to discern the effectiveness of these fasting methods. This article delves into the scientific insights and practical considerations surrounding fasting for weight loss, particularly for a middle-aged male seeking to reduce body weight and enhance definition. Scientific Insights on Fasting and Weight Loss A comprehensive review by the International Society of Sports Nutrition, which examined various diet types including low fat, low carb, keto, and intermittent fasting, concluded that sustained caloric deficit is the primary driver of fat loss across all diets. The review emphasized: "There is a multitude of diet types and eating styles, whereby numerous subtypes fall under each major dietary archetype... Diets primarily focused on fat loss are driven by a sustained caloric deficit."
  1. Science
  2. Summary
  • Shane
more pain more gain 🚀
© 2024-2025 Shane "Lx". All rights reserved.
Made with Slashpage