instruction
stringlengths
0
30k
|c#|.net|windows|deployment|maui|
null
How do you launch the long and short entry? ``` strategy.entry(id, direction, qty, limit, stop, oca_name, oca_type, comment, alert_message, disable_alert) → void ``` Note that the ID must match when you invoke the `strategy.close(""...)`: ``` if long_condition strategy.entry("Long",...) if close_condit...
In my work I use both STATA and R. Currently I want to perform a dose-response meta-analysis and use the "dosresmeta" package in R. The following syntax is used: ``` DRMeta \<- dosresmeta( formula = logRR \~ dose, type = type, cases = n_cases, n = n, lb = RR_lo, ub = RR_hi, id = ID, data = DRMetaAnalysis )...
|r|missing-data|meta-analysis|
I've got a page with the layout as in the attached snippet. In the right column there is a scrollable div that has some max-height set. The problem is that on smaller screens a user has to scroll down to the bottom of the page to see the bottom of the scrollable div (and the page is quite long). Is it possible to m...
In an KQL Query, displaying Azure Function App Logs, that will be used in Grafana, we want to have an Variable "Show Host Status Messages" in Grafana. If "$ShowHostStatus" == True, show all Messages. If "$ShowHostStatus" == False, show all Messages, but filter out all messages starting with "Host Status". (where ...
KQL Query to filter Message based on Grafana Variable
|azure|azure-functions|grafana|kql|
llm model invocation should be **parallel** ``` chain1 = prompt | model | outputparser``` ``` chain2 = prompt2 | model2 | outputparser ```
How to invoke multiple LLM model in single chain or invoke multiple LLM model parallelly in Langchain?
|fastapi|openai-api|langchain|large-language-model|azure-openai|
I noticed that Sublime started giving me incomplete results when hovering over a method to go to its source. I figured the indexes had gotten corrupted, so I made a backup folder and moved the indexes there, thinking that Sublime would automatically rebuild the indexes. Nothing. Clicking on Help > Indexing status ...
If you have the two tables either: both in the Oracle database; or have the MariaDB database accessible from the Oracle database (i.e. via a database link) then you can find all the relationships between the two tables using the query: ```lang-sql WITH cardboard_bounds (id, cardboard_number, start_dt, end_dt, produ...
Well, the current version of XSLT is 3.0, there you could use `xsl:where-populated` as follows: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="#all" expand-text="yes"> <...
I am a bit stuck with writing a regex on JavaScript. I want to write a regex to match a string that is - if it contains only digits, consisting of **NOT ONLY** 0 or more '0's ; - if it doesn't only contain digits, starting with either of these letters: tysjod ; Test cases for matching: - "yes" - "1" - ...
I have a problem with script when trying to run flow in power automate. It was working in last week but now for some reason is not working and returning this error : { "error": { "code": 502, "source": "flow-apim-msmanaged-na-westus2-01.azure-apim.net", "clientRequestId": "80fc1...
Hi I'm new to Nextjs(v14). I want to implement a multiple page form using react-hook-form. However, it seems that `useForm` executed every time and `defaultValues` are set at page routing (click `<Link to=XX>`). How to keep form data across multiple pages? please help me. here my code. _app.tsx ```t...
**Print Binary for Any Datatype** ```c // Assumes little endian void printBits(size_t const size, void const * const ptr) { unsigned char *b = (unsigned char*) ptr; unsigned char byte; int i, j; for (i = size-1; i >= 0; i--) { for (j = 7; j >= 0; j--) { byte = (b[i] >> j) & 1; printf("%u"...
null
null
I am practicing Bayesian and trying to translate WINBUGS models into JAGS in R. I have looked the JAGS manual and still haven't been able to work out this one, which gives error - Possible directed cycle involving some or all of the following nodes. The example is taken from the paper: <https://onlinelibrary.wiley.c...
Translating WINBUGS model to JAGS model: possible directed cycle
|bayesian|jags|winbugs|
I am using selenium-manager in Python, and I am getting an error in GitLab CI. The error is as follows. [enter image description here](https://i.stack.imgur.com/HT0TH.png) To find the cause, I tried to run selenium-manager directly, but I get the same error. To investigate the cause, I tried to get the json...
selenium-manager failed with "dns error: failed to lookup address information: Name does not resolve"
|selenium-webdriver|dns|seleniummanager|
null
The following approach should work. In the call `.plot.scatter()`: - Use `c=` instead of `color=` to tell matplotlib you want to use colormapping - Use `cmap=` with one of matplotlib's [colormaps](https://matplotlib.org/stable/users/explain/colors/colormaps.html) to tell which colors you want; setting the number o...
A slight Modification because the previous methods doesn't work. Use Negative for left and vice versa onHorizontalDragEnd: (dragDetail) { if (dragDetail.primaryVelocity! < -5) { print("left"); } else if (dragDetail.primaryVelocity! > 5) { ...
When the app is loading, the initial time between the app window opening and the storyboard graphics loading I see what appears to be the app icon in full screen mode. This is clipping out of the horizontal boundaries and looks ugly. A second or so later the storyboard images load and it looks fine How can I geet rid...
Flutter App IOS Xcode - seeing lage project logo before storyboard
|ios|flutter|xcode|
I solved this by: 1. Downloading the `whl` from [here](https://github.com/GoogleCloudPlatform/gcloud-python-wheels/blob/master/wheelhouse/docopt-0.6.2-py2.py3-none-any.whl) 2. Installing it with: ``` python -m pip install docopt-0.6.2-py2.py3-none-any.whl ```
I am facing the problem of not getting the user_id in GA4 reports and explorations for paid users. The page path for these users is a popup path for our payment processor or a FlutterViewController for our mobile apps. We want to find which page actually made that user who paid, a new user. We get page paths with...
Unable to get user ID for paid users on GA4
|google-analytics-4|
null
{"OriginalQuestionIds":[12043775],"Voters":[{"Id":328193,"DisplayName":"David"},{"Id":5625547,"DisplayName":"0stone0"},{"Id":269970,"DisplayName":"esqew"}]}
You will need to create a credential provider for Android (e.g. a passkey provider). Apps don't implement CTAP directly, they leverage platform credential management APIs that handle transports for you, including FIDO Cross-Device Authentication. All documentation is available here: https://developer.android.com/tr...
With [okhttp3-tls][1] it is possible in one line ```java import okhttp3.tls.certificatePem String certPem = cert.certificatePem() ``` [1]: https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp-tls
|typescript|react-native|authentication|expo|supabase|
I seem to have solved it. The login app sends a POST request to a server side API that accepts the user input and then the php code checks if the password is valid. Here is the the php that receives the user input POST then gives the user input to the function that does the validation: `````````````````````````````...
I'm normally very comfortable performing joins in my work/on online practice sets but sort of blanked when I got this question. Here's the data: The image for the data set > ![](https://i.stack.imgur.com/iUmN0.png) I was asked to perform a select * statement on the two tables, and write down the result for all 5 ...
I've been searching high and low for a solution to this but I've only found lots of answers for Google Apps instead of Excel Online. Not sure if the Google Apps script can be used in Excel Online, but here goes anyway. What I'm looking for is guidance on how to create an 'onEdit' type script for an Excel Online spre...
|vba|power-automate|
Say we have a list. How can we reorder it so that the total difference between two consecutive elements is the smallest possible? For example, list = [7, 4, 2, 6]. The differences between two consecutive elements are 3,2,4 Therefore, the total difference is 9. We can rearrange it to become [2, 4, 6, 7] (not sortin...
Reorder a list so that the total consecutive difference between two elements is the smallest possible
|python|list|reorderlist|
I have two models with `M2M field`. Because there wont be any update or deletion (just need to read data from db) I'm looking to have single db hit to retrieve all the required data. I used `prefetch_related` with `Prefetch` to be able to filter data and also have filtered objects in a cached list using `to_attr`. I tr...
Is there an easy way to open PowerShell in admin mode for the current folder on Windows 11?
|powershell|windows-11|
``` Error while searching:- [{'code': 3, 'summary': 'Illegal query', 'message': "Could not set 'ranking.features.query(query_embedding)' to 'embed(e5, What is the Goodwill as of December 2023 in SUBSIDIARIES CONSOLIDATED BALANCE SHEETS?)': Multiple embedders are provided but no embedder id is given. Valid embedders ...
Vespa not able to identify the embedding id during the query. even when it is in vald embedders list
|python|database|full-text-search|vespa|vector-database|
null
Align pop-up button on English and Arabic
null
i want to develop a AutoCAD plugin.the main code use c#, but i need a custom class(an object consists of a text and some ),then I creat a custom class by objectarx, after compilation produce a .dbx and .lib file ,but c# use .dll file, i don't know how to use this custom class with c#. i tried to use hybrid programming...
I'm currently developing an word add-in task pane app. I am trying to retrieve the following information from the task pane app (Office Add-in) of the current signed in user information : username, email address, user group details. I'm trying to fetch the current signed in user information from the active direct...
You can try to use [Ext.XTemplate][1] and refer to [customTplCombo][2] [1]: https://docs.sencha.com/extjs/4.1.3/#!/api/Ext.XTemplate [2]: https://docs.sencha.com/extjs/4.2.0/extjs-build/examples/form/combos.html
null
{"Voters":[{"Id":259769,"DisplayName":"Enigmativity"}],"DeleteType":1}
I have tried the approach below: ``` table2_desc = spark.sql("DESCRIBE EXTENDED default.table2") table1_desc = spark.sql("DESCRIBE EXTENDED default.table1") print("Extended Description of default.table2:") table2_desc.show(truncate=False) print("Extended Description of default.table1:") table1_desc.show(trunca...
{"Voters":[{"Id":21588212,"DisplayName":"DileeprajnarayanThumula"}]}
I don’t have sudo access and contacting sys-admin takes a non trivial amount of time. Here is the output of `nvcc -V` nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2024 NVIDIA Corporation Built on Tue_Feb_27_16:19:38_PST_2024 Cuda compilation tools, release 12.4, V12.4.99 B...
Try this, worked for me: ``` css .BodyCover { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }​ ``` [http://jsfiddle.net/jeL3D/][1] [1]: http://jsfiddle.net/jeL3D/
{"OriginalQuestionIds":[5690541],"Voters":[{"Id":-1,"DisplayName":"Community","BindingReason":{"DuplicateApprovedByAsker":""}}]}
I'm updating my Spring Boot application from Java 11 to Java 17, and Spring Boot `2.7.18` to `3.2.4`, and running the tests I'm getting an error. So, I have a entity called `WorkloadDAO` like this: ``` @Entity @Table(name = "workloads") @IdClass(WorkloadId.class) public class WorkloadDAO { @Id @NonNul...
JPA/Hibernate JpaSystemException: identifier of an instance of X was altered from Y to Z
|java|spring-boot|hibernate|jpa|java-17|
null
I am having trouble getting the desired Output using Jolt Transform. My input JsonArray looks like this: ``` [ { "from": [ { "area1": 1 }, { "area2": 1 }, { "area3": 1 } ], "id": 111, "to": "destination1" }, { ...
You can use this formula: ``` =LET(items,$A$2:$A$13, closBalance,$E$2:$E$13, IFNA(XLOOKUP(INDEX(items,ROW()-1),TAKE(items,ROW()-2), TAKE(closBalance,ROW()-2),,0,-1),0)) ``` `XLOOKUP` looks only in the above rows and returns the last value (`-1`) Be aware that you add the ...
Here's how I made it work in my app: 1) Edit scheme > App Language > Arabic (or Right-to-Left Pseudolanguage) If you only do this step, the RTL layout will appear correctly in the simulator but not on a real device (unless the device's language is RTL) 2) Set the locale language This will force the app's pr...
I am building an HTML/CSS/Javascript application that dynamically embeds facebook posts based on an API that returns a list of facebook post ID's. I loop through the post ID's, generate an embed code with postId inserted for each post, and append to the DOM. Simple stuff. However I need to append some simple text ab...
Excel Online: Add timestamp when specific cell changes in the same row
null
Please try this solution which will avoid overlaping elements ``` @Preview @Composable fun TestPreview() { MaterialTheme() { Surface { Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween) { // Icon(imageVector = Icons.Filled.CropFree, contentDes...
To me, the only difference is that the regular operation needs one more instantiation, and the result is held by this new instance. And thus the regular implementation should call the other. [But](https://docs.python.org/3/reference/datamodel.html#emulating-numeric-types) : *these (in-place) methods should attempt t...
Web application is loaded only in the form address `ip:8080`. I've a web application that is configured as `Wildfly` server and `Nginx` reverse proxy, I am trying to load this application in the browser without success because the application load only with ip address information. This is my first time that I us...
solved, you have to update your app to expo. run: `eas update` just that!
I am getting this error, running locally a nextjs project, using next-auth v5 >Unhandled Runtime Error MissingSecret: Missing secret, please set AUTH_SECRET or config.secret. Read more at https://errors.authjs.dev#missingsecret But my `.env` file has (key changed) AUTH_SECRET="srqoi/XynrMAjcjuMx6T5kGMXRA...
[![vs code suggestion][1]][1] [1]: https://i.stack.imgur.com/oBDKa.png How can I disable just this suggestion?
How to disable this suggestion in VS Code?
This should do the trick ```css .tab-background[selected] { background-color: #dd9933 !important; background-image: none !important; } ```
null
null
null
null
null
I'm trying to test the notifications component. When the user clicks on one of the cards it should call method `markNotificationAsRead` but when I write the test like this: it('should mark notification as read and navigate to correct page when clicked', async () => { vi.mock('../services/notifications.http', ...
`UserEvent` doesn't fire on 1 element from getAll* in vitest & testing-library/react
|react-testing-library|vitest|
I need to setup a module to create aws security group, which can be used to create multiple secuiryt groups with differnt port and CIDR value. For example, Security group for Ec2 will need port 80 and 443 to internet, another ec2 with port 8000 only, for rds with port 5432 from secuity groups of the 2 ec2's, for redi...
Transforming JsonArray to shift keys into inner JsonArray using Jolt Transform
|jolt|
null
GitLab + NPM/Yarn Cache + React Firebase Hosting ```yml stages: - test - build - deploy default: image: node:21 cache: # Cache modules in between jobs key: files: - yarn.lock paths: - node_modules/ ########################## # Firebase Preview Links # ########...
You could use a tuple, but its restriction makes it almost useless: the JSON items must be named Item1, Item2, and so on, and you cannot have only one item. var json = @"{""Item1"": ""abc"", ""Item2"": 123}"; var tuple = JsonSerializer.Deserialize<(string, int)>(json, new JsonSerializerOptions { I...