instruction
stringlengths
0
30k
null
I have a search box and show a filterable list of matching elements in a DIV that hovers over the other components. Once the user selects something, the DIV is hidden. This part works as supposed to. Occasionally, the user will desire to cancel the lookup process and click on a cross icon in the popout. This works as e...
"Null check operator used on a null value in flutter, getx package"
|flutter|dart|
null
**Requirement**: Based on the code provided below, implement the merge sort algorithm to rearrange an array with N elements. While running the algorithm, print array A after each merge of two subarrays. Input - The first line is a positive integer N (0 \< N \< 20) - The next line contains N integers Who are the ...
basic MergeSort exercise
|c++|sorting|mergesort|
null
``` import java.util.Random; import java.util.regex.Pattern; import java.util.regex.Matcher; String responseData = prev.getResponseDataAsString(); // log.info("the response data is : " + responseData); Pattern pattern = Pattern.compile("<option value=\"(.+?)\">(.+?)</option>"); // log.info("pattern is...
{"OriginalQuestionIds":[68836551],"Voters":[{"Id":530160,"DisplayName":"Nick ODell"},{"Id":349130,"DisplayName":"Dr. Snoopy","BindingReason":{"GoldTagBadge":"keras"}}]}
If you forgot your password, save for brute forcing it, you're done for. [RAR uses AES 256 encryption][1] to encrypt archives, not to mention you can't just recover the password from information stored within the archive (since it only stores a hash to check if the password is correct), *and* the fact that every portio...
[After drop_na it shows 0 obs. of 68 variables] (https://i.stack.imgur.com/elrGR.png)(https://i.stack.imgur.com/txJEv.png)] [After drop_na I don't see any results in the Table except dates. This was not the case when I tried it before, I could see the values ​​in the table] +library(tidyverse) +WDI_GDP <-...
I am a grad student getting my MBA with an emphasis in finance. I am struggling to answers this question as I have no experience in coding. I am supposed to work the problem using python. Any help would be greatly appreciated! **PROBLEM** Problem Statement: We have a project with given cashflows. [-50, 20, 10, 3...
I implemented this function but I do not know why is it not working as I expect, I have restriction so I can not use stoll and sstream functions... ``` #include <iostream> #include <string> #include <vector> #include <climits> #include <cctype> #include <stdexcept> std::vector<long long int> NumbersInStri...
Extracting long long int numbers from string and putting them in vector
|c++|string|vector|
null
I have a Blazor WebApp in which I load data with EF Core. Now I get the following error when displaying the data on a page because of reference loops, the data is loaded in an Syncfusion ComboBox: ``` <SfComboBox TValue="Contact" TItem="Contact" @bind-Value="item.Owner" DataSource="Contacts"...
Detecting click inside and outside of the listening component in Angular
|angular|events|
i have 1 dog page on Facebook, i usually post photo of dogs when ever i have time, so trying to write a scheduler that will take images from my system folder and upload and publish on my page. i want to post images, from my local system to 1 of my managed pages. i have page access token. and using below curl i...
|machine-learning|deep-learning|computer-vision|stable-diffusion|image-generation|
I'm having some issues trying to get some content to display in an admin panel when a user is logged into it. I am using Antlers templates in Statamic with Laravel in there too and can't find a template tag that could be used for checking if the user is authenticated? I've tried looking at the Statamic documentatio...
Is there a way of showing content in a Statamic antlers template if a user is authenticated?
|laravel|statamic|
null
## Why is not running? Basically, is not usual to use CMD and ENTRYPOINT **together**. If you do that, the cmd instructions are appended to the entrypoint as simple arguments. In your case something like this: ``` ENTRYPOINT["/entrypoint.sh", "/bin/bash", "-c", "/log-agent.sh"] ``` More details here - ht...
i have extracted some values using regex in beanshell postprocessor now i have to pick a random value and store it into a varaible?
|regex|jmeter|beanshell|
null
there is an activestorage bug for gcs when using direct upload in `activestorage/lib/active_storage/service/gcs_service.rb#headers_for_direct_upload`. it sets the content disposition metadata to inline and currently the only way to get the query params for content disposition working is to clear the content dispositi...
It is a good idea to smooth scrool in $(window).load function rather than $(document).ready as scrolling in $(document).ready may cause it to scroll to wrong position due to wrong offset returned by offset function if images are not yet loaded on page. ```js $(document).ready(function () { if (window.location.has...
(CSS) Color pulse broken on linear gradient. How to fix "@keyframe" to pulse background of a button?
Some version of playwright(1.42) comes as to **work only with specific browser version** as you can check in the [release notes][1] in the image you have shared the version is **chromium-1105** in your local and playwright wants version **chromium-1028** So as said in the error please **run that command** and it ...
|python|hash|substring|longest-substring|rabin-karp|
If you convert the data to vertical format and set the original column name to hue, you will get a graph that is grouped by type. df.set_index('Type', inplace=True) df = df.stack().to_frame('value').reset_index() df.rename(columns={'level_1':'Item'},inplace=True) df.head() Ty...
I'm deleting your post because this seems like a programming-specific question, rather than a conversation starter. With more detail added, this may be better as a Question rather than a Discussions post. Please see [this page](https://stackoverflow.com/help/how-to-ask) for help on asking a question on Stack Overflow...
null
I am a grad student getting my MBA with an emphasis in finance. I am struggling to answers this question as I have no experience in coding. I am supposed to work the problem using python. Any help would be greatly appreciated! **PROBLEM** Problem Statement: We have a project with given cashflows. [-50, 20, 10, 3...
I'm trying to generate Java stubs for the new 3rd party service. It worked before with no problem but recently they have added a new method `verifyDataExistence` and `wsdl2java` got failed with the following error (real names were changed): ``` Loading FrontEnd jaxws ... Loading DataBinding jaxb ... wsdl2java -v...
Apache CXF is unable to handle duplicate localnames
|web-services|soap|cxf|wsdl2java|
null
I'm deleting your post because this seems like a programming-specific question, rather than a conversation starter. With more detail added, this may be better as a Question rather than a Discussions post. Please see [this page](https://stackoverflow.com/help/how-to-ask) for help on asking a question on Stack Overflow...
This is my Activity layout: <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" ...
Here method to get all linear. import bitsandbytes as bnb def find_all_linear_names(model): lora_module_names = set() for name, module in model.named_modules(): if isinstance(module, bnb.nn.Linear4bit): names = name.split(".") # model-sp...
{"OriginalQuestionIds":[59232877],"Voters":[{"Id":501250,"DisplayName":"cdhowie","BindingReason":{"GoldTagBadge":"rust"}}]}
I am studying the Oss-fuzz and found the following strange behavior, which I cannot understand. I created a simple C project with the only function with 3 branches (if incoming values equal 0, 32 and whatever else). Here is the testing function: ``` 1 int func(int a) 2 { 3 FILE *fptr; 4 if ((fp...
oss-fuzz does not cover the code after if - else in C code
|code-coverage|fuzzing|libfuzzer|
null
Imagine a list with 100 items. There is a component which displays all of them. Several times per second one (random) item should be moved into a new position. The React native approach would be to rerender whole component by constructing Virtual Tree, then diff it with previous copy, then to patch DOM. The problem is ...
Is ConstraintLayout broken?
|android|android-layout|android-constraintlayout|
I need help converting a column of 179 observations from an excel file that holds 2 variables (days and values). After i try converting the dataframe with ts(as.vector(a1dataraw['x'], the vector returns with start=1 but also end=1 when it should be 179? Can someone please identify where im going wrong? ``` r ...
The messed-up output is mainly due to not specifying the required function number AH=09h before invoking DOS to print a message, and to using DH for holding the second number while at the same time you use DX for another purpose. Remember that the 16-bit DX is composed of the two 8-bit parts DH and DL. Input of a si...
@Modifying @Transactional @Query("DELETE FROM BusinessTransaction bt WHERE bt.userId.id=:id") void deleteByUserId(Long id); -->for this query i am getting "Transaction silently rolled back because it has been marked as rollback-only" this error. In this query userID is a object of User c...
For anyone crossing this path in future here is my solution: **Original Problem:** I have a Django template that contains a Bootstrap Accordion, with three items. In each item I have a form. When the page is refreshed on any submit it always opened to the first Accordion item. I wanted the page to open to the acc...
The structure of your query is not correct. There are a lot of ways to fix this problem, but essentially you need to separate the data call from the component display instead of trying to do both all at once. This is usually done with React Hooks, and there are numerous examples out there of how to accomplish this....
The issue is the grouping and can be fixed by mapping on the `group=` aes. I haven't digged deeper into your code. But especially when several variables and aesthetics are involved I would recommend to map on aesthetics locally and/or to explicitly map on the `group=` aes so that bars and text or ... are dodged by the...
null
I understand the OneLake should ensure a single copy of data. So, when we use Azure Synapse Data Warehouse and aggregate data into new tables, does that create a new dataset on OneLake (in a new workspace / directory / location) or does the new aggregate data reside in Synapse? Thanks!
Microsoft Fabric components and data replication
|azure-synapse|fabric|onelake|
Solver the same thing using [Bun][1]. I added an entry to script in package.json, like this: "scripts": { "compile": "bun build src/main.ts --compile --outfile out" I now run it like `bun run compile` and i can use the out file like `./out` [1]: https://bun.sh/
You have not set the `spring.security.oauth2.client.provider.keycloak` correctly: only `user-name-attribute` is present, which is not enough. As Keycloak is OIDC compliant, setting `spring.security.oauth2.client.provider.keycloak.issuer-uri=` with the **exact value of the `iss` claim in one of your tokens** should b...
You can try this: ``` conda update conda conda update conda-build conda install -n base conda-libmamba-solver conda config --set solver libmamba ``` My answer is based on the issue raised [here](https://github.com/conda/conda/issues/11919).
Coroutines can be used in the main thread for network calls, but network calls may take more time because of multiple reasons, and for that time the main thread is blocked. Because the main thread is responsible for rendering the UI, it will give a bad user experience as well as it may result in ANR (Application Not...
why don't you merge the two nodes ? Treat the pair as one. Distance to the merged node is distance to 3. Distance from the merged node is distance from 7. Then you add a min to the slack var of the merged node to be the transit from 3 to 7.
null
Once you are in terminal/command line, access the database/collection you want to use as follows: show dbs use <db name> show collections choose your collection and type the following to see all contents of that collection: db.collectionName.find() More info here on the [MongoDB Shell (mon...
null
Once you are in terminal/command line, access the database/collection you want to use as follows: show dbs use <db name> show collections choose your collection and type the following to see all contents of that collection: db.collectionName.find() More info here on the [MongoDB Shell (mon...
You could try using the following formulas, this assumes there is no `Excel Constraints` as per the tags posted: [![enter image description here][1]][1] ---------- =TEXT(MAX(--TEXTAFTER(B$2:B$7,"VUAM")*($A2=A$2:A$7)),"V\U\A\M\00000") ---------- Or, using the following: =TEXT(MAX((--RIGHT(B$2:B...
Use these commands (in lucky case) <!-- language: shell --> git remote -v git pull git fetch upstream git checkout master git merge upstream/master --no-ff git add . git commit -m"Sync with upstream repository." git push -v
I'm deleting your post because this seems like a programming-specific question, rather than a conversation starter. With more detail added, this may be better as a Question rather than a Discussions post. Please see [this page](https://stackoverflow.com/help/how-to-ask) for help on asking a question on Stack Overflow...
null
There are two main things on keeping a forked repository always update for good. > **1. Create the branches** from the fork master and **do changes there**. So when your *Pull Request* is accepted then you can safely delete the branch as your contributed code will be then live in your master of your forked reposi...
Is there a way in React to update a DOM without constructing Virtual Tree?
i have 1 dog page on Facebook, i usually post photo of dogs when ever i have time, so trying to write a scheduler that will take images from my system folder and upload and publish on my page. i want to post images, from my local system to 1 of my managed pages. i have page access token. and using below curl i...
In R, I am evaluating a simple statement. It should return TRUE but it returns FALSE: >a = c(0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1,1.1,1.2,1.3,1.4,1.5) >b = seq(from=0, to=1.5,by = 0.1) > a==b [1] TRUE TRUE TRUE FALSE TRUE TRUE FALSE FALSE TRUE TRUE TRUE TRUE FALSE TRUE FALSE [16...
Very simple true numeric statement incorrectly evaluates to false
|r|conditional-statements|
I am inspecting some code in order to prepare to do my own ocr model and everyone converting jpeg into tfrecords. Why would they do that? I found information about reducing occupied storage space, but both files occupy the same space.
Why convert jpeg into tfrecords?
|python|tensorflow|ocr|
null
<!-- language-all: sh --> > Why is PowerShell failing when redirecting the output? The reason is that `python` (which underlies `html2text`) - like many other Windows CLIs (console applications) - modifies its output behavior based on whether the output target is a *console (terminal)* or is _redirected_: * In...
findOneAndUpdate not updating value in mongodb?
Your code is using deprecated methods that were removed in Selenium version 4.3.0; see https://github.com/SeleniumHQ/selenium/blob/trunk/py/CHANGES. You *could* `pip install` an older version of Selenium as a workaround. But a better idea would be to change your code to replace the calls to the deprecated calls wit...
Is there a way to integrate trivy to sonarqube. I'm building a docker image from jenkins pipeline and then do the trivy scan. Now I want to get that image scan result from trivy in jenkins to the sonarqube. Is it possible to do it?
Trivy report to sonarqube
|sonarqube-scan|trivy|
The closest you can get is inlining the `.rename_axis` call: ``` pd.DataFrame({"a": [1, 2], "b": [3, 4]}).rename_axis('myindex') ``` ``` a b myindex 0 1 3 1 2 4 ```
**Docker-compose.yaml:** ``` version: "3.9" services: postgres: image: postgres environment: - POSTGRES_HOST=postgres - POSTGRES_PASSWORD=password - POSTGRES_USER=Test - POSTGRES_DB=Test ports: - "5432:5432" backend: build: ./server container_name: ...
NextJS build fails: fetch fatiled ECONNREFUSED