on-internet

Name for a datatable picker inside a modal

I have an autocomplete from a form in a page to add a reference to the registry from another table, it works normally, it also includes a button which when pressed, it opens a modal with a datatable in it to select an specific row from it, you can also filter the datatable with a search field, the selected value is then used to fill the autocomplete. My question: what is the best name for the endpoint, I already used the suffix get_{module}_select, get_{module}_autocomplete, get_{module}, get_{module}_select. A little extra context: there is also the main page for the table I'm getting the ref

Join the discussion →

How do I prevent Kate text editor from duplicating { on the next line?

Every time I press return after opening any kind of bracket ((, [, or {), I expect a closed new line. Instead, Kate duplicates the opening bracket on the next line. I'm not sure what this feature is, or how to turn it off. Can someone assist me in understanding what is happening, why, and how to disable it to improve my coding flow? To add clarity to those who do not understand this, I have illustrated the behavior in a video, along with my editing options. https://youtu.be/zMPM5VUE8Lk

Join the discussion →

When applying glmmTMB spatial (exp) covariance structure to cross sectional data should, each group contain unique observations for each location? [closed]

I need to apply a spatial (exponential) covariance structure to a longitudinal data set containing around 800 unique locations where hourly data were collected from each station for a month (720 hours). To apply spatial covariance structure to this data, I am using the glmmTMB package. I'm a bit confused about the grouping variable in (pos + 0 | group) syntax where pos is created using numFactor() from longitude and latitude. Should I use hour as the grouping variable so that there is only one unique observation per location within the group (pos + 0 | hour)? Or should I ease the condition and

Join the discussion →

Is there a browser-only JavaScript solution to unlock a password-protected PDF?

I’m trying to unlock a password-protected PDF entirely in the browser using JavaScript (no server). What I’ve tried: pdf-lib PDFDocument.load(bytes, { password }) → throws “Input document is encrypted” ignoreEncryption: true only works for permission-restricted PDFs, not password-protected ones Password is correct and works in Chrome / Adobe Reader Goal is to load the PDF, copy all pages into a new document, and download it without encryption Question: Is there any browser-based JavaScript library that can actually decrypt and re-save a password-protected PDF when the password is known, or is

Join the discussion →

Color of observations/points and fill of intervals

I need to modify the plot code below so that: The colors of the points in the legend are exactly the same as on the plot The fill of the intervals in the legend is exactly the same as that on the plot The observations and intervals are well aligned. rs758427_auc_gei_plot <- ggplot(pgxd,aes(x=igfr_mlmin,col=rs758427,fill=rs758427)) + geom_ribbon(aes(ymin=exp(lwr),ymax=exp(upr)),alpha=0.2) + geom_point(aes(y=auc)) + geom_line(aes(y=exp(fit)))+ scale_color_manual(values = pal_okabe_ito,name = "95% CI") + ylab("AUC") + xlab("GFRi") + theme_pubr() + theme(legend.position="bottom") + NULL rs758427_a

Join the discussion →

Best approach to build a service marketplace (Fiverr-like) as a solo beginner developer?

I want to build a service marketplace application (similar to Fiverr) where: Sellers can create service listings Buyers can purchase services Payments are handled via Stripe Connect (split payments / marketplace flow) The platform takes a commission I am a solo developer with beginner-to-low-intermediate experience, and this will be my first full production-level web application. For the stack, I am considering: Next.js TypeScript Tailwind CSS Supabase (authentication + database) Stripe Connect (marketplace payments) My main goal is to build something secure and production-ready with minimal u

Join the discussion →

NestJS authorization

https://docs.nestjs.com/security/authorization Good morning guys. According to NestJS documentation, I can create policies that will be then used per endpoint or so. My only doubt is that the policies created in the docs are pretty simple and do not evaluate instances of an object, just if user has permission to do certain action on a subject. How would it look like if I needed to evaluate an instance in my policies, or is there a better pattern? Example: I need to check if the user can delete a post, and for that the post needs to belong to him. In order to do that, I need the post instance f

Join the discussion →

Agentic RAG tool_calling issue: Groq + LangChain agent fails with tool_use_failed when calling custom tool (Llama 3.3)

I'm building a Streamlit app using LangChain (latest), LangGraph, and Groq with the model: llama-3.3-70b-versatile I'm using the modern create_agent() API (LangGraph-backed). The agent has two tools: search_pdf (custom tool using a Chroma retriever) web_search (DuckDuckGo tool) The agent correctly chooses the appropriate tool based on the query. However, when it tries to call searchdatasheetget the following error from Groq: groq.BadRequestError: Error code: 400 - {'error': {'message': "Failed to call a function. Please adjust your prompt. See 'failed_generation' for more details.", 'type': 'i

Join the discussion →

std::array at function not throwing out of range

While debugging something I stumbled into this behavior on godbolt. When compiling and running the following (godbolt link https://godbolt.org/z/9c5966sbK): #include <array> int main() { std::array<int, 4> arr{1,2,3,4}; int val = arr.at(5); return val; } using latest x86 versions of gcc, clang and msvc, with optimizations disabled (-O0 and /Od resp.) msvc doesn't throw std::out_of_range exception. Why does this happen?

Join the discussion →

How to split text file into multiple other files based on its contents

I have a large tab-delimited text file with the following structure: AAA.xyz<tab><various other tab-delimited values> AAA.xyz<tab><various other tab-delimited values> BB.xyz<tab><various other tab-delimited values> BB.xyz<tab><various other tab-delimited values> CCCC.xyz<tab><various other tab-delimited values> DDD.xyz<tab><various other tab-delimited values> etc I want to split this file into several other files, each called AAA.xyz, BB.xyz, CCCC.xyz, DDD.xyz, etc so that each file contains the <various other tab-delimited values> but not the first (AAA.xyz) value; e.g. if the first line is A

Join the discussion →

How to find the callback created with Python in FFI from my C++ function?

I want to async not only call the C++ functions in Python but return Python functions in my C++ functions to make callbacks. Example python script import ffi import exemplecpp def hello(): print("Hello world\n") hello_callback = ffi.callback("v", hello, "") exemplecpp.cppfunc(hello_callback) How in the usermodule to retrieve the callback as a function to use it in my cpp function mp_obj_t cppfunc(mp_obj_t func_obj) { ... func_obj(); ... return mp_const_none }

Join the discussion →

why should we use "never" when we can use void while throwing Error?

I’m learning TypeScript and I noticed that when a function always throws an error, we can define its return type as never: function throwError(message: string): never { throw new Error(message); } However, this also works: function throwError(message: string): void { throw new Error(message); } Since both implementations throw an error and never return normally, I’m confused about why never is recommended over void in such cases. My understanding so far: void means the function does not return a value. never means the function never completes normally (e.g., throws or runs infinitely). Questio

Join the discussion →

How to choose a project management tool for a mid-size engineering team?

We are a mid-size team working on technical projects and need better visibility into task tracking, ownership, and reporting. Our requirements include: Task assignment and progress tracking Role-based access control Reporting/dashboard capabilities Support for agile workflows (optional but preferred) What criteria should we evaluate when selecting a project management tool? Are there specific technical factors (scalability, integrations, hosting model, API support, etc.) we should prioritize?

Join the discussion →

What is generativity of Type->Type functions?

tl;dr (hopefully) While writing the question below, I think I've come up with a simpler way to ask it. Assume this senario: you've never seen Maybe in Haskell before, so you don't know it's generative, you're given two entities of kind Type -> Type, one called Maybe and one called Optional, and you are told they are two synonyms to all intent and purposes, but that one of them is generative and the other is not. How would you tell which one is which? Is the only way to tell them apart to pass them unsaturated to a function f accepting Type -> Type and see which one compiles? (Or any other tric

Join the discussion →

WP Native Shortcodes Failing to Display in JetEngine Listings and Popups – Seeking Assistance =)

Added on 15.05.2026: The issue described in this post has been fixed and released in JetEngine 3.8.8. The problem: I was designing an online store and needed to perform a simple mathematical calculation between meta fields of custom post types (CPTs). Since there is no clear documentation on how to do this using the native JetEngine tools embedded into your Elementor plugin, I resorted to the old-fashioned way by adding a PHP custom code. In this case, I modified the theme’s functions.php file. I then assigned the required variables to the native WordPress shortcodes and attempted to display t

Join the discussion →

Instagram Content Publishing API error code 2207077 on every Reels upload after one successful publish

I am using the Instagram Content Publishing API to publish Reels programmatically. One publish succeeded early in the day, but every attempt since returns error code 2207077 during container polling. Setup: App is in Live mode User token with all required permissions: instagram_basic, instagram_content_publish, pages_read_engagement, pages_show_list, pages_manage_posts Business accounts properly linked to Facebook Pages Video served publicly via HTTPS (confirmed with curl — returns 200, correct Content-Type) Video specs Codec: H.264, AAC Resolution: 1080x1920 (9:16) Frame rate: 25fps Duration:

Join the discussion →

Stackoverflow trends

Anyone knows about good alternative now that stack overflow trends page is gone? stack overflow trends was great, efficient way to provide single or multiple technologies and get immediately plotted trends chart over time for provided technologies. Google trends seem to be total garbage, at best. Stack overflow developer survey is same, maybe good to generate a research document but not adequate to help in above described case

Join the discussion →

How do I make a signal jump to a label instead of performing a function call for the signal handler?

My C program performs many tasks every second. There can be less CPU threads available than the number of tasks. I can create a separate thread for each task, but want to make it as low latency as possible. This involves manual preemptive scheduling. I have a task queue in memory, arranged in ascending order of priority. Each thread executes a task (atomically thread synchronized). Once the task requires to sleep until the next interval it executes other tasks. The main function periodically throws a signal to all threads indicating that a new second started (or will start) and all tasks need

Join the discussion →

Avoid duplicating validation logic for create and update models

I'm building a REST API using FastAPI and Pydantic. This is an example for my problem: class RestaurantCreate(BaseModel): name: str email: EmailStr max_tables: int @field_validator("max_tables") @classmethod def validate_tables(cls, v): if v <= 0: raise ValueError("must be positive") return v class RestaurantUpdate(BaseModel): name: Optional[str] = None email: Optional[EmailStr] = None max_tables: Optional[int] = None @field_validator("max_tables") @classmethod def validate_tables(cls, v): if v is not None and v <= 0: raise ValueError("must be positive") return v In general, I have two schemas

Join the discussion →

Pydantic- avoid duplicating validation logic for create and update models

I'm building a REST API using FastAPI and Pydantic. This is an example for my problem: class RestaurantCreate(BaseModel): name: str email: EmailStr max_tables: int @field_validator("max_tables") @classmethod def validate_tables(cls, v): if v <= 0: raise ValueError("must be positive") return v class RestaurantUpdate(BaseModel): name: Optional[str] = None email: Optional[EmailStr] = None max_tables: Optional[int] = None @field_validator("max_tables") @classmethod def validate_tables(cls, v): if v is not None and v <= 0: raise ValueError("must be positive") return v In general, I have two schemas

Join the discussion →

Messages are not sent to the queue. RabbitMQ + Apache Camel

enter image description here I'm trying to test RabbitMQ and Apache Camel. Events are registered in the exchanger, but they aren't sent to the queue. Messages rates are changing in Exchange and Queue (Consumers ACK). The service Apache Camel communicates with RabbitMQ, there is a connection, logs are available. Response Debug only works if you publish a message through ui in rabbit. Code: package com.example.camel_demo.routes; import org.apache.camel.builder.RouteBuilder; import org.springframework.stereotype.Component; import java.util.Map; @Component public class CommandRoute extends RouteBu

Join the discussion →

Can user input cause a SyntaxError?

A SyntaxError occurs when you violate the programming language, for example if the coder forgets to close parentheses. But how can a user's input cause a SyntaxError? A user can’t change the code can they?

Join the discussion →

Find an explicit criterion about a specific class of integer sequences expressed by a recursive predicate

Let a "branching" operation be an operation that, given a finite sequence of integers, increments and duplicates one element in place. For example: (3,1,4,1,7) → (3,1,5,5,1,7) A tree sequence is a sequence of integers that can be derived from the "root" sequence (0) by applying a sequence of such branching operations. For example, (1,2,2) is a tree sequence (derived via (0) → (1,1) → (1,2,2)), but (2,1,2) is not. Below is a recursive algorithm that (I think) determines whether a given sequence is a tree sequence. Algorithm A Input: an integer sequence (a0, a1, ..., an−1) If (a0, a1, ..., an−1)

Join the discussion →

Sensitive data and AI

I am developing a tool using Python that integrates AI (GitHub Copilot SDK). This tool processes CI/CD pipeline definitions and analyze their data. I was thinking about how to deal with security in those cases that sensitive data is in plain text in the pipeline definitions. Is there a way of masking or temporary removing this data (depending on the format obviously) from the definitions. Furthermore, is there any way of indexing this data in some way to restore it after the AI response? Thanks!

Join the discussion →

How to disable or configure the rhythmic "progress" sound effect cues in GitHub Copilot/VS Code?

I noticed that during GitHub Copilot code generation ("vibe coding"), VS Code emits a rhythmic audio signal to indicate progress. While this is a helpful accessibility feature, it causes audio buffer contention when running high-CPU low-latency audio software (like a DAW or DJ software), resulting in distorted "croaking" artifacts. (Not limited to interference with professional audio software, this sound effect is also disruptive when one simply plays Apple Music aloud on a MacBook.) I’ve searched the Copilot extension settings but couldn't find a specific toggle. Technical details identified:

Join the discussion →

Add a tab with an iframe that shows the contents of a URL

I want a new tab or side panel in the customer screen in Acumatica, with an external link embedded. I want the link to be dynamic so it has the selected customer id as a parameter. https://mywebsite?f=CustomerID=CustomerID is embedded in the Customer Screen within a tab. I want to pass the selected CustomerID to the URL so that it refreshes the embedded screen and shows the information specific to that CustomerID. How can I do this?

Join the discussion →

Vertical table borders overlap header table on second page (wkhtmltopdf multi-page issue)

I am using Odoo 16 with a custom QWeb PDF report for purchase.order. When the report has multiple pages, the vertical borders of the line items table overlap the header table on page 2. It looks like wkhtmltopdf redraws the vertical lines incorrectly when the page breaks. What happens Page 1 renders correctly On page 2: thead repeats correctly But vertical borders from the line table extend upward and overlap the header table above it **Paperformat** ``` <record id="paper_format_po_a4" model="report.paperformat"> <field name="name">PO A4 Format</field> <field name="default" eval="False"/> <fie

Join the discussion →

おひとり様のスイーツレシピ(6)|板チョコが冷蔵庫の定番に。ガトーショコラ|110号室

チョコレートは、あまり好きじゃない。 カカオ何%とか、産地がどうとか、どのお店のものとか。チョコ自体の味を楽しむものには、それほど惹かれない。 でも食べたくて手に取るものは、チョコが練り込まれたパンや、パリッとしたチョコモナカアイスとかの、チョコがコーティングされたものが多い。 私は、チョコレートそ...

Join the discussion →

Copilot inline suggestions in VS Code stopped formatting code correctly (ignoring line breaks and indentation)

I am currently using GitHub Copilot within VS Code, primarily to write my thesis in LaTeX, but I've noticed my issue is not limited to .tex files. Everything was working perfectly until yesterday, but I am now encountering a frustrating formatting issue specifically with inline suggestions (the ghost text that appears as I type). Instead of suggesting structured code blocks, Copilot now generates everything on a single line. It no longer respects standard formatting conventions, such as: Line breaks for new environments (e.g., after \begin{itemize} or \begin{equation}). Proper indentation for

Join the discussion →

【書籍化決定】悪役令嬢と石田三成

新作の乙女ゲームを購入した帰り、交通事故でこの世を去った現代JK。だが次に目を覚ますと購入したばかりの乙女ゲーム「ホロスコープ・クロニクル」の世界に転生してしまった。しかも転生先はあらゆるルートで絶対に死亡する悪役令嬢のアナリーゼ・アガレス。ゲームプレイ前だったため原作知識はゼロで、頼りになるのは...

Join the discussion →
Older stories