on-internet

Can a defaulted comparison operator have parameters of types `const A` and `A`?

In the following program, a friend equality operator is defaulted with one parameter declared const A and the other A: struct A { friend bool operator==(const A, A) = default; }; GCC and EDG accept it, but Clang and MSVC reject it. Clang's error: error: invalid parameter type for defaulted equality comparison operator; found 'const A', expected 'const A &' or 'A' MSVC's error: error C2610: 'bool operator ==(const A,A)': is not a special member function or comparison operator which can be defaulted note: default arguments or varargs are not allowed Online demo: https://godbolt.org/z/zTdYEjPob W

Join the discussion →

ubuntu 26.10 CIFS + apache2 high communication rate

i am using ubuntu ARM 26.10 fpr my raspberry pi 4 and i have some problems. the communication between my NAS and my PI is extremly high after i installed apache2. i use: tcpdump -i any -nn -tttt -l -s 0 'ip and host 192.168.8.141' >> /root/network-traffic_141.log to capture the communication real example A without apache2 which is ok and legitime looks like that: 2026-11-17 13:45:56.089446 eth0 Out IP 192.168.8.141.45564 > 192.168.8.1.123: NTPv4, Client, length 48 2026-11-17 13:45:56.090387 eth0 In IP 192.168.8.1.123 > 192.168.8.141.45564: NTPv4, Server, length 48 2026-11-17 13:46:07.165973 et

Join the discussion →

Get GPS Location Coordinates using OpenStreetMap

I am trying to get the GPS Coordinates for an address using OpenStreetMap. Below is the code that I found on the Internet that I have modified for my particulars Public Async Function GetCoordinatesOsmAsync(address As String) As Task(Of (Latitude As Double, Longitude As Double)?) 'Public Function GetCoordinatesOsmAsync(address As String) As GPSCoordType Dim encodedAddress As String = Uri.EscapeDataString(address) Dim url As String = "https://openstreetmap.org{encodedAddress}&format=json&limit=1" Using client As New HttpClient() ' Nominatim requires a valid User-Agent header Dim HeaderString As

Join the discussion →

Developers who successfully switched jobs while working full-time, how did you manage it? (2025 Graduate | Java Developer) [closed]

I'm a 2025 graduate currently working as a Java Developer, and I'm looking for genuine advice from people who have successfully switched jobs. A little about my background: I'm a 2025 passed-out graduate. I completed a 1-year internship at an organization. Recently, I was transitioned from an intern to a full-time employee in the same organization. However, the package offered was only 3 LPA. My technical experience includes Java, Spring Boot, REST APIs, SQL, debugging, and working on an existing production application. I'm grateful for the experience I've gained, but I would like to explore b

Join the discussion →

How to deal with confusing pull requests due to following gitflow branching strategy?

Gitflow strategy: main: Stores official, production-ready releases. develop: Serves as the integration branch for upcoming features. feature/*: Branches off develop for new features; merges back into develop. release/*: Branches off develop to prep a release (bug fixes/metadata); merges into both main and develop. hotfix/*: Branches off main for urgent production bugs; merges into both main and develop. We have rulesets that enforce pull requests to develop and main. The confusion arises when hotfix or release branch is merged with develop. I don't know how it happens, but sometimes the PR wou

Join the discussion →

Is there any good lists of all accepted Wordle guesses [closed]

I want to create a new twist on the New York Times game Wordle. In the game, you would face off against another person, naming all 5-letter words they could think of that start with a certain letter. I cannot find any complete lists of acceptable words. Does anyone know a site for it? By the way, I am using JavaScript/JSON.

Join the discussion →

How can I get Xcode to add packages

Xcode hangs on "Add package dependencies...". The spinner just keeps spinning. Selecting GitHub (the only thing in the list also just has the spinner. I've cleared the cache, restarted Xcode, restarted the laptop. Nothing changes. Even had Claude troubleshoot for about an hour. Any ideas would be welcome. I'm about to delete Xcode and re-install.

Join the discussion →

How do I resize a background image to height: 100%;? [duplicate]

I am trying to achieve a result like the one in the image, where the background-image has the same height as the container (minus the padding). (The magnifying glass is the image I want to appear inside the <input> element) . but for now it looks like this: I don't know if it might be useful, but here is the <input> style so far: .searchbar { width: 100%; height: 22.5px; padding: 1px 3px; box-sizing: border-box; color: rgb(66, 66, 66); font-family: 'Segoe UI'; background: linear-gradient(white, rgb(175, 232, 255)); border: 1.5px solid rgb(94, 94, 94); border-radius: 4px; outline: none; } .sear

Join the discussion →

How do I set a background image so that it appears as a single image anchored to the right? [duplicate]

I would like to have an <input> element that contains an image, anchored to the right. Since I cannot place elements inside an <input> tag, I believe the best approach is to use a specifically configured background. I would like to achieve a result like the one in the photo (The magnifying glass is the image I want to appear inside the <input> element) . I don't know if it might be useful, but here is the <input> style so far: .searchbar { width: 100%; height: 22.5px; padding: 1px 3px; box-sizing: border-box; color: rgb(66, 66, 66); font-family: 'Segoe UI'; background: linear-gradient(white, r

Join the discussion →

problems plotting the derivative of a function

I have to get acquainted with my python, integrating the new syntax. I have used the book Python 3 by Johannes Ernesti and Peter Kaiser. (corrected in 2018 from Rheinwerk Computing). This content is a bit outdated and several modules like scipy.misc are no longer supported and will disappear soonish as far as I have understood. So in this simple programm it is just the task to plot certain functions, among which is also(!) the derivative which creates huge problems. It is the line with plotting the function Y1. Regarding the definition I tried already a myriad of things, such as import scipy.m

Join the discussion →

Problems defining derivative of a function

I have to get acquainted with my python, integrating the new syntax. I have used the book Python 3 by Johannes Ernesti and Peter Kaiser. (corrected in 2018 from Rheinwerk Computing). This content is a bit outdated and several modules like scipy.misc are no longer supported and will disappear soonish as far as I have understood. So in this simple programm it is just the task to plot certain functions, among which is also(!) the derivative which creates huge problems. It is the line with plotting the function Y1. Regarding the definition I tried already a myriad of things, such as import scipy.m

Join the discussion →

What book(s) are you currently reading or listening to? November 17

submitted by dresden to books 1 points | 0 comments Finished Fated by Benedict Jacka. First book in the Alex Verus Urban Fantasy. It was interesting to see an urban fantasy wizard that is completely different from Dresden and Peter Grant (Rivers of London). Though, I guess Verus is much closer to Dresden than Grant. Entering the spoiler territory, so skip the rest of the paragraph if you care about that. The main difference is that Verus has only one power, divination magic, in a sense, he can see future, but he lacks any actual fire power when it comes to combat. So, it’s interesting to see h

Join the discussion →

Uber Says Hackers Stole Info On Nearly 150K Driver's Licenses During Data Breach

An anonymous reader quotes a report from TechCrunch: Uber is notifying close to 150,000 drivers that their personal and driver's license information was stolen during an October data breach at one of the company's tech providers. In notices filed this week with several U.S. attorneys general, including California and Iowa, the ride-hailing giant said it was notified on October 9 by the provider that hackers broke in and stole internal credentials, which were used to access Uber's data. The company said it subsequently began notifying affected drivers that their personal information was stored

Join the discussion →
Older stories