on-internet

Counting contiguous ranges in a day ( SQL / Google BigQuery )

So I have something that works , but it's currently a query running for one day / one site. I was wondering if there's a best practice / pattern I should use. As they say , a picture is worth a thousand words, in this example, I have a series of temperature recordings and a given 'safe' range they should fall in. Timing of Alerts ( Line ) vs Temp Range When they are out of range for more than 60 minutes, this triggers an alert , however this isn't recorded in the reporting data, only the temperature ranges. I'm using a quick CTE to cumulatively sum and give a UID to each range concurrent / con

Join the discussion →

US Visa Interview with a Minor Child

My sister and her son have their US visa interviews scheduled for the same day but at different times. My sister's appointment is in the morning, while her son's (a minor) appointment is in the afternoon. Due to a technical issue with her US Travel Docs account, she wasn't able to add her son as a dependent to her application. Does anyone know if she can take her son along to her morning appointment instead of bringing him back for the afternoon slot? Also, who would be the right person or authority to contact to clarify this? Would appreciate any advice or similar experiences. Thanks!

Join the discussion →

Would underwater forging be feasible for a magically advanced civilisation?

It’s been a while since I had this idea of introducing in my world a civilisation of dwarves which lives in underwater cities (think of a fantasy equivalent of Rapture/Subnautica), and so naturally I started to think about how and why they would do so. One of the explanations I came up with involved some insular dwarves living in a Hawaii-like archipelago, using the volcanoes and magma as a source of heat for their forges. One day, however, the volcanoes erupt and collapse like in Thera/Santorini, leaving just a tiny ring of surface around the hollow. Assuming A) that the dwarves survived and

Join the discussion →

Github Redesign (2019)

I suggest the conversation steer away from the controversial last point where he flattens the UI quite a bit to make it less "dated", as the rest was quite good up until that point, and that deserves being discussed. Comments

Join the discussion →

Github Redesign

I suggest the conversation steer away from the controversial last point where he flattens the UI quite a bit to make it less "dated", as the rest was quite good up until that point, and that deserves being discussed. Comments

Join the discussion →

Deriv R package fails to compile on Alpine Linux

I wanted to install Rcmdr but when Deriv had to be compiled I had the following error: /usr/include/fortify/stdio.h: In function '__to_xstring.constprop': /usr/include/fortify/stdio.h:82:28: error: inlining failed in call to 'always_inline' 'vsnprintf': function body can be overwritten at link time 82 | _FORTIFY_FN(vsnprintf) int vsnprintf(char * _FORTIFY_POS0 __s, size_t __n, | ^ /usr/include/c++/15.2.0/ext/string_conversions.h:115:32: note: called from here 115 | const int __len = __convf(__s, __n, __fmt, __args); | ^ lto-wrapper: fatal error: c++ returned 1 exit status compilation terminate

Join the discussion →

Python to SharePoint SPO, upload files, what is authentication flow

I'd like to create a script to upload files (or single file to start) to SPO from //network drive, and just realized that MS made big changes for Auth. What are some packages/approach to do this? Is this using MSAL library? I thought that I know enough for API, but dealing with SPO looks special. I was able to get my token, but can't go further target folder on SPO: https://cbx28.sharepoint.com/sites/MySite/SitePages/CollabHome.aspxShared Documents/Reports I did my homework in Azure with app registration, but probably missed something? import os import msal from office365.sharepoint.client_con

Join the discussion →

Python to SharePoint SPO, upload files, what is best Auth in 2026

I d like to create script to upload fies(or single file to start) to SPO from //network drive, and just realized that MS made big changes for Auth. Even chatGPT/Copilot didn't learn it yet. What is the best packages/approach to do this ? is this using MSAL library ? I though that I know enough for API, but dealing with SPO looks special. I was able to get my token, but can't go further target folder on SPO: https://cbx28.sharepoint.com/sites/MySite/SitePages/CollabHome.aspxShared Documents/Reports I did my homework in Azure with app registration, but probably missed something ?? import os impo

Join the discussion →

Content Security Policy frame-src violated

We're using: # Content Security Policy frame-src 'self' https://app.sharelinktechnologies.com https://player.vimeo.com https://www.google.com; However, the console has: "Framing 'https://app.sharelinktechnologies.com/' violates the following report-only Content Security Policy directive: "frame-src 'self'". The violation has been logged, but no further action has been taken." Help appreciated.

Join the discussion →

Why does React invoke a component function for an identical state update in one case but not another?

I am trying to understand how React handles state updates when the new state is identical to the previous state. Consider the following React component: import { useState, useEffect } from 'react'; export default function App() { const [resource, setResource] = useState("user"); console.log("render"); useEffect(() => { console.log("resource changed"); }); return ( <> <button onClick={() => setResource("user")}>User</button> <button onClick={() => setResource("posts")}>Posts</button> <button onClick={() => setResource("admin")}>Admin</button> <h2>{resource}</h2> </> ); } Observed behavior When

Join the discussion →

Google reCAPTCHA v2 intermittently does not trigger /api2/userverify request with geolocation override

We are troubleshooting an intermittent Google reCAPTCHA v2 checkbox issue on a customer login page. Problem On the affected machine, the reCAPTCHA checkbox sometimes remains in a loading/verification state after “I'm not a robot” is selected. When reCAPTCHA works normally, Chrome DevTools → Network shows requests including: /recaptcha/api2/reload /recaptcha/api2/userverify /recaptcha/api2/clr When the problem occurs, /recaptcha/api2/userverify is not initiated at all. Therefore, there is no HTTP response/error status for userverify to investigate. Troubleshooting performed We tested: Chrome an

Join the discussion →

Get items that pattern matches another table's item title

I have this API which should get all items from Item table that pattern matches in WantedItem table that Item.item_id doesn’t exist in Table_3.item_id. @app.get("/wanted_items/{user_id}") def all_wanted_items(*, session: Session = Depends(get_session), user_id: UUID): get_all_items = session.exec( select(Item, WantedItem, Table_3) .where(WantedItem.user_id == user_id) .where(Item.item_id != Table_3.item_id) .where(col(Item.title).ilike(f"%{WantedItem.title}%")) ).all() if not get_all_items : raise HTTPException( status_code=404, detail="Some content", ) return [ { "item": item.model_dump(), "w

Join the discussion →

Python SQLmodel get items that pattern matches another table's item title

I have this API which should get all items from Item table that pattern matches in WantedItem table that Item.item_id doesnt exist in Table_3.item_id. @app.get("/wanted_items/{user_id}") def all_wanted_items(*, session: Session = Depends(get_session), user_id: UUID): get_all_items = session.exec( select(Item, WantedItem, Table_3) .where(WantedItem.user_id == user_id) .where(Item.item_id != Table_3.item_id) .where(col(Item.title).ilike(f"%{WantedItem.title}%")) ).all() if not get_all_items : raise HTTPException( status_code=404, detail="Some content", ) return [ { "item": item.model_dump(), "wa

Join the discussion →

A DATE inspection field advertises java.sql.Date but getObject returns String

For an inspection-card reader, I am using JDBC metadata to choose the Java type for each returned value. A DATE field advertises java.sql.Date, but the object returned by getObject() is a String, so the metadata-driven cast fails. This is Apache IoTDB 2.0.10, Tree model, IoTDB JDBC driver 2.0.10, and Java 17.0.9. The database setup is: CREATE DATABASE root.inspection_cards; CREATE TIMESERIES root.inspection_cards.pump_a.inspected_on WITH DATATYPE=DATE,ENCODING=PLAIN; INSERT INTO root.inspection_cards.pump_a(time,inspected_on) VALUES (1000,'2025-02-28'); The direct SQL read confirms the DATE va

Join the discussion →

How to Handle Real-Time Form Editing When Multiple Users Access the Same Account?

I am working on a web application where multiple users can log in using the same account and access/edit the same form. Scenario: User 1 opens a form and starts editing it. At the same time, User 2 logs in using the same account and opens the same form. When User 1 makes changes to the form, User 2 should see those changes in real time without refreshing the page. Both users should always see the latest form data. Expected Behaviour: When one user edits a form, the changes should automatically reflect on other users' screens in real time. Avoid conflicting updates when multiple users edit the

Join the discussion →

Github Login issue ( not showing number or letting me enter neither sending sms in linked number)

broke my laptop and trying to sign in to my github account to push newer versions of my ongoing project. but when i tried logging in , in 2FA step it's not sending me sms or letting me enter my linked mobile number or showing me linked mobile no. so i could verify , rather it states :enter image description here "We tried sending an SMS to your configured number, but we are not authorized to send SMS messages to this recipient. Please resend or check our documentation for additional 2FA guidance." . i've been working on this account for 3 years can't loose it at this point please help.

Join the discussion →

Add caching to a Python @property while preventing setting and deleting the attribute

I have a method decorated with @property: class Foo: @property def prop(self): pass It prevents modification and deletion, as intended: f = Foo() f.prop = 1 # AttributeError: property 'prop' of 'Foo' object has no setter del f.prop # AttributeError: property 'prop' of 'Foo' object has no deleter Since in my case prop is expensive, I want to cache it. @cached_property is built for this very purpose: from functools import cached_property class Foo: @cached_property def prop(self): pass But it allows setting and deleting the attribute: f = Foo() f.prop = 1 # no error del f.prop # no error How can

Join the discussion →

Add caching to a Python @property while preventing settattr's and delattr's

I have a method decorated with @property: class Foo: @property def prop(self): pass It prevents modification (setattr) and deletion (delattr), as intended: f = Foo() f.prop = 1 # AttributeError: property 'prop' of 'Foo' object has no setter del f.prop # AttributeError: property 'prop' of 'Foo' object has no deleter Since in my case prop is expensive, I want to cache it. @cached_property is built for this very purpose: from functools import cached_property class Foo: @cached_property def prop(self): pass But it allows setattr and delattr: f = Foo() f.prop = 1 # no error del f.prop # no error Ho

Join the discussion →

California Sues OpenAI Over Hugging Face, Other AI Model Loss of Control

"California's attorney general just sued OpenAI," writes longtime Slashdot reader destinyland. "The action accuses OpenAI of putting public safety at risk, reports CNBC, specifically by its past failures to contain its AI models within their testing environments." From the report: [California Attorney General Rob Bonta] cited the "infamous" incident in July, where two OpenAI models broke out of a testing environment, gained unauthorized access to the open internet, and breached the internal systems of open-source developer platform Hugging Face. OpenAI said the models were trying to find infor

Join the discussion →

Quote of the day by computer scientist Judea Pearl: 'Deep learning has instead given us machines with truly impressive abilities but no intelligence' — capturing the central fault line in modern AI.

submitted by eicker to technology 5 points | 3 comments https://www.techradar.com/pro/quote-of-the-day-by-computer-scientist-judea-pearl-deep-learning-has-instead-given-us-machines-with-truly-impressive-abilities-but-no-intelligence-capturing-the-central-fault-line-in-modern-ai

Join the discussion →

What GitHub alternative do I use when my project gets too big? [closed]

I'm considering a different repository site because GitHub restricts repos to 10GB. What's a good one? My project is about 60GB of source code. It's mostly small files, but a few are over 1GB. It's both a simulation ran in MuJoCo and an archive that records everything. The largest parts are checks and reports, which is the main point of it.

Join the discussion →

What do I use when my project gets too big?

I've been working for months on a project and it's gotten large enough that I'm considering a different repository site because GitHub only wants repos that are about 10GB or less. What's a good one, any recommendations?

Join the discussion →
Older stories