Random snippets of all sorts of code, mixed with a selection of help and advice.
Git rebase automatically accepting only the current branch changes and deletions
6 March 2026 @ 5:00 am
I have the following Git tree (newest at top) with two branches, feature and master
B # Delete file Bar (HEAD, feature)
A # Change file Foo
M # A commit that I do not want (format shift related to Foo, Bar)
|
| Y # Changed file Foo
| X # Unrelated change file Quux (master)
|/
M is a special commit that format-shifts the repo contents into a form compatible with the current state of master - there was a previous set of commits oldA and oldB that cannot be applied to master . It is expected that if there is a conflict in the two branches, the format shift commit M will not apply cleanly - that's OK and is handled elsewhere. So assume that will rebase out.
I would like to rebase feature on master so that I get this:
B' # Delete file Bar (HEAD, feature)
A' # Change file Foo (content here is exactly
Can I wrap standalone working code as a VST plugin?
6 March 2026 @ 4:56 am
I have a question regarding a MIDI control software I have developed. Currently the app is standalone and can interface with a physical synth. It then replicates the synth's controls on-screen so that it can be controlled from your computer in real time.
I want to encapsulate this inside of a DAW. Will I have to reprogram all (or large parts) of it using the Virtual Studio Technology SDK, or is there a way I can interface the current code with VST?
Many thanks,
Roy G.
$match not matches all the feilds inputed
6 March 2026 @ 4:51 am
I am facing an issue with a MongoDB aggregation pipeline that uses the `$lookup` operator. The goal is to create a pipeline that filters data in my database based on input fields and returns the matching data using `$lookup`. However, when I request specific fields, I'm consistently receiving null values as the results. I suspect there might be a problem with my pipeline logic, and I'm seeking assistance in identifying and resolving it.
export const bookIssuedFind = async (req: Request, res: Response) => {
try {
const searchTerm = req.body || {};
const filter:issued = {};
if (searchTerm.issuer_id) filter.issuer_id = searchTerm.issuer_id;
if (searchTerm.user_id) filter.user_id = searchTerm.user_id;
if (searchTerm.issue_date) filter.issue_date = searchTerm.issue_date;
if (searchTerm.return_date) filter.return_date = searchTerm.return_date;
if (searchTerm.book_status) filter.book_status = searchTerm.book_status;
if (searchTerm.book_i
nbdkit-vddk-plugin with snapshot= reads base disk only, ignores snapshot chain delta files
6 March 2026 @ 4:51 am
I'm using nbdkit-vddk-plugin (v1.42.3, Debian bookworm) to read a VMware VM disk through a snapshot chain for warm migration. The disk opens successfully (correct 25 GB size), CBT detects changed blocks correctly, but when reading the actual disk data, VDDK returns only the base disk state — the data in the delta files (written after the snapshot baseline) is not visible.
Proof that the data is in the chain: Consolidating all snapshots on the VM causes the missing data to appear correctly when reading the base disk directly. So the data definitely exists in the delta VMDK files.
nbdkit command being executed:
nbdkit \
--exit-with-parent --readonly --foreground \
--unix=/tmp/migrateops-nbdkit-xxx/nbdkit.sock \
--pidfile=/tmp/migrateops-nbdkit-xxx/nbdkit.pid \
vddk \
server=vcenter-server.anthos.local \
[email protected] \
password=<redacted> \
thumbprint=25:EE:77:... \
Expo/React-Native Microsoft Authentication connection to firebase backend
6 March 2026 @ 4:43 am
I am trying to use firebase Oauth Microsoft Authentication in my expo-dev-client with react-native. no typescript. I keep on getting issues where there is an unmatched route and a long hash that microsoft is providing but expo keeps on spitting it up because of the router I believe. What is the best way of creating this authentication. Also I have tried using react-native-app-auth and react-native-firebase/auth as well as expo-auth-session and signInWithPopup. I was told not to use the web sdk because its react-native. I am using android not ios. Here is my code. I know the redirect uri is correct. I just need the token to hand over to firebase. Thank you
import auth from "@react-native-firebase/auth";
import * as AuthSession from "expo-auth-session";
import * as WebBrowser from "expo-web-browser";
WebBrowser.maybeCompleteAuthSession();
export const signInWithMicrosoft = async () => {
try {
const discovery = await AuthSession.f
does task affinity still matter when worker processes frequently change execution pipelines?
6 March 2026 @ 4:33 am
I am designing a local processing coordinator for a distributed file-processing system and I’m trying to reason about the usefulness of task affinity when workers frequently change their execution pipelines.
This is part of a larger distributed architecture, but the question focuses on the local coordinator scheduling strategy.
System Architecture (Simplified)
At a high level, the system works like this:
Main Coordinator → Local Coordinators → Worker Processes
Each Local Coordinator (LC) runs on a machine and manages a fixed-size worker pool responsible for executing file-processing pipelines.
The system processes large volumes of files (potentially millions of jobs), and each job goes through a pipeline of transformations, such as:
hashing
compression
file segmentation
أفضل طريقة لإنشاء لوحة إدارة لموقع صيدلية أونلاين باستخدام Django وReact؟
6 March 2026 @ 4:18 am
السلام عليكم،
لدي مشروع موقع صيدلية أونلاين، وخطتي هي:
Backend: Django
Frontend: React لواجهة العملاء.
أفكر الآن في تصميم لوحة الإدارة للموقع.
السؤال هو:
هل يمكن الاعتماد على Django Admin الافتراضي لإدارة كل شيء (المنتجات، الطلبات، الدفع… إلخ)،
أم أنه من الأفضل إنشاء واجهة إدارة مخصصة باستخدام React؟
أريد سماع خبراتكم وأفكاركم العملية حول ما هو الأفضل من حيث:
المرونة
تجربة المستخدم للإداريين أو غير ضرورية وتكفي جانجو
إمكانية التعامل مع الطلبات والدفع احصائيات
أي نصائح أو اقتراحات ستكون مفيدة جداً، وشكراً لكم مقدماً
Is there a way to track local or foreign users on a website?
6 March 2026 @ 3:48 am
What I mean is that my website is based in my country. Since my website is related to foreigners, I want to know how to track whether the users of my website are foreigners or local users.
I have tried several variables such as IP, browser language, ISP provider, and time zone. I know that these are not enough to determine whether the users of my website in my country are local or foreign.
Does anyone know how to do this, or perhaps have suggestions for additional variables to make the accuracy a little closer to perfect?
problème de compatibilité entre Kernel ubuntu 6.17 et VIRTUAL BOX
6 March 2026 @ 3:11 am
Je comprends pas
Le pilote noyau vboxdrv de Oracle VM VirtualBox n’est pas installé ou chargé dans le noyau Linux. VirtualBox ne peut donc pas accéder aux fonctions de virtualisation du système pour démarrer une machine virtuelle.
Data visualization with clear bars on a histogram?
6 March 2026 @ 12:07 am
I'm really new to Python and data visualizations, but I have an upcoming conference where I'm presenting my research so I could use help to make this plot more useful.
I am making a histogram where all the bars are overlapped, but even with the transparency lowered for the bars, it still looks like a mess to me. I thought if I could make the bars themselves transparent fill and the edge color different colors for different datasets, it would make it easier to see?
But I can only figure out how to set the overall transparency to 0 (which includes the edge color so there's no bar anywhere), or to fill it with white (which still makes it hard to see the colors stacked in the back - attached).
How could I accomplish this transparent bar with a colored outline? Is this even the best way to show this?
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.ticker as mtick
import seaborn as sns
import pandas as pd
# import excel file
excel_