on-internet

How to use TFLite model signatures with InterpreterApi in LiteRT from Google Play Services ()?

I’m migrating my Android project from the bundled TensorFlow Lite to TensorFlow Lite via Google Play Services (LiteRT). I use Movinet, which uses signatures and I’m feeding it individual video frames one by one for streaming inference. In the old bundled Interpreter class, I could use: interpreter.runSignature(inputs, outputs, "serving_default") However, after migrating to InterpreterApi from Play Services, this method does not appear to be available — InterpreterApi only exposes run() and runForMultipleInputsOutputs(). How to use TFLite model signatures with InterpreterApi?

Join the discussion →

How to compile SDL3 to WebAssembly with Emscripten?

If understand the instuctions correctly, I need to build the SDL library with emsdk emcmake cmake -S vendored/SDL -B build -G "Visual Studio 18 2026" ran successfully but emcmake cmake --build build fails with emcmake: no compatible cmake generator found; Please install ninja or mingw32-make, or specify a generator explicitly using -G and emcmake cmake --build build -G "Visual Studio 18 2026" fails with Unknown argument -G I also tried compiling a simple SDL3 Hello, World! program using emcc directly - python ../emsdk/upstream/emscripten/emcc.py -O3 -s WASM=1 -s EXPORTED_RUNTIME_METHODS='\["cw

Join the discussion →

LLM Function Calling Fails Due to Incorrect Intent Detection from Free-Text User Input

I’m building an AI-based operations assistant using an LLM (Groq / LLaMA 3) with function calling. The system is designed to take free-text user input, detect intent, extract arguments, and then call the appropriate backend function (e.g., approve_completion, update_priority, etc.). However, I’m facing a major issue with intent detection reliability. Problem The LLM frequently misclassifies user intent, especially when the input is short, ambiguous, or conversational. This leads to: Wrong function being selected Required arguments not being collected properly Function calls failing due to miss

Join the discussion →

Weighted Score in Excel

How do I build a weighted scoring model in Excel that calculates a final score from multiple columns, where some metrics are higher-is-better and others are lower-is-better? Starting in Row 4 D - $ amount - higher is better G - % - lower is better H - number - higher is better I - % - lower is better K - % - higher is better L - % - higher is better N - % - lower is better Current Formula: =MAX(0, MIN(100, ROUND( (D4 / MAX($D$4:$D$100)) * 20 + (1 - G4 / MAX($G$4:$G$100)) * 15 + ((H4 - 500) / (850 - 500)) * 15 + (1 - I4 / MAX($I$4:$I$100)) * 10 + (K4 / MAX($K$4:$K$100)) * 15 + (L4 / MAX($L$4:$L

Join the discussion →

How does C know the value of DBL_EPSILON in machines that do not follow the IEEE floating point convention

I was trying to solve the problem posed in this question where the author asks that the value of DBL_EPSILON be computed portably without using the macro. My solution : #include <stdio.h> int main(void) { double one = 1, next = 1, zero = -0.0; unsigned char * ptr_next = (unsigned char *)&next, * ptr_zero = (unsigned char *)&zero; int endianness; if (ptr_zero[7] >> 7) endianness = 0; if (ptr_zero[0] >> 7) endianness = 7; ptr_next[endianness] |= 1; printf("DBL_EPSILON = %e", (next - one)); return 0; } I determined the endianness of the machine by finding out at what position the 1 bit of -0.0 is

Join the discussion →

How can I copy a WordPress/WooCommerce site from hosting to a local environment?

I have access to a Sered hosting account for a WordPress/WooCommerce site, and I need to set it up locally for development. I’m new to working with hosting panels, so I’m unsure what I need to export from the hosting account. From what I understand, I likely need: the WordPress site files the MySQL database configuration details such as wp-config.php Is that correct? And in a typical hosting panel, where are those usually accessed or exported from? For example, should I be looking for a file manager/FTP for the files and phpMyAdmin for the database?

Join the discussion →

Trace actions in WordPress action scheduler

I'm trying to track down the origin of the following warning in my error log: Cannot modify header information - headers already sent in /.../class-wp-session.php on line 145 Indeed, on that line in class-wp-session.php, a cookie is set with setcookie(...). So I added a stack trace as follows: error_log( "====== Setting cookie ==== " . print_r( debug_backtrace( 0, 24 ), true ) ); setcookie( WP_SESSION_COOKIE, $cookieval, $carg ); error_log( "====== Cookie was set ===================" ); and found that it is wp-cron that initiates the call chain. When reloading a page on the site using the brow

Join the discussion →

Duplicated data from a select

I'm creating a function in Postgresql to bring data based on the user's name, but when I don't pass a name in the argument it should bring all the appointments independent of the name, but I'm getting duplicated data. Since "John Doe" is the only one who have a appointment linked with him this "Ian F" shouldn't be there name duration scheduled John Doe 50 2026-03-24 10:00:00 Ian F 50 2026-03-24 10:00:00 As you can see the data is duplicated, since the "Ian F" doesn't have any appointment i's just copying the "John Doe" data and since I don't know how to debug at postgres I don't really know wh

Join the discussion →

How could I specifically get the name of a window that I want to focus and not have to sort through them oddly?

How would I find a specific window without having to oddly sort through every window I have open? I'm looking to just get the name of my open Spotify window but the solution I made wasn't very good and it would often pick up on other open windows. I want to be able to track the artist name and the title of the song that I'm listening to. How I got this was I just looked up "How to get the name of a specific opened window" and I searched for a bit and this was the best I found. import pygetwindow as a import os, time #Just a few words that it'll ignore ignore = [ "Spotify", "Firefox", "Steam",

Join the discussion →

Could my leaves work as currency?

I have a modern nation that uses unique leaves as a form of currency. The government has access to endemic trees that can only grow within the nation's lands. It monopolizes the seeds, extensively grows them into trees in protected areas, and harvests the leaves from the trees to be used as currency. There are multiple types of currency trees, each producing their own unique leaves. Denominations are determined by how pretty the leaf is. For example: Silver Trees produce Silver Leaves that resemble silver. Worth one Leaf (ℒ1) Gold Trees produce Gold Leaves that resemble gold. Worth five Leaves

Join the discussion →

Swift CXCallUpdate not working for outgoing calls

I start an outgoing call using below code. let handle = CXHandle(type: .generic, value: handleValue) let startCallAction = CXStartCallAction(call: uuid, handle: handle) let transaction = CXTransaction(action: startCallAction) self.pendingCallData[uuid] = conference callKitCallController.request(transaction) { error in if let error = error { print("StartCallAction transaction request failed: \(error.localizedDescription)") } else { print("StartCallAction transaction request successful") } } Initially, I set the callee’s phone number as the value of the CXHandle when starting an outgoing call. A

Join the discussion →

When crossing the land border from China to Laos at Mohan/Boten is there a place you must ask to get your arrival stamp?

The last time I left Laos about a month ago I had to pay a ₭2,000,000 (roughly 80/90 EUR or USD) fine because my passport was missing the arrival stamp. I did have a valid 60-day visa and was leaving on its final day. I had done the exact same border crossing some months previous and the stamp from that crossing was in my passport. I don't recall any different procedure in the two crossings but some crossings are a bit haphazard and you might be told at some point to go to some window or such, and I don't always remember those details. What I do remember was standing in a slow-moving line at t

Join the discussion →

Microsoft.Data.SqlClient 7.0.0 throwing error on new serverconnection in .NET Framework 4.8

We have a Visual Studio solution, written to run on .NET Framework 4.8 and mostly in VB.NET. Part of this is a mechanism to run SQL scripts stored in .sql files. This has worked fine for years, through various upgrades of the nuget packages for Microsoft.Data.SqlClient. Today I saw there is a new nuget package, so I upgraded it from version 6.1.4 to 7.0.0. Our connection strings tend to look like this: Server=[server name here].database.windows.net; Database=[database name here]; Application Name=[something]; uid=[a SQL username];pwd=[a SQL password]; TrustServerCertificate=True; And the code

Join the discussion →

Resize chart.js in Bootstrap grid layout while keeping aspect ratio

The chart.js chart in this Bootstrap 5 grid layout doesn't resize correctly: it shrinks when you drag the window narrower but doesn't re-grow when you drag it back. How can I fix this so that the chart fits the column width and keeps the desired aspect ratio? I'd prefer not to use any more libraries. new Chart( document.getElementById('canvas-id'), { type: 'bar', data: { labels: ['a', 'b', 'c'], datasets: [{ data: [3, 4, 2] }] }, options: { aspectRatio: 3.5, maintainAspectRatio: true } } ); <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" />

Join the discussion →

CPU regression in MongoDB for find operations with $in and deep projections

I've encountered a critical performance issue in MongoDB 8.0.15 - 8.0.20. I need your help diagnosing and finding a solution. After upgrading from version 8.0.14 to any of the versions 8.0.15 - 8.0.20, I observed a sharp increase in CPU consumption when executing identical queries. Rolling back to 8.0.14 completely returns performance to normal. Has anyone else encountered similar behavior when upgrading to 8.0.15+? Are there any known MongoDB Jira tickets describing this issue? I'm attaching a partial log of the slow operation from production: "planSummary": "IXSCAN { _id: 1 }", "planningTime

Join the discussion →

Flutter SSL Handshake Failure on Android 13 and below

We are experiencing an SSL handshake issue in a Flutter-based Android application when connecting to a backend API hosted on SAP Cloud Platform Integration (SAP CPI). Recently, the API certificate chain was upgraded to DigiCert TLS RSA4096 Root G5. After this change, Android devices running Android 13 and below fail to establish an HTTPS connection. The error observed is: HandshakeException: Handshake error in client(OS Error: CERTIFICATE_VERIFY_FAILED: self signed certificate in certificate chain) However, the same API works correctly on: Android 14 and above iOS devices Backend Configuration

Join the discussion →

Intellisense flags std::ranges::fold_left even though the code compiles fine

Consider this C++23 code with modules enabled. import std; static int vector_total(const std::vector<int>& v) { return std::ranges::fold_left(v, 0, std::plus{}); } int main() { const std::vector vec{1, 2, 3}; const int res = vector_total(vec); std::println("Total: {}", res); return 0; } I am writing code in Visual Studio 2026 Community and the code compiles fine and the output is as you'd expect. Total: 6 The problem is that Intellisense flags std::ranges::fold_left with this error: no instance of overloaded function "std::ranges::_Fold_left_fn::operator()" matches the argument list I tried to

Join the discussion →

高齢者は家を借りられない、なんてない。―門前払いの現実を変える。影山桐子さんが挑む、安心できる社会―|LIFULL STORIES

借りられる部屋がない。十分な預金があり、健康体で、保証人もいるが、物件探しは門前払い──。これは実際に、いまの日本で起きていることだ。断られる理由は、あなたが65歳を過ぎているから、である。 「これは自分の問題だと思った」 70代の両親が賃貸探しに困窮した際、いつか自分も同じ問題に対峙する可能性を感じ取...

Join the discussion →

How can I reliably recover and preserve page numbers from legal-document HTML/PDF text in Python at scale?

I have a Python pipeline that processes legal opinions into structured JSON and rendered HTML. The extraction mostly works, but page numbers are inconsistent across source formats. I’m trying to determine the fastest deterministic recovery strategy before resorting to OCR or model reruns. I need help with this specific sub-problem: Source HTML sometimes contains inline page markers Rendered HTML sometimes drops or misplaces them Plain text and PDF text extraction may still contain usable markers I want to distinguish: renderer-only loss extraction loss cases where fallback recovery is needed G

Join the discussion →

Merge Sort, How to make an array in a Function

I'm a beginner at C. I was trying to implement merge sort in a separate file: Here is my merge sort file: void mergeSort(int *array, int size) { int i, j, k, m; if (size <= 1) return; half = size / 2; /* ブロックを前半と後半に分ける*/ mergeSort(array, half); mergeSort(array + half, size - half); // リストを [array+n] にすると、最初の値がインデックスnで始まる /*合併操作: */ for(i = 0; i < m; i++) buffer[i] = array[i] /* バッファのリストをどう定義すればいいんだろう */ j = half; i = k = 0; while (i < m && j < n) { if (buffer[i] <= array[j]) { array[k++] = buffer[i++]; } else { array[k++] = array[j++]; } } while (i < m) array[k++] = buffer[i++]; } Here is my m

Join the discussion →

Is this JS script vulnerable to XSS?

Okay so i have a JS function that take my server response that would be multiple html Elements. I add all of those elements with innerHTML and i know it can cause XSS attack but i struggle to understand how XSS work but i have a vague idea on how it work. I was just wondering if in this configuration it could cause XSS? Also on the server side everything is sanitized to prevent any html user input. JS Code : function searchCharacter(search_param){ let main_screen = document.getElementById("main_screen"); while(main_screen.firstChild){ main_screen.removeChild(main_screen.firstChild); } var xhtt

Join the discussion →

What should I use as a Meta key in emacs while using alt as a mod key for my wm?

I use a tiling window manager that uses the Alt key as a modifier key, so I can't use it as Meta in Emacs. I've seen people suggest using the Super key as Meta, but I only have one Super key on my keyboard, and I don't know whether one Super key is enough or not. Should I remap something like Caps Lock to Meta, or is there a cleaner approach? I'm just getting started with Emacs and would appreciate any advice.

Join the discussion →

How can I host a Jupyter Notebook (.ipynb)

How can I host a Jupyter Notebook (.ipynb) file online so others can easily access, view, and run it? I'm looking for simple platforms or methods that allow sharing notebooks publicly without requiring users to install anything locally.

Join the discussion →

なぜ、RustがAI時代に覇権言語になる可能性が割と高いのか?

はじめに 本稿は「面倒で難しい」と評されがちなRustがなぜLLM AI時代において覇権言語になり得るのかを整理します。結論を先に述べれば「Rustが人間に優しいから」ではなく「Rustが機械と現実に優しいから」という方向で勝ち筋が生まれます。ここで言う覇権は単一言語への収束を断言する意味ではなく基幹領域での採用が...

Join the discussion →

GDB examine command shows different value than value loaded from the same address

I tried to make a function that finds all existing PCIe device's functions and saves the physical address of their config space to an allocated memory for my os, but I noticed that I got WAY too much saved addresses for the simple qemu vm I was testing this on so I tried to use gdb to check if it detects non existing functions correctly, but when testing the vendor ID I found something very weird: I have an address pointing to the vendor id stored in RDX and when I use the gdb examine command it shows the vendor id is 0x8086 and after the mov instruction to move the vendor id from whats RDX po

Join the discussion →
Older stories