Random snippets of all sorts of code, mixed with a selection of help and advice.
Can we use the /v1alpha API to retrieve Google Gemini Enterprise agents, or is a GA API available?
19 January 2026 @ 12:35 pm
I am trying to retrieve all Google Gemini Enterprise agents using the following v1alpha API:
GET https://{REGION}-discoveryengine.googleapis.com/v1alpha/projects/{PROJECT_ID}/locations/{LOCATION}/collections/default_collection/engines/{ENGINE_ID}/assistants/default_assistant/agents
Could you please confirm whether it is recommended to use this /v1alpha API in a production, or if there is a GA (Generally Available) API that should be used instead to retrieve all Gemini Enterprise agents?
Additionally, are there any known limitations or risks associated with using the v1alpha version for this use case?
Thanks in advance for your guidance.
Traefik and k3d with ingress provider
19 January 2026 @ 12:29 pm
I have a debian machine with docker installed.
I have a treafik container et some others like portainer all deserved by trarfik.
I also installed k3d.
The goal is to keep all my containers as is (including traefik), deploy applications on k3d and acces it through traefik.
My traefik docker compose contains :
services:
traefik:
image: traefik:3.4
container_name: traefik
restart: always
environment:
- TZ=Europe/Brussels
- KUBECONFIG=/kubeconfig
command:
# debug
- "--accesslog=true"
- "--log.level=TRACE"
- "--log.filePath=/logs/traefik.log"
- "--log.maxSize=10"
- "--log.maxBackups=5"
# dashboard
- "--api.dashboard=true"
# http entry point
- "--entrypoints.web.address=:80"
# docker provider
Zenject. Install from file
19 January 2026 @ 12:28 pm
The game consists of a set of packages, each in a separate bundle. Each bundle must have an installer (MonoInstaller or ScriptableObjectInstaller). When a game scene starts, a certain set of bundles is loaded.
The installers for the loaded bundles need to be called. So, I can't add them to the SceneContext in the editor.
How can I call the Install for optional installers?
installer.InstallBindings(); // null in Container.Bind
How do I query based on data in two tables - like a JOIN?
19 January 2026 @ 12:20 pm
I am using the endpoints https://api.xero.com/api.xro/2.0/BankTransactions and I am trying to get bank transactions that have been put into a specific account category - suspense in this case 850.
I want to remove them from suspense - the suggestion is to delete the bank statement entry, and restore it - then the other side (xero side) will be gone, and need to be redone.
I am really struggling to get bank transactions that are also "lineitems.accountcode = 850"
There seems to be no way to get these two things at once.
I looked at the journals endpoint, but the query ability on there is really limited - only a couple of fields, like Offset, which is useless.
Xcode 16.4 archive fails with "unable to spawn process '/bin/sh' (Argument list too long)" in Flutter project
19 January 2026 @ 12:19 pm
I'm getting this error when archiving my Flutter iOS app:
Error (Xcode): unable to spawn process '/bin/sh' (Argument list too long)
Environment:
Xcode 16.4
Flutter 3.38.7
CocoaPods 1.16.2
macOS (Darwin 24.4.0)
What I've tried:
Cleaned DerivedData (rm -rf ~/Library/Developer/Xcode/DerivedData)
Ran flutter clean and flutter pub get
Removed ios/build and ios/Pods, then ran pod install
Verified --dart-define-from-file config is small (~1.6KB)
Verified environment variables are small (~2KB total)
Project details:
84 pods installed
Uses Firebase, Sentry, OneSignal, Mixpanel, and other common SDKs
Build command:
fvm flutter build ipa --flavor stage --target lib/main_stage.dart --dart-define-from-file=config_stage.json
Questions:
Is this a known Xcode 16.4 issue?
Are there workarounds for the ARG_M
Custom outlook add-in for mobile appointment
19 January 2026 @ 12:18 pm
i have a custom outlook addin that is used to track the mail/appointments to d365 crm. the addin is displayed for appointment (organizer/attendee) pc/web by using extension points
AppointmentAttendeeCommandSurface
AppointmentOrganizerCommandSurface
for mobile,
MobileLogEventAppointmentAttendee
but in mobile, im facing an issue.
<ExtensionPoint xsi:type="MobileLogEventAppointmentAttendee">
<Control xsi:type="MobileButton" id="mobileAppointmentLogButton">
<Label resid="TaskpaneButton.Label" />
<Icon xsi:type="bt:MobileIconList">
<bt:Image size="25" scale="1" resid="Icon.25x25" />
<bt:Image size="25" scale="2" resid="Icon.25x25" />
<bt:Ima
TypeScript TS2339 when extracting URL string from string | URL | Request
19 January 2026 @ 12:13 pm
In an Expo React Native app, I accept a parameter that can be a string, URL, or Request.
function toUrlString(url: string | URL | Request) {
if (typeof url === "string") return url;
if (url instanceof URL) return url.href;
return url.url; // Request case
}
TypeScript reports:
TS2339: Property 'url' does not exist on type 'string | URL | Request'
Property 'url' does not exist on type 'URL'
In this case, when the value is a Request, I want to extract the request URL as a string using the Fetch API’s Request.url property.
What is the correct type-safe way to narrow this union so that each case (string, URL, and Request) is handled explicitly without using type assertions?
How to control the content rendering within the tool-tip?
19 January 2026 @ 12:12 pm
I have a Recharts BarChart with a custom tooltip whose position is manually controlled.
When the user hovers over the tooltip, I freeze its position so it doesn’t move.
However, when the tooltip is tall enough to overlap multiple bars, moving the mouse inside the tooltip causes the tooltip content to change, because Recharts detects hover on another bar underneath.
Expected behavior:
While hovering over the tooltip, both position and content should remain locked.
Actual behavior:
Position stays fixed, but tooltip content updates as the mouse moves vertically inside the tooltip.
"use client";
import { useState } from "react";
import { BarChart, Bar, XAxis, YAxis, Tooltip } from "recharts";
const data = [
{ name: "A", value: 400 },
{ name: "B", value: 300 },
{ name: "C", value: 200 },
];
export default function Chart() {
const [pos, setPos] = useState<{ x: number; y:
cron job not running in development environment
19 January 2026 @ 12:11 pm
A Rails application has an entry in crontab -e that was generated by the whenever gem, translating its entry in schedule.rb of runner 'DevelopmentAvailabilityAndScheduleJob.perform_later' and edited to replace production with development so that it may run on the localhost.
0 * * * * /bin/bash -l -c 'cd /Users/deploy/r/deapp && bundle exec bin/rails runner -e development '\''AvailabilityAndScheduleJob.perform_later'\'''
the AvailabilityAndScheduleJob.rb (in directory app/jobs):
class AvailabilityAndScheduleJob < ApplicationJob
queue_as :default
include ReservationMethods
def perform
availability_dates = Available.order(availability_date: :asc).where(shop_id: 1).pluck(:availability_date).uniq
if availability_dates.includes?(Date.yesterday)
Rails.logger.info 'yep, lagging availability'
else
Rails.logger.info 'great, availability u
How do I remove warning 'Possible null reference argument for parameter'
19 January 2026 @ 12:00 pm
Can anyone tell me how to get rid of this warning in the code below please
Possible null reference argument for parameter 'item' in 'void List.Add(object item)'
This is the code and the warning shows on these lines
rowDataList = [.. rowCollection[headRow].ItemArray];
I have added a null check but it seems to have no affect.
DataSet dataSet = reader.AsDataSet(conf);
DataRowCollection rowCollection;
if (checkData == 0)
rowCollection = dataSet.Tables[sheetName].Rows;
else
rowCollection = dataSet.Tables[0].Rows;
int rowCount = rowCollection.Count;
if (rowCollection != null && rowCollection.Count > headRow)
{
rowDataList = [.. rowCollection[headRow].ItemArray];
await AssertIsTrue(rowCount != 0, $"Assert there are rows in the report file, the count is {rowCollection.Count}");
if (rowNumb != 0)
await AssertIsTrue(rowCount - 1 == rowNumb, $"Assert