Random snippets of all sorts of code, mixed with a selection of help and advice.
Hamburger Menu Button Not Working on My Website
13 January 2026 @ 3:33 am
The hamburger menu button appears correctly on mobile screens, and when I resize the window on desktop, but clicking it does nothing. I doubled checked my code, but I still can't figure out it's not working properly?
When clicking the hamburger button:
The sidebar (#navbar) should slide in from right to left
A semi-transparent overlay should appear over the main content
The page should stop scrolling
Clicking the X button, overlay, or pressing Escape should close the menu
<!DOCTYPE html>
<html>
<head>
<title>My Name</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="main.css" />
<script src="https://kit.fontawesome.com/7e13fffe62.js" crossorigin="anonymous"></scr
I cannot uninstall VS 2015
13 January 2026 @ 3:22 am
enter image description here
I cannot uninstall vs 2015 it says cannot be uninstalled because of the policy set by the organization. I really dont know what they are talkin about. I already set it as an administrator and try to uninstall but failed. I deleted my vs installer a long time ago too. I have been searching for answers but some are complex for me. Please help to uninstall this, I am freeing up storage space because my laptop could possibly go slower.
What data compression options and cost-optimization strategies does PolarDB offer? How do they compare in terms of cost, performance?
13 January 2026 @ 3:20 am
I'm evaluating Alibaba Cloud PolarDB (MySQL-compatible edition) for a production workload and want to understand the trade-offs between storage cost reduction and query performance. Specifically, I'd like to know:
Compression Options: What built-in or configurable data compression mechanisms does PolarDB support? For example:
InnoDB page compression
Transparent storage-level compression
Columnar or analytical storage formats with compression (e.g., for HTAP workloads)
Cost-Saving Strategies: Beyond compression, what other features can help reduce costs in PolarDB? Such as:
Choosing different ESSD storage types (e.g., ESSD AutoPL vs. PL1)
Using PolarDB Serverless for auto-scaling compute
Scaling read replicas elastically
Tiered storage or archiving cold data (e.g., to OSS)
Why do we need 1=1 in url sql injection?
13 January 2026 @ 3:12 am
I was doing the first PortSwigger SQL injection lab, where the goal is to display all “Gifts” products regardless of whether they are released or not.
The official solution is to inject the following payload via the URL parameters:
?category=Gifts' OR 1=1 --
Which results in the following injected query:
SELECT * FROM products
WHERE category = 'Gifts' OR 1=1 --' AND released = 1
Since OR 1=1 always evaluates to true, the WHERE clause becomes unconditional and all rows are returned.
What I don’t understand is why injecting only:
Gifts' --
does not produce the same result? Intuitively, commenting out the rest of the query should remove the AND released = 1 condition and return all “Gifts” products, no matter if they are released or not
Why is OR 1=1 necessary here? I am a beginner.
C code not detects SoundBlaster 16 sound card in QEMU
13 January 2026 @ 3:08 am
Good evening,
I'm trying to create a small 32-bit "operating system" in protected mode that plays music on a SoundBlaster 16 via QEMU/VirtualBox/Bochs on a Debian 13 host. In fact, that's all the program will do. I've created a routine to detect the sound card (it's still very simple; for now, it will only detect the card). If detected, it displays a message like "SoundBlaster 16 card detected"; otherwise, it displays an error message saying "SoundBlaster 16 card not found".
When I compile and link everything, the resulting file is disk.img.
The problem is that when I run QEMU with
qemu-system-i386 -drive format=raw,file=disk.img -m 64 -device sb16,audiodev=snd0 -audiodev alsa,id=snd0
The system starts up, but only displays an error message saying that the sound card does not exist.
(The timer is not implemented. But I think that's one of the problems, but not the main one, which is that it doesn't
TortoiseGit - Pull update in but retain my changes as being in the changed state?
13 January 2026 @ 2:55 am
I keep a copy of a github repository local using TortoiseGit on Windows. I have to make my own changes to some of the source and configuration files. Those changes show up in Windows with the icon showing change state. Perfect.
Now, it's a couple years later and I want to pull in the latest github version, but it says if I do it, all changes will be lost and I should commit first. I do that, then I pull in the changes and it auto merges or has conflicts to take care of. I resolve those. Now there are all kinds of files showing changes from the pull.
If I commit, then they all go green (no changes), but I want to commit all the pulled item so once again, only my changes show (with auto merge or the resolved merges). I guess I could pull in a fresh copy, then look at where my changes are, manually do a compare on those individual files, then manually make the adjustments, but that is time consuming.
Is there an easy way to do what I want automatically?
16 kb memory page size in flutter
13 January 2026 @ 2:45 am
I am trying to upload app in playstore. but first thing I do is building empty project flutter. my question is... is this safe enough for 16kb memory page size. Here is android/app/build.gradle.kts
plugins {
id("com.android.application")
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}
android {
namespace = "com.example.flutter_application_1"
compileSdk = flutter.compileSdkVersion
ndkVersion = "28.2.13676358"
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId =
Is UWB ranging feasible between Pixel Watch 4 and Pixel 6 Pro? (Jetpack UWB returns 'false')
13 January 2026 @ 2:29 am
I am trying to develop an application that performs UWB ranging between a Pixel Watch 4 and a UWB-compatible smartphone (specifically a Pixel 6 Pro). My goal is to measure the distance from the smartphone to the watch.
I attempted to implement this using the Jetpack UWB library on the Pixel Watch, but isAvailable (UwbManager) returns false. I have already verified the following:
AndroidManifest.xml includes all necessary UWB permissions.
UWB is enabled in the device settings for both the watch and the phone.
Are there alternative methods to achieve this outside of the Jetpack library, such as using the Google Play Services (GMS) Nearby API (Nearby Connections or Nearby Presence)?
Could you please clarify if this setup is feasible and provide guidance on the recommended implementation path?
VSCode Shortcut for switching between Copilot models?
13 January 2026 @ 12:28 am
Is there anyway to make a shortcut for switching between different co-pilot AI models in VSCode?
I frequently need to switch from a higher cost model to a lower cost model for doing more basic editing tasks in order to save credits, so all I need really is a toggle to switch between Claude Haiku 4.5 (.33x) and Claude Sonnet 4.0.
error C2752: more than one partial specialization matches the template argument list with concepts
12 January 2026 @ 10:03 am
Is it a bug in MSVC when it fails with the following error?
<source>(35): error C2752: 'Power_t<3,0,false>': more than one partial specialization matches the template argument list
<source>(18): note: could be 'Power_t<base,p,false>'
<source>(30): note: or 'Power_t<base,0,false>'
<source>(35): note: the template instantiation context (the oldest one first) is
<source>(37): note: see reference to variable template 'const auto Power_v<3,0>' being compiled
on the following code:
#include <concepts>
#include <cstddef> // size_t
template <typename T>
concept Multipliable = requires (T a, const T b) {
{ a *= b } -> std::same_as<T&>;
{ a * b } -> std::same_as<T>;
};
/// Primary class template declaration (and definition) for odd powers (inductive step)
templat