on-internet

How Can I Prevent Data Leakage When Preprocessing Data for Machine Learning in Python?

I am learning machine learning with Python and Scikit-learn, and I want to understand the correct way to preprocess datasets before training a model. I understand that data preprocessing often involves handling missing values, feature scaling, and splitting the dataset into training and testing sets. However, I am confused about whether feature scaling should be performed before or after splitting the dataset. For example: from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler X_train, X_test, y_train, y_test = train_test_split( X, y, test_size=0.

Join the discussion →

Warning C4864: is `template` keyword required to call `operator()` of a generic lambda declared inside another lambda?

After updating to Visual Studio 2026 18.12 (MSVC 19.52.37029), this program #include <utility> int main() { auto l = [] { auto g = []<class T> {}; g.operator()<int>(); }; l(); } produces with /std:c++20 /W4 the warning warning C4864: expected 'template' keyword before dependent template name MSVC 19.51 and earlier, GCC and Clang compile it without any warnings. The type of g does not seem to depend on any template parameter, so I expected template to be optional here. And if #include <utility> is removed, all MSVC versions I tried (19.29, 19.44, 19.51, 19.52) even report an error: error C2760:

Join the discussion →

Tim Peters, Python User #2 and Prolific Contributor, Dies At 74

Tim Peters, one of Python's earliest and most influential contributors, died on July 15 at age 74. Known as Python's second real user, Peters created the Zen of Python and Timsort sorting algorithm while contributing to numerous core components. He also served as a Python Software Foundation director from 2001 to 2014. Adafruit remembers Peters in a blog post: He's best known for the Zen of Python, PEP 20, still printed by typing import this. In 2002, he gave Python Timsort, the sorting algorithm he designed for lists, later adopted by Java and Android. He also polished the cyclic garbage coll

Join the discussion →

Helpdesk and ticketing system

hi everyone i kinda need help with my dashboard and its communication with a mobile app i've built i want my support screen in my mobile app to submit the users ticket to my dashboard since the mobile app and the dashboard don't share one backend the only thing they share is the database, i feel like i may be wrong in making all support ticket right ot hit the database which the dashboard will pull from it in real time and when the helpdesk team is done with the ticket they will just submit a complete ticket which in the backend will trigger the resend api to send the confirmation email to the

Join the discussion →

How to implement custom field mapping and validation in a Django REST Framework ModelSerializer?

Question: I'm implementing an EpisodeSerializer using Django REST Framework and need help handling several serializer fields and validation rules. My serializer should include the following fields: id: Read-only. title: Required, readable and writable. host: Accepts the host ID as input and returns its ID as output. host_name: Read-only, retrieves the host's name using source="host.name". duration_seconds: Required, must be at least 1. level: Must be one of beginner, intermediate, or advanced. token: Write-only input field mapped to the model's secret_token field. is_long_title: Read-only comp

Join the discussion →

Enforce a tool call order in an MCP server

I have a question regarding tools that relates to each other. For instance, LangChain DeepAgent has a "read" (read_file) and a "list" (ls) tool for files. It mentions that "list" must be called before you call "read" or "edit", so that the LLM doesn't try to read a file that doesn't exist for instance. But the constraint is only loosely enforced via the list tool description. My goal is to enforce this constraint more strictly, with code, in the context of tools served distantly from an MCP server and supposing no control over the agent loop. Illustration from a trace: How to enforce this tool

Join the discussion →

Email sending: No connection could be made because the target machine actively refused it

I tried a code from stackoverflow for sending emails with stmplib for sending a security email. After running with python IDLE on windows 10, this error happened: Traceback (most recent call last): File "C:/Users/pc/Downloads/py/codegen.py", line 61, in <module> server = smtplib.SMTP('localhost') File "C:\Users\pc\AppData\Local\Python\pythoncore-3.14-64\Lib\smtplib.py", line 261, in __init__ (code, msg) = self.connect(host, port) File "C:\Users\pc\AppData\Local\Python\pythoncore-3.14-64\Lib\smtplib.py", line 348, in connect self.sock = self._get_socket(host, port, self.timeout) File "C:\Users\

Join the discussion →

How to see Copilot harness request logs in VS Code?

When you select “Show Chat Debug View,” it opens the Chat Debug panel. However, you can see the log only when using the Local harness, not the Copilot harness. Switch different harness: Expected, in Local harness, you can see conversation log in the chat debug panel: Actually, in Copilot harness, the chat debug panel don't have conversation log: And you also can't see Agent Debug Logs: How to see Copilot harness request logs in VS Code?

Join the discussion →

How to see Copilot harness request logs in the vscode?

When you select “Show Chat Debug View,” it opens the Chat Debug panel. However, you can see the log only when using the Local harness, not the Copilot harness. Switch different harness, Expected, in Local harness, you can see conversation log in the chat debug panel Actually, in Copilot harness, the chat debug panel don't have conversation log, And you also can't see Agent Debug Logs, So, the question is how to see Copilot harness request logs in the vscode?

Join the discussion →

Have JFrog discontinued support for the free Artifactory Community Edition

I noticed that my self hosted Artifactory server that was configured to automatically (dnf-automatic) apply updates had not applied any updates since September 8th (version 7.161.26) https://releases.jfrog.io/artifactory/artifactory-rpms/ Checking the rpm/dnf repo we have configured you can see the reason why, they haven't updated it since September 8th On JFrog's release notes web page for the next version that should be there (7.161.29) https://docs.jfrog.com/releases/docs/artifactory-self-managed-releases#artifactory-716129-self-managed this is what it shows Artifactory 7.161.29 Self-Manage

Join the discussion →

RSASSA-PSS signed OCSP responses are always rejected – BasicOcspResponseBC.Verify ignores the PSS parameters

I validate timestamped PDFs with iText's SignatureValidator (iText 9.6.0, reproduced with 9.8.0, .NET 8). Since the timestamp authority switched to a new CA hierarchy (SwissSign "RSA SIGN ZertES Qualified TSA ICA 2023 - 1"), the OCSP responses embedded in the DSS are always rejected with OCSP response check.: OCSP response could not be verified against this responder. and the revocation check ends up INDETERMINATE. The OCSP responses themselves are fine: they are signed with RSASSA-PSS (SHA-512, MGF1 with SHA-512, salt length 64) and verify correctly against the responder certificate as soon a

Join the discussion →

iText 9 .NET: RSASSA-PSS signed OCSP responses are always rejected – BasicOcspResponseBC.Verify ignores the PSS parameters

I validate timestamped PDFs with iText's SignatureValidator (iText 9.6.0, reproduced with 9.8.0, .NET 8). Since the timestamp authority switched to a new CA hierarchy (SwissSign "RSA SIGN ZertES Qualified TSA ICA 2023 - 1"), the OCSP responses embedded in the DSS are always rejected with OCSP response check.: OCSP response could not be verified against this responder. and the revocation check ends up INDETERMINATE. The OCSP responses themselves are fine: they are signed with RSASSA-PSS (SHA-512, MGF1 with SHA-512, salt length 64) and verify correctly against the responder certificate as soon a

Join the discussion →

Why can't we directly detect Copy & Paste actions in a Flutter TextField?

Flutter's standard TextField and TextField input system does not provide dedicated callbacks to reliably detect every Copy, Cut, and Paste action. These actions can originate from different sources: Keyboard shortcuts (Ctrl+C, Ctrl+V, Cmd+C, Cmd+V). Native context menus (long press → Copy/Paste). System clipboard interactions. Platform-specific input methods and accessibility features. Flutter primarily exposes text changes through onChanged and editing updates through TextEditingController, but these do not identify whether the text was manually entered, pasted, or inserted through another me

Join the discussion →

Wiian Store Platform Top Up Game & Voucher Game Termurah

Wiian Store merupakan platform layanan top up game dan voucher digital dengan harga murah dan proses transaksi cepat. Tersedia berbagai pilihan produk game populer seperti Mobile Legends, Free Fire, PUBG Mobile, dan berbagai voucher digital lainnya dengan pelayanan praktis dan terpercaya.

Join the discussion →

Best Practice for blog app with both News and Articles

Recently I started working on a news app which has both news and articles. I'm looking for best approach for my app's model. I can create Post model then News and Article model inherit from it by using Abstract inherit, or I can have News and Article model with duplicated fields ( bad idea ) or maybe I can use django polymorphism Maybe I'm wrong and I should specify only a field in my post model to declare that post is news or article.

Join the discussion →

Antigravity supercompletion is not supercompleting

I have installed antigravity ide a month ago and it was going amazing but 2 weeks ago the suggestions of the supercomplete suddenly gone wrong. It takes very long time to suggest lines of code or changes. And when it does, it only nerf my code. I really dont understand what happen. I tried to eliminate antigravity and all its remaining files (user, config, binaries...) and reinstall it again but it still is not working properly. Some one has an idea of what's happening? pd: I know the code is wrong enter image description here

Join the discussion →

Global coordination requirements for 2038-class rollover events

Technical Paper ITU-T XSTP.epoch consolidates global understanding of risks associated with a cluster of structurally distinct timekeeping discontinuities arriving between 2036 and 2038, with the 2106 horizon treated as a long-tail consideration (collectively referred to as 2038-class risks). Comments

Join the discussion →

What AI chatbot do you use and why? And some other AI questions

submitted by eli04 to asklemmy 1 points | 1 comments I started using chatbots yesterday and it surprised me how complete and articulate answers are. Main topics would be apparel, sewing, cooking, finance, ETFs, taxes, house maintenance, retirement. Do you consider AI good enough to substitute human interaction? Because I remember a south park episode where randy marsh ignores his wife to interact exclusively with a bot. A parody of course but we have already plenty of AI porn and AI short stories for gullible people… and it works because they don’t stop watching (and sometimes believe it to be

Join the discussion →

How do I add a C library? (MacOS)

I'm trying to compile an example program from the SDL example program website, but I can't get my compiler or my IDE (Visual Studio Code) to recognize the SDL library. I did the steps the installation text file included in the DMG told me to do but my compiler gives me an error if I try to compile my .c project. sdl test.c:11:10: fatal error: 'SDL3/SDL.h' file not found 11 | #include <SDL3/SDL.h> | ^~~~~~~~~~~~ 1 error generated. Visual Studio Code does not recognize it either.

Join the discussion →
Older stories