Id int64 4 8.51M | PostTypeId int64 1 7 | AcceptedAnswerId int64 7 75.5M ⌀ | ParentId int64 4 41.8M ⌀ | Score int64 -208 27.7k | ViewCount int64 11 12.4M ⌀ | Body stringlengths 0 45k | Title stringlengths 2 150 ⌀ | ContentLicense stringclasses 3
values | FavoriteCount int64 0 225 ⌀ | CreationDate stringdate 2008-07-31 21:42:52 2011-12-14 18:48:47 | LastActivityDate stringdate 2008-08-01 12:19:17 2023-03-05 04:40:26 | LastEditDate stringdate 2008-08-01 13:54:25 2023-03-05 03:12:45 ⌀ | LastEditorUserId int64 -1 21.3M ⌀ | OwnerUserId int64 -1 21.1M ⌀ | Tags listlengths 1 6 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75,615,832 | 2 | null | 75,614,428 | 0 | null | Just another concept. The code below just uses [Scanner.nextLine()](https://www.tutorialspoint.com/java/util/scanner_nextline.htm) and validates all User inputs using the [String.matches()](https://www.tutorialspoint.com/java/java_string_matches.htm) method along with small [Regular Expressions](https://www.vogella.com... | null | CC BY-SA 4.0 | null | 2023-03-02T13:07:32.167 | 2023-03-02T13:07:32.167 | null | null | 4,725,875 | null |
75,615,840 | 2 | null | 62,314,556 | 0 | null | For this issue:
```
sudo apt-get install python3-venv
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3-venv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from ano... | null | CC BY-SA 4.0 | null | 2023-03-02T13:08:15.357 | 2023-03-02T13:08:15.357 | null | null | 15,557,788 | null |
75,615,819 | 1 | null | null | -1 | 35 | I want to convert python parser to json. Here's a code of my python parser.
```
import re
import time
from urllib.parse import quote, unquote
from urllib.request import urlopen
import requests
from bs4 import BeautifulSoup
url = "https://fasie.ru"
page = urlopen(url)
html = page.read().decode("utf-8")
soup = Beautiful... | I want a convert python to json | CC BY-SA 4.0 | null | 2023-03-02T13:06:28.187 | 2023-03-02T13:19:16.663 | 2023-03-02T13:09:29.080 | 535,275 | 21,210,730 | [
"python",
"json",
"parsing"
] |
75,615,842 | 2 | null | 75,615,804 | 3 | null | `COUNT` has a special treatment for `*` that counts the rows regardless of any `null` values. `SUM` must take a (numeric) expression as its argument.
In this example, you could use `sum(s)`:
```
select sum(s) from
(select * from t1 union
select * from t2 union
select * from t3
) as ta;
```
[FBFiddle](https://www.... | null | CC BY-SA 4.0 | null | 2023-03-02T13:08:23.333 | 2023-03-02T13:36:17.727 | 2023-03-02T13:36:17.727 | 2,422,776 | 2,422,776 | null |
75,615,847 | 1 | null | null | 0 | 18 | I've just gotten started with GCP provisioning using Terraform. I want to executing gcloud commands within Terraform eg. creating .
I found on Terraform Registry site module -[[https://registry.terraform.io/modules/terraform-google-modules/gcloud/google/latest]](https://registry.terraform.io/modules/terraform-google-mo... | Executing gcloud commands within Terraform | CC BY-SA 4.0 | null | 2023-03-02T13:08:53.600 | 2023-03-02T13:12:44.287 | 2023-03-02T13:12:44.287 | 21,319,003 | 21,319,003 | [
"terraform",
"gcloud",
"terraform-provider-gcp"
] |
75,615,844 | 1 | null | null | 0 | 10 | I'm trying to send a stream of JSON data with express. The data does get sent in chunks, but sometimes express sends multiple chunks at once, which creates a problem with parsing the data, as the json is then invalid. I'm sending arrays of objects and when chunks are grouped together this happens`[{...}][{...}]` (no co... | force Writable.write to write only one chunk at a time | CC BY-SA 4.0 | null | 2023-03-02T13:08:38.710 | 2023-03-02T13:20:25.287 | 2023-03-02T13:20:25.287 | 9,990,279 | 9,990,279 | [
"javascript",
"node.js",
"express",
"node-streams"
] |
75,615,853 | 1 | null | null | 0 | 15 | I am facing an issue while generating the birt report for Hindi language and for other non English languages while I am able to fetch the data from the database but not able to generate the birt report with that data though I am using latest birt version If anyone knows the solution please help me out from this soluti... | can birt report does support hindi ,japanese,telugu and other then non-english langagues | CC BY-SA 4.0 | null | 2023-03-02T13:09:18.597 | 2023-03-02T13:09:18.597 | null | null | 21,318,796 | [
"java",
"birt"
] |
75,615,846 | 1 | null | null | -2 | 23 | here are my codes and really I dont understand why it says "'listItmes' is declared but its value is never read." on line 38. I dont see the number of my "item" list in the live server either.
```
var app = {
title: "Todo Aplication ",
description: "Lorem, ipsum dolor",
items: ['item... | "'blabla' is declared but its value is never read." | CC BY-SA 4.0 | null | 2023-03-02T13:08:43.047 | 2023-03-02T13:08:43.047 | null | null | 17,645,488 | [
"javascript"
] |
75,615,850 | 1 | null | null | 0 | 11 | I am trying to implement infinite scroll using Intersection Api and useRef .
```
<div className="loader" ref={observedElement}>
{isFetchingNextPage && hasNextPage ? "Loading..." : "No search left"}
</div>
```
My idea is whenever this div is visible the fetchNextPage function should run to... | Infinite scroll not working properly using Intersection Api , useRef and useInfiniteScroll in react query? | CC BY-SA 4.0 | null | 2023-03-02T13:09:02.040 | 2023-03-02T13:09:02.040 | null | null | 19,240,209 | [
"reactjs",
"react-hooks",
"react-query"
] |
75,615,854 | 1 | null | null | 0 | 43 | I would like to use variables instead of schema name but I don't want to go with `sp_executesql`
```
set schema = 'PUBLIC'
select * from identifier(schema).MYTABLE_NAME;
```
It's not working tried with `$`, `@`, table binding but didn't get the result. Please let me know how to use parameter value with hardcoded table... | Use variable instead of schema for selecting SQL | CC BY-SA 4.0 | null | 2023-03-02T13:09:19.507 | 2023-03-02T15:14:06.943 | 2023-03-02T13:46:22.900 | 13,302 | 14,060,649 | [
"sql",
"snowflake-cloud-data-platform"
] |
75,615,849 | 1 | null | null | 0 | 20 | I'm fairly new to Blazor and I want to use a 'GlobalSettings' class. I have tried using CascadingParameters but I'm getting null errors in the console even though the site is displaying fine. I suspect due to the order of loading components.
So I'd like to use DI and have the class populated during program.cs so I can ... | Blazor WASM set Global class during program.cs for DI | CC BY-SA 4.0 | null | 2023-03-02T13:09:01.943 | 2023-03-02T13:20:26.410 | null | null | 4,054,818 | [
"c#",
"dependency-injection",
"blazor",
"blazor-webassembly"
] |
75,615,855 | 1 | null | null | 0 | 34 | This is the issue:
I have a functional class_A with a well defined layout-A, and all the members of the layout are accessed via data binding.
```
public class class_A
{
private layoutA_Binding data_A;
}
```
There is a second class_B that extends class_A; the of this class_B plus some additional members.
```
publ... | Can I link the layout of a child class with its parent´s one using databinding (JAVA-android)? | CC BY-SA 4.0 | null | 2023-03-02T13:09:19.743 | 2023-03-03T04:49:15.320 | 2023-03-03T04:49:15.320 | 11,577,121 | 11,577,121 | [
"java",
"android",
"inheritance"
] |
75,615,852 | 2 | null | 5,237,283 | 1 | null | I'm working in this exact same issue. The solution that was proposed has some problems, like not keeping the set and the queue with the same elements.
I'm not 100% sure if it's necessary, but I'm guessing it is. Also, it doesn't contemplate other methods, ie offer and put.
If we use 'BlockingQueue' as the backing queue... | null | CC BY-SA 4.0 | null | 2023-03-02T13:09:18.097 | 2023-03-02T13:09:18.097 | null | null | 8,333,677 | null |
75,615,845 | 1 | null | null | 0 | 14 | I'm new to webGL and even more so to shaders.
I created a shader to represent grass.
But I can't manage to take into account the projection of shadows (receiveShadow) of my shadowMap generated thanks to a directional light.
Could you help me update my shader please?
Here is my code:
```
const vertexShader = `
var... | Three.js - Shader with shadows | CC BY-SA 4.0 | null | 2023-03-02T13:08:41.477 | 2023-03-02T15:48:47.223 | 2023-03-02T15:48:47.223 | 5,577,765 | 13,337,889 | [
"three.js",
"shader",
"shadow",
"fragment-shader",
"vertex-shader"
] |
75,615,862 | 2 | null | 75,427,648 | 0 | null | I can't help you but it can look good if you will use CapsLock so try this.
| null | CC BY-SA 4.0 | null | 2023-03-02T13:09:54.130 | 2023-03-02T13:09:54.130 | null | null | 21,307,423 | null |
75,615,839 | 1 | null | null | 0 | 28 | I have a list of 30 objects for which I need to call API. I then add the result of all API calls and return as answer. But it gives 503 error after few calls.
```
override suspend fun getScoreboard(docId: String): ScoreboardResult {
val scoreboardResult = ScoreboardResult()
try {
withContext... | Calling multiple APIs using Coroutines causes error | CC BY-SA 4.0 | null | 2023-03-02T13:08:01.337 | 2023-03-02T13:33:40.057 | 2023-03-02T13:08:54.887 | 17,817,594 | 17,817,594 | [
"android",
"kotlin",
"retrofit2",
"kotlin-coroutines",
"android-networking"
] |
75,615,858 | 1 | null | null | 0 | 11 | Thanks in advance for any help!
I am using the gdal CLI for ECW file conversions to subset and convert a large ECW file to individual tif files. I have two ECW files, one infrared and one RGB. on the RGB file, the following code works perfectly:
```
gdal_translate -of GTiff -projwin 101000.0 444000.0 101750.0 443250.0... | gdal_translate error: Could not perform Read/Write (ecw to tif) | CC BY-SA 4.0 | null | 2023-03-02T13:09:45.543 | 2023-03-02T13:09:45.543 | null | null | 8,395,018 | [
"linux",
"tiff",
"gdal"
] |
75,615,860 | 2 | null | 75,615,719 | 2 | null | Use `sprintf` to insert the number. Also use `sub` instead of `gsub` and simplify the regular expression slighlty:
```
x <- "X012345"
n <- 3
sub(sprintf('(.{%d})', n), '\\1.', x)
## [1] "X01.2345"
```
If you don't mind using a package then with stringi this works:
```
library(stringi)
`stri_sub<-`(x, n+1, n, value ... | null | CC BY-SA 4.0 | null | 2023-03-02T13:09:49.193 | 2023-03-02T14:05:15.120 | 2023-03-02T14:05:15.120 | 516,548 | 516,548 | null |
75,615,864 | 2 | null | 75,615,838 | 1 | null | Use `as_index=False` in the first command to keep `groupby` from moving it as index:
```
non_contras_by_account = non_contras.groupby('account_key', as_index=False).sum()
```
| null | CC BY-SA 4.0 | null | 2023-03-02T13:10:00.240 | 2023-03-02T13:10:00.240 | null | null | 16,343,464 | null |
75,615,859 | 2 | null | 75,615,589 | 1 | null | You can create a factory for the pivot model and use it with a sequence.
```
$listing = Listing::factory()->create();
ListingProduct::factory()
->count(3)
->for($listing)
->sequence(fn ($sequence) => [
'position' => $sequence->index + 1,
])
->create();
```
[https://laravel.com/docs/10.x/el... | null | CC BY-SA 4.0 | null | 2023-03-02T13:09:46.260 | 2023-03-02T19:03:38.883 | 2023-03-02T19:03:38.883 | 5,556,440 | 5,556,440 | null |
75,615,865 | 2 | null | 75,615,512 | -1 | null | If I understand your question correctly (and I find it a little hard to do so), you should be able to just compare the Hour:Minute of `dateTime` with the Hour:Minute of `end` (or `start`, if you switch your logic around).
If the end is greater than now, you must be in the second day.
These checks obviously only work as... | null | CC BY-SA 4.0 | null | 2023-03-02T13:10:01.827 | 2023-03-02T13:10:01.827 | null | null | 3,735,561 | null |
75,615,856 | 2 | null | 75,612,693 | 0 | null | I'm not sure if I understood your question correctly, but I'll try to help.
I would create an additional wrapper in the form of new classes that will configure your service inside.
Example:
```
//In this class, you can add any additional logic and use it as a kind of decorator
public class Auth0Client
{
//... | null | CC BY-SA 4.0 | null | 2023-03-02T13:09:26.663 | 2023-03-02T13:37:20.543 | 2023-03-02T13:37:20.543 | 5,872,171 | 5,872,171 | null |
75,615,867 | 1 | null | null | 0 | 17 | How to sync data between Azure SQL database to Azure Active Directory
How to sync data between Azure SQL database to Azure Active Directory
| How to sync data between Azure SQL database to Azure Active Directory | CC BY-SA 4.0 | null | 2023-03-02T13:10:12.527 | 2023-03-02T13:10:12.527 | null | null | 21,319,163 | [
"azure-active-directory"
] |
75,615,870 | 2 | null | 75,615,570 | 0 | null | You can setup your `pip.ini` file to include extra indices that are searched as well.
```
[global]
index-url = http://pypi.org/simple
extra-index-url = https://pypi.mydomain.yada/simple
trusted-host =
pypi.org
pypi.mydomain.yada
```
| null | CC BY-SA 4.0 | null | 2023-03-02T13:10:24.090 | 2023-03-02T13:10:24.090 | null | null | 5,003,756 | null |
75,615,868 | 1 | null | null | 0 | 7 | ```
import {authorize} from 'react-native-app-auth';
const config = {
clientId: 'MYCLIENTID',
redirectUrl: 'myapp:/authredirect',
scopes: [''],
serviceConfiguration: {
authorizationEndpoint: `MYAUTHURL`,
tokenEndpoint: `MYTOKENURL`
}
}
const result = await authorize(config);
```
androi... | RedirectURL in react-native-app-auth doesn't work | CC BY-SA 4.0 | null | 2023-03-02T13:10:18.883 | 2023-03-02T13:10:18.883 | null | null | 16,986,647 | [
"react-native",
"single-sign-on"
] |
75,615,863 | 1 | null | null | 0 | 67 | I have a question about implementation without dynamic casting.
In order to demonstrate my problem here is a toy problem, in :
```
public abstract class Animal
{
protected bool ate = false;
public abstract void Speak();
public void Eat()
{
this.ate = true;
}
}
public class Dog : Animal
{
... | How to implement in C# class generic method or template to prevent dynamic casting | CC BY-SA 4.0 | null | 2023-03-02T13:09:58.900 | 2023-03-04T05:30:42.950 | 2023-03-02T13:24:33.150 | 21,317,807 | 21,317,807 | [
"c#",
"inheritance",
"design-patterns",
"overloading",
"dynamic-cast"
] |
75,615,861 | 1 | null | null | 0 | 10 | I have trained the following LSTM Autoencoder:
: For training I set first dimension of input to None to allow for training and testing on data with different timesteps.
I also use the Lambda layer instead of
```
repeat = keras.layers.RepeatVector(n=n_timesteps)
```
As it is required when using variable length timestep... | LSTM Autoencoder - real-time prediction | CC BY-SA 4.0 | null | 2023-03-02T13:09:50.123 | 2023-03-02T13:15:55.063 | 2023-03-02T13:15:55.063 | 21,309,412 | 21,309,412 | [
"tensorflow",
"keras",
"lstm",
"autoencoder",
"lstm-stateful"
] |
75,615,869 | 2 | null | 74,389,035 | 1 | null | Not really, unless you are using [indexed jobs (Kubernetes 1.21, Apr. 2021)](https://kubernetes.io/blog/2021/04/19/introducing-indexed-jobs/).
For indexed jobs, the index is exposed to each Pod in the `batch.kubernetes.io/job-completion-index` annotation and the `JOB_COMPLETION_INDEX` environment variable.
Official do... | null | CC BY-SA 4.0 | null | 2023-03-02T13:10:19.743 | 2023-03-02T13:10:19.743 | null | null | 6,309 | null |
75,615,871 | 1 | null | null | 0 | 15 | I was wondering if it's possible to create a gradle task to run another task with multiple arguments in parallel. This specific tasks are deploying and running Vertx verticles, deploying them individually, but I wanted a way to run all verticles at the same time through gradle.
I tried the code snip bellow, but can't s... | Gradle task to run another task with multiple arguments | CC BY-SA 4.0 | null | 2023-03-02T13:10:24.147 | 2023-03-03T04:19:59.417 | null | null | 21,319,091 | [
"java",
"gradle",
"groovy",
"build.gradle",
"vert.x"
] |
75,615,876 | 1 | null | null | 0 | 48 | First time i try to log in in my website the website crash with error " status on null" , sometimes when i refresh it lets . I cant find the error.
```
public function authenticate()
{
$this->ensureIsNotRateLimited();
if (!Auth::attempt($this->only('email', 'password'), $this->boolean('remember'))) {
... | Attempt to read property "status" on null | CC BY-SA 4.0 | null | 2023-03-02T13:11:17.217 | 2023-03-02T14:21:39.593 | 2023-03-02T13:27:11.847 | 3,887,392 | 16,036,180 | [
"php",
"mysql",
"laravel",
"vue.js"
] |
75,615,872 | 2 | null | 75,612,078 | 0 | null | One way to achieve this would be to use a custom item builder for the GridView, which would allow you to render each item with a section below it, regardless of its size. Here's an example implementation: 1. Define a custom item builder that renders each item with a section below it:
```
class MyItemBuilder extends Sli... | null | CC BY-SA 4.0 | null | 2023-03-02T13:10:31.297 | 2023-03-02T13:10:31.297 | null | null | 21,182,900 | null |
75,615,879 | 2 | null | 75,612,417 | 2 | null | This is an alternative (and [Shellcheck](https://www.shellcheck.net/)-clean) way to implement a function to print all of the dependencies of a package recursively:
```
function get_all_dependencies
{
local packages=( "$1" ) # packages whose dependencies need to be found
local -i first=0 last=0
local -A... | null | CC BY-SA 4.0 | null | 2023-03-02T13:11:34.543 | 2023-03-02T13:11:34.543 | null | null | 4,154,375 | null |
75,615,881 | 2 | null | 35,889,158 | 0 | null | The answer is already listed, I am just showing it in a better format.
```
filter @type="REPORT" and ispresent(@initDuration)
| stats count() as coldStarts, avg(@initDuration), min(@initDuration), max(@initDuration) by bin(5m)
```
| null | CC BY-SA 4.0 | null | 2023-03-02T13:11:35.873 | 2023-03-02T13:11:35.873 | null | null | 6,459,613 | null |
75,615,866 | 1 | null | null | 0 | 28 | I have been trying to scrape a website with Selenium and the code had been working just fine with the scrolling task, but not arriving at the bottom of the page as I needed. So I have worked on other details and have been running it over the past week, and the webdriver had been able to scroll for much longer on previo... | Driver disconnecting, WebDriverException: disconnected: not connected to DevTools using selenium | CC BY-SA 4.0 | null | 2023-03-02T13:10:08.077 | 2023-03-02T14:50:18.297 | 2023-03-02T14:50:18.297 | 21,319,083 | 21,319,083 | [
"python-3.x",
"selenium-webdriver",
"web-scraping"
] |
75,615,875 | 2 | null | 75,615,340 | 3 | null | > How to deduce a template argument from a function type?
You can always provide a [deduction guide](https://en.cppreference.com/w/cpp/language/class_template_argument_deduction#Deduction_for_class_templates) for your class template
```
template <typename Func, typename T = char>
action_(Func) ->action_<Func, T>;
```
... | null | CC BY-SA 4.0 | null | 2023-03-02T13:11:06.660 | 2023-03-03T12:53:58.650 | 2023-03-03T12:53:58.650 | 9,609,840 | 9,609,840 | null |
75,615,883 | 1 | null | null | 0 | 16 | Could you please tell me how to resolve the following sonar issues.
guava-31.1-android.jar | Reference: CVE-2020-8908 | CVSS Score: 6.2 | Category: CWE-379 | guava - Creation of Temporary File in Directory with Insecure Permissions [CVE-2020-8908] The software creates a temporary file in a directory whose permissions a... | How to resolve sonar guava issue? | CC BY-SA 4.0 | null | 2023-03-02T13:11:47.367 | 2023-03-02T13:11:47.367 | null | null | 21,319,153 | [
"spring-boot",
"sonarqube",
"guava"
] |
75,615,884 | 1 | null | null | -4 | 25 | please help me
I used this source code in the image for face recognition
This source code registers the top, left, bottom, and right values in the console
But it does not recognize any face when importing a photo[
```
enter image description here]
```
([https://i.stack.imgur.com/nkl1y.jpg](https://i.stack.imgur.co... | Face recognition api | CC BY-SA 4.0 | null | 2023-03-02T13:11:48.930 | 2023-03-02T13:11:48.930 | null | null | 21,318,974 | [
"javascript",
"reactjs",
"web"
] |
75,615,885 | 1 | null | null | 0 | 17 | How do I manage different data with dates based on the calendar(Calendar is in Application UI) in Flutter for a fitness tracker application.
I don't want to store the data permanently on a cloud database
I want to store it on the device's disk
Example: Choosing a date on the calendar will display the fitness activity (... | How do I manage the dates and the corresponding data on my fitness Application in flutter? | CC BY-SA 4.0 | null | 2023-03-02T13:11:52.870 | 2023-03-02T13:33:46.043 | null | null | 19,571,862 | [
"android",
"ios",
"database",
"flutter"
] |
75,615,887 | 2 | null | 75,615,836 | 0 | null | first_array = ['aaa', 'eee']
second_array = ['aaa', 'bbb', 'ccc', 'ddd', 'eee']
```
for x in first_array:
if x in second_array:
print(f"{x} is in second_array")
```
Without an loop this would it be:
```
set(first_array).intersection(set(second_array))
```
This will Output if and what is in both lists
I Ho... | null | CC BY-SA 4.0 | null | 2023-03-02T13:12:00.677 | 2023-03-02T13:15:43.500 | 2023-03-02T13:15:43.500 | 20,197,902 | 20,197,902 | null |
75,615,882 | 2 | null | 75,614,057 | 0 | null | To grant the service account the ability to write to a specific branch but not read, update, or delete anything else, you can use [Firebase's database security rules](https://firebase.google.com/docs/database/security/rules-conditions) to set up the appropriate authorization. You will need to add a rule to the parent n... | null | CC BY-SA 4.0 | null | 2023-03-02T13:11:45.187 | 2023-03-02T14:51:57.520 | 2023-03-02T14:51:57.520 | 18,878,095 | 18,878,095 | null |
75,615,891 | 2 | null | 75,615,661 | 1 | null | Why don't use simply use two times the Memory Component and rather duplicate the code and put it in a new component?
Other than that.
Are they maybe positioned on top of each other via `position: absolute`? Because you say you see them in the DOM. Or could one be hidden somehow else?
| null | CC BY-SA 4.0 | null | 2023-03-02T13:12:34.047 | 2023-03-02T13:19:12.300 | 2023-03-02T13:19:12.300 | 11,497,951 | 11,497,951 | null |
75,615,857 | 1 | 75,616,207 | null | 0 | 24 | I have to apply a logic in calculating the balance for a date. Where the current generated row is dependent on previous row value, For a null condition.
Below is representation of problem statement in tabular format. First Four columns are available in data frame.
| Date_Id | Grade_Id | Open_Balance | Actuals | Base |... | Logic in PySpark Dataframe to include the previous row value using the lag function | CC BY-SA 4.0 | null | 2023-03-02T13:09:45.237 | 2023-03-03T10:23:33.720 | 2023-03-02T15:45:14.103 | 14,125,039 | 14,125,039 | [
"python-3.x",
"dataframe",
"pyspark",
"apache-spark-sql"
] |
75,615,888 | 2 | null | 46,304,677 | 0 | null | Scroll to end of flatlist if theres extra data or data loaded after some render, This works good for me with useref
```
import React, {useRef} from 'react';
export default function PatientConsentScreen({navigation, route}) {
const scrollRef = useRef();
return (
<FlatList
data={datatoload}
extraData=... | null | CC BY-SA 4.0 | null | 2023-03-02T13:12:13.230 | 2023-03-02T13:12:13.230 | null | null | 9,130,218 | null |
75,615,886 | 1 | 75,615,953 | null | 0 | 31 | Suppose I have the data frame like the one below with two grouping variables "Group" and "Gender" and two additional variables with counts:
```
Group <- c("Group1","Group1","Group2","Group2")
Gender <- c("Male","Female","Male","Female")
Y <- c(7,5,6,10)
N <- c(45,8,2,11)
data <- cbind.data.frame(Group,Gender,Y,N)
> da... | Add total rows to data frame by group using two grouping variables | CC BY-SA 4.0 | null | 2023-03-02T13:11:58.327 | 2023-03-02T14:53:05.990 | 2023-03-02T14:53:05.990 | 16,647,496 | 19,144,662 | [
"r",
"dataframe"
] |
75,615,895 | 1 | null | null | 0 | 32 | I just downloaded RStudio for Linux (on WSL). The program forces me to use the US keyboard layout despite the fact that my keyboard has the Italian layout. How can I fix this?
| Change keyboard layout in RStudio | CC BY-SA 4.0 | null | 2023-03-02T13:12:41.527 | 2023-03-03T08:00:41.873 | 2023-03-03T07:58:44.573 | 15,312,420 | 21,319,179 | [
"linux",
"ubuntu",
"keyboard",
"rstudio"
] |
75,615,889 | 2 | null | 75,615,784 | 1 | null | You appear to want to use a `MERGE` statement:
```
MERGE INTO be_container dst
USING (
SELECT be.einheit_id
FROM db2.r_be_einheit r
INNER JOIN be_einheit be
ON r.id = be.id
WHERE r.merge_einheit_id is null
AND be.merge_einheit_id is not null
) src
ON (dst.id = src.einheit_id)
WHEN MATCHE... | null | CC BY-SA 4.0 | null | 2023-03-02T13:12:17.933 | 2023-03-02T13:12:17.933 | null | null | 1,509,264 | null |
75,615,896 | 2 | null | 75,615,688 | 0 | null | You are trying to get data on index page for that you need to change this
return redirect('/')->with(compact('certificates'));
to
return view('index')->with(compact('certificates'));
I hope this will help you. Thanks
| null | CC BY-SA 4.0 | null | 2023-03-02T13:12:49.850 | 2023-03-02T13:12:49.850 | null | null | 19,291,649 | null |
75,615,893 | 2 | null | 74,797,527 | 0 | null | The following solution worked for me while using undetected_chromedriver.v2,
with the following package versions:
-
Python Selenium version:
-
```
import undetected_chromedriver.v2 as uc
options = uc.ChromeOptions()
options.add_argument("--disable-popup-blocking")
self.driver = uc.Chrome(options=options)
```... | null | CC BY-SA 4.0 | null | 2023-03-02T13:12:36.850 | 2023-03-02T13:12:36.850 | null | null | 10,468,153 | null |
75,615,902 | 1 | null | null | 0 | 8 | I am new to the Flet framework. I have noticed that while running some small apps, I see the Flet logo in the middle of the screen being animated while stuff is being loaded in the background. I want to know whether the logo can be changed and whether I can add some custom animations of my own?
| How to change loading logo in Flet? | CC BY-SA 4.0 | null | 2023-03-02T13:13:03.997 | 2023-03-02T13:13:03.997 | null | null | 11,787,097 | [
"python-3.x",
"flet"
] |
75,615,899 | 1 | null | null | 0 | 39 | For the pthreads library, would it be better to use structs or bit fields to pass in arguments to a thread? I want to use less memory in my program when passing arguments to the function.
```
#include <pthread.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#define FLYABLE 0x1
#define FOODABLE 0x2
#defin... | Passing in multiple arguments to a pthread | CC BY-SA 4.0 | null | 2023-03-02T13:12:54.110 | 2023-03-02T13:32:26.363 | null | null | 19,468,712 | [
"c",
"pthreads"
] |
75,615,903 | 1 | null | null | -1 | 42 | We are running kubernetes cluster(on centos vm) with version 1.18 with 3 Master nodes and 5 Worker nodes.
We have deployed spring boot application(A,B) on it with multiple replicas and we have exposed applications as a NodePort service to access it.
Application A is calling REST API's of application B around 1 million ... | Kubernetes : Cannot assign requested address (Address not available) | CC BY-SA 4.0 | null | 2023-03-02T13:13:06.007 | 2023-03-04T18:13:44.897 | 2023-03-04T18:13:44.897 | 16,132,856 | 16,132,856 | [
"spring-boot",
"kubernetes"
] |
75,615,897 | 2 | null | 75,615,638 | 0 | null |
1. Combine the data, it reduces the number of geom_* calls you need (and therefore improves readability/maintainability).
2. We can use geom_ribbon for that.
Try this:
```
library(dplyr)
library(ggplot2)
bind_rows(
rename(PLIdata, upperbound = upperboundPLI, lowerbound = lowerboundPLI),
rename(PLTdata, upperbou... | null | CC BY-SA 4.0 | null | 2023-03-02T13:12:52.857 | 2023-03-02T13:12:52.857 | null | null | 3,358,272 | null |
75,615,898 | 2 | null | 75,590,089 | 1 | null | In simple terms, volatile provides the following 3 properties:
- - -
As Thomas Klager already explained, atomicity guarantees that an operation is atomic so isn't some interleaving of other operations like torn read or write. This is only a problem on 32 bits JVMs in combination with long/doubles.
Ordering guarantees ... | null | CC BY-SA 4.0 | null | 2023-03-02T13:12:53.013 | 2023-03-02T14:19:24.413 | 2023-03-02T14:19:24.413 | 2,245,707 | 2,245,707 | null |
75,615,908 | 2 | null | 8,308,695 | 0 | null | Here's how to do it with a custom toolbar in a fragment. It is similar to the method by [mbo](https://stackoverflow.com/a/50990935/1712184) but with the deprecated method replaced.
```
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
// Infla... | null | CC BY-SA 4.0 | null | 2023-03-02T13:13:16.647 | 2023-03-02T13:13:16.647 | null | null | 1,712,184 | null |
75,615,907 | 1 | null | null | 0 | 13 | I've noticed a weird issue when accessing my site ([https://blogtheworld.co](https://blogtheworld.co)): calls to the API are successful, but the value returned in the Access-Control-Allow-Origin header is wrong (it is always set to `http://localhost:3000`).
My backend is a Flask API using the [Flask-CORS](https://flask... | Access-Control-Allow-Origin wrong when using Flask-CORS with nginx reverse proxy | CC BY-SA 4.0 | null | 2023-03-02T13:13:16.483 | 2023-03-02T13:13:16.483 | null | null | 7,126,999 | [
"nginx",
"flask",
"cors",
"flask-cors"
] |
75,615,910 | 1 | null | null | 0 | 23 | I am working with some codes to be able to get data from json file and upload data to html table. Works perfectly with this code:
```
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.mi... | read json file from FTP | CC BY-SA 4.0 | null | 2023-03-02T13:13:36.270 | 2023-03-02T13:13:36.270 | null | null | 8,047,668 | [
"javascript",
"html",
"json",
"ajax",
"ftp"
] |
75,615,909 | 2 | null | 75,595,326 | 0 | null | Not sure if this is the reason, but the chosen format seems to cause problems after reloading for Pyvis.
Trying with another standard format: `node_link_data`, `node_link_graph` the problem disappeared and it is possible to recreate the graph identical to the original.
This is the Succes code:
```
from pyvis.network im... | null | CC BY-SA 4.0 | null | 2023-03-02T13:13:26.367 | 2023-03-02T13:13:26.367 | null | null | 19,508,856 | null |
75,615,912 | 2 | null | 71,251,366 | 0 | null | what worked for me:
- Delete Flutter and Dart folders (ie. the placed you extracted the zip
file.), as you do that do not delete the zip files.- Remove Flutter and Dart path from environment variables.- Extract the zip files again to your desired location.- Add the .../bin to environmental variables again.
To test:
-
... | null | CC BY-SA 4.0 | null | 2023-03-02T13:13:38.620 | 2023-03-02T13:13:38.620 | null | null | 13,612,368 | null |
75,615,906 | 1 | null | null | 0 | 27 | I've got a query which holds data about a 'group' where each row has a timestamp with timezone ~(so utc).
Each group belongs to a building which has the timezone for which that building belongs to. Data example is as follows:
| id | timestamp | value | building_id |
| -- | --------- | ----- | ----------- |
| 5 | 202... | Set time zone programatically in query in postgres | CC BY-SA 4.0 | null | 2023-03-02T13:13:14.367 | 2023-03-02T13:30:53.533 | null | null | 592,192 | [
"postgresql"
] |
75,615,913 | 1 | null | null | 0 | 14 | I'm looking for a good way to compare the run of a (pure) function with 2 sets of arguments in parallel.
for instance
```
fun test1(i: Int) : Int {
var res = i*2
res /= 3
return res+1
}
```
I want to debug:
```
test1(1)
test1(0)
```
and see the debugger line by line for both runs.
expected is:
```
line1: ... | kotlin: debugging a run of same function with 2 set of parameters command by command | CC BY-SA 4.0 | null | 2023-03-02T13:13:42.683 | 2023-03-02T13:13:42.683 | null | null | 3,234,641 | [
"kotlin",
"debugging",
"intellij-idea",
"parallel-processing",
"functional-programming"
] |
75,615,911 | 2 | null | 75,614,012 | 0 | null | Check the updated Pipeline. Seems your input is returning a HashMap, hence save the return map as is by removing the env prefix then extract the Input parameter from the HashMap like `approvalStatus["ApprovalStatus"]`
```
pipeline {
agent any
stages {
stage('Approval') {
steps {
... | null | CC BY-SA 4.0 | null | 2023-03-02T13:13:37.150 | 2023-03-03T12:48:12.660 | 2023-03-03T12:48:12.660 | 2,627,018 | 2,627,018 | null |
75,615,914 | 2 | null | 75,615,876 | -2 | null | ```
public function authenticate()
{
$this->ensureIsNotRateLimited();
if (!Auth::attempt($this->only('email', 'password'), $this->boolean('remember'))) {
RateLimiter::hit($this->throttleKey());
throw ValidationException::withMessages([
'email' => trans('auth.failed'),
]);
... | null | CC BY-SA 4.0 | null | 2023-03-02T13:13:52.830 | 2023-03-02T14:21:39.593 | 2023-03-02T14:21:39.593 | 3,887,392 | 17,649,315 | null |
75,615,917 | 2 | null | 65,793,225 | 0 | null | For me the issue was that my controller was annotated with a router template `[Route("api/[controller]")]` but my endpoints were not.
Adding endpoint annotations worked:
```
HttpGet("get")]
public string Get()
{
return "get";
}
```
| null | CC BY-SA 4.0 | null | 2023-03-02T13:14:04.793 | 2023-03-02T13:14:04.793 | null | null | 8,632,201 | null |
75,615,920 | 1 | null | null | 0 | 14 | I have a python script running in company-A. It users service priniciple SPN-A created in active directory company-A in python SDK .(client_id,client_secret,tenent_id and subscription_id).
Script is simply reading tags of VM,disks,vnets etc (using reader role assigned to SPN-A)
Now i want to use the same SPN-A to conn... | Authenticating Service Principle of Another company | CC BY-SA 4.0 | null | 2023-03-02T13:14:17.733 | 2023-03-02T14:40:55.050 | null | null | 17,066,618 | [
"azure",
"azure-active-directory",
"azure-service-principal"
] |
75,615,901 | 1 | null | null | 0 | 22 | I created a dropdown component.I don't use javascript in this component.
When user clicks on dropdown, dropdownmenu shows. I have to do delay to catch click event of the menu items(Counter and Fetch Data in image).
If I remove delay, then blur or focusout events run before click event, so menu will close and click(redi... | Blazor DropdDown menu item click event handling | CC BY-SA 4.0 | null | 2023-03-02T13:13:03.800 | 2023-03-02T19:24:53.590 | 2023-03-02T19:24:53.590 | 1,331,586 | 1,331,586 | [
"blazor",
".net-6.0",
"blazor-server-side"
] |
75,615,919 | 2 | null | 63,889,526 | 0 | null | In my case I found out this, whenever you update or upgrade your nodejs version in the server you need to run `pm2 startup` and save the process list `pm2 save`. otherwise if your process crashes it won't restart the processes. In my case I had to downgrade nodejs due to a package and server sent 502 after 5-6 hours. a... | null | CC BY-SA 4.0 | null | 2023-03-02T13:14:11.730 | 2023-03-02T13:14:11.730 | null | null | 17,791,353 | null |
75,615,924 | 2 | null | 75,615,836 | -1 | null | You can use the following code:
```
result = any([x in second_array for x in first_array])
```
| null | CC BY-SA 4.0 | null | 2023-03-02T13:14:22.593 | 2023-03-02T13:14:22.593 | null | null | 17,277,424 | null |
75,615,916 | 1 | null | null | 0 | 11 | I'm trying to use web3.eth in interactive command line with node.
I'm running my ganache local client on [http://127.0.0.1:8545](http://127.0.0.1:8545) (basic port).
I run `node` and after :
```
> const Web3 = require('web3');
> const URL = "http://127.0.0.1";
> const web3 = new Web3(URL);
> accounts = web3.eth.getAcco... | web3.eth.getAccounts() Uncaught Error: CONNECTION ERROR: Couldn't connect to node http://127.0.0.1:8545 | CC BY-SA 4.0 | null | 2023-03-02T13:14:03.063 | 2023-03-02T13:14:59.763 | 2023-03-02T13:14:59.763 | 21,319,086 | 21,319,086 | [
"node.js",
"ethereum",
"web3js",
"ganache"
] |
75,615,918 | 2 | null | 74,584,382 | 0 | null | I've come across this similarly working in QWIK.
How I've fixed the issue, which falls in hand with how the store/context management works in QWIK.
I imagine the code is like such:
```
export default component$(() => {
return (
<>
<button
onClick$={() => *signInWithEmailAndPassword*(auth, sta... | null | CC BY-SA 4.0 | null | 2023-03-02T13:14:05.803 | 2023-03-02T13:14:05.803 | null | null | 21,319,126 | null |
75,615,915 | 1 | null | null | 0 | 12 | I have a dataframe with the number of male and female per category. I made the following stacked bar plot : [](https://i.stack.imgur.com/OUA5P.png)
Except I cannot manage to add % value for each gender in each barplot's category.
Here's my dataset :
```
Gender <- c("F", "M", "M", "M", "M","F","M","M","F","M")
Cat <- c(... | % label in ggplat stacked bar plot | CC BY-SA 4.0 | null | 2023-03-02T13:13:58.470 | 2023-03-02T13:50:58.597 | 2023-03-02T13:50:58.597 | 18,057,148 | 18,057,148 | [
"r",
"ggplot2"
] |
75,615,922 | 1 | null | null | 0 | 38 | I don't know why, but in this case "attr" doesn't work. I've connected jQuery so that's not the problem.
I think the problem has to do with that we get the div not with $(""). Because if I use divs.attr(..) it works.
```
$(function(){
let divs = $("div");
for (let i = 0; i < divs.length; i++) {
const di... | Doesn't work the method .attr(). JS. What's the problem? | CC BY-SA 4.0 | null | 2023-03-02T13:14:19.647 | 2023-03-02T13:52:04.600 | 2023-03-02T13:52:04.600 | 2,181,514 | 21,140,222 | [
"javascript",
"jquery"
] |
75,615,923 | 1 | null | null | 0 | 28 | What are some real-world examples of using the Facade design pattern in a project, and how did it simplify the implementation or improve the overall structure and maintainability of the code?
```
+--------------+
| Person |
+--------------+
| id |
... | Design pattern Laravel | Relationsh Eloquent ORM | CC BY-SA 4.0 | null | 2023-03-02T13:14:21.927 | 2023-03-02T16:56:26.380 | 2023-03-02T16:56:26.380 | 4,339,402 | 15,789,108 | [
"php",
"laravel",
"eloquent"
] |
75,615,927 | 1 | null | null | 0 | 16 | I simple want to determine if the path goes left or right if the angle is steep enough.
I tried to apply the rotation or quaternion to face starting Vector3 in the right direction. But im probably using it wrong...
```
if (nextPoint) {
let tempObject = new THREE.Object3D()
tempObject.position.set(point.x, point.y... | ThreeJS: How to return the direction left/right for a object3D to other vector3 | CC BY-SA 4.0 | null | 2023-03-02T13:14:26.643 | 2023-03-02T13:14:26.643 | null | null | 1,395,587 | [
"javascript",
"three.js",
"quaternions"
] |
75,615,921 | 2 | null | 75,512,881 | 0 | null | - `DeVops`-

- `GitHub``AzureDevops`

- `Blazer`

- - `@Swimburger`[repository](https://github.com/Swimburger/AzureSwaBlazorWas... | null | CC BY-SA 4.0 | null | 2023-03-02T13:14:18.497 | 2023-03-02T13:14:18.497 | null | null | 20,498,283 | null |
75,615,929 | 1 | null | null | -1 | 24 | My website runs on the Nginx server. The page you see is edited by markdown and generated by the web template generation engine hexo,Console error:Failed to load resource: the server responded with a status of 404.
[my website](https://www.huangzihan.top/2023/03/02/%E3%80%8A%E5%8D%95%E7%89%87%E6%9C%BA%E5%8E%9F%E7%90%86... | Why can't the picture of my website be displayed? | CC BY-SA 4.0 | null | 2023-03-02T13:14:33.330 | 2023-03-02T13:35:47.940 | 2023-03-02T13:35:47.940 | 7,909,864 | 7,909,864 | [
"html",
"nginx",
"web",
"hexo"
] |
75,615,928 | 1 | null | null | 1 | 21 | My janusgraph setup has replication-factor of 1 which I want to change to 3.
I tried to change the replication-factor with Management API of janusgraph using
`mgmt.set("storage.cassandra.replication-factor", 3)`, now everytime I connect to my Janusgraph, when I print mgmt.get("storage.cassandra.replication-factor") it ... | Janusgraph replication-factor not propogated to cassandra | CC BY-SA 4.0 | null | 2023-03-02T13:14:30.220 | 2023-03-02T14:23:35.800 | null | null | 20,790,885 | [
"cassandra",
"gremlin",
"cassandra-3.0",
"cassandra-2.0",
"janusgraph"
] |
75,615,933 | 1 | null | null | -2 | 11 | {
"error": "invalid grant"
}
getting error can anyone tell me how to solve these
onclick of send button I want access token and refresh token
| { "error": "invalid grant" } Getting these error on postman can anyone tell how to solves these | CC BY-SA 4.0 | null | 2023-03-02T13:14:58.807 | 2023-03-02T13:14:58.807 | null | null | 21,319,170 | [
"postman"
] |
75,615,926 | 1 | 75,616,244 | null | -1 | 38 | I'm trying to do my first platformer at Unity. And have some problem with projectile. I found a tutorial, how create a projectile moving, but without trigger on Fire button. It is possible to change this script for firing on button? I tried to make it with if statement, but then projectile move only ones, it doesn't fl... | How to fire on Mouse Button? | CC BY-SA 4.0 | null | 2023-03-02T13:14:25.680 | 2023-03-02T13:41:52.613 | 2023-03-02T13:15:20.990 | 21,319,131 | 21,319,131 | [
"c#",
"unity3d",
"projectile"
] |
75,615,937 | 2 | null | 75,615,204 | 0 | null | From what I understand, `bkps` represent the index of the point that is just after the breakpoint. If you have a range index this means that the breakpoint is in between this point and the previous one.
Indeed, if we manually plot the breakpoint we need to subtract 0.5 to the x-value to align it to the graph:
```
n_sam... | null | CC BY-SA 4.0 | null | 2023-03-02T13:15:38.357 | 2023-03-02T13:15:38.357 | null | null | 16,343,464 | null |
75,615,936 | 2 | null | 3,231,459 | 0 | null | If you need to generate GUIDs in TypeScript, you can use the [guid-typescript](https://www.npmjs.com/package/guid-typescript) package, which provides a Guid class for this purpose.
To use it, you can install the package via npm:
`npm i guid-typescript --save`
Then, in your TypeScript code, you can import the Guid class... | null | CC BY-SA 4.0 | null | 2023-03-02T13:15:37.473 | 2023-03-02T13:15:37.473 | null | null | 15,902,780 | null |
75,615,925 | 1 | null | null | -2 | 19 | ```
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x... | Runtime Error: member access within null pointer of type 'TreeNode'. UndefinedBehaviorSanitizer: | CC BY-SA 4.0 | null | 2023-03-02T13:14:23.823 | 2023-03-02T13:14:23.823 | null | null | 15,899,526 | [
"c++",
"algorithm",
"tree"
] |
75,615,900 | 1 | null | null | 0 | 16 | I have a Spring Boot project which uses jClouds and has 2 classes as shown below:
```
@Configuration
public class S3Config {
@Value("${amazon.s3.access-key}")
private String accessKey;
@Value("${amazon.s3.secret-key}")
private String secretKey;
@Value("${amazon.s3.region}")
private String region;
@Val... | [Guice/ErrorInCustomProvider]: NoSuchMethodError: 'void ConstructorConstructor.<init>(Map)' at GsonModule.provideGson(GsonModule.java:99) | CC BY-SA 4.0 | null | 2023-03-02T13:13:02.017 | 2023-03-02T13:13:02.017 | null | null | 20,088,596 | [
"spring-boot",
"gson",
"guice",
"jclouds"
] |
75,615,939 | 1 | null | null | 0 | 22 | I have a FlatList in my code that re-renders each time I make a state change (setMatchIndex state).
I need it to not re-render, and I've tried memo, and useCallback, but can't figure out the problem. Please assist
Here's my code:
```
const Home = ()=>{
const [matchIndex, setMatchIndex] = useState(0);
return(
<F... | How to prevent a FlatList from re-rendering when state changes in react native | CC BY-SA 4.0 | null | 2023-03-02T13:15:57.537 | 2023-03-02T14:04:45.053 | null | null | 18,528,687 | [
"javascript",
"reactjs",
"react-native",
"react-hooks"
] |
75,615,940 | 2 | null | 60,032,051 | 0 | null | > It's too late to answer but you can try this.
```
import 'package:flutter/material.dart';
class TabBarIndicator extends Decoration {
final BoxPainter _painter;
TabBarIndicator({required Color color, required double radius})
: _painter = _TabBarIndicator(color, radius);
@override
BoxPainter createBoxPainter([Void... | null | CC BY-SA 4.0 | null | 2023-03-02T13:16:02.143 | 2023-03-02T13:16:02.143 | null | null | 15,381,370 | null |
75,615,932 | 1 | null | null | 0 | 41 | I've been looking around for a long time trying to figure this one out. Take the following example (note that classes and tables shown below are stripped down for simplicity):
```
public class UserAccount
{
public Guid Id { get; set; }
public string Username { get; set; }
public string Password { get; set;... | Map foreign key in EF Core | CC BY-SA 4.0 | null | 2023-03-02T13:14:51.550 | 2023-03-02T15:52:50.367 | 2023-03-02T13:44:44.763 | 13,302 | 12,066,837 | [
"c#",
"entity-framework-core"
] |
75,615,942 | 2 | null | 75,613,168 | 0 | null | Try to use an [HTTPS access token](https://confluence.atlassian.com/bitbucketserver/http-access-tokens-939515499.html) instead of your account password.
Most remote Git repository hosting services (GitHub, GitLab, Bitbucket) use tokens as password.
It is also best to use a [Git Credential helper](https://git-scm.com/do... | null | CC BY-SA 4.0 | null | 2023-03-02T13:16:05.957 | 2023-03-02T13:16:05.957 | null | null | 6,309 | null |
75,615,930 | 1 | null | null | 0 | 20 | We are trying to deploy a Java 8 Spring boot application using Spring data Jpa into an IBM WebSphere version 8.5.5.21 server. The application runs fine in Local, but we cannot get it running in WebSphere while deployment.
This is what I'm getting an error while deployment.
```
Error starting ApplicationContext. To disp... | Deployment in Websphere(IBM) for Spring Boot application | CC BY-SA 4.0 | null | 2023-03-02T13:14:34.757 | 2023-03-02T13:31:37.993 | null | null | 20,836,895 | [
"spring-boot",
"deployment",
"websphere",
"ibm-cloud",
"websphere-8"
] |
75,615,943 | 1 | null | null | 0 | 36 | I have an issue with Jenkins pipeline and Docker.
Pipeline is configured the following way:
- - - - - [https://www.testcontainers.org/supported_docker_environment/continuous_integration/dind_patterns/](https://www.testcontainers.org/supported_docker_environment/continuous_integration/dind_patterns/)
```
pipeline {
... | Run docker login for several registries in Jenkins agent docker section | CC BY-SA 4.0 | null | 2023-03-02T13:16:07.703 | 2023-03-03T12:58:26.697 | 2023-03-02T13:21:31.930 | 5,235,756 | 5,235,756 | [
"docker",
"jenkins"
] |
75,615,947 | 2 | null | 69,679,347 | 0 | null | For example instead of `outline: 2px solid gray` can be used `box-shadow: 0 0 0 2px gray`. Box-shadow + border-radius works OK in silly Safari. Fixing with ::after is too complicated with in about 10 additional CSS properties.
| null | CC BY-SA 4.0 | null | 2023-03-02T13:16:16.030 | 2023-03-02T13:16:16.030 | null | null | 3,826,175 | null |
75,615,944 | 2 | null | 75,613,589 | 2 | null | Method `getToken()` returns a `Flow<String>`, not a `String`, so you can not simply call `getToken()`. Instead, you should collect all the values from the flow, or get the first value.
```
import kotlinx.coroutines.flow.*
suspend fun main() {
println(getToken()) // --> Prints: "kotlinx.coroutines.flow.FlowKt__... | null | CC BY-SA 4.0 | null | 2023-03-02T13:16:12.460 | 2023-03-02T13:16:12.460 | null | null | 21,292,828 | null |
75,615,941 | 1 | null | null | 0 | 18 | I have two pandas dataframes:
The first one contains reviews with different words as below :
```
import pandas as pd
df = pd.DataFrame({
"review_num": [2,2,2,1,1,1,1,1,3,3],
"review": ["The second review","The second review","The second review",
"This is the first review","This is the first revie... | merging dataframes without losing the index values | CC BY-SA 4.0 | null | 2023-03-02T13:16:03.113 | 2023-03-02T19:09:53.173 | 2023-03-02T19:09:53.173 | 20,862,440 | 20,862,440 | [
"python",
"pandas",
"dataframe",
"updates"
] |
75,615,946 | 1 | null | null | 0 | 47 | i'm currently trying to learn python. I had some queries while i was attempting this question.
Write a program that asks the user to enter a password, and then checks if the password meets certain criteria (e.g. at least 8 characters, contains both uppercase and lowercase letters, etc.). If the password does not meet t... | any and not any function | CC BY-SA 4.0 | null | 2023-03-02T13:16:14.523 | 2023-03-02T13:34:20.923 | 2023-03-02T13:17:29.203 | 9,296,093 | 21,243,962 | [
"python",
"new-operator",
"any"
] |
75,615,948 | 2 | null | 75,615,824 | 1 | null | You'll need a type parameter on `C` so that it knows what type its dealing with, which for the assignments shown makes `C` fairly pointless (just use `A` or `B`). You also can't infer type arguments in simple assignments like those.
You can with functions, though, so if you're really writing a function and just simplif... | null | CC BY-SA 4.0 | null | 2023-03-02T13:16:19.840 | 2023-03-02T13:16:19.840 | null | null | 157,247 | null |
75,615,953 | 2 | null | 75,615,886 | 2 | null | We can use `group_modify` for this.
```
library(tidyverse)
data %>%
group_by(Group) %>%
group_modify(~bind_rows(.x, tibble(Gender = "Total", Y = sum(.x$Y), N = sum(.x$N))))
# A tibble: 6 × 4
# Groups: Group [2]
Group Gender Y N
<chr> <chr> <dbl> <dbl>
1 Group1 Male 7 45
2 Group1 Female... | null | CC BY-SA 4.0 | null | 2023-03-02T13:16:49.387 | 2023-03-02T13:16:49.387 | null | null | 16,647,496 | null |
75,615,949 | 1 | null | null | -1 | 30 | Ok i have it reading XML:
```
<?xml version="1.0" encoding="utf-8"?>
<PLAYER name="RadioBOSS" version="6.2.4.2">
<TRACK ARTIST="Ivy" TITLE="While We're In Love" ALBUM="Long Distance" YEAR="2001" GENRE="Lush; Indie Rock; Indie Pop;" COMMENT="http://mp3caprice.com" FILENAME="C:\Music & Video\Ivy - 2001 Long Dist... | I am now reading tags from XML how do i read from multiple arrays | CC BY-SA 4.0 | null | 2023-03-02T13:16:23.337 | 2023-03-04T11:26:32.087 | 2023-03-03T10:47:14.183 | -1 | 21,290,077 | [
"php",
"xml"
] |
75,615,951 | 1 | null | null | 0 | 7 | This one is a bit open ended, but I'd like to automatically add datadog spans to my request traces for a fastapi/python application. Currently this is being done manually one function at a time with `dd_trace.tracer()` decorators, but I was wondering if there was a way to automate this so all functions are counted as i... | Is it possible to create datadog spans for each python function in a project without manually instrumenting them? | CC BY-SA 4.0 | null | 2023-03-02T13:16:39.437 | 2023-03-02T13:16:39.437 | null | null | 9,020,273 | [
"python",
"python-3.x",
"fastapi",
"datadog"
] |
75,615,952 | 2 | null | 62,035,547 | 0 | null | all you have to do is to migrate after creating the models in models.py steps:
1. create the models in models.py
2. go to cmd and go to the path of your project ( the place where you run the server)
3)type the command :python manage.py migrate
4)click enter
4)then type : python manage.py makemigrations
5)in the pla... | null | CC BY-SA 4.0 | null | 2023-03-02T13:16:44.260 | 2023-03-02T13:16:44.260 | null | null | 21,319,237 | null |
75,615,950 | 1 | null | null | 0 | 12 | Follow is my unit test class. I am trying build it with gradle. But getting an error while tried to build.
```
@RunWith(MockitoJUnitRunner.class)
@SpringBootTest
class UtilTest {
@InjectMocks
private Util util;
@Mock
private DataSource dataSource;
@Test
void getStockIntroAttributeNameTest() t... | Project build failed with Java Unit test failed | CC BY-SA 4.0 | null | 2023-03-02T13:16:29.780 | 2023-03-02T13:16:29.780 | null | null | 10,949,360 | [
"spring-boot",
"junit",
"mockito"
] |
75,615,945 | 2 | null | 75,608,885 | 0 | null | > The `create_model` function from `pydantic` is used to define the `MainModel` schema based on the schema in `model.json`
That is the error.
I am not sure what made you think that this function takes a (`dict`-parsed) JSON schema as keyword arguments, but that is not how it works. To quote from the documentation of th... | null | CC BY-SA 4.0 | null | 2023-03-02T13:16:14.360 | 2023-03-02T13:16:14.360 | null | null | 19,770,795 | null |
75,615,954 | 2 | null | 10,294,027 | 0 | null | Try [this](https://docs.devexpress.com/AspNet/3747/components/grid-view/concepts/edit-data/validate-grid-data):
```
protected void grid_RowValidating(object sender, DevExpress.Web.Data.ASPxDataValidationEventArgs e) {
foreach (GridViewColumn row in grid.Columns) {
GridViewDataColumn dataRow = row as GridVie... | null | CC BY-SA 4.0 | null | 2023-03-02T13:16:56.990 | 2023-03-02T13:16:56.990 | null | null | 13,326,324 | null |