Skip to content

Instantly share code, notes, and snippets.

@ianbarber
ianbarber / debug-export-r1.stamped.log
Created September 24, 2026 21:33
Qubx2 #3079 part 5: first-autoload three-lane comparison, stamped logs and summaries (2026-09-24, commit e7be6fc)
# lane=debug-export repeat=1
# spawn_wall_epoch=1790285420.502 (2026-09-24 14:30:20 local)
# clock: monotonic ms since spawn; stdout+stderr merged in arrival order
# cmd=stdbuf -oL -eL ./Qubx2-v1.8.0-linux-desktop.x86_64 --audio-driver Dummy cwd=/home/ianbarber/Projects/Qubx2-agentic-20260924-142203-execute/build/exported-first-run-debug/linux-nosteam
[+00000034.1ms] Godot Engine v4.7.1.stable.official.a13da4feb - https://godotengine.org
[+00000528.2ms] Vulkan 1.4.312 - Forward+ - Using Device #0: NVIDIA - NVIDIA GeForce RTX 5090
[+00002376.3ms]
[+00003623.6ms] [STARTUP 3607] DebugManager._ready() - BEGIN AUTOLOAD INIT
[+00003624.2ms] [DebugManager] Could not load debug_settings.cfg (error 7) - using defaults
[+00003624.2ms] [DebugManager] Saving debug settings to: user://debug_settings.cfg
@ianbarber
ianbarber / qubx2-part4-debug-export-run-meta.txt
Created September 24, 2026 02:26
Qubx2 #3078 part 4: same-revision three-lane null-uniform-set comparison (commit 456d82e)
== debug-export driver-notes ==
enter sent at driver t+28 s
sent 499 gameplay inputs over 929 s
f11 sent at driver t+929 s
wrapper exit=143
driver done
== debug-export exit_status ==
143
== debug-export isolation-env ==
QUBX2_ISOLATED_USER_DATA_ROOT=/tmp/tmp.CQYDKO31Mi
@ianbarber
ianbarber / exported-first-run-settings.cfg
Created September 22, 2026 03:26
Qubx2 #3075 baseline: clean Linux debug-export first run (2026-09-21, v1.8.0+7383bc2, demo/no-services, Forward+ Ultra, RTX 5090)
[audio]
music_volume=0.5
sfx_volume=0.4
music_enabled=true
sfx_enabled=true
[video]
fullscreen=true
"""
Triton kernel for fused RMS normalization.
RMSNorm(x) = x / sqrt(mean(x^2) + eps) * weight
"""
import triton
import triton.language as tl
import torch
if (opr.isDone()) {
// If the user's cached credentials are valid, the OptionalPendingResult will be "done"
// and the GoogleSignInResult will be available instantly. We can try and retrieve an
// authentication code.
GoogleSignInResult result = opr.get();
handleSignInResult(result);
} else {
// If the user has not previously signed in on this device or the sign-in has expired,
// this asynchronous branch will attempt to sign in the user silently.
opr.setResultCallback(new ResultCallback<GoogleSignInResult>() {
mGoogleApiClient = new GoogleApiClient.Builder(this /* Context */)

.enableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */)

.addApi(Auth.GOOGLE_SIGN_IN_API, gso)

.build();

OptionalPendingResult<GoogleSignInResult> opr = Auth.GoogleSignInApi.silentSignIn(mGoogleApiClient);

GoogleSignInAccount acct = googleSignInResult.getSignInAccount();
String authCode = acct.getServerAuthCode();
@ianbarber
ianbarber / ViewController.swift
Created March 17, 2015 20:14
ViewController for GIDSignIn example
class ViewController: UIViewController, GIDSignInDelegate {
@IBOutlet weak var signInButton: GIDSignInButton!
override func viewDidLoad() {
super.viewDidLoad()
GIDSignIn.sharedInstance().delegate = self
// Test to see if we are signed in on load.
GIDSignIn.sharedInstance().signInSilently()
}
@ianbarber
ianbarber / AppDelegate.swift
Created March 17, 2015 20:12
Simple app delegate for Swift and GIDSignIn
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
GIDSignIn.sharedInstance().clientID = "366667191730-38onttdkl2cpqstheip1ek3r5tb8s5ds.apps.googleusercontent.com";
return true
}