on-internet

API quota reached, multiple applications affected [closed]

Im using Autodesk APIs for several apps which are currently down, and over the weekend I received a mail that: "Hello [user], Your team has reached its API quota for the developer hub — [name of hub]. Apps that use the affected APIs may be experiencing disruption. API quota reflects all applicable entitlements for your team that allow you to use APS APIs, including Token Flex, Flex tokens, and Free tier." I have looked over all the APIs usage and none of them seem to even come close to the API limits. the only API with limits that I use is Model Derivative (300k calls) which during October my

Join the discussion →

Urgent: API quota reached, multiple applications affected

Im using Autodesk APIs for several apps which are currently down, and over the weekend I received a mail that: "Hello [user], Your team has reached its API quota for the developer hub — [name of hub]. Apps that use the affected APIs may be experiencing disruption. API quota reflects all applicable entitlements for your team that allow you to use APS APIs, including Token Flex, Flex tokens, and Free tier." I have looked over all the APIs usage and none of them seem to even come close to the API limits. the only API with limits that I use is Model Derivative (300k calls) which during October my

Join the discussion →

How can I validate if a string is a real number in Python using string methods? [duplicate]

The assignment: Write a Python program that reads text from the keyboard and uses string manipulation methods to validate whether the input is a valid real number. Valid examples: -4.313, 0.341, 13, -3, 1.5, 2., .6 Invalid examples: --123, 1-21, 1..3, 12..., .-21 My latest attempt: number = eval(input("Enter a number:")) while type(number) == float: if number < 0 or number > 0: print(f"Numarul {number} este real") break Previously, I also tried using isdecimal(), but that didn't recognize negative numbers or decimal numbers containing a point. I understand that my current approach doesn't corr

Join the discussion →

How do I import a CSV file into MySQL Workbench 26.10.0 on macOS?

enter image description hereenter image description here Hello everyone, I'm a complete beginner learning SQL for data analysis, and I'm having trouble importing my first CSV file into MySQL Workbench. My setup: Operating System: macOS 15 Architecture: Apple Silicon (ARM64) MySQL Workbench: 26.10.0 MySQL Server: MySQL Community Server 8.4.13 What I've done so far: Successfully installed MySQL Server and MySQL Workbench. Created a database called data_analytics. Successfully connected to MySQL using root@localhost:3306. Set data_analytics as my current/default schema. My problem: I'm trying to

Join the discussion →

IEEE 754 a bug?

When working with floating-point arithmetic in almost any programming language, we encounter well-known precision issues, such as: 0.1 + 0.2 = 0.30000000000000004 I am trying to understand how computer science classifies this behavior compared to historical time-related bugs like Y2K or the Year 2038 problem (Y2038). While Y2038 is widely considered a critical bug caused by storing time in a signed 32-bit integer, the 0.1 + 0.2 behavior stems from the IEEE 754 standard's inability to represent certain base-10 fractions accurately in base-2 (binary). From a software engineering and architectura

Join the discussion →

Can my continental waterway system feasibly work?

My worldbuilding goal is to create a logistical system for my ancient human civilization. Generally, this civilization needs to urgently deliver certain goods in bulk to the continental center, frequently return to retrieve more, and then head back to the center, creating a continuous cycle. Since land transportation and a lack of modern technology massively hamper efficiency, I decided on maritime shipping and designed this hydrological system to justify their ancient logistics. Consider the following: Massive, circular continent Large inland sea at the center Emanating from the inland sea ar

Join the discussion →

How can I return a value from a function decorator and from the function itself?

I want to time how long a function takes to execute by using a decorator. My issue is that I want the decorator to return the time value it measured along with the return value of the function. How can I achieve this? Another thing is that I expect the time taken to execute the function to be less than 1 second for small input values. However it shows more time than that. What could cause this? def measure_time(func): def wrapper(): import timeit time = timeit.timeit('func()', globals={'func':func}, number=1) return time return wrapper @measure_time def get_num(): listt = [] for i in range(n+1

Join the discussion →

How can I return a value from a function decorator and the function itself?

I want to time how long a function takes to execute by using a decorator. My issue is that I want to decorator to return the time value it measured along with the return value of the function. How can I achieve this? Another thing is that I expect the time taken to execute the function to be less than 1 second for small input values. However it shows more time than that. What could cause this? def measure_time(func): def wrapper(): import timeit time = timeit.timeit('func()',globals={'func':func},number=1) return time return wrapper n=int(input('Please enter your number: ')) @measure_time def

Join the discussion →

problem with returning a function/decorator

sorry I am a little bit new to python and I have a problem here. at the same time I want to return my list(listt) not print and print it outside the functions before the execution time being returned. I can not kind of figure out how the decorator works and also how to print listt outside the function as I don't want the time of printing be calculated and listt is now local. another thing is I feel like the time for small numbers should be below 1 second but now it returns more than that. Could you please help me fix this problem? I am sorry for this noobish question def measure_time(func): de

Join the discussion →

Tokenize/untokenize leaves unwanted lines

When using tokenize to remove a line from source code, untokenize adds back in blank lines for all those lines which I have removed: import tokenize as t from io import StringIO source_code = """a = 'one' b = 'two' c = 'three' d = 'four' e = 'five' """ modi_toks = [] toks = t.generate_tokens(StringIO(source_code).readline) for tok in toks: if not ( 1 < tok.start[0] < 4): modi_toks.append(tok) modi_source = t.untokenize(modi_toks) print(f"{source_code=}") print(modi_source) I have tried writing only (tok.type, tok.string) to the new tokens list but that then causes the white space between the '

Join the discussion →

Tokenize / unotkenize leaves unwanted lines

When using tokenize to remove a line from source code untokenize adds back in blank lines for all those lines which I have removed, see example: import tokenize as t from io import StringIO source_code = """a = 'one' b = 'two' c = 'three' d = 'four' e = 'five' """ modi_toks = [] toks = t.generate_tokens(StringIO(source_code).readline) for tok in toks: if not ( 1 < tok.start[0] < 4): modi_toks.append(tok) modi_source = t.untokenize(modi_toks) print(f"{source_code=}") print(modi_source) I have tried writing only (tok.type, tok.string) to the new tokens list but that then causes the white space b

Join the discussion →

How can I set a static lock screen wallpaper without resetting the OEM lock screen style (clock style, widgets, depth effect)?

I'm building an Android app that sets the currently playing track's album art as the **lock screen** wallpaper (minSdk 26, targetSdk 36). Each time the track changes, it sets a new static bitmap on the lock screen only. On HyperOS and ColorOS devices, the lock screen customisation (clock style, lock screen widgets, depth effect) resets to the phone maker's default whenever my app changes the wallpaper. Setting the same image by hand through the system wallpaper picker keeps the customisation. Device(s) where this happens: - REDMI Note 15 Pro 5G (25080RABDG), Android 15 (API 35), HyperOS 2.0 (O

Join the discussion →

gstreamer won't process mjpeg source

I'm trying to digitize old video tapes through an old camcorder via a Terratec G4 interface. The G4 produces an (badly de-interlaced...) MJPEG stream at /dev/video0, plus stereo audio (as an alsa source, hw:3). what works I am able to select both sources in OBS studio and record them to a video file, and sound is nicely synced. However, I'd really prefer not re-encoding or compressing anything since I want to re-interlace and then properly de-interlace the video stream with vapoursynth. For that reason, I've started using ffmpeg directly, to copy video and audio stream into a matroska containe

Join the discussion →

How Will AI Affect Open Source Development?

This week the Linux Foundation's Open Source Security Foundation (OpenSSF) announced it would broaden its AI security resources, including a new guide to finding and fixing vulnerabilities using AI, "from preparing and sandboxing AI to validating, fixing, and preventing issues." The guide "stresses that AI-generated patches should never be trusted without automated tests and human review. An online course (LFD126) is planned for the coming months." OpenSSF also released the State of AI Impact on Software Security and Cybersecurity 2026 report (supported by OpenSSF, ActiveState and the Linux Fo

Join the discussion →

Why do my deleted posts and comments still show up in other Lemmy communities?

submitted by gatitaQwQ to asklemmy 6 points | 3 comments I’m starting to get annoyed with Lemmy. None of the posts I delete seem to disappear from the internet. My profile still shows up in other communities, and everything I delete—posts and comments—still seems visible to people. It’s really annoying. Sometimes I want something to disappear for good, but it’s still there for people to read or see. Am I the only one who thought I’d actually deleted it? -_-

Join the discussion →
Older stories