submitted by snd to asklemmy 79 points | 27 comments Hello Lemmy. I have completed my bachelor’s degree and will start a master’s program in April. This means that I am lucky to have a lot of free time in the next few months. I want to take this opportunity to spend time with my grandma, because she is very old and I probably won’t have that chance again. My question is, how would you spend time with your grandma if she was still alive or you had the necessary time?
Can a single Redis process bottleneck the network/CPU/disk io of a machine? Would adding multiple Redis processes running simultaneously on the same machine add/scale the total the number of serviceable reads or writes from those separate processes? I have worked with some kqueue, epoll and liburing - I never tried to run multiple servers on the same machine. This is essentially sharding, since each Redis process would serve different clients and different data I would need multiple machines to benchmark this, costing money so that is why I asked if anybody had any intuition on Redis scalabili
Some workplaces are holding mandatory AI training sessions, while others "are requiring employees to use a specific number of tokens," reports the Washington Post, "or log a certain amount of time on AI platforms." The article's headline? "Why mandating AI use in the workplace can backfire." [A] lot of employers are going about it the wrong way, said Arvind Karunakaran, an assistant professor of management science and engineering at Stanford University. "You can consume a lot of tokens without creating a lot of value," Karunakaran said.... The adoption of AI is happening faster than the adopti
I've noticed a inconsistent results in Postgres when comparing two ARRAYs using an inequality ( e.g. >, < ), where one element of one ARRAY is NULL. In composite inequalities where one element is NULL, I get the expected result back: NULL. SELECT (11::INT,1,1) > (NULL,9,9) ;--RESULT: "NULL" However with ARRAY[]s comparisons where one element is NULL, I'm getting a BOOLEAN TRUE or FALSE as a result, and not a NULL. SELECT ARRAY[11,1,1] > ARRAY[NULL::INT,9,9] ;--RESULT "FALSE" A similar inconsistency arises when comparing a composite value using a NOT IN() operator (at end of examples). In that
"I didn't think a rock like this existed on Earth," a geologist at the Lunar and Planetary Institute in Texas told the Washington Post. It looks like a polished rock, dark brown with a clay-colored stripe — but it's actually one of the oldest Mars meteorites ever found, blasted by an impact from the surface of Mars billions of years ago: Technically speaking it's a collection of eight rock fragments, the largest of which is about the size of a fist. Nearly two pounds of the meteorite was discovered in the Sahara in Mali in 2022, and most is now held by a museum in Maine. Within two years, an i
I am currently programming a 2d platformer, and movement using a finite state machine. My movement works perfectly as intended when I only press left or right, but, for example, when I hold down right and tap left my character can no longer move until both inputs are released. This is the code for my movement inside the move_state. extends State @export var idle_state: State @export var jump_state: State @export var fall_state: State var move_speed: float = 400.0 var acceleration: float = 25.5 func process_physics(delta: float) -> State: parent.velocity.y += gravity * delta var movement = Inpu
The following C++ program is rejected by both GCC and EDG, but accepted by Clang and MSVC. Demo. template<unsigned int N = 1> void f1(const int (&)[N]) {} int main() { f1({}); // GCC & EDG reject this; Clang & MSC accept } I want to know which compiler is correct here as per the C++23 standard. GCC says: <source>: In function 'int main()': <source>:5:9: error: no matching function for call to 'f1(<brace-enclosed initializer list>)' 5 | f1({}); //gcc & edg: NO while clang & msvc: Ok | ~~^~~~ • there is 1 candidate • candidate 1: 'template<unsigned int N> void f1(const int (&)[N])' <source>:2:6:
The following program valid program(afaik) is rejected by both gcc and edg but accepted by clang and msvc. Demo. template<unsigned int N = 1> void f1(const int (&)[N]) {} int main() { f1({}); //gcc & edg: NO while clang & msvc: Ok } I want to know which compiler is correct here as per the c++23 standard. GCC says: <source>: In function 'int main()': <source>:5:9: error: no matching function for call to 'f1(<brace-enclosed initializer list>)' 5 | f1({}); //gcc & edg: NO while clang & msvc: Ok | ~~^~~~ • there is 1 candidate • candidate 1: 'template<unsigned int N> void f1(const int (&)[N])' <so
Despite the Trump administration's efforts to halt development on a $6.2 billion wind farm, it's now "completely up and running," reports the nonprofit energy news site Canary Media, delivering enough electricity to power the equivalent over 350,000 homes: On Thursday, the Danish energy giant Ørsted said its 704-megawatt wind farm near Connecticut and Rhode Island began "generating up to its full capacity" in October. Revolution Wind began producing smaller amounts of power in the spring, and the company installed the last of 65 turbines in September. The project is the third U.S. utility-scal
I have problems with SwiftData ModelContainer that does not replay correctly in one of my HW iPhones (an iPhone12 fully updated that I got from a friend that bought a new phone), but my iPad and the emulators makes no problem. But the iPhone 12 I got makes no database return most of the time, too bad to be usable. import Foundation import SwiftData actor CustomContainer { @MainActor static func create(shouldCreateDefaults: inout Bool) -> ModelContainer { let schema = Schema([Deal.self]) let configuration = ModelConfiguration() let container = try! ModelContainer(for: schema, configurations: co
"AlmaLinux OS charted a new path in 2023 when Red Hat restricted source code access to Red Hat Enterprise Linux," remembers Linux Magazine. "Rather than pursue 1:1 compatibility with RHEL like other Enterprise Linux alternatives, the AlmaLinux OS Foundation chose application binary interface (ABI) compatibility, which guarantees that applications and kernel modules that work on RHEL will work on AlmaLinux OS." No longer constrained by the 1:1 promise, AlmaLinux can offer new features, or add back deprecated ones, while still remaining a stable, drop-in replacement for RHEL... The release of Al
An anonymous reader quotes a report from The New York Times: A Chinese businesswoman who had a close relationship with the chief executive of one of the most important artificial intelligence companies in the United States was a spy for China's Ministry of State Security, Beijing's top intelligence agency, according to people briefed on U.S. surveillance. The businesswoman, Alice Huang, was recruited by the ministry to collect intelligence on Jensen Huang, the chief executive of Nvidia, as part of a drive to learn more about American A.I. chips and potentially influence the company to push for