on-internet

Asyncio Unhandled Exception in atexit

I have a python script that uses nodriver and has worked for years. Suddenly I started getting errors (code: -32000) from website changes I think (nothing else make sense - worked one day, not the next). During my research on this type of error, i found comments about zendriver and claims about improvements in it vs. nodriver. I easily switched to zendriver and found that my script (webscraping on a very specific site) immediately was working again. However, I now have an error from asyncio I believe that does not arise with nodriver. I have taken a pretty large script and scaled it back so th

Join the discussion →

How do I go about pivoting/summarizing this data frame when the variables are spread between multiple columns?

I have a data frame that has the same variable in different columns, and a corresponding value for each variable. library(tidyverse) df <- data.frame( store = c("A", "B", "C"), popular.item.1 = c("a", "b", "b"), item.1.sold = c(5, 7, 1), popular.item.2 = c("b", "a", ""), item.2.sold = c(2, 3, NA) ) > as_tibble(df) # A tibble: 3 × 5 store popular.item.1 item.1.sold popular.item.2 item.2.sold <chr> <chr> <dbl> <chr> <dbl> 1 A a 5 "b" 2 2 B b 7 "a" 3 3 C b 1 "" NA I would like to turn this into a table where each item is a column with the variable of how many sold at each store below it: df2 <- d

Join the discussion →

Trigonometric computation using math library

I am trying to compute an expression using the below Python code: import math from math import sin, cos, pi value = ((sin)^2(pi/2))+((cos)^2(pi/2)) print ('value=', value) I am getting the following error. It says int object is not callable and points to the line that starts with value above.

Join the discussion →

Europe Must Rethink Security As Big Tech Power Grows, EU Says

An anonymous reader quotes a report from Reuters: The European Union must rethink security to take into account challenges and risks posed by the growing power of major technology companies that go beyond traditional competition concerns, European Commission Executive Vice-President Teresa Ribera said on Monday. "We need to review and to deepen our concept of security, including cybersecurity," Ribera told reporters in Lisbon, arguing that testing and monitoring devices connected to critical infrastructure was no longer sufficient and that security means also ensuring that the Big Tech compani

Join the discussion →

The androidTest folder isn't recognized by Android Studio

I am picking up a project generated by Claude Code and I try to make the tests work. I have an issue with the tests of the app module. The androidTest folder isn't recognized as a test folder, there is no green indicator on it and there is no launch icon next to the tests. I have precised: testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" in the defaultConfig. I have also tried to set the sourcesets manually: sourceSets { named("test") { java.srcDirs("src/test/kotlin") } named("androidTest") { java.srcDirs("src/androidTest/kotlin") } getByName("androidTest") { kotlin.srcDir

Join the discussion →

git identity switcher for linux

I am using git with the ssh keys. Now I have a problem where 2 users logging into the same username(i can't change that) have the same key when they try to push to gh. And I would like to pick with what key and what identity should one push to git. Now I've seen things like gum and other identity switchers but I would like to find out if there is a simpler bash solution something like with env variables you know if the git identity is set if you try to push to git when the variable is not set you get an option to chose the git identity.

Join the discussion →

Spring Boot multi-service project: "package org.springframework.boot does not exist" in IntelliJ IDEA

I am working on a multi-service Spring Boot project originally generated via Spring Initializr. The project is split into several microservices, each with its own pom.xml and application.properties file. Recently, I keep running into a compilation issue whenever I try to build or run the services. IntelliJ IDEA shows red errors in my main application classes, and the build fails with package org.springframework.boot does not exist. Previously, running a Maven clean + compile used to fix this, but now it no longer resolves the issue.

Join the discussion →

What would or does make you forget about your phone?

submitted by SplitTheUSInFour to asklemmy 1 points | 0 comments A really good feeling hit yesterday. It was the memory of life before smartphones. I could feel it so well that I forgot what having a smartphone was like. This was triggered by a re-watch of a television show. I hadn’t seen it in 10-15 years but The Wire really got to me in the way the characters treat and use technology. Almost everything is done by hand and it put my brain in a moment of time before tech came for us all. The question, “what would I do if I didn’t have this?” came across my mind. What would I be doing with my da

Join the discussion →

Any trick you seen before like the one used in malloc from glibc?

The background is long but the description of problem are simple, read with patience pls BackGround You've definitely used malloc or take malloc apart yourself. It is one common used function to allocate memory from the stack.Since it was used in Linux and thus in many servers over all the world, some protection strategies would be necessary from servers being hacked. Source code && explanation I came across this while I was looking through the code of malloc: /* Safe-Linking: Use randomness from ASLR (mmap_base) to protect single-linked lists of TCache. That is, mask the "next" pointers of th

Join the discussion →
Older stories