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,629,687 | 1 | null | null | 0 | 14 | I'm trying to call an azure function from my outlook task pane.
I get this error
> Access token validation failed: client id
bc59ab01-8403-45c6-xxxxx is not authorized to invoke this
http trigger.
The client Id is the Outlook Online Add-in App Service Principal
In my registered app the Principal Service Client ID is ad... | calling Azure function from Office add-ins app not working | CC BY-SA 4.0 | null | 2023-03-03T16:37:20.943 | 2023-03-03T16:37:20.943 | null | null | 8,107,464 | [
"azure",
"azure-functions",
"office-js",
"office-addins"
] |
75,629,698 | 1 | null | null | 1 | 28 | In .net core configuration you cap use config options, which maps a section in the config to an object. For Kestrel this seems to happen automatically. The bit I'm interested particularly is the 'SslProtocols' where you can state the protocols required in a `string[]` like this:
```
"Kestrel": {
"Endpoints": {
"H... | How can you set a string array to an enum via config? | CC BY-SA 4.0 | null | 2023-03-03T16:38:47.603 | 2023-03-03T16:38:47.603 | null | null | 2,381,942 | [
"c#",
"config",
".net-6.0",
"kestrel"
] |
75,629,701 | 1 | null | null | -1 | 25 | I compiled chromium's `base_unittests` benchmark using the clang binary shipped with the project and the compilation took only a few minutes. But when I use a custom clang binary, by setting `args.gn` as instructed [here](https://chromium.googlesource.com/chromium/src/+/main/docs/clang.md#Using-a-custom-clang-binary), ... | Chromium extreme compilation time difference when using a custom clang binary | CC BY-SA 4.0 | null | 2023-03-03T16:39:14.433 | 2023-03-03T20:30:21.180 | 2023-03-03T17:25:56.807 | 445,976 | 11,996,660 | [
"c++",
"compilation",
"clang",
"chromium"
] |
75,629,699 | 1 | null | null | 0 | 37 | i want to calculate a mssql `password_hash` with php
i suspect the problem is the hex format of the salt
i have tried all possible combinations of `mb_convert_encoding (§password,"UTF-16")`, `bin2hex` and `hex2bin` without success
can someone please give me a hint
my mssql server is a newer version
my test password is ... | compute mssql password_hash with php? | CC BY-SA 4.0 | null | 2023-03-03T16:38:54.797 | 2023-03-04T06:12:07.293 | 2023-03-04T06:12:07.293 | 18,187,933 | 18,187,933 | [
"php",
"sql-server",
"mariadb"
] |
75,629,704 | 1 | null | null | 0 | 13 | I have a strategy in tradingview that takes long and short entries with stops. I am having a problem where it repaints but seemingly only on candles that there is a stop loss and then another entry on the same candle. are there any general reason why this happens? not repainting in general but when it only happens on c... | Repainting on candles that have a stop and then opposite entry | CC BY-SA 4.0 | null | 2023-03-03T16:39:47.297 | 2023-03-03T16:39:47.297 | null | null | 21,320,001 | [
"automation",
"pine-script",
"trading",
"repaint"
] |
75,629,706 | 1 | 75,629,810 | null | 0 | 28 | I have a json file organised like the following one and I would like to delete all duplicated from 2 key pairs element
```
[{'name': 'anna', 'city': 'paris','code': '5'},
{'name': 'anna', 'city': 'paris','code': '2'},
{'name': 'henry', 'city': 'london','code': '1'},
{'name': 'henry', 'city': 'london','code': '3'},...... | Python: remove duplicate in json from 2 key value | CC BY-SA 4.0 | null | 2023-03-03T16:40:01.090 | 2023-03-03T17:17:53.617 | null | null | 14,755,342 | [
"python",
"json"
] |
75,629,665 | 1 | null | null | 0 | 17 | After I implemented email verification and installed laravel/ui, the issue arose.
and when l put the `middleware('auth')`
Instead of the `/auth/login` that I had previously implemented, it redirected me to `/login`.
All I want to do is switch my own auth routes from the laravel ui auth routes.
web.php
```
<?php
use Ap... | Conflict between the custom authController and the laravel ui loginController | CC BY-SA 4.0 | null | 2023-03-03T16:35:22.920 | 2023-03-03T16:51:46.873 | 2023-03-03T16:51:46.873 | 14,395,683 | 14,395,683 | [
"laravel"
] |
75,629,702 | 2 | null | 75,629,309 | 1 | null | I do not have MySQL, therefore, I am going to use SQL Fiddle.
```
-- 1 - Create table
CREATE TABLE IF NOT EXISTS colors
(
the_date DATE,
the_color VARCHAR(16)
) ENGINE=INNODB;
-- 2 - Add data
INSERT INTO colors VALUES ('2023-01-28', 'red');
INSERT INTO colors VALUES ('2023-01-29', 'blue');
INSERT INTO colors... | null | CC BY-SA 4.0 | null | 2023-03-03T16:39:35.547 | 2023-03-03T16:39:35.547 | null | null | 2,577,687 | null |
75,629,705 | 2 | null | 75,620,848 | 1 | null | Not exactly an answer but a good process to diagnose these failures is to:
1. Run the install
2. Wait for the error dialog indicating that the service failed to start
3. Do NOT dismiss the error dialog
4. Use cmd (net start <name>) or services.msc to start the service
5. The service should fail to start, so start diag... | null | CC BY-SA 4.0 | null | 2023-03-03T16:39:52.720 | 2023-03-03T16:39:52.720 | null | null | 23,852 | null |
75,629,707 | 1 | null | null | 0 | 4 | I'm trying to develop a script for the SSH daemon's authorized_keys (command) in user-land and finding that AuthorizedKeysCommand seems to only allow execution of something with root access - making it a bit tough to develop a script if I'm constantly copying and re-applying permissions to my script (and assuming I eve... | AuthorizedKeysCommand without root possible for testing/development? | CC BY-SA 4.0 | null | 2023-03-03T16:40:07.887 | 2023-03-03T16:40:07.887 | null | null | 5,528,070 | [
"ssh",
"openssh"
] |
75,629,708 | 2 | null | 73,547,502 | 0 | null | Streaming completions are not natively supported by the openai package. There is a workaround though, see [https://github.com/openai/openai-node/issues/18#issuecomment-1369996933](https://github.com/openai/openai-node/issues/18#issuecomment-1369996933). Copy-pasting the code below for convenience.
```
try {
const r... | null | CC BY-SA 4.0 | null | 2023-03-03T16:40:09.957 | 2023-03-03T16:40:09.957 | null | null | 6,876,574 | null |
75,629,709 | 1 | null | null | 1 | 15 | In Xcode 14.2 I frequently get autocomplete suggestions for unavailable methods. As an example, when I'm working on my current project with a minimum deployment target of iOS 14, I get the following suggestion:
[](https://i.stack.imgur.com/CI0lC.png)
In this menu, it's not clear that the minimum requirement of the sugg... | How do I prevent Xcode from suggesting unavailable methods? | CC BY-SA 4.0 | null | 2023-03-03T16:40:12.493 | 2023-03-03T16:40:12.493 | null | null | 1,821,701 | [
"xcode"
] |
75,629,710 | 1 | null | null | 0 | 19 | I'm deploying a web app using terraform, this has some app configuration settings. Some of the settings are static, others are key vault references. Once this is deployed I'm using source control to deploy and build a small application.
Once the app is running, the configuration is not there. If I wait 5 - 10 minutes i... | azure webapp app settings slow to appear in webapp | CC BY-SA 4.0 | null | 2023-03-03T16:40:22.000 | 2023-03-03T16:40:22.000 | null | null | 8,622,323 | [
"azure",
"terraform",
"azure-web-app-service",
"azure-rm"
] |
75,629,713 | 1 | 75,630,077 | null | 1 | 40 | Why does `*○0j1` outputs -1 but `*(○0j1)` doesn’t? (`¯1j1e¯16`)
What is the difference between them?
Expected `*(○0j1)` to output the same thing as `*○0j1`
| (APL) About the power and circle functions | CC BY-SA 4.0 | null | 2023-03-03T16:40:33.757 | 2023-03-04T19:00:38.963 | 2023-03-04T19:00:38.963 | 5,306,507 | 21,327,376 | [
"complex-numbers",
"pi",
"apl",
"dyalog",
"eulers-number"
] |
75,629,715 | 2 | null | 75,629,616 | 0 | null | `<? endforeach; ?>` replace to `<?php endforeach; ?>`
| null | CC BY-SA 4.0 | null | 2023-03-03T16:40:54.723 | 2023-03-03T16:40:54.723 | null | null | 7,461,847 | null |
75,629,714 | 2 | null | 73,824,406 | 0 | null | Removing below block form vite.config.js helped me
`define: { "global": {}, },`
However, I am finding a solution where we can dynamically use vite.config.js file or it's contents, as it's not working with above code block during local dev run
| null | CC BY-SA 4.0 | null | 2023-03-03T16:40:44.093 | 2023-03-03T16:41:13.830 | 2023-03-03T16:41:13.830 | 1,972,315 | 1,972,315 | null |
75,629,703 | 1 | null | null | 0 | 24 | ```
import json
import numpy as np
from PIL import Image
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPooling2D
with open('deepscores_train.json', 'r') as f:
train_data = json.load(f)
with open('deepscores_test.json', 'r') as f:
test_data = json.load(f)
t... | Line 21, in <module> image_id = annotation['image_id'] TypeError: string indices must be integers, not 'str' | CC BY-SA 4.0 | null | 2023-03-03T16:39:43.467 | 2023-03-03T16:39:43.467 | null | null | 21,327,361 | [
"python",
"deep-learning",
"omr"
] |
75,629,711 | 1 | null | null | 0 | 11 | I want to keep user's custom properties in keycloak. I made some example attribute 'birthday' in keycloak, mapped there in client and get it in spring application:
```
private HashMap <String, Object> getUserCloakAttributes() {
HashMap <String, Object> result = new HashMap<>();
Authentication authentication = S... | How to get user's attribute in spring boot with keycloak | CC BY-SA 4.0 | null | 2023-03-03T16:40:23.043 | 2023-03-03T17:01:49.457 | 2023-03-03T17:01:49.457 | 7,833,519 | 7,833,519 | [
"keycloak",
"spring-security-oauth2"
] |
75,629,716 | 1 | null | null | 0 | 27 | In the [Music Streaming Sessions Dataset (MSSD)](https://www.aicrowd.com/challenges/spotify-sequential-skip-prediction-challenge), a partial update and expansion of the [Million Song Dataset (MSD)](http://millionsongdataset.com/pages/getting-dataset/), we can get the music track id like t_aae12819-de17-4dd3-97b0-cad4dd... | How to convert the spotify track id in the Music Streaming Sessions Dataset to the common track id in Spotify API? | CC BY-SA 4.0 | null | 2023-03-03T16:41:04.300 | 2023-03-03T16:41:04.300 | null | null | 16,176,656 | [
"python",
"dataset",
"bigdata",
"spotify",
"recommendation-engine"
] |
75,629,719 | 1 | null | null | 0 | 3 | Class A have 3 method , class B have 2 method , classB inherited classA , how do you call method of class A by creating object of class B
| Class A have 3 method , class B have 2 method ,classB inherited class A , how do you call method of class A by creating object of classB? | CC BY-SA 4.0 | null | 2023-03-03T16:41:20.637 | 2023-03-03T16:41:20.637 | null | null | 21,327,377 | [
"inheritance"
] |
75,629,717 | 1 | null | null | 0 | 11 | As the title said, i'm trying to upload a vast generated in-memory file to SharePoint. To save memory, I try to use PipedStream to upload it but I have an exception with that cause:
```
com.microsoft.graph.core.ClientException: Error code: invalidRequest
Error message: The Content-Range header is missing or malformed.
... | Using PipedStream to upload file to SharePoint using Java Graph SDK causes Error "The Content-Range header is missing or malformed" | CC BY-SA 4.0 | null | 2023-03-03T16:41:13.690 | 2023-03-03T16:41:13.690 | null | null | 3,637,526 | [
"java",
"sharepoint",
"stream"
] |
75,629,721 | 2 | null | 75,629,587 | 1 | null |
```
a = 1
b = 0
c = -1
def format_title(a, b, c):
title = ''
if a == 1:
title += 'x^2'
else:
title += f'{a}x^2'
if b != 0:
if b > 0:
title += '+'
title += f'{b}x'
if c != 0:
if c > 0:
title += '+'
title += f'{c}'
return t... | null | CC BY-SA 4.0 | null | 2023-03-03T16:41:34.577 | 2023-03-03T16:41:34.577 | null | null | 20,959,773 | null |
75,629,722 | 2 | null | 75,629,675 | 2 | null | That case, you can use the indexOf() method to find the position of the first dot in the string, and then use the substring() method to extract the substring before the dot..
```
String s = "58.0.0.0";
int dotIndex = s.indexOf(".");
String result = s.substring(0, dotIndex);
System.out.println(result); //"58"
```
| null | CC BY-SA 4.0 | null | 2023-03-03T16:41:38.007 | 2023-03-03T16:41:38.007 | null | null | 7,838,942 | null |
75,629,718 | 2 | null | 75,619,360 | 1 | null | I can with 100% confidence say that in scrapy user does't have possibility to update spider settings during runtime (from `spider.__init` as attepmted on code from question)
By the moment when `spider.__init__` method called scrapy application already initialised the process using settings received earlier: from base s... | null | CC BY-SA 4.0 | null | 2023-03-03T16:41:14.380 | 2023-03-03T16:41:14.380 | null | null | 10,884,791 | null |
75,629,684 | 1 | null | null | 0 | 41 | I'll be direct.
User have wallets, on each wallet they can create a transaction, the transaction can be income or expense.
When a user is creating a transaction he also picks a date when that transaction is created, then I have a controller to display all user transactions. And this is the format to display it. Imagine... | For loop to return all data recorded by date | CC BY-SA 4.0 | null | 2023-03-03T16:37:01.650 | 2023-03-03T17:38:03.400 | 2023-03-03T17:38:03.400 | 21,327,269 | 21,327,269 | [
"java",
"spring",
"spring-boot",
"jpa",
"spring-data-jpa"
] |
75,629,720 | 1 | null | null | -1 | 14 | I have a table with two columns: and . takes three values: `Yes`, `No` and `Not Sure`. can take two values: `Treatment` and `Control`. I need to build a bar chart that compares treatment and control of the total counts of each, where each element of the x-axis is a possible Answer.
For example, If there are and , ... | Google Data Studio - Calculating percentages by group | CC BY-SA 4.0 | null | 2023-03-03T16:41:27.190 | 2023-03-04T05:54:34.383 | 2023-03-04T05:54:34.383 | 19,039,920 | 14,946,571 | [
"google-data-studio"
] |
75,629,725 | 2 | null | 72,225,579 | 0 | null | I've had the problem without running `npm run build` inside `functions` which stands for `tsc` in a `TypeScript` project. After that, an `import` (inside `nuxt.config.js` btw) has been updated which I could see in `functions/lib/index.js`, and pointed to the correct location. Thanks to it, the error was gone.
The full ... | null | CC BY-SA 4.0 | null | 2023-03-03T16:41:57.307 | 2023-03-03T16:41:57.307 | null | null | 11,127,383 | null |
75,629,730 | 2 | null | 75,584,560 | 0 | null | The body that you POST needs to be x-www-form-urlencoded, e.g. in the shape of param1=value1¶m2=value2. Instead of using the -d argument, you should be able to use the -F argument to get what you want:
```
curl --anyauth --user admin:admin -X POST -i -F xquery=@./test/my-script.xqy \
-H "Content-type: application... | null | CC BY-SA 4.0 | null | 2023-03-03T16:42:45.547 | 2023-03-03T16:42:45.547 | null | null | 918,496 | null |
75,629,712 | 1 | null | null | 0 | 9 | I originally made this same ternary scatter plot using Plotly for Python, and the annotations I added to that automatically change their positions relative to the figure size when the figure size is changed, such that it always looks relatively the same. However, now that I am recreating it with plotly.js, changing the... | Is there a way to dynamically change the location of plotly.js annotations on ternary plots when the figure size is changed? | CC BY-SA 4.0 | null | 2023-03-03T16:40:26.053 | 2023-03-03T16:40:26.053 | null | null | 11,837,740 | [
"javascript",
"html",
"plotly",
"plotly.js"
] |
75,629,726 | 1 | null | null | 0 | 24 | I have a simple SUM which adds up a specific cell from all 12 sheets (12 months) ranging from April 2023-March 2024
This works fine, but when I add a new line it only adds the SUM of 11 months, not 12. But some columns includes all 12??
My formula is:
```
=SUM('10th April 2023:10th March 2024'!E15)
```
When I add a ne... | Excel, SUM across all sheets not including last sheet when adding new row | CC BY-SA 4.0 | null | 2023-03-03T16:42:04.847 | 2023-03-03T16:54:16.380 | 2023-03-03T16:54:16.380 | 4,851,590 | 21,327,372 | [
"excel",
"excel-formula",
"sum"
] |
75,629,733 | 2 | null | 75,629,510 | 0 | null | the project in github should (!) provide a list of dependencies.
If not, the only solution is either to guess, which packages provides the missing stuff or googling the missing function names and puzzle the list of dep's yourself.
| null | CC BY-SA 4.0 | null | 2023-03-03T16:42:59.210 | 2023-03-03T16:42:59.210 | null | null | 20,174,801 | null |
75,629,696 | 1 | 75,630,470 | null | 1 | 25 | I want to know how inner classes mechanism works (JDK 17). I'm reading a book Java and I'm learning about inner classes.
For example I have this:
```
package com.example;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.time.Instant;
public ... | Java Inner Classes (reflection, javap -private) JDK 17 | CC BY-SA 4.0 | null | 2023-03-03T16:38:42.177 | 2023-03-03T18:21:41.953 | 2023-03-03T18:21:41.953 | 21,258,697 | 21,258,697 | [
"java",
"reflection",
"inner-classes"
] |
75,629,732 | 2 | null | 75,604,504 | 0 | null | The event you can use to stop the dialog from closing is `@update:model-value` which is called whenever the v-model value changes. By setting the v-model back to `true` in the callback, the dialog will not close.
I made a proof-of-concept in [stackblitz](https://stackblitz.com/edit/quasarframework-gyweh1?file=src%2FAp... | null | CC BY-SA 4.0 | null | 2023-03-03T16:42:52.197 | 2023-03-03T16:42:52.197 | null | null | 6,225,326 | null |
75,629,731 | 1 | null | null | 1 | 20 | I'm using fullcalendar library v4.3.1 inside a Salesforce LWC. All was working good in sandbox until I clicked inside an event and I get the following error:
```
aura_prod.js:999 Uncaught TypeError: Illegal invocation
throws at https://mybts--partial.sandbox.my.site.com/....../fullcalendar/packages/core/main.js:126:30 ... | Illegal invocation at elementClosest fullcalendar v4.3.1 | CC BY-SA 4.0 | null | 2023-03-03T16:42:50.967 | 2023-03-03T20:09:57.957 | 2023-03-03T20:09:57.957 | 5,947,043 | 21,196,522 | [
"javascript",
"fullcalendar",
"fullcalendar-4",
"lwc"
] |
75,629,734 | 1 | null | null | 0 | 16 | On Windows using jf.exe / arifactory . When I enter userid/password they fail to validate. If I enter the same credentials using curl it works.
The password has characters like: ?,%,/,!
Using jf.exe version 2.34.6
User / Password entered using "jf config add"
I have tried using powershell and command.com
Expecting ... | jfrog cli password is not validating. Credentials work with curl | CC BY-SA 4.0 | null | 2023-03-03T16:43:05.187 | 2023-03-03T16:43:05.187 | null | null | 21,327,395 | [
"jfrog-cli"
] |
75,629,728 | 2 | null | 75,621,961 | 0 | null | I don't know if I understand what you want, but let's make some organized code so everything is more clear and go step by step:
You say you have buttons and leds, let's then define the pins where they are connected. Let's use arrays so changing the number of leds and buttons is easy.
```
const int BUTTONS[4] = {2, 3, 4... | null | CC BY-SA 4.0 | null | 2023-03-03T16:42:30.283 | 2023-03-03T16:49:29.833 | 2023-03-03T16:49:29.833 | 20,396,240 | 20,396,240 | null |
75,629,723 | 1 | null | null | 0 | 9 | A systemctl service that runs on an ec2 instance during startup should load an environment file and execute a script.sh file but fails with multiple AVC denied errors related to the service and files. The script.sh, app.env file, systemctl service, and node/npm/git are all installed on the main drive /dev/nvme0n1p1. I ... | AWS Linux EC2 run systemctl service in mounted nvme instance store drive | CC BY-SA 4.0 | null | 2023-03-03T16:41:50.753 | 2023-03-03T16:51:58.220 | 2023-03-03T16:51:58.220 | 18,433,827 | 18,433,827 | [
"node.js",
"linux",
"git",
"amazon-ec2",
"amazon-efs"
] |
75,629,736 | 2 | null | 75,629,049 | 0 | null | #import pandas library
```
import pandas as pd
```
# First of load the dataset
```
df = pd.read_excel(r"C:\Users\JASIM\Documents\Coding\DataSet\data set in row form\Employee Sample Data.xlsx")
```
# And the make a copy of df
```
df2 = df.copy()
```
# Than the column you want to split in (df)
```
df=df.drop(... | null | CC BY-SA 4.0 | null | 2023-03-03T16:43:19.647 | 2023-03-03T16:43:19.647 | null | null | 21,324,023 | null |
75,629,739 | 2 | null | 75,629,628 | 3 | null | Use [PROC DATASETS](https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/p1juxu16zautpxn1dikxecc3kn7w.htm), COPY with the CONSTRAINT and INDEX specifications.
```
proc datasets lib=work nodetails nolist;
copy in=work out=want constraint=yes index=yes;
select datasetName;
run;quit;
```
| null | CC BY-SA 4.0 | null | 2023-03-03T16:43:23.347 | 2023-03-03T16:43:23.347 | null | null | 1,919,583 | null |
75,629,740 | 1 | null | null | -2 | 31 | I am using photoshop to automate the cropping of images. From my understanding, it can use scripts to do what I want. I need a JS script to do that and I have no experience. I need to automate the cropping of the SAME image into multiple formats, each saving its own file. Cropping will be the following sizes:
8x10
11x1... | Automate Photoshop Cropping with JS | CC BY-SA 4.0 | null | 2023-03-03T16:43:31.160 | 2023-03-03T19:51:55.437 | null | null | 21,046,235 | [
"javascript",
"photoshop"
] |
75,629,737 | 1 | null | null | 0 | 10 | I'm using two app registrations and implement the "expose an api" scenario. My is an angular application using msal-angular library. My is a .NET server that's using "Expose an API" feature and defines a scope. It also lists as a trusted client application.
is actually doing most of the heavy lifting in the system ... | The app is asking for consent twice in "app calls api" scenario | CC BY-SA 4.0 | null | 2023-03-03T16:43:19.600 | 2023-03-03T16:43:19.600 | null | null | 489,403 | [
"azure",
"azure-active-directory",
"msal",
"msal.js",
"msal-angular"
] |
75,629,735 | 1 | null | null | 0 | 52 | How to convert this streaming dataframe in pyspark,
```
+--------------------+------+----------------------------------------------+
| timestamp|offset|stringdecode(value, UTF-8) |
+--------------------+------+----------------------------------------------+
|2023-03-03 17:21:...| 10| "[{... | explode spark column containing list of dict in str format | CC BY-SA 4.0 | null | 2023-03-03T16:43:05.467 | 2023-03-04T04:47:36.877 | 2023-03-03T17:49:38.137 | 14,030,805 | 14,030,805 | [
"apache-spark",
"pyspark",
"spark-streaming"
] |
75,629,729 | 1 | 75,630,063 | null | 0 | 49 | I have to write a program that inputs pairs of points from the user and finds the closest neighbor to each point, using the distance formula.
From the instructions I've been given, I must edit only the `main()` function and add a nested loop to compare each point, but I'm not sure how to do this.
The instructor has als... | How to find the closest pair of points within a vector? | CC BY-SA 4.0 | null | 2023-03-03T16:42:36.873 | 2023-03-03T20:25:43.037 | 2023-03-03T20:25:43.037 | 65,863 | 21,327,298 | [
"c++",
"vector",
"point",
"std-pair"
] |
75,629,741 | 1 | null | null | 0 | 9 | ```
query MyQuery {
repository(name: "dbeaver", owner: "dbeaver") {
issues(first: 100, filterBy: {labels: "bug", createdBy: "2022-01-01..*"}) {
edges {
node {
createdAt
labels(first: 100) {
edges {
node {
name
}
... | Sorting issues by creation date in GraphQL from GitHub does not work | CC BY-SA 4.0 | null | 2023-03-03T16:43:52.633 | 2023-03-03T16:43:52.633 | null | null | 19,800,048 | [
"github",
"filter",
"graphql"
] |
75,629,738 | 1 | null | null | 0 | 10 | I'm trying to see if there is a good way to do the following:
I've got a component which has multiple `className` override props, e.g., `className`, `containerClassName`, `submitButtonClassName`, etc. What's the best way to wrap that component like `styled(MyComponent)` to allow me to pass in styles to these `className... | Easy way to pass multiple className override props with styled-components | CC BY-SA 4.0 | null | 2023-03-03T16:43:21.440 | 2023-03-03T16:43:21.440 | null | null | 614,622 | [
"javascript",
"reactjs",
"styled-components"
] |
75,629,744 | 1 | null | null | -1 | 10 | ```
useEffect(() => {
socket.current = io(process.env.REACT_APP_SOCKET_22_URL);
socket.current.emit("register-socket", user_id);
socket.current.on("msg-received", (msg) => {
run_if_mounted(set_re_msg, msg);
});
socket.current.on("client-replaced", () => {
console.log("socket client repla... | do need I need to exlicitly disconnect to socket server when component unmounts? | CC BY-SA 4.0 | null | 2023-03-03T16:44:01.707 | 2023-03-03T16:44:01.707 | null | null | 5,432,156 | [
"reactjs",
"react-hooks",
"websocket",
"socket.io"
] |
75,629,745 | 1 | 75,629,807 | null | -1 | 23 | I'm receiving this kind of string as date "2020-09-09T12:41:41 -04:00".
It seems like this string contains time offset.
I need to convert this to "3/15/2020, 1:23:09 PM " format.
How can I achieve this?
I tried to create new Date object with that string but it shows me Invalid Date.
| How to convert date string which contains time offset to another format? | CC BY-SA 4.0 | null | 2023-03-03T16:44:02.417 | 2023-03-04T09:19:30.663 | 2023-03-03T20:22:25.870 | 257,182 | 21,327,403 | [
"javascript",
"date",
"utc",
"datetimeoffset"
] |
75,629,747 | 2 | null | 75,629,482 | 0 | null | If you have a column of numbers, stored as - but you have a number to lookup, stored as a you have a couple of options.
1. write something that converts the column of text into numbers. There are plenty of ways to do that, and you will find some on this site with a quick search
2. change your lookup to text. The sim... | null | CC BY-SA 4.0 | null | 2023-03-03T16:44:13.610 | 2023-03-03T16:44:13.610 | null | null | 7,446,760 | null |
75,629,743 | 1 | null | null | 0 | 4 | I've migrated my project to WebPack 5 and I'm struggling with following issue:
anytime I try to enable Terser property mangling I'm getting an error
config portion:
```
// isInvokedInDevServer is true if compiles using dev server
optimization: {
minimize: true, // todo: fixme
minimizer: [
new TerserPlug... | Webpack: enabling terser property minification breaks dev server | CC BY-SA 4.0 | null | 2023-03-03T16:44:01.237 | 2023-03-03T16:44:01.237 | null | null | 2,112,051 | [
"webpack",
"webpack-dev-server",
"webpack-5"
] |
75,629,751 | 2 | null | 59,688,011 | 0 | null | This is happening where I cannot open crunchy roll so I would love some help
| null | CC BY-SA 4.0 | null | 2023-03-03T16:44:28.960 | 2023-03-03T16:44:28.960 | null | null | 21,327,444 | null |
75,629,749 | 2 | null | 71,858,838 | 0 | null | I don't believe replica.leader is an option for shards.preference. It's only replica.type and replica.location see: [https://solr.apache.org/guide/8_0/distributed-requests.html](https://solr.apache.org/guide/8_0/distributed-requests.html)
| null | CC BY-SA 4.0 | null | 2023-03-03T16:44:23.890 | 2023-03-03T16:44:23.890 | null | null | 21,327,448 | null |
75,629,727 | 1 | null | null | 0 | 21 | I have a structure where an Abstract Base Class, let's call it Animal Inherits from the interface IAnimal. It has two constructors one to create a new animal in memory and one to read one in from an XMLReader:
```
public interface IAnimal
{
uint NrOfLimbs {get; set;}
string PackName {get; set;}
//Enum of all curr... | What's the most performant and non-repetitive way to instantiate 20+ child classes when all classes have 2 of the same constructors | CC BY-SA 4.0 | null | 2023-03-03T16:42:08.763 | 2023-03-03T16:44:45.267 | 2023-03-03T16:44:45.267 | 21,326,893 | 21,326,893 | [
"c#",
".net",
"performance",
"inheritance",
"instantiation"
] |
75,629,752 | 2 | null | 75,428,169 | 0 | null | You have to specify the entire backend api url while using fetch .if u try to fetch data using `/api/user/login` it will append in your front end url like `https://your_frontend_url/api/user/login` which is not a valid backend api url
```
const API_URL = "" //your api url deployed in heroku goes here
const response = ... | null | CC BY-SA 4.0 | null | 2023-03-03T16:44:40.553 | 2023-03-03T16:44:40.553 | null | null | 16,038,633 | null |
75,629,742 | 1 | null | null | 0 | 8 | I'm running an sh script and as part of it is using yarn to pull Angular,js packages:
```
rm -f yarn.lock
rm -rf node_modules
rm -rf web/statecharts
rm -rf release
rm -f fusion-*.deb
rm -f checksumFileList
make -C web clean
make[1]: Entering directory '/home/vagrant/fusion-build/Micro-GC-Fusion/web'
rm -rf build/*
rm -... | Setting up an old application yarn got stuck | CC BY-SA 4.0 | null | 2023-03-03T16:44:00.147 | 2023-03-03T17:06:04.307 | 2023-03-03T17:06:04.307 | 5,428,766 | 5,428,766 | [
"angularjs",
"ubuntu",
"vagrant",
"yarnpkg",
"yarn-v2"
] |
75,629,750 | 2 | null | 75,628,629 | 1 | null | A simple couple of loops where you remember the fileid's that you have seen in the inner array. If you see a fileid twice, you unset that occurance of the array.
Note using `&$owners` in the outer loop so you can actually remove an occurance from within the foreach loop
```
$input = [ 'ABCD' => [
[... | null | CC BY-SA 4.0 | null | 2023-03-03T16:44:25.360 | 2023-03-03T17:02:20.853 | 2023-03-03T17:02:20.853 | 2,310,830 | 2,310,830 | null |
75,629,758 | 2 | null | 73,331,312 | 0 | null |
> I found the problem. After `const trContent=` I used the 1st key. But actually, I must use the 2nd key.

| null | CC BY-SA 4.0 | null | 2023-03-03T16:45:07.237 | 2023-03-03T16:45:07.237 | null | null | 2,756,409 | null |
75,629,753 | 1 | null | null | 0 | 20 | I am new to flutter, and I want to achieve stretching a portion of an image.
For example, stretching the edges of a mouth vertically to create a "thicker" lip effect or stretching it horizontally to make a bigger smile effect. Additionally, I would hope to keep this within the constraints of the (android is preferred)p... | Is there a way to stretch a portion of an image with flutter? | CC BY-SA 4.0 | null | 2023-03-03T16:44:49.123 | 2023-03-03T16:44:49.123 | null | null | 20,386,039 | [
"flutter",
"google-mlkit"
] |
75,629,748 | 1 | null | null | 0 | 7 | My application has many different API REST build with Jersey 2.34. All the url starts with "/api/" following by the service's name, for example: /api/foo, /api/bar, etc.
In my web.xml, the servlet is declared:
```
<servlet>
<servlet-name>jersey-serlvet</servlet-name>
<servlet-class>
org.glassfi... | CustomExceptionMapper only for a specific API Rest with Jersey | CC BY-SA 4.0 | null | 2023-03-03T16:44:23.813 | 2023-03-03T16:44:23.813 | null | null | 13,182,882 | [
"java",
"spring",
"api",
"rest",
"jersey"
] |
75,629,760 | 2 | null | 75,627,763 | 0 | null | ```
echo $test awk | \
sed -n '/-----START/,/-----END/{//!p}' | \
tr -d '\n' | sed s/$/'\n'/
```
gives `abcdEFGHijKLMNO/PqR` as output.
- The first awk command I guess is needed to actually create a multiline text?- Second line extracts the lines the two tags `-----START` and `-----END`.- Las... | null | CC BY-SA 4.0 | null | 2023-03-03T16:45:15.807 | 2023-03-03T16:45:15.807 | null | null | 17,017,616 | null |
75,629,755 | 1 | null | null | 0 | 12 | I need to prepare automation for checking some Azure Devops object details like: list of az devops projects, list of projects, details about pipelines etc. I have powershell code prepared, I have SPN created in Azure AD, I grant API permissions for SPN (Azure Devops full access - application permissions). I am using be... | Azure Devops Rest API - azure AD service principal | CC BY-SA 4.0 | null | 2023-03-03T16:44:59.530 | 2023-03-03T16:44:59.530 | null | null | 8,512,333 | [
"azure-devops",
"azure-devops-rest-api",
"azure-authentication",
"azure-rest-api"
] |
75,629,746 | 1 | null | null | 0 | 21 | [enter image description here](https://i.stack.imgur.com/Pwwk9.png)I am deploying the below in stages, all has worked so far up until the route table block. I am very new to terraform and literally trying to replicate something I deployed manually in the console.
The line above the final block shows where it has deploy... | Hi, I am trying to attach a route table to my custom vpc, but getting an error | CC BY-SA 4.0 | null | 2023-03-03T16:44:13.423 | 2023-03-03T16:53:34.793 | 2023-03-03T16:53:34.793 | 20,370,818 | 20,370,818 | [
"terraform",
"terraform-provider-aws"
] |
75,629,756 | 1 | null | null | -2 | 15 | Using .net/c#
I have two lists that need to be combined, one list has depths and the other list has lengths starting from the top. Both lists have many other parameters which i also need to combine into this new list. The lengths and depths do not match up.
The list needs to be ordered from top to bottom.
List 1:
| De... | .net Combining lists without a common ID | CC BY-SA 4.0 | null | 2023-03-03T16:45:01.693 | 2023-03-03T16:46:22.403 | 2023-03-03T16:46:22.403 | 9,459,719 | 9,459,719 | [
"c#",
".net"
] |
75,629,765 | 2 | null | 75,629,764 | 1 | null | This happens when the template that is being responded with doesn't correctly have a format e.g. `.html`
to fix: rename `index.erb` to `index.html.erb`
| null | CC BY-SA 4.0 | null | 2023-03-03T16:46:07.780 | 2023-03-03T16:46:07.780 | null | null | 3,163,663 | null |
75,629,754 | 1 | null | null | 0 | 14 | I have a hook array that can add items when clicking and selecting which one you want from a select list, and also remove on a button click but when I remove an item and try to add it right after, it is not added to the list but if I add another item and try to add again it works normally.
div that adds the item on the... | React fails to add the same item to the list after removing it | CC BY-SA 4.0 | null | 2023-03-03T16:44:50.883 | 2023-03-03T16:44:50.883 | null | null | 21,086,699 | [
"html",
"reactjs",
"arrays"
] |
75,629,763 | 1 | null | null | 4 | 28 | I'm trying to work with configuration files which have url fields and I would like to marshal and unmarshal this type.
The documentation point that I can do a custom [marshal function](https://pkg.go.dev/gopkg.in/yaml.v3?utm_source=godoc#Marshaler).
In this golang playground you can see that the custom unmarshal functi... | golang yaml marshal url | CC BY-SA 4.0 | null | 2023-03-03T16:46:01.610 | 2023-03-04T20:35:35.447 | 2023-03-03T17:16:44.987 | 965,900 | 14,054,628 | [
"go",
"yaml"
] |
75,629,771 | 2 | null | 24,223,394 | 0 | null | You can type in `.exit` to exit the node.js REPL
| null | CC BY-SA 4.0 | null | 2023-03-03T16:46:41.463 | 2023-03-03T16:46:41.463 | null | null | 14,425,893 | null |
75,629,759 | 2 | null | 75,628,336 | 2 | null |
# Enum
> I gonna use a lot of constants in my code and that w'd probably produce a more elegant code that easier to debug and read.
For constants known at compile time, an [enum](https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/lang/Enum.html) is often the best approach. The enum facility in Java is... | null | CC BY-SA 4.0 | null | 2023-03-03T16:45:07.370 | 2023-03-04T20:40:33.680 | 2023-03-04T20:40:33.680 | 642,706 | 642,706 | null |
75,629,767 | 1 | null | null | 0 | 9 | I import three SVG's as:
```
import {ReactComponent as Logo1} from '../../assets/logo_1.svg';
import {ReactComponent as Logo2} from '../../assets/logo_2.svg';
import {ReactComponent as Logo3} from '../../assets/logo_3.svg';
```
The svgs are then used as:
```
<Stack direction="row" justifyContent="space-between" alignI... | React SVG import - wrong SVG is displayed | CC BY-SA 4.0 | null | 2023-03-03T16:46:32.400 | 2023-03-03T16:46:32.400 | null | null | 2,710,256 | [
"reactjs",
"svg",
"material-ui"
] |
75,629,773 | 2 | null | 75,629,292 | 0 | null | Try the following formula:
```
=IF(AND(A2=B2,C2="Adjacent",COUNTIFS(A:A,A2,B:B,B2,C:C,"Residing")>0),"Remove",IF(AND(A2=B2,C2="Residing"),"Keep",""))
```
Sample result:
[](https://i.stack.imgur.com/FddjT.png)
| null | CC BY-SA 4.0 | null | 2023-03-03T16:46:52.787 | 2023-03-03T16:46:52.787 | null | null | 8,260,484 | null |
75,629,774 | 1 | null | null | 0 | 12 | I want the radio button component inside every card to be completely independent. The issue i am facing is that I want to select one radio btn from the card per card. But When I select another one inside the same card it gets selected along with the previous one.
I have used name attribute and passed dynamic names in i... | How to use name attribute inside a dynamically rendered radio button component inside a map function | CC BY-SA 4.0 | null | 2023-03-03T16:46:52.733 | 2023-03-03T16:46:52.733 | null | null | 21,309,128 | [
"javascript",
"reactjs",
"jradiobutton"
] |
75,629,764 | 1 | null | null | 0 | 16 | originally based on:
[https://github.com/heartcombo/devise/issues/5564](https://github.com/heartcombo/devise/issues/5564)
My Turbo Rails 7 app appears to respond correctly but appends content to outside of the body, leaving the rest of the body in place:
Start the server with ./bin/dev
Go to [http://127.0.0.1:3000/user... | Trubo Rails appends content to outside of the body | CC BY-SA 4.0 | null | 2023-03-03T16:46:07.780 | 2023-03-03T16:46:07.780 | null | null | 3,163,663 | [
"ruby-on-rails",
"devise",
"turbo"
] |
75,629,766 | 1 | null | null | 0 | 33 | I'm trying to reverse requests that are made to an android game to learn more about how it works.
I was able to find endpoints requests that are made with frida and mitmproxy but now I'm stuck because the body of requests looks like encoded and I don't know what to do next.
Example of request I got with mitmproxy :
Req... | Android game reverse http request body | CC BY-SA 4.0 | null | 2023-03-03T16:46:21.303 | 2023-03-04T16:35:20.573 | 2023-03-04T16:35:20.573 | 20,395,940 | 20,395,940 | [
"android",
"http",
"protocol-buffers",
"reverse-engineering"
] |
75,629,770 | 1 | null | null | 0 | 41 | This is a very basic example of Spring Security filter chain but somehow it's not working, hitting `/public` still goes to login page.
I want to bypass the security on /public endpoint. Details below the code sections
```
@Configuration
public class SecurityConfig {
@Bean
public SecurityFilterChain mySecurit... | permitAll() still requiring login | CC BY-SA 4.0 | null | 2023-03-03T16:46:39.540 | 2023-03-03T21:17:06.693 | 2023-03-03T21:17:06.693 | 21,327,411 | 21,327,411 | [
"java",
"spring-security"
] |
75,629,762 | 1 | null | null | 0 | 12 | I am trying to query a bunch of records from my database in a laravel api call and then concatenate parsed model properties to a string. That string will be used in a csv file.
However after refactoring to use multiple methods for more readability, I am not getting the following error:
```
Symfony\Component\ErrorHandle... | Symfony\Component\ErrorHandler\Error\FatalError Allowed memory size of 536870912 bytes exhausted (tried to allocate 282828416 bytes) | CC BY-SA 4.0 | null | 2023-03-03T16:45:50.770 | 2023-03-05T04:19:15.227 | 2023-03-03T20:41:18.540 | 20,112,316 | 20,112,316 | [
"php",
"laravel",
"memory"
] |
75,629,776 | 2 | null | 75,626,208 | 0 | null | In the example lpex1.py you can see
```
def populatebynonzero(prob):
prob.objective.set_sense(prob.objective.sense.maximize)
prob.linear_constraints.add(rhs=my_rhs, senses=my_sense,
names=my_rownames)
prob.variables.add(obj=my_obj, ub=my_ub, names=my_colnames)
rows = [0... | null | CC BY-SA 4.0 | null | 2023-03-03T16:46:54.183 | 2023-03-03T16:46:54.183 | null | null | 3,725,596 | null |
75,629,780 | 2 | null | 69,839,049 | 0 | null | Adding to [@Yannick](https://stackoverflow.com/users/6511361/yannick-einsweiler)'s answer. Since every operator usually run in its own environement, you have to set that environment accordingly. In the OP's case, which is to run `dbt`, that will depend on how `dbt` is being executed, i.e., a `DockerOperator`, a `Kubern... | null | CC BY-SA 4.0 | null | 2023-03-03T16:47:13.223 | 2023-03-03T16:47:13.223 | null | null | 7,046,260 | null |
75,629,779 | 2 | null | 75,570,957 | 0 | null | I can highly recommend using taskbot to do server-side batching, although there might also be compelling reasons to not do the orchestration server-side at all, but use external tools like Corb2 or NiFi or even MLCP to go over large volumes in a controllable manner:
- [https://github.com/mblakele/taskbot](https://githu... | null | CC BY-SA 4.0 | null | 2023-03-03T16:47:07.757 | 2023-03-03T16:47:07.757 | null | null | 918,496 | null |
75,629,784 | 2 | null | 68,672,972 | 0 | null | Facing this right now. At the moment, what I found is that `wire:ignore` keeps the state of the `.dataTable()` but, then if you need it to show some updated data after performing some change on a value/object/model/row of the table, wont work until you refresh the page (which is exactly the opposite point of using liv... | null | CC BY-SA 4.0 | null | 2023-03-03T16:47:34.490 | 2023-03-03T16:47:34.490 | null | null | 9,230,482 | null |
75,629,781 | 2 | null | 75,596,346 | 0 | null | When you make your options background `transparent` they become white because they are rendered within the `menu` component, which has a white background.
If you want the options to have the same color as where your `Select...` placeholder is you can either:
```
option: (styles: any, {isSelected}: any) => ({
...st... | null | CC BY-SA 4.0 | null | 2023-03-03T16:47:16.870 | 2023-03-03T16:47:16.870 | null | null | 14,843,551 | null |
75,629,782 | 1 | null | null | 0 | 12 | First ever question so sorry if I don't get the formatting correct.
Hi everyone, I am having some trouble overcoming this error. I am trying to conditionally jitter points and error bars in ggplot2. The MeVtrue variable is a column with only true and false values in a larger dataset
`MeVtrue : logi [1:576] FALSE FALSE... | Conditional jittering / if else statements in ggplot2 throwing errors | CC BY-SA 4.0 | null | 2023-03-03T16:47:18.327 | 2023-03-03T16:49:27.993 | 2023-03-03T16:49:27.993 | 19,563,821 | 19,563,821 | [
"r",
"if-statement",
"ggplot2",
"conditional-statements"
] |
75,629,775 | 2 | null | 75,623,555 | 0 | null | ```
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
class ProductListView extends StatelessWidget {
final ProductController productController = Get.put(ProductController());
ProductListView({super.key});
@override
Widget build(BuildContext context) {
return Scaffol... | null | CC BY-SA 4.0 | null | 2023-03-03T16:46:53.160 | 2023-03-03T16:46:53.160 | null | null | 5,658,510 | null |
75,629,787 | 1 | null | null | 2 | 42 | For example, if A is a double matrix, B is int matrix.
A * B raises compiler error and it hast to be A.cast() * B or A * B.cast().
Why does eigen require this?
It could have followed double * int = double convention of C++.
Is there a performance optimization for operation of the same scalar type?
Thank you very much!
| Why does C++ Eigen require casting for matrix operations between different scalar type? | CC BY-SA 4.0 | null | 2023-03-03T16:47:53.627 | 2023-03-03T19:52:54.543 | null | null | 12,997,419 | [
"c++",
"eigen",
"eigen3"
] |
75,629,788 | 2 | null | 75,629,540 | 0 | null | Thinking use some Regex here. Something like but I don't know how regex works in oracle?
```
SELECT *
FROM table_name
WHERE CLIENT LIKE 'M%' OR
REGEX_LIKE (CLIENT , '^[a-zA-Z]+\s.[i]+[a-zA-Z]*$')
```
Updated the regex!
| null | CC BY-SA 4.0 | null | 2023-03-03T16:48:03.233 | 2023-03-03T17:11:11.307 | 2023-03-03T17:11:11.307 | 10,065,878 | 10,065,878 | null |
75,629,791 | 1 | null | null | 0 | 10 | I am trying to use data.tree in R to visualize an equipment hierarchy. However, when I am running the as.node function I am getting an error.
I have run pathstring and then when attempting to run the as.node function I get the following error:
Error in `[[<-.data.frame`(`*tmp*`, pathName, value = character(0)) :
replac... | How to properly use the node function | CC BY-SA 4.0 | null | 2023-03-03T16:48:33.160 | 2023-03-03T17:05:59.577 | 2023-03-03T17:05:59.577 | 16,474,354 | 16,474,354 | [
"hierarchy",
"treemap"
] |
75,629,789 | 1 | null | null | 0 | 20 | How to make error bars stay inside base R plot?
```
Code:
par(mar=c(4, 5, 6, 4), xpd=TRUE)
cort_fig2 <- plot(x = c(1:8), y = c(cort_plot2$b1, cort_plot2$b2, cort_plot2$b3, cort_plot2$a3), xaxt = "n", col = c("blue", "red"), pch = 19,
xlab = "", ylab = "Cortisol release rate (log) (pg/g/h)", xlim = c(0... | ylim does not fix error bars in base r plot | CC BY-SA 4.0 | null | 2023-03-03T16:48:09.837 | 2023-03-03T16:48:09.837 | null | null | 16,715,342 | [
"r",
"plot",
"errorbar"
] |
75,629,793 | 2 | null | 10,469,256 | 0 | null | Set "height:auto" for the input checkbox
```
.my-checkbox{
height:auto;
}
```
| null | CC BY-SA 4.0 | null | 2023-03-03T16:48:44.363 | 2023-03-03T16:48:44.363 | null | null | 17,139,013 | null |
75,629,795 | 2 | null | 75,629,588 | 1 | null | You need to include the white and black user IDs in the join conditions:
```
LEFT JOIN ratingverloop rv1
ON games.gameID = rv1.gameID AND games.whitePlayer = rv1.userID
LEFT JOIN ratingverloop rv2
ON games.gameID = rv2.gameID AND games.blackPlayer = rv2.userID
```
| null | CC BY-SA 4.0 | null | 2023-03-03T16:49:14.447 | 2023-03-03T16:49:14.447 | null | null | 1,491,895 | null |
75,629,792 | 1 | null | null | -1 | 14 | I'm building an array of shap values with a dataset of 1565 rows, but the array produced has 612 rows. They are supposed to have the same number of lines, because an error occurs stating that a certain index does not exist in the array. I'm using the TreeExplainer with a random forest model
IndexError: index 612 is o... | Different row sizes of the array of shap values and the dataset that generated the array | CC BY-SA 4.0 | null | 2023-03-03T16:48:35.237 | 2023-03-04T11:38:00.893 | 2023-03-04T11:38:00.893 | 10,548,567 | 10,548,567 | [
"shap"
] |
75,629,794 | 2 | null | 75,108,327 | 0 | null | This solution worked for me. The only difference with your code is that I added 'search' in the class list.
```
<div id="your_elmnt_id" class="ui fluid search selection dropdown">
<input type="hidden" name="your_elmnt_id">
<i class="dropdown icon"></i>
<div class="default text"> comune </div>
<div class="menu">
... | null | CC BY-SA 4.0 | null | 2023-03-03T16:49:09.143 | 2023-03-03T16:49:09.143 | null | null | 21,327,477 | null |
75,629,797 | 2 | null | 75,617,417 | 0 | null | The SDK already queries in a loop, it increases the delay between each query (2s, 4s, 8s...) until it times out (~ 2 minutes).
In the event of a timeout, you'll get a TRANSACTION_EXPIRED error.
| null | CC BY-SA 4.0 | null | 2023-03-03T16:49:25.750 | 2023-03-03T16:49:25.750 | null | null | 20,091,892 | null |
75,629,790 | 2 | null | 75,597,205 | 0 | null | Yes, you can use Spring's PropertyPlaceholderConfigurer to achieve this. The PropertyPlaceholderConfigurer can be used to replace placeholders in your Spring configuration files with actual values...
```
<beans>
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigu... | null | CC BY-SA 4.0 | null | 2023-03-03T16:48:18.477 | 2023-03-03T16:48:18.477 | null | null | 14,992,840 | null |
75,629,796 | 2 | null | 75,629,418 | 0 | null | Try
```
match = re.findall(r'(?:\A|\s)(=|<=|>=)(\d+\.\d+)(\%|mg/dl|cm2)(?:\Z|\s)',i)
```
matches `xx.x`
```
match = re.findall(r'(?:\A|\s)(=|<=|>=)(\d+(?:\.\d+)?)(\%|mg/dl|cm2)(?:\Z|\s)',i)
```
matches `xx.x` and `xx`, f.e. `i = "something >=40.55% or =30cm2 etc."` ==> result: `[('>=', '40.55', '%'), ('=', '30', 'cm2... | null | CC BY-SA 4.0 | null | 2023-03-03T16:49:20.303 | 2023-03-03T16:49:20.303 | null | null | 9,996,503 | null |
75,629,798 | 2 | null | 75,619,711 | 0 | null | I brute force SQL query starting with Himanshu's input and leap frogging around in the internet.
My SQL table:
[SQL table header and a record](https://i.stack.imgur.com/nyj3D.jpg)
My SQL query:
SELECT * FROM
(
SELECT [CLASS] AS USERID, [KEYNAME], [KEY]
FROM [DBO].[CORREL]
) SRC
PIVOT (
MAX([KEY])
FOR [KEYNAME]
IN (
[LA... | null | CC BY-SA 4.0 | null | 2023-03-03T16:49:26.290 | 2023-03-03T16:49:26.290 | null | null | 14,839,761 | null |
75,629,783 | 1 | null | null | 0 | 19 | In the example provided below, based on conditions that will filter out rows on two columns, I want to filter them out again to get the CacheUID (third column)
The code below will allow you to recreate the following resultset:
| CacheUID | FilterCriteriaName | CriteriaValue |
| -------- | ------------------ | -------... | Finding value from a third column based on specific row criteria of 2 other columns | CC BY-SA 4.0 | null | 2023-03-03T16:47:22.180 | 2023-03-03T17:06:39.240 | 2023-03-03T16:53:43.943 | 21,327,340 | 21,327,340 | [
"sql"
] |
75,629,786 | 2 | null | 68,857,467 | 0 | null | if you want to create someething that utilizes the headtracking from AirPods and other IMU enabled apple products but without all the discoloration from their 5.1 binaural stage or the limitations of dolby atmos you can explore that idea here: [https://github.com/Mach1Studios/Pod-Mach1SpatialAPI/tree/master/Examples/sp... | null | CC BY-SA 4.0 | null | 2023-03-03T16:47:52.593 | 2023-03-03T16:47:52.593 | null | null | 17,575,370 | null |
75,629,800 | 1 | null | null | 0 | 6 | I am using the useSupabaseClient() function to get the client based on docs and when I do this I can login and pull data from tables without any issues from rls. However when I use the sign out function and then sign into another account from my auth page I can no longer access any table data because the auth.uid() fun... | @nuxtjs/supabase error with client when signing out of users in the same session | CC BY-SA 4.0 | null | 2023-03-03T16:49:40.310 | 2023-03-03T16:49:40.310 | null | null | 19,337,375 | [
"javascript",
"typescript",
"nuxt.js",
"supabase"
] |
75,629,805 | 2 | null | 75,629,132 | 0 | null | Using `trimws` from `base R`
```
trimws("11:22334455.CEL", whitespace = ".*:|\\..*")
[1] "22334455"
```
| null | CC BY-SA 4.0 | null | 2023-03-03T16:50:00.780 | 2023-03-03T16:50:00.780 | null | null | 3,732,271 | null |
75,629,804 | 1 | null | null | -4 | 47 | So my question is simple: how do you create a window in C++ for Mac? I've seen many tutorials doing this for Windows, but none for a Mac. I am very new to C++ and don't know what many things mean. I hope this comment makes sense and that someone out there knows how to do it. The `#include <windows.h>` is only for Windo... | How do you create a window in c++ for mac? | CC BY-SA 4.0 | null | 2023-03-03T16:49:55.647 | 2023-03-03T16:49:55.647 | null | null | 20,703,883 | [
"c++",
"macos",
"window"
] |
75,629,801 | 1 | null | null | 0 | 33 | I have a mini cart, the counter also shows the number of products added to the shopping cart :
[](https://i.stack.imgur.com/a1r5V.png)
When the number of products added to the shopping cart is, for example, 1000, The counter tilts to the right :
[](https://i.stack.imgur.com/qiJir.png)
I want the counter to be fixed fro... | Fixing the position of the child in relation to the mother | CC BY-SA 4.0 | null | 2023-03-03T16:49:45.663 | 2023-03-03T18:11:11.840 | 2023-03-03T16:54:25.110 | 5,641,669 | 21,197,316 | [
"html",
"css"
] |
75,629,808 | 1 | 75,629,901 | null | 1 | 13 | I am running this code to convert the sample_time variables to datetime. However, I am receiving this error: TypeError: 'decimal.Decimal' object cannot be interpreted as an integer.
How can I rectify this without changing my python version to an older non deprecated version?
```
df['sample_time'] = df['sample_time'].ap... | TypeError: 'decimal.Decimal' object cannot be interpreted as an integer | CC BY-SA 4.0 | null | 2023-03-03T16:50:14.050 | 2023-03-03T16:59:07.770 | null | null | 14,679,204 | [
"python",
"dataframe",
"datetime",
"deprecated"
] |