instruction
stringlengths
0
30k
I am working on a streaming application which streams video and audio from a Raspberry Pi. I want to overlay some sensor data on the video and after many attempts with textoverlay I am trying to use imagesequencesrc instead, with the intent of having my sensor script output an image with the sensor data at regular inte...
Using compositor in Gstreamer to merge imagesequence with video/audio stream
|raspberry-pi|gstreamer|
null
Ever since I factory resetted my computer(Windows 11, don't know if this information is required but I am providing it in case it is) I have not been able to open up any kind of Microsoft Office 365 app files, such as Excel, PowerPoint, MS Word, ect. This includes not being able to open any files, AND creating any file...
Microsoft Office 365 problem cannot open a blank excel document
|excel|windows|office365|powerpoint|
null
# Better Answer Adding the path as suggested in the comments was sufficient. In essence adding this to: `conf.py` made the test files findable in the Sphinx documentation: ```py sys.path.insert(0, os.path.abspath("../..")) ``` # Bad Answer Based on [this answer](https://stackoverflow.com/a/10209650/7437143) I c...
I have two applications: one is an ASP.NET API and the other is a Maui Blazor application. I successfully logged into Azure using PublicClientApplicationBuilder with my client ID. However, I'm encountering an issue with the access token. I want to utilize the same access token that I obtained and send it to my API proj...
Validating Access Token in ASP.NET API Project
|c#|azure|asp.net-core|microsoft-graph-api|
I am trying to scrape football players' data from the website FBRef, I got the data from the website as a `bs4.element.ResultSet` object. Code: ``` import requests from bs4 import BeautifulSoup import pandas as pd import numpy as np res = requests.get("https://fbref.com/en/comps/9/stats/Premier-League-Sta...
I have a Map where I draw polygons for the coordinates that define the roofs: [![enter image description here][1]][1] However, I struggle to disable specific areas on the roofs by making them transparent ( the gray area ) where these should not colored. Example: [![enter image description here][2]][2] ...
How to apply mask (transparent area) in mapboxGL?
|mapbox|mapbox-gl-js|mapbox-gl|turfjs|
You have to `await` the `FileAttachment`. ``` const salaries = await FileAttachment("./data/test.csv").csv({typed: true}); ```
|excel|vba|excel-tables|listobject|
I am trying to capture error data in Azure Data Factory. When an error occurs in any activity I want to capture error information and pass it into another pipeline to do processing and storage. For example I capture error message through this dynamic expression: @activity('Log_Execution').Error.message and the activit...
Use an activity output as the step name to get additional info in ADF
|azure|azure-data-factory|
null
I have successfully used MQTTnet in C#. One customer insists that I use VB.NET, so I converted my C# to VB.NET. Now I get an error, 'Error BC36908 Late-bound extension methods are not supported' on the line `Await managedMqttClientPublisher.EnqueueAsync(message)`. ``` Private managedMqttClientPublisher As IMana...
Is it possible to set height value so that it is both inheritable and acts as min-height?
|html|css|layout|
Using the Sabre PHP Library for handling Vcards. We're successfully using the library for sending and receiving Vcards but I can't find anything on handling profile photos/images. Am I totally missing something in there or is it not set up for that.
Can the Sabre Vcard Library handle Profile Photos ( images )
|php|sabre|card|
**Goal:** First split a token into two tokens. Then use `SpanRuler` to label both the *re-tokenized* tokens as a single span with one label. **Problem:** The labeled span consists of the original text (a single token) rather than the two tokens concatenated with a separating space (ie after re-tokenization). 1....
**Goal:** First split a token into two tokens. Then use `SpanRuler` to label both the *re-tokenized* tokens as a single span with one label. **Problem:** The labeled span consists of the original text (a single token) rather than the two tokens concatenated with a separating space (ie after re-tokenization). **...
|python|
null
{"OriginalQuestionIds":[68218005],"Voters":[{"Id":5577765,"DisplayName":"Rabbid76","BindingReason":{"GoldTagBadge":"pygame"}}]}
@GetMapping("/authorize") public String authorize() { return "redirect:" + tokenUrl + "?client_id=" + clientId + "&redirect_uri=" + redirectUri + "&response_type=code" + "&scope=" + scope; } @GetMapping("/callback") public String ...
Issue uploading files in spring boot java to onedrive using API
|java|spring-boot|azure|microsoft-graph-api|postman|
null
I've been trying everything but I can't generate the PDF properly; either I get a blank PDF or a text file with gibberish characters. `try { const response = await getFunc(getUrl, token, header); const url = window.URL.createObjectURL(new Blob([response])); // Crear un enlace para descargar ...
I have a response from an API in the form of a binary file and I need to transform it into a PDF in react.js
|javascript|pdf-generation|binaryfiles|
null
See example. Recursive assembling expression formula from expression_tree table. ``` with triple as( -- recursive if PostgreSql select expression_id,oid ,concat( case when lv in('*','+','-','/') then concat('{',lid,'}') else cast(lv as varchar) end ,ov ,case when rv in('*','+','-'...
I'm trying to create a website with Blazor Webassembly. The site uses an API protected by Windows Authentication. The site is intended for internal use within a company's own network. Do I need to implement tokens for authentication or is Windows Authentication enough to authenticate to the API? The application work...
Blazor WebAssembly with API protected with Windows authentification
|blazor-webassembly|windows-authentication|
null
{"Voters":[{"Id":188096,"DisplayName":"Gaurav Mantri"},{"Id":272109,"DisplayName":"David Makogon"},{"Id":9214357,"DisplayName":"Zephyr"}],"SiteSpecificCloseReasonIds":[16]}
I'm running exactly the same stack, if you post a github repo I'll dig in. Your code looks fine to me, issues around NextJS caching come to mind. I have a project that successfully logs out, and updates my Auth component. I can share my repo if you'd like, it is a private repo.
``` EmpID EmpFname EmpLname Department Salary 1 Karan mehta HR 300000 2 Rohit Sharma Admin 75000 3 Ankush Rajput Account 60000 4 Priyadarshini Sharma HR 500000 5 Sanket Gupta Developer 100000 6 Shruthi Varyar Admin 80000 7 Rohit ...
``` function boldTextInLines() { var doc = DocumentApp.getActiveDocument(); var body = doc.getBody(); var text = body.getText(); var lines = text.split("\n"); for (var i = 0; i < lines.length; i++) { var line = lines[i]; var endPos = line.indexOf(':'); console.log(endPos); ...
I'm trying to create a data vis which is essentially a scattergraph. A snip of the data looks like this: | Location |Year |A|B| |----|----|-------|------|----| |Afghanistan |1990 |48.3973 |1377.85863| |Afghanistan |2020 |65.432 |620.40751| |Albania |1990 |76.4334 |32.87494| |Albania |2020 |79.6756 |8.27645| ...
The cleanest way to set up your filterTokens method as you have already done: ```typescript // service filterTokens(q?: string): Observable<Token[]> { return this.tokens.pipe( map(tt => tt.filter( t => t.issuer.toLowerCase().includes(q.toLowerCase()) )) ); } ``` And have the co...
|javascript|angular|ionic-framework|rxjs|
I am using SELECT to generate a result set from a database: SELECT id countryname FROM dataset where -countryname- is stored as varchar. And I intend to convert the -countryname- to its equivalent enum type in this process, without having to first run the standard declaration statement: CREATE TYPE...
How to call late bound extension method from VB.NET (Framework)
|vb.net|extension-methods|late-binding|
null
|excel|vba|excel-tables|listobject|
I'm trying use `npm install @angular/cli` to install Angular on my managed Webhosting (No root-rights) at IONOS (Germany). I was able to install NodeJS/npm with nvm, but now every time I try to install Angular I get the following error: ``` \~$ npm install @angular/cli \[..................\] \\ idealTree:htdo...
|excel|vba|excel-tables|listobject|
Usually using a variable is an additional overhead, but in your case Chrome was able to provide the same performance. But if a variable is reused, that could actually boost performance. So the rule could be - don't create unnecessary variables. Also note that JS engine could optimize code while compiling so in reali...
|excel|vba|excel-tables|listobject|
I am trying to use the code here https://github.com/usuaero/MachUp I have followed all the pre requisites required but when I try to build the executable I get this error. Any advice would be helpful. I am not sure what "[-Dndv=<ndv>]" this is, is it a folder that cmake is looking for a can't find? PS C:\Program Fi...
null
Im not sure if im late , but this could be worthy for the apex beginners. it's simple. *"just delete the item and create it again"* works for me
From MDN: > Note that if you call resolveFunc or rejectFunc and pass another Promise object as an argument, it can be said to be "resolved", but still not "settled". See the [Promise description][1] for more explanation. The returned promise is settled async so we should create a microtask **async** to aim to the...
I have a question about the react-native-for-web library. I am asking whether it is possible to inject plain react.js code to overwrite what would be automatically created by `react-native-web`. I am consiering using react-native-for-web **ONLY**, **INSTEAD** of using react.js, since I now wanna have a mobile app...
how to convert varchar variable to enum without first declaring the enum type?
|sql|postgresql|enums|
1. How did I fine the problem? the Fragment's `onDestroy()` was triggered multiple times, accumulated and caused crash. [onDestroy() triggered multiple times](https://i.stack.imgur.com/ZVp6M.jpg) 2. What is the function ViewPager + Fragment 3. More detail 1) It shows there has 2 usage but I just refer...
Android Studio shows there has 1 usage but No usages found in All places
|java|android|android-studio|
null
I have a initial component which maps a second component with information on questions. What I would like to do is to collect the answers of all these questions and save them in the same place(state, array, object I honestly don't mind how). However as I am updating the state from a mapped component it is only disp...
I am attempting to train my models on my own data. If I run the lora.py command using the 7b models from mistral or llama, it works fine. As soon as I upgrade to the larger models, I get an error File “/Users/conleysa/AI/MLX/mlx_venv/lib/python3.11/site-packages/mlx/nn/layers/base.py”, line 211, in load_weights raise ...
Solve equation with Crank Nicolson and Newton iterative method in Matlab
|matlab|ode|differential-equations|newtons-method|
null
my problem is that when i run my code it says Traceback (most recent call last): File "c:\Users\james\OneDrive\Desktop\crossy rpg game\main.py", line 7, in <module> game.run_game_loop() ^^^^^^^^^^^^^^^^^^ AttributeError: 'Game' object has no attribute 'run_game_loop' PS C:\User...
When you want to transform a list of `'a` into a list of `'b`, the `List.map` function is the most straight forward: ```fsharp let listOfChars = ['a';'b';'&';'c'] let listOfStrings = listOfChars |> List.map string ``` The `List.map` function expects a function from `'a` to `'b` (`'a -> 'b`), and a list...
This is kinda late but if you want to change the desktop icon and the overall icon when you open the .jar file, you can use the Launch4j and this. ``` ClassLoader classLoader = Main.class.getClassLoader(); URL resourceURL = classLoader.getResource("nameOfYourPackage/nameOfImage.png"); ImageIcon thisIsTheNam...
Plotting multiple grouped scatter graphs with regression lines on the same axes
|excel|regression|scatter-plot|
if(sc.hasNext()){ String record = sc.nextLine(); Scanner stringScan = new Scanner (record); } try this before name = Scan.nextLine();
I need kernel debug symbols (debuginfo) of Amazon AMIs used for EKS clusters (e.g., 5.10.210-201.852.amzn2.aarch64). AWS does not include that in the AMIs, since it takes a lot of space. Does anyone know how I can obtain such debug symbols for Amazon AMIs? For example, Ubuntu keep such symbols in the package repository...
The first time I ever realised that 'normal people' could program computers was one Christmas as a child when my dad wrote a simple program on our home PC which provided clues as to where the presents had been hidden. I'm not sure I really understood what I was seeing at that age, but I was *very* impressed, and it ga...
null
I'm trying to create a data vis which is essentially a scattergraph. A snip of the data looks like this: | Location |Year |A|B| |----|----|-------|------|----| |Afghanistan |1990 |48.3973 |1377.85863| |Afghanistan |2020 |65.432 |620.40751| |Albania |1990 |76.4334 |32.87494| |Albania |2020 |79.6756 |8.27645| ...
if(sc.hasNext()){ String record = sc.nextLine(); Scanner stringScan = new Scanner (record);} try this before name = Scan.nextLine();
*Note - If you have other approach that works better than DP then please suggest them.* I have a 2D list like this `[ [1,2], [1,2], [1,3], [5,4], [4,6] ]`. I want to flatten this to a 1D list such that the no. of distinct values in the resulting list should be minimum like this `[1,1,1,4,4]` Also, The length of s...
Can dynamic programming help solve this problem?
|algorithm|
null
{"Voters":[{"Id":14732669,"DisplayName":"ray"},{"Id":68587,"DisplayName":"John Kugelman"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[13]}
**Goal:** First split a token into two tokens. Then use `SpanRuler` to label both the *re-tokenized* tokens as a single span with one label. **Problem:** The labeled span consists of the original text (a single token) rather than the two tokens concatenated with a separating space (ie after re-tokenization). **...
I have a project with multiple configuration files, I need to be able to read a specific configuration file (MyTest.exe.config). **The file looks like this** <appSettings> <add key="Setting1" value="1.1.1.1"/> <add key="Setting2" value="34567"/> <add key="Setting3" value="blu...
Cmake is not building an executable
|c++|github|cmake|executable|
I'm using tensorflow `2.16.1` on Ubuntu 22.04, tensorrt `10.0.0b6`, but when I import tensorflow I get the warning: ```sh W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT ``` I already exported the path to my path inside bashrc, and sourced it, as follows: ```sh ## P...