on-internet

Linux question-numlock

submitted by danciestlobster to asklemmy 1 points | 1 comments I switched to Linux a during the year of the Linux desktop ™ and it’s been great but I have one small issue maybe someone knows how to fix. I have tried 4 different distros so far (currently using bazzite and kachy on two different machines) and they all do this: every time the computer restarts, numlock turns off by default. I use keyboards with a numpad and the numpads do nothing it seems unless I hit numlock first. This is compared to every windows or apple machine used previously where numlock is pressed once after buying the c

Join the discussion →

Financial reconciliation architecture

\I'm developing a financial reconciliation engine using Python, FastAPI and PostgreSQL. The system is designed to reconcile three independent financial data sources: Payment transactions from customers. Payment processor settlement and payout records. Bank deposits and statement records. The challenge is that these records frequently don't match directly. For example: Multiple customer transactions may be combined into one settlement. Processor fees and taxes may reduce the deposited amount. Bank deposits may arrive hours or days later. Refunds, partial payments and reversals complicate matchi

Join the discussion →

Problem with decorators and how to measure the execution time of a function

I want to use this measure_time function as a decorator on get_num but it says NameError: name 'func' is not defined Is there another module or correction on this? I need a decorator to measure the time of execution of every function. def measure_time(func): def wrapper(): import timeit time=timeit.timeit('func()',number=1) print(time) return wrapper @measure_time def get_num(): listt=[] n=int(input()) for i in range(n+1): if i==0: continue listt.append(i) return listt print(get_num())

Join the discussion →

Problem with decorators and how to measure the execution time a function

I want to use this measure_time function as a decorator on get_num but it says func is not defined. Is there another module or correction on this? I need a decorator to measure the time of execution of every function. def measure_time(func): def wrapper(): import timeit time=timeit.timeit('func()',number=1) print(time) return wrapper @measure_time def get_num(): listt=[] n=int(input()) for i in range(n+1): if i==0: continue listt.append(i) return listt print(get_num())

Join the discussion →

having a problem with decorators and how to mesure the time of execution of a function

I want to use this measure_time function as a decorator on get_num but it says func is not defined. Is there another module or correction on this? I need a decorator to measure the time of execution of every function. def measure_time(func): def wrapper(): import timeit time=timeit.timeit('func()',number=1) print(time) return wrapper @measure_time def get_num(): listt=[] n=int(input()) for i in range(n+1): if i==0: continue listt.append(i) return listt print(get_num())

Join the discussion →

Jekyll build always generates cached CSS

Every time I run jekyll build for some reason the CSS is always cached. If I run jekyll serve --livereload the site builds with cached CSS then if I change a file, the live reload updates all of the CSS. Currently the only way to push updated code to my Netlify instance is to run jekyll serve --livereload, update a file and copy everything from the _site folder, which seems silly and counterintuitive. Plus my client would like to run jekyll build as they normally would. I have tried adding this: {% assign cacheVersion = site.time | date:'?v=%s' %} <link rel="stylesheet" href="{{ "/assets/css/s

Join the discussion →

Godot 4 - Light quality

I created simple 3D scene with sphere and DirectionalLight3D. Light appears on the sphere in the form of bands (halos). How can these bands be smoothed out? Is it possible to scale them up a thousand times? Godot 4.7.2. Same sphere, different camera positions:

Join the discussion →

Ex-Nvidia CEO Misled Company Leaders On Affair With Chinese Businesswoman

An anonymous reader quotes a report from Reuters: Former Nvidia CEO Jensen Huang misled several of the company's leaders, including general counsel Tim Teter and chief marketing officer Alison Wagonfeld, about the nature of his relationship with Chinese businesswoman Alice Huang, with whom he had an affair, according to two people familiar with the matter and internal correspondence reviewed by Reuters. [...] During the autumn of 2025 and in October 2026, in response to press queries that drew some Nvidia leaders' attention to his relationship with Megaspeed and Alice Huang, Huang at both time

Join the discussion →
Older stories