Random snippets of all sorts of code, mixed with a selection of help and advice.
cmake rust crate doesn't install header files and libraries to /usr/local/{include, lib} paths
9 March 2026 @ 5:11 pm
In my project, the Rust binary rust-bin needs to link to a C++ shared library sub-project cpp-lib, for which I'm using cmake rust crate as a build depedency. The entire project builds fine, but the C++ shared library is not getting installed to /usr/local/lib and also the library header files not getting installed to /usr/local/include, instead they are getting installed in the C++ sub-project cpp-lib path.
Project Hierarchy
.
├── CMakeLists.txt
├── Cargo.lock
├── Cargo.toml
└── rust-bin
├── Cargo.toml
├── build.rs
├── cpp-lib
│ ├── CMakeLists.txt
│ ├── inc
│ │ └── lib.hpp
│ └── src
│ └── lib.cpp
└── src
└── main.rs
CMakeLists.txt
cmake_minimum_requ
Love in channel loving
9 March 2026 @ 5:11 pm
Y jismein love hai love ke sath Lo aur bhi enemies rahenge jisse ki Ham sab ek dusre ko maar bhi sakte hain usmein real estate rahana chahie Kimi aur bhi range enemy going to ek dusre anime ko
Bahut hi din graphics acchi honi chahie realistic honi chahie aur bhi give mein acchi acchi quality a rahi hai gan bhi Raha
Buildroot: Is this defconfig correct for running a Raspberry Pi Zero W hotspot?
9 March 2026 @ 5:03 pm
I am trying to build a minimal Buildroot image for a Raspberry Pi Zero W that should run a WiFi hotspot. I want to use "hostapd" and "dnsmasq" to provide the access point functionality. Before continuing with the setup, I would like to verify if my current kernel configuration fragment and Buildroot defconfig look correct or if I am missing something important.
Here is my kernel configuration:
# =====================================
# SYSTEMD CORE REQUIREMENTS (Wasserdicht)
# =====================================
CONFIG_CGROUPS=y
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_PIDS=y
CONFIG_CGROUP_BPF=y
CONFIG_NAMESPACES=y
CONFIG_USER_NS=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_FHANDLE=y
CONFIG_AUTOFS4_FS=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EPOLL=y
CONFIG_INOTIFY_USER=y
CONFIG_SYSFS=y
CONFIG_PROC_FS=y
CONFIG_DMIID=y
CONFIG_UNIX=y
C
Makefile for compiling all LaTeX files
9 March 2026 @ 5:02 pm
I have a directory with a bunch of .tex files in various subdirectories. I want to compile them all with latexmk -pdf -pdflatex="pdflatex --shell-escape %O %S", with the generated files (PDFs and intermediate outputs) being in the same subdirectory as the source file. The reason for this is that some TeX files have the same file name in different subdirectories, e.g. ./foo/baz.tex and ./bar/baz.tex should be compiled to ./foo/baz.pdf and ./bar/baz.pdf respectively. The .tex files are currently all 2 subdirectories deep (./foo/bar/baz.tex) but ideally I'd like for this solution to work for TeX files at any depth in this directory.
I wanted to make a Makefile for this repo, but am a bit stuck. At the moment I have:
LATEXMK = latexmk -pdf -pdflatex="pdflatex --shell-escape %O %S"
SRCS := $(shell find -na
How can I apply tail/tails to a string of text in a unicode-aware manner?
9 March 2026 @ 4:57 pm
This "warning sign" character, ⚠️, corresponds to the sequence of codepoints U+26A0 U+FE0F (if I understand correctly, it is ⚠ followed by a variation selector character), so I can render it in Haskell as "\x26a0\xfe0f".
Unfortunately, functions like take/drop/tail/head and similar, are not aware that those two codepoints should always stay together.
λ> Data.List.tails "\x26a0\xfe0f"
["\9888\65039","\65039",""]
Initially, upon reading The ultimate guide to Haskell Strings, I thought that
MS Graph to add event into shared calendar using c#
9 March 2026 @ 4:49 pm
I am using MS Graph to add a calendar entry into shared calendar. It's showing this error:
IUserEventsCollectionRequestBuilder does not contain a definition for
PostAsync
I can't find any other similiar method like PostAsync.
What I'm actually trying to do is an event into a shared calendar with MS Graph (in an ASP.NET C# web application).
Can please someone guide me ?
Below is my code -
private async Task<IUserCalendarsCollectionPage> Add()
{
var requestBody = new Event
{
Subject = "TEST",
Body = new ItemBody
{
ContentType = BodyType.Html,
Content = "TESTING",
},
Start = new DateTimeTimeZone
{
DateTime = "2026-03-15T12:00:00",
TimeZone = "Pacific Standard Time",
},
End = new DateTimeTimeZone
{
DateTime = "
I'm going to do progress bar from moviepy on UI. I got problem about use data from moviepy when write_videofile
9 March 2026 @ 4:48 pm
I gen this code from gemini. It can run UI progress bar and "start" button. but it will error on clip.write_videofile("output.mp4", progress_bar=update_progress) line. it got an unexpected keyword argument 'progress_bar'. I don't know the collect way to use data from/when clip.write_videofile is running and use threading. What is problem on this code?
import tkinter as tk
from tkinter import ttk
from moviepy import VideoFileClip
import threading
def start_processing():
# Function that work on thread
def process():
clip = VideoFileClip("input.mp4")
# use "progress_bar" from update "progress bar" in tkinter
clip.write_videofile("output.mp4", progress_bar=update_progress)
# start thread
threading.Thread(target=process).start()
def update_progress(current, total):
# calculate %
percent = (current / total) * 100
progress_bar['value'] = percent
root.update
reference a <div>/<img> that sent onClick in JS script
9 March 2026 @ 4:43 pm
new to HTML and a bit stuck on what to do and cannot find any resources to help me.
I want to make it so whenever I click an image, it scales, I've got the onclick working but I'm not sure on how to let the script know what image I'm clicking.
any help is really appreciated !
HTML:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<title>Photography</title>
<script type="text/javascript" src="gallery.js"></script>
</head>
<body>
<header>
<h1>hi everybody my name is markiplier</h1>
</header>
<div class="container">
<div class="imggallery">
<div class="imgcolumn">
Syncfusion Grid DateTimePicker submits value offset by 6 hours (timezone issue) in .NET 8 MVC batch editing
9 March 2026 @ 4:15 pm
I'm using Grid component in my .NET 8 project that dynamically configures, displays and edits columns of a SQL table. It's working impressively so far.
At the moment, I'm encountering just one issue. When I go to edit a value that uses the Syncfusion.EJ2.Calendars.DateTimePicker, If it helps to know, the Data for the rows is a public IEnumerable<dynamic> Data { get; set; } property.
What happens is when I go to the table, it does display the date property. Even when I click to edit it, make the edit, and unclick the cell, everything is still good. The issue occurs when I click Update button to actually preform the edit. The action receives the date and I can see the date is offset forward by 6 hours. After update if I refresh the page, I see the 6 hours time added. So if date was 2025-12-31 00:00:00 and I entered 2025-12-31 06:00:00, upon update and refresh it displays 2025-12-31 12:00:00.
I tried to add m
.NET 10 MacOS Development Environment
9 March 2026 @ 3:41 pm
On my friend's MacOS system, .NET 10 isn't recognizing that it should be running in the Development environment. Executing:
dotnet run --project ./Path/To/Project.csproj --environment DOTNET_ENVIRONMENT=Development --configuration Debug
still runs in the Production environment. We also tried setting the environment variable by just doing DOTNET_ENVIRONMENT=Development and not just passing it to the --environment option and that still didn't work. On Linux the above script is working just fine.
Originally we set the environment variable via --environment Development but after updating to .NET 9.0.304 or higher that ended up not working anymore and changing it to --environment DOTNET_ENVIRONMENT=Development fixed the issue. I'm not sure if that's related or not and it seems odd to me as I don't believe the .NET docs show setting the environment that way.
Why is i