I start an outgoing call using below code. let handle = CXHandle(type: .generic, value: handleValue) let startCallAction = CXStartCallAction(call: uuid, handle: handle) let transaction = CXTransaction(action: startCallAction) self.pendingCallData[uuid] = conference callKitCallController.request(transaction) { error in if let error = error { print("StartCallAction transaction request failed: \(error.localizedDescription)") } else { print("StartCallAction transaction request successful") } } Initially, I set the callee’s phone number as the value of the CXHandle when starting an outgoing call. A
I want my bot to ping staff members whenever there's a new membership application to review. Is there anything that allows me to interact with or react to membership applications, or some workaround to achieve this?
The last time I left Laos about a month ago I had to pay a ₭2,000,000 (roughly 80/90 EUR or USD) fine because my passport was missing the arrival stamp. I did have a valid 60-day visa and was leaving on its final day. I had done the exact same border crossing some months previous and the stamp from that crossing was in my passport. I don't recall any different procedure in the two crossings but some crossings are a bit haphazard and you might be told at some point to go to some window or such, and I don't always remember those details. What I do remember was standing in a slow-moving line at t
I am a JIRA Cloud admin trying to get a list of issue keys that were moved from one project to another (eg: BTM -> SPB). The list should have the old key and show the new key as well. I have been trying to pull the data using JIRA Rest API and running through PowerShell. How can I achieve this? I cannot use ScriptRunner.
The chart.js chart in this Bootstrap 5 grid layout doesn't resize correctly: it shrinks when you drag the window narrower but doesn't re-grow when you drag it back. How can I fix this so that the chart fits the column width and keeps the desired aspect ratio? I'd prefer not to use any more libraries. new Chart( document.getElementById('canvas-id'), { type: 'bar', data: { labels: ['a', 'b', 'c'], datasets: [{ data: [3, 4, 2] }] }, options: { aspectRatio: 3.5, maintainAspectRatio: true } } ); <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" />
I've encountered a critical performance issue in MongoDB 8.0.15 - 8.0.20. I need your help diagnosing and finding a solution. After upgrading from version 8.0.14 to any of the versions 8.0.15 - 8.0.20, I observed a sharp increase in CPU consumption when executing identical queries. Rolling back to 8.0.14 completely returns performance to normal. Has anyone else encountered similar behavior when upgrading to 8.0.15+? Are there any known MongoDB Jira tickets describing this issue? I'm attaching a partial log of the slow operation from production: "planSummary": "IXSCAN { _id: 1 }", "planningTime
We are experiencing an SSL handshake issue in a Flutter-based Android application when connecting to a backend API hosted on SAP Cloud Platform Integration (SAP CPI). Recently, the API certificate chain was upgraded to DigiCert TLS RSA4096 Root G5. After this change, Android devices running Android 13 and below fail to establish an HTTPS connection. The error observed is: HandshakeException: Handshake error in client(OS Error: CERTIFICATE_VERIFY_FAILED: self signed certificate in certificate chain) However, the same API works correctly on: Android 14 and above iOS devices Backend Configuration
Consider this C++23 code with modules enabled. import std; static int vector_total(const std::vector<int>& v) { return std::ranges::fold_left(v, 0, std::plus{}); } int main() { const std::vector vec{1, 2, 3}; const int res = vector_total(vec); std::println("Total: {}", res); return 0; } I am writing code in Visual Studio 2026 Community and the code compiles fine and the output is as you'd expect. Total: 6 The problem is that Intellisense flags std::ranges::fold_left with this error: no instance of overloaded function "std::ranges::_Fold_left_fn::operator()" matches the argument list I tried to
I have a Python pipeline that processes legal opinions into structured JSON and rendered HTML. The extraction mostly works, but page numbers are inconsistent across source formats. I’m trying to determine the fastest deterministic recovery strategy before resorting to OCR or model reruns. I need help with this specific sub-problem: Source HTML sometimes contains inline page markers Rendered HTML sometimes drops or misplaces them Plain text and PDF text extraction may still contain usable markers I want to distinguish: renderer-only loss extraction loss cases where fallback recovery is needed G
I'm a beginner at C. I was trying to implement merge sort in a separate file: Here is my merge sort file: void mergeSort(int *array, int size) { int i, j, k, m; if (size <= 1) return; half = size / 2; /* ブロックを前半と後半に分ける*/ mergeSort(array, half); mergeSort(array + half, size - half); // リストを [array+n] にすると、最初の値がインデックスnで始まる /*合併操作: */ for(i = 0; i < m; i++) buffer[i] = array[i] /* バッファのリストをどう定義すればいいんだろう */ j = half; i = k = 0; while (i < m && j < n) { if (buffer[i] <= array[j]) { array[k++] = buffer[i++]; } else { array[k++] = array[j++]; } } while (i < m) array[k++] = buffer[i++]; } Here is my m
I have this question that I want to test in code: if we have x1, x2, x3, x4 (all float16) and f() = (x1 + x2) * x3 - x4, I want to know whether the machine rounds after each operation or calculates the full expression first and rounds only at the end, and how to demonstrate this in a code?
Okay so i have a JS function that take my server response that would be multiple html Elements. I add all of those elements with innerHTML and i know it can cause XSS attack but i struggle to understand how XSS work but i have a vague idea on how it work. I was just wondering if in this configuration it could cause XSS? Also on the server side everything is sanitized to prevent any html user input. JS Code : function searchCharacter(search_param){ let main_screen = document.getElementById("main_screen"); while(main_screen.firstChild){ main_screen.removeChild(main_screen.firstChild); } var xhtt
I use a tiling window manager that uses the Alt key as a modifier key, so I can't use it as Meta in Emacs. I've seen people suggest using the Super key as Meta, but I only have one Super key on my keyboard, and I don't know whether one Super key is enough or not. Should I remap something like Caps Lock to Meta, or is there a cleaner approach? I'm just getting started with Emacs and would appreciate any advice.
How can I host a Jupyter Notebook (.ipynb) file online so others can easily access, view, and run it? I'm looking for simple platforms or methods that allow sharing notebooks publicly without requiring users to install anything locally.
I tried to make a function that finds all existing PCIe device's functions and saves the physical address of their config space to an allocated memory for my os, but I noticed that I got WAY too much saved addresses for the simple qemu vm I was testing this on so I tried to use gdb to check if it detects non existing functions correctly, but when testing the vendor ID I found something very weird: I have an address pointing to the vendor id stored in RDX and when I use the gdb examine command it shows the vendor id is 0x8086 and after the mov instruction to move the vendor id from whats RDX po
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
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
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
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
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
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
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?
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 }
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?
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
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:
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
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
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