on-internet

i hope this is false but is it false (There is some philosophy in such post, so be aware)??

submitted by Adniem to asklemmy 1 points | 0 comments context: i was thinking about random things until this theory hit me and i kinda want to ask the fediverse to hope that it is wrong Terminology: Deep Debate: A debate where no side is wrong or evil and both have compelling arguments (eg, Copyleft vs Permissive Licenses), Respectful Debate: A debate that is respectful in that, it does not have numerous insults, roasting, or one side trying to upset the other on purpose what i am saying: In The Threadiverse (Potentially The Fediverse As A Whole), You can have one of following: Deep Debate Or

Join the discussion →

Does the name I give Claude for myself matter?

When opening Claude for the first time, I am stuck at this question: What’s your name? So Claude knows what to call you. There doesn’t appear to be a way to skip this step in the wizard. I do not know what Claude would use this information for. So I do not know what I am supposed to put here. My primary question is, would this show up in code output? I.e., do I need to put something that my teammates would recognize? I.e., do I need to put personally identifying information here? I would rather not. Am I supposed to put something that is super familiar and close here such as a pet name that hu

Join the discussion →

Why isn't the GtkWidget pointer being initialized when passed to a separate function to initialize?

I'm trying to create reusable functions, to avoid repetition. The function createBox(GtkWidget*) which assigns the parameter box a pointer to a box widget. I have checked the parameter box is assigned a pointer inside the function createBox(GtkWidget*) but the same variable is NULL inside the initAppWindow(GtkApplication) function even though the createBox(GtkWidget) function is called. The same happens with the createButton() function. #include <stdio.h> #include <gtk/gtk.h> void createButton(GtkWidget *button, char *text, void (*onPressed) (GtkWidget*, gpointer)) { button = gtk_button_new_wi

Join the discussion →

Why isn't the GtkWidget pointer not being initialized when passed to a separate function to initialize?

I'm trying to create reusable functions, to avoid repetition. The function createBox(GtkWidget)** which assigns the parameter box a pointer to a box widget. I have checked the parameter box is assigned a pointer inside the function createBox(GtkWidget***)** but the same variable is NULL inside the initAppWindow(GtkApplication) function even though the **createBox(GtkWidget) **function is called. The same happens with the createButton() function. #include <stdio.h> #include <gtk/gtk.h> void createButton(GtkWidget *button, char *text, void (*onPressed) (GtkWidget*, gpointer)) { button = gtk_butt

Join the discussion →

The difference between nesting resources, modules, and scope in rails

My goal is to obtain routes like the following: example.com/category/product... I know in theory this is really basic to do, and I know how to do it. The reason I am creating this issue is because I like understanding in how the methods I use work. The first time I had to do this was when I read the getting started guide. (and the other guides on making this store project) I will save you the trouble of looking for what I am talking about: resources :products do resource :wishlist, only: [ :create ], module: :products resources :reviews, only: [ :new, :create ], module: :products resources :su

Join the discussion →

I have a problema with this code for a bot of whatsApp

I’m having an issue with my WhatsApp bot. Sometimes, when a new customer tries to use it, the bot is supposed to send a welcome message; however, it frequently fails to do so—in fact, it sends nothing at all. It’s as if the bot isn’t there: it receives the messages, but it doesn’t respond. I use two methods to handle the webhooks coming from Meta: the first contains the *payload* and is used to process the incoming message, while the second handles the entire response workflow. @PostMapping public ResponseEntity<String> recibirMensaje(@RequestBody String payload) { try { ObjectMapper mapper =

Join the discussion →

Nvidia Seeded Pirated Books and Shared Them With Adobe, Authors Allege

An anonymous reader quotes a report from TorrentFreak: Several book authors have filed (PDF) an amended complaint accusing Nvidia of seeding pirated books via BitTorrent, after downloading them from shadow libraries including Anna's Archive and LibGen. [...] These tools can download files via BitTorrent, and the authors and Nvidia both agree that whether they also upload data to others depends on the settings used. According to the authors, Nvidia didn't prevent seeding altogether. "When Nvidia ran the BitTorrent client, Nvidia uploaded pieces of pirated book files to third parties during the

Join the discussion →

Smugness and outrage are my emotional canaries in the coal mine for disingenuous discourse. What are yours?

submitted by Jorlmn to asklemmy 1 points | 1 comments Like if I start feeling either of those emotions when reading something online, I feel like it’s not information that’s being given to me, it’s emotional manipulation. Anyone have any other heuristics they use? Or anything similar that they wanna share? Noting those two emotions is pretty simple and works well for the most part, but i could use a couple more guidelines.

Join the discussion →

updating a pySide6 label with each keystroke

I have a beginner exercise where I need to make a label that shows the input text, but in uppercase. I tried to create a function with the same name, before I realized setText was a built-in function. I have no idea how to make it work properly. import sys from PySide6.QtWidgets import QApplication, QMainWindow, QLabel, QLineEdit, QVBoxLayout, QWidget class MainWindow(QMainWindow): def __init__(self): super().__init__() self.setWindowTitle("ALL CAPS") layout = QVBoxLayout() self.input = QLineEdit() self.label = QLabel("") self.input.textChanged.connect(self.label.setText) layout.addWidget(self

Join the discussion →

Difference between __class__ and self.__class__ in instance method

In an instance method, both __class__ and self.__class__ refer to a class: class Foo: def hello(self): print(__class__) print(self.__class__) Foo().hello() Output: <class '__main__.Foo'> <class '__main__.Foo'> What's the difference between them? In what situations would they return different classes? (obj.__class__ vs type(obj) is already discussed here)

Join the discussion →

Why do Makefile commands work in the terminal directly but not with the 'make' command?

I'm struggling to compile a gtk application written in C. The compilation commands only work if directly run through the command line, whereas the same commands do not work if put into a Makefile and tried to compile with 'make' command. Compile commands all: cc $( pkg-config --cflags gtk4 ) $( pkg-config --libs gtk4 ) $(pkg-config --cflags --libs glib-2.0) $(pkg-config --cflags --libs gobject-2.0) -o dictRead src/main.c Error message from 'make' clang -o dictRead src/main.c In file included from src/main.c:9: In file included from /usr/include/gtk/gtk.h:29: In file included from /usr/include/

Join the discussion →

What's up in the big world?

submitted by akunohana to asklemmy 4 points | 2 comments Pick at least one question to answer: What would you have slapped on to your premade pizza dough/bottom? Do you think it’s a civic duty to follow the news? I don’t have the mental capacity to. 🤷‍♀️ What’s up in the big world?

Join the discussion →

Vertex AI `eu` endpoint: gemini-3.5-flash-lite time to first token 30–120 s in recurring windows. Cause + how to get stable latency with EU residency?

I need EU data residency for Gemini, so I call gemini-3.5-flash-lite on Vertex AI with location eu (the multi-region endpoint). Flash-Lite is not available in single EU regions (404), and an explicit context cache on global is not an option because our organization restricts resource locations to the EU. Requests use an explicit context cache of ~130k tokens plus a short user turn, streamed, ~250 output tokens, no thinking config. Normally the first token arrives in 1–6 s. Several times a day, for 20–45 minutes, it takes 30–120 s, and some requests hit our 120 s deadline (504 DEADLINE_EXCEEDED

Join the discussion →

How to create independent PRs after already committing to main

I recently forked the typeshed repo's main branch. I committed a fix to main and opened a PR. While the PR is awaiting review (which could take some time), I've found another bug. I've considered committing the fix to main and opening a second PR, but based on my understanding, this would pollute it with changes from PR #1. I realise I should have used a separate branch for each independent contribution. But I've already committed to main. How can I open PR #2 and hopefully clean up my fork setup, whilst PR #1 is still awaiting review? I'm afraid that resetting main or deleting the fork now wi

Join the discussion →
Older stories