instruction stringlengths 0 30k ⌀ |
|---|
I have a program that gets requests (an array of strings of size `n`) from different domains (each input value is called as a domain) for each second `i`.
Within 5 seconds for a given domain the program should accept at most 2 successful requests.
Also at most 5 successful requests in 30 seconds.
For each req... |
WebClient apears to add headers to request on its own. Where does it happen? |
|java|spring-webflux| |
VSCode lists these errors:
2024-03-30 14:51:04.141 [error] Following setting is deprecated: "python.linting.mypyEnabled"
2024-03-30 14:51:04.141 [error] All settings starting with "python.linting." are deprecated and can be removed from settings.
2024-03-30 14:51:04.141 [error] Linting features have be... |
Your code has compile errors when I try to run with the version of `iverilog` that I have installed (10.3).
However, the code produces the expected output when I run with the Cadence and Synopsys simulators:
result_matrix[0] = 0.000000
result_matrix[1] = 0.000000
result_matrix[2] = 0.000000
r... |
You can use `renderer.getLegendItem()`. The result will be `null` for a non-visible series. Given a `JFreeChart chart`, a `chartMouseClicked()` implementation might look like this:
```
@Override
public void chartMouseClicked(ChartMouseEvent e) {
if (e.getEntity() instanceof LegendItemEntity itemEntity) {
... |
|c++|c++11|rvalue-reference| |
{"Voters":[{"Id":902497,"DisplayName":"Raymond Chen"},{"Id":62576,"DisplayName":"Ken White"},{"Id":1030169,"DisplayName":"jmoerdyk"}],"SiteSpecificCloseReasonIds":[]} |
You could make a `factor` out of the `"status"`. Then just loop over the `"miRNA.list"` columns in an `sapply`: first equal to `"yes"`, then `table` the positive statuses and `c`oncatenate the `sum`.
> df.mirna.pv$status <- as.factor(df.mirna.pv$status)
> t(sapply(df.mirna.pv[miRNA.list], \(x) {
+ y ... |
What is the complexity of HashMap#replace java? |
I am having an issue. It just published my first project and now I am realising if you add an "/" to the end of the URL it does load in a very different way I cant even explain. When you add a "Trailingslash" some of the Buttons of the Website are not clickable and if I do this with ng serve the font is changing, I can... |
I am trying to make a map media query for phones and make the zoom decrease to 8. However, this doesn't seem to work, the map doesn't decrease zoom when I set the width, is there any error in this code?
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-js -->
... |
I want to process millions of rows and doing some process on that and export that records into excel file. When I am fetching records and fill it into a `DataTable`, it is utilizing very large amount of memory - around 8 to 10 gb. My SQL query result is containing around 300 columns.
I have tried with batch and tri... |
High memory utilizing when fetch data from stored procedure to DataTable |
|c#|asp.net-core|asp.net-core-webapi| |
|excel|excel-formula|concatenation| |
Since you're calling `queue()` inside a loop, the order in which the users are retrieved and processed isn't guaranteed to match the order in your `sortedEntries` list. This leads to the incorrect order in your leaderboard.
Instead you could try to replace the `queue()` with a `complete()`, which will interrupt the ... |
I haven't fully investigated the implementation of this, however by hard-coding the values and using clipRect, this appears to solve the problem. Just why it is necessary to do that I don't understand, and why it is not necessary in other cases I don't understand.
Current change is as follows:
```
class PieCha... |
In a file named `aaa.r` (or, basically, with a filename that comes before any other file in your `/R` folder in the package), put:
`setGeneric("myMethod", function(object) standardGeneric("myMethod"))`
Then, create one file for each class, `class1.r` and `class2.r` (you could also put them in the same file). They... |
Leaflet Map Media Queries |
|javascript|css|leaflet| |
I'm leveraging UI Elements `PropertyField` class to make a `PropertyDrawer`.
Basically, I have a dropdown that allows to select a type of smoothing.
Long story short, undo works but redo doesn't.
Tried numerous approaches with [Undo][1] class but redo never shows up.
(e.g. [FlushUndoRecordObjects][2], [Incr... |
Redo isn't working for SerializeReference |
|c#|unity-game-engine| |
This question was inspired by [a question](https://stackoverflow.com/questions/33182491/why-bcd-instructions-were-removed-in-amd64) I recently came across on Stackoverflow. It reminded me that early in the development of the x86-64 ISA I had written 32-bit x86 code for BCD addition without using the BCD support instru... |
I would go through the whole file tree and skip everything that is `node_modules`.
This will be much more perfomant then searching for all `package.json` and filtering them by their path.
```python
from os import walk
w = walk("/path/to/your/repo")
for(dir_path, dir_names, file_names) in w:
if dir_path.en... |
```
bundle.js:10677 Uncaught TypeError: Unable to determine current node version
at versionIncluded (bundle.js:10677:9)
at isCore (bundle.js:10694:28)
at 71../core.json (bundle.js:15883:21)
at o (bundle.js:1:265)
at bundle.js:1:316
at 67../lib/async (bundle.js:15523:14)
at o (bundl... |
Browserify Error: Uncaught TypeError: Unable to determine current node version in bundle.js |
|javascript|node.js|webpack|browserify| |
null |
I have a TelerikForm with FormItems --> FormGroup --> FormItem(s) and I am wanting to have in the middle or bottom of my form to have a Grid in which I can add new items with multiple rows.
I was adding in TelerikGrid with GridColumns and it renders but puts the grid at the top of the page. It has been a while... |
I had the same issue in one of my projects. I discovered that in the build process, cx_Freeze was taking all the packages installed in the computer, so I sat up a virtual-environment on the root directory of the project to install there only the packages needed for my project, once this was done cx_Freeze chose only th... |
Hey guys I need some help, I can't get the execution right...
I have two queries that get me the results I need to get the right percentage.
1st query:
Select Date, AgeGroup,SUM(NumberOfFans) From FansPerGenderAge WHERE date = (SELECT max(date) from FansPerGenderAge) GROUP BY AgeGroup;
Results:
... |
|powershell| |
I was also unable to launch Jupyter due to the same error that was present.
Initially I tried upgrading the specific version of tornado, however, anaconda stated that upgrading to tornado 5.0 is incompatible with the version of python.
Running the `conda update --force conda` command in anaconda prompt managed to... |
As a beginner in PySide6, I'm currently developing an application where I use the pywin32 package to read doc files. However, when I import both win32com.client and packages related to PySide6, I encounter the following error.
[enter image description here](https://i.stack.imgur.com/42uyx.jpg)
```
PS C:\Users\xi... |
Razor pay payment screen shown with white borders |
|ios|flutter|razorpay|flutter-razorpay| |
null |
Laravel request validation returns "save" |
**Here is a non-functional example to try to send an email with the Microsoft Graph V6 java sdk**
Dependencies - Gradle Koltin DSL
````text
implementation("jakarta.annotation:jakarta.annotation-api:2.1.1")
implementation("com.azure:azure-identity:1.11.4") //authentification
implementation("com.micr... |
I am in the process of teaching myself cluster analysis using Phenograph and generating a heatmap to show cell phenotypes along with the population percentages as an annotation using complex heatmap in R. I currently have figured out how to add a row annotation to show frequencies as a row_annotation, but I would reall... |
I have create a function in VS 2022 using .NET8. Locally its working fine But info logs are not showing in application insights. I am able to see Warning logs and Error logs.
I thought my code could be the issue. I tried with a sample function too, its also not showing any info, or trace logs in Application Ins... |
Not getting Information or Trace logs in Application Insights in .NET 8 function |
|azure-functions|azure-application-insights| |
null |
{"Voters":[{"Id":7758804,"DisplayName":"Trenton McKinney"},{"Id":2756409,"DisplayName":"TylerH"},{"Id":466862,"DisplayName":"Mark Rotteveel"}]} |
{"Voters":[{"Id":9131961,"DisplayName":"cabrerahector"},{"Id":2756409,"DisplayName":"TylerH"},{"Id":466862,"DisplayName":"Mark Rotteveel"}],"SiteSpecificCloseReasonIds":[18]} |
There are several possible causes.
1. The other end has deliberately reset the connection, in a way which I will not document here. It is rare, and generally incorrect, for application software to do this, but it is not unknown for commercial software.
2. More commonly, it is caused by writing to a connection t... |
I have a login which works through Firebase, I am implementing the logic so that the email is verified after creating the account[enter image description here](https://i.stack.imgur.com/1qGPD. jpg)mail arrives successfully [enter image description here](https://i.stack.imgur.com/4Tmke.jpg) and is verified successfully.... |
I have this settings page with some Input components on it. I want them to be white like the rest of the page but for some reason they are dark. Overwriting the classes doenst help. I use React, Tailwind CSS and DaisyUI.
I also have absolute no Idea why this is even dark at all. If someone could explain this I woul... |
Can't remove "dark mode" of input fields Tailwind/DaisyUI |
|reactjs|tailwind-css|daisyui| |
When login user via gigya screenset lang parameter is truncated from de-at to de and we have problems regarding consentments.
When user was registered correct language was set de-at by setting window.__gigyaConf = {toggles: {useFullLangCode: true}};
Is there any option to also used fulllangcode in login screen.
... |
Gigya cdc sap account login lang is truncated |
|cdc|gigya|sap| |
While I really like the simplicity of the approach posted by Flavio, I can't use it in production code unless it's documented as supported. Also, if you call `.getImplementation()` on the `LazyInitializer`, it will force the initialization of the proxy if it isn't already, which is a negative performance impact. I've c... |
I have a sequence of azimuth angles ranging from 0 to 180, then from -170 to -10, totaling 36 angles. In some cases, certain azimuth angles may be unavailable. I aim to choose **N** points from the available set and determine the maximum sum of distances between these points. For instance, if all points are valid, sele... |
find best distance in given points |
|algorithm| |
null |
In my ASP.NET API im having an issue for a while where i cannot host my web app locally using VS web server on ports other than the default ones (i.e. http: 5000, https: 5001). VS keeps on waiting for web server to listen on the ports specified in my LaunchProfile.json indefinitely while the app is being hosted on the ... |
{"OriginalQuestionIds":[1243199],"Voters":[{"Id":4108803,"DisplayName":"blackgreen"}]} |
I have a problem with a 'simple' ADA program. This exercise aim at learning value by reference and post condition in ADA.
Here I want to build a simple function that sum two Integers where the first one is negative and the second one positive. The returned value must be the sum, and the postcondition must check i... |
I tried to upload my django project to Render which contains plenty of HTML files as well CSS styles. The latter is used in a CSS file called 'styles.css' within the static folder. When I run the project, the images are shown, but it's like the styles have not been applied to everything, not even the Django Admin panel... |
good afternoon, I don't understand English much, but I will try to express and make clear a problem that I have and I couldn't solve even with chatgpt.
I have a billing project, I have an error when adding bonus items to another item. example: item: paneton, I add 2 bonuses sugar and milk, these are bonus type: in v... |
vue js error when adding bonus items to another item |
|laravel|vue.js| |
null |
I may happen because of missing SDK. I got same error because I set no SDK for the project. I could run after my set a correct SDK. |
You have not set the `provider` and `registration` properties correctly for Keycloak:
- only `user-name-attribute` is present for `provider` conf, which is not enough
- `issuer-uri` is a `provider` property, not a `registration` one (your IDE should lint that)
- `issuer-uri` is probably `http://localhost:8080/realms... |
Pyside6 and pywin32 cannot be imported simultaneously |
|python|pywin32|pyside6| |
null |
Using the `\do` and `\df` command to list operators and functions. But it returns an empty table. What am I doing wrong?
```bash
bpsimple=> \do
List of operators
Schema | Name | Left arg type | Right arg type | Result type | Description
--------+------+---------------+-------------... |
Postgres not listing operators and functions |
|postgresql|psql| |
From [the Firebase docs](https://firebase.google.com/docs/functions/config-env#automatically_populated_environment_variables):
> `process.env.FIREBASE_CONFIG`: Provides the following Firebase project config info:
>
>
> ```
> {
> databaseURL: 'https://databaseName.firebaseio.com',
> storageBucket: 'projec... |
I had the same issue and, from what I get, this is coming from the use of the `filename` parameter in the `Diagram()` that I was using.
In my case, to solve the issue and get the icon PNG to render properly, I used a relative path starting from the** `filename=` **location and pointing to where the icon PNG is store... |
<<my English is poor>>
When I enter long text into my TextFormField A and jump to another widget (like another TextFormField) my TextFormField A sustains the cursor position at the end of the long text. I want the text to appear from starting position when I unfocus the widget.
**situation**
email field unfocuse... |
Flutter TextFormField display overflow text from start position when unfocused |
|flutter| |
I am currently working on a binary image classification. My problem is that when i use data augmentation, it incorrectly labels the images when it is set to binary.
The things i have tried:
- Looked for incorrectly labeled classes on images before augmenting my data. Here is nothing wrong however.
- Change... |
Adding a Bubble Plot as a Complex Heatmap Annotation |
|r|ggplot2|cluster-analysis|complexheatmap| |
null |
{"Voters":[{"Id":349130,"DisplayName":"Dr. Snoopy"},{"Id":2530121,"DisplayName":"L Tyrone"},{"Id":6509519,"DisplayName":"Ian Thompson"}],"SiteSpecificCloseReasonIds":[18]} |
I am creating an application and I would like to have it extend as needed. I want to use a dropdown list to select an option, then show a new dropdown using the same list minus the previous value selected (so you can't double select it), and repeat on and on. So you could have one option selected, with one dropdown und... |
Reusing Dropdown Menu in Kotlin Jetpack Compose |
|kotlin|drop-down-menu|android-jetpack-compose| |
null |
According to the official documentation regarding the [document IDs][1]:
> The names of documents within a collection are unique. You can provide your own keys, such as user IDs, or you can let Cloud Firestore create random IDs for you automatically.
So the IDs of the documents in Firestore should be *unique with... |
I would not build als this in the frond end, the heavy lifting should be done in the backend. You could run in all kind of issuis, browser slowness, bandwith issui for your user, data security..
I see that Spring boot has some polling abillities, but this does not seem to include incremental polling results (as far ... |
This is what I came up with: https://jsbin.com/famusiwuhu/1/edit?html,js,output
const top = document.querySelector(".top");
const header = document.querySelector(".header");
const bottom = document.querySelector(".bottom");
const chat = document.querySelector('.chat');
function moveAndI... |
it seems like you made a mistake in your indentation starting at the for loop. Python indentation determines the scope where code runs, message cannot be found because it is out of scope (because it's missing a level of indentation)
i believe indenting 20 to 28 and unindenting the rest after should fix your issue
... |
{"Voters":[{"Id":18602882,"DisplayName":"Anish Nahar"}]} |
|macos|assembly|arm| |
{"OriginalQuestionIds":[62929],"Voters":[{"Id":573032,"DisplayName":"Roman C"},{"Id":207421,"DisplayName":"user207421","BindingReason":{"GoldTagBadge":"java"}}]} |
{"Voters":[{"Id":7758804,"DisplayName":"Trenton McKinney"},{"Id":2756409,"DisplayName":"TylerH"},{"Id":466862,"DisplayName":"Mark Rotteveel"}]} |
We are observing **RedisConnectionFailureException** intermittently as mentioned in above stacktrace, quantum is around 3/15 mins, which is very low, but they should not come as latency from redis server end is very less (around ~ 5-20 ms).
**Stacktrace**:
Error reading data from redis for key: key_name.
... |