on-internet

An invalid work-order date passes TRY_CAST when encoded as an integer

For a work-order import, I need to reject invalid calendar dates before using them as DATE values. This minimal example uses Apache IoTDB 2.0.10, Table model, with the 2.0.10 CLI. The input contains both a compact YYYYMMDD integer and the corresponding date string. CREATE DATABASE maintenance_calendar; USE maintenance_calendar; CREATE TABLE work_orders(device STRING TAG,day_code INT32 FIELD,day_text STRING FIELD); INSERT INTO work_orders(time,device,day_code,day_text) VALUES (1000,'pump_a',20250228,'2025-02-28'),(2000,'pump_a',20250230,'2025-02-30'),(3000,'pump_a',20240229,'2024-02-29'); The s

Join the discussion →

Why is inflation desirable?

submitted by tired_n_bored to asklemmy 2 points | 3 comments I’ve been wondering this question for a while. Ignoring current events, why is a little bit of inflation desirable? I do understand that it’s done to “stimulate” the economy so people don’t let their cash rot in a checking account, but isn’t it a zero-sum game? Everybody says that money is not meant to stay where it is, rather, should flow through the economy. But if the economy always needs injections of liquidity because otherwise it fails, isn’t the economy broken? I feel like there’s something I can’t comprehend about that.

Join the discussion →

How can I integrate WISE sandbox account for fetching balance statement?

I am actually stuck at SCA and I will be using a partner account. I tried to integrate the challenges and the keys (public/private keys challenge) for balance statement fetching but Unable to perform anything. If you have ever worked on account integration for wise for fetching balance statement, especially for Europe, Kindly Help. Thanks

Join the discussion →

Did Admob NextGen preloading API break frequency cap?

I have an admob interstitial ad with frequency cap of one ad for every 3 mintues. I started using the new NextGen preloading API with default buffer size. Now users are seeing 2 ads in less than 3 minutes. Anybody else is seeing this issue as well? Any idea how to fix it?

Join the discussion →

Set custom width for tick labels

The Python code: import matplotlib.pyplot as plt x=[0,1,2,3,4,5] data1=[0,1,2,3,4,5] data2=[0.0,.001,.002,.003,.004,.005] axs=plt.figure(dpi=1200,figsize = (9,6)).add_subplot(1,1,1) axs.plot(x,data1) plt.show() axs=plt.figure(dpi=1200,figsize = (9,6)).add_subplot(1,1,1) axs.plot(x,data2) plt.show() produces two almost identical plots, except for the y-axis ticks: they are wider in the second plot ("0.0001" vs "1") and, hence, the plot is wider, with the actual diagram box being the same size. However, I would like to have the plots lined up exactly (e.g., for showing two plots on consecutive s

Join the discussion →

Matplotlib: Set custom width for tick labels

The python code import matplotlib.pyplot as plt x=[0,1,2,3,4,5] data1=[0,1,2,3,4,5] data2=[0.0,.001,.002,.003,.004,.005] axs=plt.figure(dpi=1200,figsize = (9,6)).add_subplot(1,1,1) axs.plot(x,data1) plt.show() axs=plt.figure(dpi=1200,figsize = (9,6)).add_subplot(1,1,1) axs.plot(x,data2) plt.show() produces two almost identical plots, except for the y-axis ticks: They are wider in the second plot ("0.0001" vs "1"), and hence, the plot is wider, with the actual diagram box bein the same size. However, I would like to have the plots lined up exactly (e.g., for showing two plots on consecutive sli

Join the discussion →

How could i improve this Quiz in vue3

<script setup> const questions = ref([]); const init = () => { for (let i = 0; i < quizData.length; i++) { const q = quizData[i]; questions.value.push(new Questions(q.question, q.options, q.correctAnswer)); } }; init(); const currentIndex = ref(0); const selectedAnswer = ref(''); const score = ref(0); const finished = ref(false); const currentQuestion = computed(() => questions.value[currentIndex.value]); const progress = computed(() => ((currentIndex.value + 1) / questions.value.length) * 100); const selectAnswer = (answer) => { selectedAnswer.value = answer; }; const nextQuestion = () => { i

Join the discussion →

How to Calculate Daily Calorie Deficit Using TDEE in JavaScript?

I'm working on a calorie calculator that helps users understand their daily calorie requirements and weight-loss goals. I want to calculate a daily calorie target based on Total Daily Energy Expenditure (TDEE) and a selected calorie deficit. For example: TDEE: 2,400 calories Daily calorie deficit: 500 calories Target calorie intake: 1,900 calories What is the best way to implement this calculation in JavaScript? How can I make sure the result updates correctly when the user's TDEE or selected deficit changes? I'd appreciate a simple coding example and suggestions for handling different deficit

Join the discussion →

Does Cache distort images on a website or is it something else

So ive recently built a website and put it live. I checked it out on mobile as well and everything was okay, however, today morning i woke up and checked it out again and the images on mobile seem stretched out and abit zoomed in. On my desktop browser its still fine and when i switch to mobile view on my desktop browser its still fine, its just when i check on my actual phone browser (safari) that i notice this change. Is this a cache thing or am I dealing with something else, and if its a cache thing then how can I fix this for the user Thank you, if you need any more context kindly lmk

Join the discussion →

Do you compare raw output values or only the final prediction when validating a deployed model?

I'm deploying a small classification model on an NXP-based embedded target and I'm currently setting up some verification tests. One thing I'm unsure about is what I should actually compare. The raw output values from the deployed model are never exactly the same as the TensorFlow model, especially after quantization. For example: Python: TensorFlow: [0.72, 0.18, 0.10] C: Embedded: [0.68, 0.22, 0.10] Both models predict the same class, but the scores differ. In practice, do you compare the actual output values with a tolerance, or do you only care that the final prediction remains unchanged?

Join the discussion →

US and Rest of World Must Follow China's Lead On Green Energy, Says John Kerry

Longtime Slashdot reader AmiMoJo shares a report from The Guardian: China is leading the world in moving away from fossil fuels, and the rest of the globe -- including the US -- must now follow, the former US secretary of state John Kerry has told the Guardian, as Cop watchers wonder exactly how China is going to approach this year's climate summit. As Cop31 opens -- this year the climate conference is in Turkey -- there is plenty of speculation about whether China will finally step into the leadership role that it has long avoided. In its latest "five-year plan" adopted in March 2026, China f

Join the discussion →

How can I exclude sampling gaps when calculating accompanying time between two Ganos trajectories?

I am using Ganos in PolarDB for PostgreSQL to calculate how long two trajectories remain within a specified distance of each other. I need to exclude missing-data intervals. My rule is: Linearly interpolate between consecutive samples only when their time difference is 120 seconds or less. If the time difference exceeds 120 seconds, treat the interval between those samples as unknown. Count accompanying time only when both trajectories have valid positions. Do not merge accompanying intervals across unknown periods. The following synthetic example uses Cartesian coordinates and a distance thre

Join the discussion →

Can my river wheel feasibly solve the pre-modern logistics of sending millions of corpses into the continental center?

My worldbuilding setup: Large, abnormally abundant, circular-shaped continent Extremely massive human civilizations supported by natural super-crops that can feed millions even with ancient, pre-modern means Dangerous environment that causes frequent mass death: diseases, disasters, mysterious phenomena, asteroid strikes, abnormal life forms, etc. Periodically, the civilization is nearly or fully wiped out completely and is succeeded by another shortly thereafter. Deaths can range from the thousands to the millions or the billions, depending on the current civilization's progress and how much

Join the discussion →

FreeRTOS producer-consumer queue locks up / consumer task fails to execute on ATSAMC21 (Harmony v3)

Question Body: Body: I am developing a multi-task FreeRTOS application on an ATSAMC21 (ARM Cortex-M0+) microcontroller using MPLAB X IDE and MCC Harmony v3. I have set up a Producer-Consumer pattern with two producers (Task1 and Task3) and one consumer (Task2) communicating via a shared FreeRTOS queue (xSensorQueue) configured with a length of 1. The Symptom: In my main() function, initialization completes successfully, and I see "no issue with creating the task" printed over UART (SERCOM4). However, once the scheduler starts, the application freezes, and Task2 (the consumer) never seems to ex

Join the discussion →
Older stories