on-internet

How to get Dash.js instance as soon as it is initialized when using dash-video from media chrome

I'm using dash-video and want to add an interceptor. The problem is Dash is initialized under api property by DashVideoElement, but I can't find any event when this is ready. @Component({ selector: 'app-root', template: ` <media-controller> <dash-video #video src="https://dash.akamaized.net/akamai/streamroot/050714/Spring_4Ktest.mpd" slot="media" crossorigin muted ></dash-video> </media-controller> `, schemas: [CUSTOM_ELEMENTS_SCHEMA], }) export class App { protected video = viewChild.required<ElementRef<any>>('video'); constructor() { effect(() => { setTimeout(() => { // I want to get `api` (

Join the discussion →

Problem aligning a table body with title footnotes in a docx file

I am using the clinify package with flextable to generate a docx file. My issue is lining up the table body with the title footnotes. I tried using: set_table_properties(width = 1, layout = "autofit") to resolve this, but it didn't work. Sample code: # Load packages for program execution pkg.load <- c("tidyverse", "flextable", "officer", "clinify") invisible(lapply(pkg.load, library, character.only = TRUE)) test.df <- iris |> select(Species, Sepal.Length, Sepal.Width, Petal.Length, Petal.Width) |> group_by(Species) |> mutate( grp = cur_group_id(), descr = paste0("Property for Species: ", Speci

Join the discussion →

How to run Data API Builder (DAB) on premises

There are many articles on how to deploy Data API Builder (DAB) to Azure: https://learn.microsoft.com/en-us/azure/data-api-builder/overview But how do you host it on premises? We have Windows Server 2022, IIS 10.0 and SQL Server 2022. We can run the 'development' local host version on the above machine but are not sure the next steps to deploy and run it as a live service/app (?) We will be using REST API

Join the discussion →

あずまきよひこ『よつばと!』 - 紙屋研究所

榛野なな恵『Papa told me』にたいして、関川夏央は、妻を亡くした文筆業の父と娘、という人物配置に次のようなコメントをくわえている。 Papa told me 1 (マーガレットコミックスDIGITAL) 作者:榛野なな恵 発売日: 2016/12/01 メディア: Kindle版 「娘は、セックスをしなくても許してくれる妻である。口うるさいが、や...

Join the discussion →

How to downcast any List or any Option in rust

I want to add properties window with auto properties based on struct fields. I'am downcasting every field, but for Vec<> and Option<> I have to duplicate all code, how can I automatically check is that any Option or Vec. Downcaster: pub fn downcast_property(ui: &mut Ui, title: &str, value_mut: &mut (dyn Any + 'static), interactable: bool) { if let Some(string_v) = value_mut.downcast_mut::<String>() { string_property(ui, title, string_v, interactable); } else if let Some(int_v) = value_mut.downcast_mut::<i32>() { i_property(ui, title, int_v, interactable); } else if let Some(float_v) = value_mu

Join the discussion →

How to force a Simulink variable-step solver to execute at specific nonuniform time steps?

I have a Simulink model with continuous states and a variable-step solver. Is there a way to force the solver to execute at specific nonuniform time steps, let's say t0, t1, t2, ..., tn? To clarify, I am not asking how to obtain simulation results at the said time steps. Update: If I am using a fixed-step solver and I want the solver to execute at 0, 0.1, 0.2, 0.3, 0.4, and 0.5 s, then I just need to set the fixed-step size to 0.1. However, I am using a variable-step solver and I want the solver to execute at, let's say, 0, 0.18, 0.2, 0.24, 0.33, 0.4, and 0.5 s. What should I do? Update 2: I a

Join the discussion →

Django Admin ask for login on every click

Working on a Django project deployed on AWS. In production, I'm facing a session-related issue: When I open the Django admin site (/admin) and log in, everything works smoothly. But if I open the user site (/) in the same browser window and log in there, the admin gets logged out — which is expected behavior, so no complaints there. But here's the twist: Even after closing the user site tab, when I go back to the admin site and log in again, Django lets me into the admin dashboard — only to forget me immediately. Every time I try to do literally anything (open a model, add a record, even breat

Join the discussion →

Using ScrapingRobot API, how can I get google search results as structured JSON data?

How can I use ScrapingRobot’s API to scrape Google search results as structured JSON data (e.g., titles, URLs, snippets) instead of raw HTML? The main page of the website shows three types of "Example Outputs": SERP, Ecommerce, and HTML. The SERP format is what I want, but no matter what I do, I always only get HTML output. My code: import requests TOKEN = "..." // My API token SEARCH_TERM = "Lionel Messi" url = f"https://api.scrapingrobot.com/?token={TOKEN}" payload = { "url": f"https://www.google.com/search?q={requests.utils.quote(SEARCH_TERM)}", "module": "HtmlRequestScraper" } headers = {

Join the discussion →

Anyone who recently experienced being asked for a yellow fever vaccine on Ecuador border?

Recently Ecuador government mandated yellow fever vaccine for all travelers, especially those who stayed in Colombia, etc, for 10 days. And one has to wait for 10 days after being vaccinated before Ecuador will accept them. I have the vaccine, but I got it a day before. Are they letting people in/ checking it, or not? (I will have to spend an extra 10 days in Colombia if it is true.)

Join the discussion →

When to use pre-signed vs public vs private file upload on aws s3

When uploading media to s3 bucket, i am introduced to a technique called pre-signed urls, where backend generate the url and frontend upload directly to that s3 url, So far it is good. The problem occurs for get, when the user ask for all vendors should the url of vendor profile image also be presigned ? if yes then it means we need to pre-sign each image or each media before giving response back to the customer ? I mean how do i know i should keep the image as signed or public so can send the public url directly ? and what about some media which should be accessed by someone only when he is l

Join the discussion →

Trying to create a source alias or function to the PowerShell . builtin

I'm trying to create a source alias or function to the PowerShell . builtin. Creating an alias to . does not work : PS C:\> Set-Alias source . PS C:\> source $profile.CurrentUserAllHosts source : The term '.' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + source $profile.CurrentUserAllHosts + ~~~~~~ + CategoryInfo : ObjectNotFound: (.:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException PS C:\> I

Join the discussion →

How to create a custom Gutenberg block with a dynamic render callback in WordPress?

I'm trying to create a custom Gutenberg block in WordPress that renders its content dynamically on the server side using PHP. I've registered the block using register_block_type, and added a render_callback function, but nothing appears in the editor or frontend. function myplugin_register_block() { register_block_type( __DIR__ . '/my-block', array( 'render_callback' => 'myplugin_render_my_block', )); } add_action( 'init', 'myplugin_register_block' ); function myplugin_render_my_block( $attributes ) { return '<div class="dynamic-block">Hello, this is dynamic content!</div>'; } import { registe

Join the discussion →

How do .NET Core services interact with Systemd to identify that service is frozen?

I developed a .NET 6.0 service that executes functions that execute in a fixed interval of time. I used timers to start functions. But I detect sometimes that the service stops to execute this functions, but when I checked in systemd, the service keeps running. I read about ways to notify systemd, send keep-alive signal and in the absence of this signal, systemd identify that service is frozen and then, the systemd restart the system. I configure the service like this: [Service] ExecStart=/usr/bin/dotnet /path-to-app.dll Restart=on-failure RestartSec=5 WatchdogSec=30 NotifyAccess=all Type=noti

Join the discussion →

How to hide files from find-file in emacs?

What I need to do is simple: I have A-f bound to find-file in emacs, but want to hide specific files that I do not care about. I have them hidden in dired already using this config: (setq dired-omit-files (concat "\\`\\.[^.]+\\'" ; Dotfiles without extension (e.g., .config) "\\|\\`\\.#.*\\'" ; Emacs lock files (e.g., .#anything) "\\|\\`persist-text-scale\\'" ; Specific file "\\|\\`transient\\'" ; Directories by name "\\|\\`target\\'" "\\|\\`node_modules\\'" "\\|\\.~undo-tree~\\'")) ; Undo tree files And I want to apply the same regex rules to filter out some files in find-file, so that I do no

Join the discussion →

How to handle token limit when processing large JSON response with MCP client-server?

I'm building a natural language search in my web application using a custom MCP (Model Context Protocol) client-server architecture. Here’s the setup: MCP Server: To execute backend method to return structured JSON MCP Client: Node.js app that sends this JSON along with a natural language prompt to the Claude 3.5 Sonnet LLM via API. Frontend: ReactJS LLM: Claude 3.5 Sonnet For smaller JSON payloads, the setup works fine — the LLM responds with a clean, natural language output. But as the JSON grows, I start running into token limit issues. Error as belows: 529: {"type":"error","error":{"type":

Join the discussion →

Is it safe to ignore PHPCS sanitization warning for $_FILES['tmp_name'] in WordPress?

I am handling file uploads in WordPress and have this code snippet: 'tmp_name' => $_FILES['attachments']['tmp_name'][$key], // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized PHP_CodeSniffer flags this with a security warning about unsanitized input, but I added an ignore comment because: tmp_name is generated by the PHP runtime (not user-provided directly). It is used internally by move_uploaded_file(), which handles the filesystem path safely. My questions are: Is this ignore justified, or are there hidden security risks with $_FILES['tmp_name'] that require sanitiz

Join the discussion →

心に真の善性が備わってきた!!!

母親がすげえ不謹慎で、人が死んだニュースとか見てケタケタ笑ってるような人でさ、べつに毒親とかってわけじゃねえし、楽しい幼少期ではあったんだけど、俺の倫理観はまあ、それなりのものになってしまったわけですよ(他責思考) こう、なんだろうな ビョーキのガキの話とか聞いても、心の第一声は「くたばれ!」だった...

Join the discussion →

Why does pytrends return different values than Google Trends UI even after normalization?

I'm using the pytrends Python library to collect interest-over-time data for a list of movies from multiple countries. However, the values I get in the resulting DataFrame are often different from what I see in the Google Trends web interface, even though the timeframe, region, and keywords are exactly the same. I'm using classic movie titles (e.g., Casablanca, Gone with the Wind) across the US, France, and the UK with a 5-year timeframe ('today 5-y'). I’m also setting custom headers to avoid 429 errors. What I expect The values in the CSV to be the same as in the Google Trends UI for the same

Join the discussion →

Why doesn't MATLAB's isosurface show all faces of this solid?

I'm trying to plot/visualize the following solid: This is what I coded so far: % Create the set of 3D points n = 150; x = linspace(1, 2, n); y = linspace(0, 1, n); z = linspace(0, 1, n); [X, Y, Z] = meshgrid(x, y, z); % Create 3D logical mask for the volume mask = (1 <= X) & (X <= 2) ... % Constraints of x & (0 <= Y) & (Y <= 1./X) ... % Constraints of y & (0 <= Z) & (Z <= sqrt(Y)); % Constraints of z figure; isosurface(X, Y, Z, mask, 0.5); daspect([1 1 1]); view(3); grid on; xlabel('x'); ylabel('y'); zlabel('z'); title('Isosurface visualization of the solid volume'); But the result only shows

Join the discussion →

Unable to Connect React Native Client to Soketi Using @pusher/pusher-websocket-react-native

I’m using Soketi with a Django backend for real-time updates. My web client (React/Next.js) works great with pusher-js. But I could not configure it with React Native using @pusher/pusher-websocket-react-native, pusher-js React Native SDK. Unlike pusher-js, the React Native SDK expects an API key, not an app key. It also doesn’t support wsHost or wsPort config directly. No way to forceTLS: true and enableStats: false (requires for web requirements). I expected it to connect just like the web client, but it doesn’t even reach the auth phase. Any other alternative for React Native client for Sok

Join the discussion →

minecraft 1.16.5 Datapack smelting recipe type only working if forge is installed despite not using forge tags

I'm making a datapack for 1.16.5 minecraft. I want it to be compatible with both vanilla and forge. I made smelting and blasting recipes and they only work in forge (I removed all other mods to test this). The recipes do not contain forge tags, only the mods tags. The other crafting recipes work fine. It's made in mcreator and i'd like to avoid using code modification since I need to port it to 1.18.2 and locked code gets reset when you do that. I want my recipe to work in vanilla. https://filebin.net/a8lgkdxe77r1195s/moreTaggedRecipies%2016%20alpha%207.67.zip { "type": "minecraft:smelting", "

Join the discussion →

minecraft 1.16.5 Datapack smelting recipie type only working if forge is installed despite not using forge tags

I'm making a datapack for 1.16.5 minecraft. I want it to be compatible with both vanilla and forge. I made smelting and blasting recipes and they only work in forge (I removed all other mods to test this). The recipes do not contain forge tags, only the mods tags. The other crafting recipes work fine. It's made in mcreator and i'd like to avoid using code modification since I need to port it to 1.18.2 and locked code gets reset when you do that. I want my recipe to work in vanilla. https://filebin.net/a8lgkdxe77r1195s/moreTaggedRecipies%2016%20alpha%207.67.zip { "type": "minecraft:smelting", "

Join the discussion →

Azure Devops picking the "wrong" sprint to show in Sprint board

I have an issue with Azure Devops. We've fairly recently switched to using SAFe (Scaled Agile Framework for Enterprises), and so now we're doing all our planning in 3-month increments, with 6 iterations of 2 weeks each in each increment. This now means our project structure in terms of iterations is hierarchical, and looks something like this: Iteration Runs from/to ------------------------------- PI 5 May 5 - Jul 25 IT 5.1 May 5 - May 16 IT 5.2 May 19 - May 30 IT 5.3 Jun 2 - Jun 13 IT 5.4 Jun 16 - Jun 27 IT 5.5 Jun 30 - Jul 11 IT 5.6 Jul 14 - Jul 25 The problem arises when trying to show the

Join the discussion →

Why is VS Code prompting me with "An update is ready to install. Code is trying to add a new helper tool."

I keep getting this prompt popup from VS Code: Code An update is ready to install. Code is trying to add a new helper tool. Touch ID or enter your password to allow this. Use Password... Cancel In my VS Code output filtered to "Main", I see a bunch of messages like this: 2025-06-18 13:25:58.261 [info] update#setState checking for updates 2025-06-18 13:25:58.988 [info] update#setState downloading 2025-06-18 13:34:45.305 [error] UpdateService error: The network connection was lost. 2025-06-18 13:34:45.305 [info] update#setState idle 2025-06-18 14:25:58.313 [info] update#setState checking for upd

Join the discussion →

striped pattern as background in html css by use background-image repeating-linear-gradient

Is it possible with CSS background-image repeating-linear-gradient to create such a pattern? Such stripes composed of only two colors are possible. But I need a 5 color pattern. Black, Red, Green, Blue and White in spacing and sequence as shown in the attached image. I purposely showed the colors like this to make it easy to see what I mean. In the target scheme they will be different shades of gray. Each stripe is 1px, white spaces 4px. The whole pattern is to be 60px wide. Is it possible with CSS background-image repeating-linear-gradient or in another CSS way but such that it would be a bac

Join the discussion →

¿Por qué mi consulta MySQL con GROUP BY devuelve solo una fila?

Estoy intentando agrupar datos por categoría, pero la consulta solo devuelve una fila en lugar de todas las categorías. Mi consulta es: SELECT categoria, COUNT(*) as total FROM productos WHERE precio > 100 GROUP BY categoria; id nombre categoria precio 1 Laptop Electrónica 1200 2 Smartphone Electrónica 800 3 Libro Educación 50

Join the discussion →

Using HDFql to filter out groups that have specific attribute values

I am trying to use the HDFql C++ library to select groups that have attributes with specific values. There are an arbitrary number of groups in the root group, and each group has the same attribute names but possibly different values. For example, I might have two groups, group1 and group2, and each group has two attributes, attribute1 and attribute2. The values for the groups and attributes might be, group1 attribute1 is "Water" group1 attribute2 is "Database1" group2 attribute1 is "Water" group2 attribute2 is "Database2" I would like to form a query to select the group that has attribute1 se

Join the discussion →

Is there a way to get normal output from electron-forge commands?

We have recently added some Electron apps into our application suite, and these are being packaged up with the command electron-forge package. Unfortunately, it looks like that command is doing all sorts of wonderful output manipulation to make it look nice in a terminal, for example: > electron-forge package ✔ Checking your system ✔ Preparing to package application ✔ Running packaging hooks ✔ Packaging application ✔ Packaging for x64 on win32 [7s] ✔ Running postPackage hook It's almost certainly pushing out \r characters to dynamically update the same line, examples being: ✔ Current time take

Join the discussion →
Older stories