Random snippets of all sorts of code, mixed with a selection of help and advice.
I’m getting an error code while trying to use the Claude API in Android Studio (agent model)
7 February 2026 @ 7:47 am
Can anyone help me fix an issue while trying to set up the Claude API in Android Studio (agent mode)? Here’s the error I’m getting:
Please try again later.
Error: com.anthropic.errors.BadRequestException: 400: {type=error, error={type=invalid_request_error, message=messages: text content blocks must be non-empty}, request_id=req_011CXtJzw9j4YZ4H35BwCwJG}
Although I am sending a request with a text prompt, I am receiving the above response
Swift Vapor + Railway private networking DNS fails — getent exits 2 despite reachable IPv6 DNS
7 February 2026 @ 7:39 am
I'm stuck with Railway's private networking and would appreciate any help.
I'm running a Swift/Vapor app on Railway with PostGIS + Redis. Public URLs work fine, but private networking (*.railway.internal) never
resolves.
Errors:
Postgis:
PSQLError: DNS error: unknown(host: "PostGIS.railway.internal", port: 5432)
Redis:
SocketAddressError.unknown(host: "Redis.railway.internal", port: 6379)
Setup: Swift 6.1, ubuntu:jammy runtime, --static-swift-stdlib, server binds ::, all services same project/environment, account ~20 days old
(not legacy).
Diagnostics from inside the running container:
resolv.conf: nameserver fd12::10, search railway.internal ✓
railnet0: has fd12::/16 IPv6 address ✓
TCP port 53 on fd12::10: REACHABLE ✓
getent hosts PostGIS.railway.internal: FAILED (exit 2) ✗
getent hosts Redis.railway.internal: FAILED (exit 2) ✗
Public hostnames: resolve fine ✓
So the
Unable to correctly render glTF models with symmetrical skeletons
7 February 2026 @ 7:26 am
I'm trying to render a GLB file exported from Blender, but it doesn't look quite right.
enter image description here
I think it might be caused by the model having symmetrical bones. I don't know the exact reason for the error. I use jointMatrix * inverseBindMatrix.
Tidak bisa menggunakan file data untuk apk pihak ketiga maupun ZAchirve
7 February 2026 @ 7:16 am
Saat saya menggunakan apk pihak ketiga sperti shinbusi atau memasukkan data di game lain
Are these photos library api scopes still useful for backup of non-developer created data?
7 February 2026 @ 6:58 am
Here is a screenshot of the google photos library api scopes as of 7th Feb 2026. (Taken from here)
So now developers can only backup (or access) data created via their programs/scripts (i.e self-built app), and, not access data which are pre-existing on gphotos (uploaded via website or mobile apps) prior to the existence of that app? Is the understanding correct?
So now developers can only backup (or access) data created via their programs/scripts (i.e self-built app), and, not access data which are pre-existing on gphotos (uploaded via website or mobile apps) prior to the existence of that app? Is the understanding correct?How do i use position absolute on a flex item without it disappearing?
7 February 2026 @ 6:55 am
I'm at a loss right now, and would appreciate any help, please. I've been trying to layer images over each other using positioning, but they keep disappearing when I make them position absolute.
How do I get it to work? I just want to layer 3 images over each while keeping my overall webpage layout as flex because it's easier to control.
Note: this is an example code based off my exact method just to keep it simple.
img {
max-width: 100%;
height: auto;
}
.container {
display: flex;
gap: 30px;
}
.img__container {
display: flex;
position: relative;
}
.img__one {
position: absolute;
}
.img__two {
position: absolute;
}
.img__three {
position: absolute;
}
What is the fragility in using Mirror(reflecting:_)?
7 February 2026 @ 2:07 am
I have heard/read from/in reliable sources that Swift’s ‘Mirror(reflecting:_) is not “production” ready. These warnings never came with an explanation. What is Swift/SwiftUI scared it might see?
Edit 1: Idea Expansion...
@preMacro
I used to have a SQLite wrapper library that used Mirror ( refelecting:_ ) to extract
a [ String ] that used to create Column Names. I never saw a hicup in performance, logic, philosophy.
Would this be safe?
If so, how were people using it that was problematic?
protocol SQLiteTable {
var columnNames: [ String ] { get }
init()
}
extension SQLiteTable {
var columnNames: [ String ] { Mirror ( reflecting: Self() ).children.map { $0.label ?? "Err" } }
}
struct Table1: SQLiteTable {
@Key < UUID > var id
@Column < String > var name
@Column < Int > var age
}
How to automatically record WooCommerce orders in QuickBooks after successful payment? [closed]
6 February 2026 @ 11:39 pm
I’m building a WordPress / WooCommerce website for a company based in Saskatchewan, Canada.
I have already connected WooCommerce to QuickBooks Online using the official WooCommerce Connector by Intuit, which syncs products and orders: https://quickbooks.intuit.com/app/apps/appdetails/quickbooks_online_with_woocommerce/en-global/
What I’m trying to achieve next is the following workflow:
A customer places an order in WooCommerce
The customer completes payment using a standard WooCommerce payment gateway (credit card, Mastercard, etc.)
After the payment is marked as completed in WooCommerce, the order (or invoice/sales receipt) should be created in QuickBooks automatically
I understand that some solutions achieve this by using QuickBooks Payments as the payment gateway, but in my case:
Payments are
How can I use Python to get the selected joint in Maya's weight paint menu?
6 February 2026 @ 8:19 pm
I'm using Maya 2025 and wondering how I can use Python to get the joint that's currently selected in the "paint skin weights" tool settings. Since, the geometry is technically what's selected in the viewport, the usual methods like, "cmds.ls(sl=True)", don't work for this.
![An image of Maya's, Paint Skin Weights Tool" settings. The influence tree view shows a hierarchy of joints. A joint named "Crockie_spine3_bind_JNT" is highlighted.]
![An image of Maya's, Paint Skin Weights Tool" settings. The influence tree view shows a hierarchy of joints. A joint named "Crockie_spine3_bind_JNT" is highlighted.]Good backend project to build in C++? (Any senior dev please help)
6 February 2026 @ 7:59 pm
Hey guys,
I’m a student currently in my third year (semester before 4th year) of college. I’m good at DSA and competitive programming in C++, but my experience with C++ is mostly at a DSA/CP level, not at a development or systems level.
Like many DSA-focused students, I don’t have strong development skills yet. I’ve recently started learning full-stack development from scratch, with a stronger focus on backend.
My long-term goal is to become a strong backend engineer and AI engineer.
I know that using C++ for backend development is hard, but my motivation is to learn deeply and stand out. Most good developers in my college are building backend projects using common stacks, but no one is building backend systems in C++. I feel that working on such projects will teach me a lot and also result in a