instruction
stringlengths
0
30k
So I'm not sure what the `az ad sp` command is really for, but I just found out that to make service principal client secrets you need to use `az ad app` az ad app credential reset --id ${CLIENT_ID} az ad app credential list --id ${CLIENT_ID} These are visible in **Azure Portal > Entra ID (Active Directo...
Relativly new to programming, ive been banging my head against a wall now for several day (on my own time) I need to export data from a list that ive collected through a sliced text and a collect numbers function. Ive come a long way by identifing tables in a word document, and completing this import/export process ...
Inserting data into a non-organized table in word from SMO file
|python|smo|
null
Unfortunately for Frida the **Name** of an app is not the package name (called Identifier by Frida) but the label shown to the user. You can see the app list and the app **Name** recognized by Frida by executing frida-ps -Ua Example output ``` PID Name Identifier ---- -------- --------------...
null
My code looks like this: execBuffer({ input: encoder.out.getData(), bin: 'gifsicle', args: ['--output', execBuffer.output, '--lossy=100', '--optimize=03', execBuffer.input] }).then(data => { console.log(data); // Works :-) let result = data; // Don't works :-( ...
How can I return a data variable from a Promise module.exports function unsing node js?
|javascript|node.js|promise|
As I understand it Stata doesn't care one bit what you put after `*!`. It simply looks for lines beginning that way and echoes them given a `which` query. In contrast, I think the routines used for maintenance of .pkg files on SSC standardize on the date format 20230213 for Kit Baum's convenience. In my own com...
Your mistake is... $(OBJS_DIR)%.o : $(SRC_PREFIXED) # ... <- here (A) @mkdir -p $(OBJS_DIR) gcc $(FLAGS) -c $< -o $@ # ... <- and here (B) The pattern rule (A) says that *each* object file `objs/(ft_isalpha.o|ft_strlen.o)` depends on *all* the source files `src/ft_isalpha.c`, `src/ft_strlen.c`. Of c...
|google-chrome|selenium-chromedriver|google-chrome-devtools|chrome-for-testing|
In a DevOps pipeline I would like to use the Build.SourceVersionMessage as the releaseNotes in a NuGet.nuspec file I use to publish my artifact. In the NuGet.nuspec I have this line \<releaseNotes\>$release_notes$\</releaseNotes\>. I found that I need to escape the xml characters by using a powershell script to h...
Using Build.SourceVersionMessage with ' and " in DevOps pipeline
when using es modules you must load **`fs`** moudle to read and write file support. accordion to this issue : [issue][1] ```javascript import * as XLSX from 'xlsx' import * as fs from 'fs'; XLSX.set_fs(fs); ``` [1]: https://github.com/SheetJS/sheetjs/issues/2634#issuecomment-1231412497
A signal can be connected to another signal or a slot. You tried connecting it to a signal handler (more information here : [The QML Reference, Signal attributes](https://doc.qt.io/qt-6/qtqml-syntax-objectattributes.html#signal-attributes)). The correct syntax would be: ``` buttonRect.buttonClicked.connect(mous...
I tried to make a full-screen dialog using Jetpack Compose using this code: ``` @Preview @Composable fun test() { val showDialog = remember { mutableStateOf(value = false) } Box( contentAlignment = Alignment.Center, modifier = Modifier.fillMaxSize().background(color = Color.White) ...
when using es modules you must load **`fs`** module to read and write file support. accordion to this issue : [issue][1] ```javascript import * as XLSX from 'xlsx' import * as fs from 'fs'; XLSX.set_fs(fs); ``` [1]: https://github.com/SheetJS/sheetjs/issues/2634#issuecomment-1231412497
i am very new to JavaFX and no nothing about it. i have been watching youtube videos on how to use scenebuilder but somehow when im on this part i cant set the code and this message prompts.[this is the message that prompts](https://i.stack.imgur.com/VDeO2.png) a fix for my problem that keeps on occurring
|nuget|devops|pipeline|
Lets say, a PWA is deployed to a sub-directory of a regular website (e.g. `https://example.net/app`). It uses hash-mode for its navigation (e.g. `/app/#/login` and `/app/#/dashboard`). Now, there are links inside this PWA which leading to the website, e.g. `https://example.net/product-list`. This link should leave t...
Manifest for PWA with scope bind to sub-folder
|progressive-web-apps|manifest|workbox|
We recently upgraded springBoot version to 3.2, and Java 21 64 bit. We observed wired behaviour while shutting down spring boot application , log level automatically change INFO to ERROR, and we are not getting expected log messages. After so many research, we found there is a feature "automatic log level propagati...
|java|selenium-webdriver|selenium-chromedriver|chrome-for-testing|
I am using typescript in a nuxt3 app and want to use the module npm i nuxt-pino-log which uses pino for logging. However it is not clear how to get a reference to the logger so that one can use it to log. The example uses middleware and defines a default export which I am assuming with only be executed prior to routing...
Usage of npm i nuxt-pino-log is unclear from example
|logging|nuxt3|pino|
I was given a spreadsheet with app scrip macros that we would like to use from a friend. The purpose of the spreadsheet is to display datetime for follow ups over certain time periods(i.e. in 2 weeks or in 8 hours) in different time zones(PST/MST/CST/EST). All of the macro files in the appscript look good and the m...
your problem is in this for loop. In each iteration of the loop you are getting a random number between 1 and (9-n). there is nothing preventing you from getting the same number on a subsequent iteration. In theory you could end up getting "1" all 9 times. for (int n = unshuffledCategories.Count; n > 0; --n...
The problem is that when you enter the anonymous function passed to *$watch*, the context changes and *"this"* refers to the *window object* (you can check this thing by adding a `console.log(this);` in the function. To get around the problem we can use an arrow function which do not has its own context, so *"this"*...
Read the documentation for `within_intercept` (and the contained example) and you find that the function can output a model object with the intercept as well (and not only the intercept) with argument `return.model = TRUE`. A fully worked example incl. stargazer output comparing a FE model with and without intercept...
no injectable field found in FXML Controller class for the id
|java|javafx|scenebuilder|
null
I am not quite sure where the issue lies, but FastAPI generates an OpenAPI file which I believe to be true and the openapi-generator-cli in the latest version thinks the OpenAPI file is invalid. The error message is: Exception in thread "main" org.openapitools.codegen.SpecValidationException: There were issues w...
|swagger|fastapi|openapi|code-generation|openapi-generator|
After opening a R-engine. I assigned to it a dataframe, that I get successfully from database. After printing sone values from the R-engine I found out, that all the string values have a mojibake like following example: "2024-00010005" -> "ÿþ2024-00010005ÿþ" ```java if(conn != null) { try{ if(!conn.is...
Background - I have been asked to take 5 Azure SQL servers off the public network and place them onto private endpoints. The SQL Servers are used by an application in a container within Kubernetes. I am confident the network is in place as intended. The problem is that the application is still connecting to the old ...
Use Invoke-WebRequest instead for your first call, $reportResponse = Invoke-WebRequest -Uri $generateReportUri -Method Post -Body ($reportRequest | ConvertTo-Json) -Headers @{ "Authorization" = "Bearer $((Get-AzAccessToken).Token)" }
|r|conditional-statements|counter|incremental|
The config is just a js/ts file. So if all you need is the colors, a simple approach is to write that as a `const` and then export it separately. Example: ```ts import type { Config } from 'tailwindcss'; export const colors = { 'custom-color-one': '#FFA210', 'custom-color-two': '#3FCC48', } as const; // "...
Is it possible to store an enum with associated values using CoreData? I can't find any relevant solution.
Enum with associated values in Core Data
|swift|core-data|enums|associated-value|
**Firmware** is the low level SW that handles HW components programming/functionality. While **Drivers** are the bridge b/w HW component and OS where OS can communicate with HW. Drivers expose some functional APIs that OS can perform using HW. In your case, since your Linux has a newer version of driver that's not ...
as I am new coding I get stuck easily and don't know the next step. I have a lab about addeventListener, where in a click of a button shows your for loop with office locations. `const grupList = document.querySelector("ul"); console.log(grupList); const listItems = document.querySelector("li"); console.log...
I need some assistance to put a for loop iteration in a boostrap group list button click
|for-loop|button|addeventlistener|
null
Try this code (assuming data is in Column `A`): Sub FirstVisibleRow() MsgBox Columns("A").SpecialCells(xlCellTypeVisible).Find("Retail").Row End Sub If you need the first row which is visible, you can use also `Find("*")`
I wish to add the overall intercept of a fixed effects model ("within" panel data analysis). This is common practice in Stata and I wish to mimic the Stata output by including the overall intercept. ``` library(stargazer) library(plm) data("Hedonic", package = "plm") mod_fe <- plm(mv ~ age + crim, data = Hedon...
If you did not require the generic `Computer` struct, then you could directly extend P(which is functionally the same as @JanMensch's answer) extension P { static func compute() -> Self { instance() } } let someArray: [P.Type] = [ A.self, B.self ]...
I'm trying to use `gnutls` to encrypt communications. I downloaded `gnutls` using `brew install gnutls` and placed the `.h` file in the `include` directory into my project. Now I try to use the function from the header I `include`, but I get an error. ``` error: undefined reference to 'gnutls_hash_fast' ...
How to use gnutls in android studio
|android|c|gnutls|
1. `$facet` - Allow multiple pipelines to be executed in an aggregate query. 1.1. "inRange" - Get the document with `dDate` within the search date range. 1.2. "beforeRange" - Get the first matching document with `dDate` is before the starting search date range. 1.3. "afterRange" - Get the first matchi...
Here's why this might result in a substantial size difference: **Windows Compatibility Pack:** The Microsoft.Windows.SDK.NET.dll is part of the Windows Compatibility Pack, and its purpose is to bridge the gap between .NET and Windows-specific APIs. When you target Windows 10, the compiler includes the necessar...
how to customise the look of carousal slider in flutter?
|flutter|user-interface|slider|carousel|
null
I send it as an http request to the Helium LoraWAN server with .net 4.8 version. But I get SSL/TLS error. Error message: The request was aborted: Could not create SSL/TLS secure channel. There was no such error a while ago. How can such an error occur later and how can I solve this situation? This process was tr...
|java|r|character-encoding|mojibake|jri|
I created a product schema in mongodb with variants for the same product. For example, take a phone, something like this: ``` {"_id":{"$oid":"65d881d4d080a591933b1be2"}, "title":"Iphone 15", "category":{"$oid":"65d881b1831df3b991251f56"}, "brand":"Apple", "properties":{"memory":["64GB","128GB","256GB"],"color":["...
I copied a quick SDL example into my IDE but the program ignores any other commands I write like printf(); Example: ``` #include <stdio.h> #include "SDL.h" #include <MCSControl.h> int main(int argc, char *argv[]) { SDL_Window *window; SDL_Renderer *renderer; SDL_Surface *surface; SDL_Eve...
C programm opens SDL window successfully but doesn't printf
|c|sdl|
null
I am currently making a wysiwyg editor, and need to support rotation by pressing "r" key while dragging some element with mouse I noticed that onkeydown event is not being called when I try to press a key while dragging something with a mouse. <!-- begin snippet: js hide: false console: true babel: false --> <...
One thing I would check - are the private DNS zones linked to the vNet? This has cost me more pain than anything else in setups like this. Does the frontend resolve backend-dev.azurewebsites.net to the expected private IP?
In version 5, you need to set middleware options at client instantiation. Since version 6, you can setup retry settings per-request options. to the default middleware to configure actions like redirects and retries, this can be done using the `requestConfiguration` lambda by adding a `RequestOption` instance to ...
The `t` macro does not support variables. You should try using `<Trans />` which supports variables and can be helpful in your case. Here is an example code ```javascript // strings.json "user_id": "User {{id}} payments" ``` ```javascript const id = "123" <Trans i18nKey={"user_id"} values={{id}} /> /...
For dataRow = lastRow To 3 Step -1 prodTran = Range("A" & dataRow).value prodOIS = Range("AA" & dataRow).value If (prodTran = "Ordered" or "Cancelled") Or (prodOIS ="Cancelled" or "Refund") Then Rows(dataRow).Delete End If Nex...
After opening a R-engine. I assigned to it a dataframe, that I get successfully from database. After printing sone values from the R-engine I found out, that all the string values have a mojibake like following example: "2024-00010005" -> "ÿþ2024-00010005ÿþ" ```java if(conn != null) { try{ if(!conn.is...
Since you have explicitly mentioned decrease clause, Dafny will use that decrease clause. You assumption that it will compare `x + y` with tuple `x`, `y` is wrong. It would have chosen tuple `x`, `y` as if you haven't provided decrease clause. In either case it will compare decrease clause of invoking function with cal...
Parallelizing tasks with separate DbContext instances is fine, provided those tasks can run completely independently. However you still need to consider details like locking in the database. Where you have code-based processing time, parallelization can help but if the bulk of time is spent fetching/updating data you a...
Surely not needed anymore, but for future visits: Nitpicking the docs to find each possible value the following was found: Given the 4 possible values of the array (feel free to omit any one of the ```'key' => value``` pairs): ```php ['path' => '/categories/misc', # Base Path for all generated links. '...
I have a lab about `addEventListener`, where in a click of a button shows your for loop with office locations. ``` const grupList = document.querySelector("ul"); console.log(grupList); const listItems = document.querySelector("li"); console.log(listItems);` const offices = document.getElementById("ofLocat...
For those who are looking for accessing a standard 2D array,you can use nested loop. code is below **views.py** content={'f':[[1,2,3,4],[4,5,6,7]]} return render(request,'index.html',content) **index.html** {% for array in f %} {% for content in array %} <h1>{{content}}</h1> {% e...
null
For those who are looking for accessing a standard 2D array, you can use a nested loop: **views.py** content={'f':[[1,2,3,4],[4,5,6,7]]} return render(request,'index.html',content) **index.html** {% for array in f %} {% for content in array %} <h1>{{content}}</h1> {% endfor %} ...
I had to write a script where i wanted to provide default parameters for folder and file locations but since the user could overwrite them AND launch the script form any directory, i needed to properly handle this in a way it was as userfriendly as possible (e.g. using autocomplete of the ps-console provides for file p...
when using es modules you must load **`fs`** module to read and write file support. accordion to this issue : [issue][1] ```javascript import * as XLSX from 'xlsx' import * as fs from 'fs'; XLSX.set_fs(fs); // ------------------------------------------- const data = [ { name: "Alice", age: 25, gen...
Is there any way to set up a type checker to validate that SQL queries are using the right columns from the right tables and the right dialect?
Is there any way to set up VS Code to check that SQL queries are valid
I had both of these conditions inside an `if` statement to check if `x` was even or odd, but the `!(x&1)` seemed to execute the body of the `if` in case of an even `x`, while `x&1==0` didn't execute it. I expected both to give 0 considering `1 & 0` is `0` and 1 in 32 or 64 bit representations will be `000..01` and i...
|c++|c++17|bitwise-operators|
Why do x&1==0 and !(x&1) not yield the same results in an if statement in C++?
I'm getting a really high chi-squared value, is there an issue with my the sample used or how I calculated the chi-sqaured value? I used this site to calulate my chisqaured value - https://datatab.net/statistics-calculator/hypothesis-test/chi-square_test_calculator [Data - has age groups and type of coffee they p...
Getting a really high chi-squared value, is there an issue with my the sample used or how I calculated the chi-sqaured value?
|excel|
null
I have written my own 2D Convolution function as follows ```python def TwoD_convolution(img, kernel): # Flipping the kernel by 180 degrees kernel = kernel[::-1] for i in range(len(kernel)): kernel[i] = kernel[i][::-1] # Filling the new image with zeroes convolve = np.zeros(...
You can create a job with a remotely partitioned step where each worker step is assigned a partition of the data and is deployed on a different node. You can find an example [here](https://github.com/spring-projects/spring-batch/tree/main/spring-batch-samples#remote-partitioning-sample).
I am new to xamarin forms and tryig to **modify** the notification content before displaying it. Problem : I can see the modified content message and also the normal message( before modify content) also. How do I cancel the previous message, I want to show only the modified message. I used this [tutorial][1] to ...
Xamarin forms firebase push notification edit the message content before display
|android|firebase|xamarin.forms|push-notification|
The issue you're facing with `model_from_json()` is that it returns the class name mentioned in your JSON configuration, not an actual Keras model instance. In your case, it returns "MyModel" as specified in the "class_name" field. To address this, you need to create an instance of your custom model class and then load...
Adding to Eric Melskis comment, if you wanted also have your 'make all' functionality make both programs, then perhaps this would be a good substitute: target1_SRC=123 456 target2_SRC=abc def target1: TARGET=target1 target2: TARGET=target2 default: all target1: ; @echo $($(TA...