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,627,708 | 2 | null | 73,115,015 | 0 | null | I'm not sure if the question is still actual, but you can do it in more simple way.
```
class EnumJsonSerializerHandler implements SubscribingHandlerInterface
{
public static function getSubscribingMethods(): array
{
return [
[
'direction' => GraphNavigatorInterface::DIRECTIO... | null | CC BY-SA 4.0 | null | 2023-03-03T13:30:33.177 | 2023-03-03T13:30:33.177 | null | null | 21,326,158 | null |
75,627,713 | 2 | null | 75,619,484 | 0 | null | Kubernetes components and Kubernetes mechanisms are two different concepts. Kubernetes components are those which you need to have for keeping your cluster running while mechanisms are used for enhancing or for controlling the functioning of your cluster. Kubernetes controllers will have control over these mechanisms a... | null | CC BY-SA 4.0 | null | 2023-03-03T13:30:58.300 | 2023-03-03T13:30:58.300 | null | null | 15,745,120 | null |
75,627,711 | 2 | null | 75,596,532 | 0 | null | I'm writing this answer as a community wiki, since the issue was resolved from the comments section, in order to provide a proper response to the question.
As mentioned by [Cooper](https://stackoverflow.com/users/7215091/cooper) the problem is that the script is bounded to a Google Form, therefore the Form submit event... | null | CC BY-SA 4.0 | null | 2023-03-03T13:30:54.713 | 2023-03-03T13:30:54.713 | null | null | 17,926,591 | null |
75,627,718 | 1 | null | null | 0 | 13 | Service Worker in Angular send error in console about it not registered. I have a [stackblitz](https://stackblitz.com/edit/ngindia-angular-service-worker-l89yrk?file=src/app/app.module.ts) code. In console logged errors. I have no ideas how to fix it.
... | Failed to check for updates: Error: Service workers are disabled or not supported by this browser | CC BY-SA 4.0 | null | 2023-03-03T13:31:06.460 | 2023-03-03T13:31:06.460 | null | null | 10,800,208 | [
"angular",
"progressive-web-apps",
"service-worker",
"angular-service-worker"
] |
75,627,717 | 1 | null | null | 0 | 11 | I use the SPSS macro PROCESS 4.2 from Hayes. Since updating to SPSS version 28 the output of the macro is not tab aligned anymore. See screenshot:
[](https://i.stack.imgur.com/6JjaM.png)
Would appriciate any help on how to get this output properly aligned again.
| SPSS PROCESS Macro by Hayes: Output not aligned since SPSS update to version 28 | CC BY-SA 4.0 | null | 2023-03-03T13:31:05.263 | 2023-03-03T13:31:05.263 | null | null | 21,113,093 | [
"spss"
] |
75,627,719 | 2 | null | 75,615,666 | 0 | null | A 1D LUT as used in digital content creation (DCC) applications is most typically applied per-image channel. Put another way, irrespective of whether the image is chromatic or achromatic, the discretised function will process each channel the same way. Note that an achromatic image can have either one channel or 3 equa... | null | CC BY-SA 4.0 | null | 2023-03-03T13:31:07.213 | 2023-03-03T13:31:07.213 | null | null | 931,625 | null |
75,627,710 | 1 | null | null | 0 | 12 | I am trying to send a very simple Adaptive Card in Outlook. Using the [designer](https://adaptivecards.io/designer/) I have verified that this should work.
template=
```
{
"version": "1.0",
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"originator": "${$root.or... | Adaptive Card does not render in Outlook correctlly (Templating) | CC BY-SA 4.0 | null | 2023-03-03T13:30:53.547 | 2023-03-03T14:04:11.530 | 2023-03-03T14:04:11.530 | 2,879,771 | 2,879,771 | [
"adaptive-cards"
] |
75,627,721 | 2 | null | 75,626,378 | 1 | null | I think the error appears because your target table expect to get the `DATE` type, which includes only YYYY-MM-DD part, while `datetime64[ns]` has the entire timestamp up to decimal seconds. If you want to have only the date in your target table in Snowflake, try extracting the date part from your timestamp before writ... | null | CC BY-SA 4.0 | null | 2023-03-03T13:31:22.930 | 2023-03-03T13:40:25.503 | 2023-03-03T13:40:25.503 | 5,600,153 | 5,600,153 | null |
75,627,723 | 2 | null | 75,627,586 | 2 | null | Here's how you might define the anyType operator:
```
function anyTap<T>(fn: () => void): MonoTypeOperatorFunction<T> {
return tap({
next: _ => fn(),
error: _ => fn(),
complete: fn
});
}
```
Now you can use it like this:
```
something.pipe(
anyTap(() => this.isLoading = false),
)
```
| null | CC BY-SA 4.0 | null | 2023-03-03T13:31:30.563 | 2023-03-03T13:31:30.563 | null | null | 13,500,986 | null |
75,627,722 | 1 | null | null | 0 | 24 | I am newbie/noob to AZURE AD. I have started understanding the AZURE AD Graph API and trying them in postman. I am still exploring things.
Using the AZURE AD Graph API could get the Users, Groups and so on.
- [https://graph.microsoft.com/v1.0/users/](https://graph.microsoft.com/v1.0/users/)- [https://graph.microsoft.co... | how to get/search users from a domain or a sub-domain in azure ad through graph api | CC BY-SA 4.0 | null | 2023-03-03T13:31:30.183 | 2023-03-03T13:31:30.183 | null | null | 840,842 | [
"azure",
"azure-active-directory",
"azure-ad-graph-api"
] |
75,627,724 | 1 | null | null | 0 | 8 | I am trying to scroll down the website by using webdriver in Mozilla however the code is not working.
That is the code I have written:
from selenium import webdriver
import time
```
`
browser=webdriver.Firefox()
browser.get("https://sellercentral.amazon.co.uk/forums/c/sell-on-amazon")
browser.execute_script("window.scr... | Scrolling dynamic website using Python and Selenium | CC BY-SA 4.0 | null | 2023-03-03T13:31:56.697 | 2023-03-03T13:38:51.980 | null | null | 21,326,255 | [
"python",
"selenium-webdriver"
] |
75,627,730 | 2 | null | 74,735,174 | 0 | null | You should install GeoIP2 package:
```
composer require geoip2/geoip2
```
| null | CC BY-SA 4.0 | null | 2023-03-03T13:32:44.340 | 2023-03-03T13:32:44.340 | null | null | 5,861,293 | null |
75,627,726 | 2 | null | 74,852,980 | 0 | null | I got an error too.
NPOI 2.6.0
Sharpziplib 1.4.1
.NET 4.8
```
var workbook = new NPOI.XSSF.Streaming.SXSSFWorkbook(new NPOI.XSSF.UserModel.XSSFWorkbook(), 1000, true);
var sheet = workbook.CreateSheet(exportName);
CreateHeader(sheet);
CreateRows(sheet, extractItems, biwItems);
using (... | null | CC BY-SA 4.0 | null | 2023-03-03T13:32:03.617 | 2023-03-03T13:32:03.617 | null | null | 21,326,259 | null |
75,627,705 | 1 | null | null | 0 | 21 | > In this function component, use pop up widget show and edit and saveonce i handleInputChange function call function props (miboid) going
to undefined please help, how to solve re-render of react component
```
import React, { Fragment, useEffect, useState ,useCallback} from 'react'
import { useDispatch, useSelecto... | Function component props remove once i handleChange function call in react js | CC BY-SA 4.0 | null | 2023-03-03T13:30:12.503 | 2023-03-03T13:50:23.967 | 2023-03-03T13:50:23.967 | 17,124,118 | 17,124,118 | [
"reactjs"
] |
75,627,727 | 2 | null | 75,626,365 | 1 | null | Depending on the size of your JSON, you can also open it using the `json` library and create the DataFrame data by working on the dictionaries:
```
# Assuming you can load the data using the json python library.
data = [
{"fieldName": "customer_name", "fieldValue": "ABC"},
{"fieldName": "deviceid", "fieldValue"... | null | CC BY-SA 4.0 | null | 2023-03-03T13:32:10.080 | 2023-03-03T13:32:10.080 | null | null | 14,403,715 | null |
75,627,729 | 1 | null | null | 0 | 11 | Bonjour à tous, j'ai un problème de parsing d'une entité en Symfony. Je comprends que le problème est lié à l'attribut qui possède une clé étrangère, mais je ne comprends pas pourquoi la solution ne fonctionne pas.
[enter image description here](https://i.stack.imgur.com/foB7a.png)
`
Controller
```
<?php
#[Route('/api... | Symfony serializer | CC BY-SA 4.0 | null | 2023-03-03T13:32:40.770 | 2023-03-03T13:32:40.770 | null | null | 21,326,197 | [
"php",
"api",
"symfony",
"parsing",
"serialization"
] |
75,627,716 | 2 | null | 75,625,278 | 1 | null |
## A VBA Lookup (Application.Match)
[](https://i.stack.imgur.com/Kl5E5.jpg)
```
Sub CreateInductionReport()
' Define constants.
Const LKP_FIRST_CELL As String = "A2" ' 2.) ... here, if no match...
Const SRC_RANGE As String = "O79:O6256" ' 1.) Lookup this...
Const SRC_COLS As String = "P,N,K... | null | CC BY-SA 4.0 | null | 2023-03-03T13:31:04.940 | 2023-03-03T15:33:45.600 | 2023-03-03T15:33:45.600 | 9,814,069 | 9,814,069 | null |
75,627,736 | 2 | null | 75,627,586 | 2 | null | ```
something.pipe(
finalize(() => {
this.isLoading = false;
});
)
```
| null | CC BY-SA 4.0 | null | 2023-03-03T13:33:11.673 | 2023-03-03T13:33:11.673 | null | null | 11,582,192 | null |
75,627,734 | 1 | null | null | 3 | 47 | I have two sparse matrices and where and have the same number of columns (but potentially different numbers of rows). I'm trying to get a sparse matrix with elements c_ij = sum_j min(a_ij,b_ji), where a_ij and b_ij are elements of and , respectively.
Can this be done efficiently, and ideally sparsely? Even dense... | Python sparse matrix C with elements c_ij = sum_j min(a_ij, b_ji) from sparse matrices A and B | CC BY-SA 4.0 | null | 2023-03-03T13:33:00.243 | 2023-03-05T03:34:52.990 | 2023-03-03T13:38:57.413 | 10,659,092 | 10,659,092 | [
"python",
"numpy",
"scipy",
"sparse-matrix",
"matrix-multiplication"
] |
75,627,725 | 1 | null | null | 0 | 19 | In my angular app I'm using this logic to get paginated results from API:
Inside my service I'm creating functions to update the apiResponseBehavior that is responsible to store data from the API
```
private categorySubject = new BehaviorSubject<number | null>(null);
apiBehavior$ = new BehaviorSubject<ApiResponseInte... | How to push new results from pagination inside component that uses BehavioralSubjects | CC BY-SA 4.0 | null | 2023-03-03T13:32:03.217 | 2023-03-03T13:49:31.330 | 2023-03-03T13:49:31.330 | 7,351,980 | 20,138,556 | [
"angular",
"typescript",
"rxjs"
] |
75,627,738 | 2 | null | 61,717,611 | 0 | null | Yes, it's pretty unclear how to do a basic thing if you want to craft a tiny helper script. JSON for a Service Account is what you get after generating a new key in Google Cloud > IAM & Admin > Service Accounts > Keys. Here's how the full final variant looks:
```
import json
from google.oauth2 import service_account
fr... | null | CC BY-SA 4.0 | null | 2023-03-03T13:33:15.773 | 2023-03-03T13:33:15.773 | null | null | 162,118 | null |
75,627,732 | 1 | null | null | -1 | 15 | Hello I am an iOS Developer.
We have an application to plot ECG graph using signals from our ECG device.
In my application we plot an ECG Graph but it causes the problem of baseline wandering which is undesirable.
The problem arise due to the movement of patient while taking the ECG.
Image with the baseline wandering p... | Baseline Wandering in ECG Graph | CC BY-SA 4.0 | null | 2023-03-03T13:32:55.733 | 2023-03-04T13:11:53.930 | 2023-03-04T13:11:53.930 | 833,395 | 21,326,087 | [
"python",
"ios",
"graph",
"stable-baselines",
"baselineremoval"
] |
75,627,741 | 1 | null | null | 0 | 9 | Using the v3 of Api Platform, I'm encountering the following problems when working with DTO:
- -
I've tried different solutions and digged in into the source code before asking, and i don't find any way to solve these two problems.
| DTO Api Platform v3 | CC BY-SA 4.0 | null | 2023-03-03T13:34:02.373 | 2023-03-03T13:34:02.373 | null | null | 21,326,238 | [
"symfony",
"api-platform.com"
] |
75,627,720 | 1 | null | null | 0 | 12 | I'm new to Angular and I'm not familiar at all with the best practices and the flow/ communication with data between components.
I have what I believe is a reactive form with 3 components.
This is my initialization of the form in the parent component.ts
```
ngOnInit(): void {
this.supplierForm = this.fb.group({
... | Reactive form in angular with multiple components | CC BY-SA 4.0 | null | 2023-03-03T13:31:11.007 | 2023-03-03T13:31:11.007 | null | null | 15,321,226 | [
"angular"
] |
75,627,742 | 1 | null | null | 1 | 35 | I'm developing a cmake project. I need to use sqlite.
I tried to include sqlite3.h.
```
#include <sqlite3.h>
```
There will be error like this:
> fatal error: sqlite3.h: No such file or directory
Added sqlite3 package in cmake.
```
find_package (SQLite3)
if (SQLITE3_FOUND)
include_directories(${SQLITE3_INCLUDE_D... | Using Sqlite3 Library in MinGW windows | CC BY-SA 4.0 | null | 2023-03-03T13:34:04.013 | 2023-03-03T13:34:04.013 | null | null | 21,017,967 | [
"c",
"sqlite",
"gcc",
"cmake",
"mingw"
] |
75,627,739 | 1 | null | null | 2 | 26 | Tried with some query loops but cannot extract with simple query sum of fields from array of jsons array objects.
Example of object in DB:
```
[
{
"bars": [
{
"lot": None,
"item_code": "S12L06",
"quantity_kg": 164.1,
"default_coil":... | PostgreSQL json field sum based on key and aggregate based on key value | CC BY-SA 4.0 | null | 2023-03-03T13:33:34.837 | 2023-03-03T15:13:59.223 | 2023-03-03T13:47:25.103 | 330,315 | 2,732,946 | [
"sql",
"json",
"postgresql"
] |
75,627,747 | 1 | null | null | 0 | 10 | Nextjs 13 works very slow and render pages multiple times?
Can anyone help me with this?
Nextjs 13 works very slow and render pages multiple times?
Can anyone help me with this?
| Next project rendering and working very slow | CC BY-SA 4.0 | null | 2023-03-03T13:34:22.163 | 2023-03-03T13:34:22.163 | null | null | 21,326,228 | [
"node.js",
"next.js"
] |
75,627,745 | 1 | null | null | 0 | 24 | I have 3 python lists:
```
x = ["a", "b", "c"]
y = ["d", "e", "f"]
z = ["m", "n", "s"]
```
I want to generate all possible combinations of these 3 lists, regarding:
- -
I tried to do it with for loops, but it got too complicated. Is there a way to do it with tools like itertools, zip etc?
| Generating combination of list items in python | CC BY-SA 4.0 | null | 2023-03-03T13:34:19.663 | 2023-03-03T13:34:19.663 | null | null | 20,070,222 | [
"python",
"combinations",
"cartesian-product"
] |
75,627,735 | 1 | 75,627,845 | null | 0 | 27 | I have the next class that I need to create a xunit test, but I don't know how mock the cosmosclient constructor.
```
public class CosmosDb : ICosmosDb
{
private readonly CosmosClient _client;
private readonly CosmosConfig _cosmosConfig;
private readonly Container _container;
private... | How Mock CosmosClient? | CC BY-SA 4.0 | null | 2023-03-03T13:33:07.710 | 2023-03-03T14:13:17.330 | 2023-03-03T14:13:17.330 | 272,109 | 18,180,708 | [
"mocking",
"azure-cosmosdb",
"xunit"
] |
75,627,746 | 2 | null | 33,009,419 | 0 | null | Based on this [SO answer](https://stackoverflow.com/a/26354677/235648) for decoding a base64 url encoded string, this is how I used to fetch the most likely message part that contains the text or html that the user sees:
```
string? GetMessageBodyText(Message message) {
var part = message.Payload;
while (part ... | null | CC BY-SA 4.0 | null | 2023-03-03T13:34:20.583 | 2023-03-03T13:34:20.583 | null | null | 235,648 | null |
75,627,748 | 1 | 75,628,028 | null | 0 | 25 | I have a google sheet posting materials assignments to Google classroom. These include 'evidence' image and pdf attachments. When the material is posted the attachments are linked as HTML. The code seems to be converting the image files (jpg) to HTML.
This is the upload function. I tried adding in different file extens... | Google Classroom assignment attachment links in wrong format - HTML instead of jpg or pdf | CC BY-SA 4.0 | null | 2023-03-03T13:34:22.207 | 2023-03-04T00:26:08.753 | null | null | 21,279,771 | [
"google-apps-script",
"google-sheets",
"google-classroom"
] |
75,627,740 | 2 | null | 75,619,349 | 0 | null | Thanks to [this](https://github.com/quarkusio/quarkus/issues/18444)
I was able to solve in this way:
```
@GET
@Path("/download/{id}/ctx/{ctx}")
@Produces(MediaType.APPLICATION_OCTET_STREAM)
public CompletionStage<Response> downloadFile(@PathParam("id") UUID fileId, @PathParam("ctx") String ctx,
... | null | CC BY-SA 4.0 | null | 2023-03-03T13:33:38.170 | 2023-03-03T22:17:30.147 | 2023-03-03T22:17:30.147 | 11,621,071 | 11,621,071 | null |
75,627,750 | 1 | null | null | -3 | 19 | One user is unable to login since he apparently picked a password with an apotrophe `'` in the code this is being sanitized `$usrPass = $mysqli->real_escape_string($formPass);` this is adding a `\` before the `'`. Later in the code I perform the hash check `if (password_verify($usrPass, $usrPass_hash)){` notice that `u... | Is real_escape_string() necessary when used with password_verify() generated hash? | CC BY-SA 4.0 | null | 2023-03-03T13:34:40.997 | 2023-03-03T13:40:50.533 | null | null | 8,349,736 | [
"php"
] |
75,627,754 | 2 | null | 75,621,293 | 0 | null | > Another way of phrasing the question is if there's a case where you will get a 0x0 tag within a valid message?
No, 0 tag is reserved by specification and `protoc` will refuse to compile a message using it. Therefore zero byte doesn't appear in tag position in a valid message.
Zero can appear elsewhere in the message,... | null | CC BY-SA 4.0 | null | 2023-03-03T13:35:19.243 | 2023-03-03T13:35:19.243 | null | null | 914,716 | null |
75,627,755 | 1 | null | null | 0 | 26 | I'm using `RANK()` and `DENSE_RANK()` to produce more terse primary key columns from various CHAR and INT columns. Postgres is my database system, but I suppose the answer to my question may apply to more systems.
My question is this: Would it be faster to create an INDEX for the columns used in `DENSE_RANK() OVER (..... | In Postgres, does putting an INDEX on a column speed up RANK() and DENSE_RANK()? | CC BY-SA 4.0 | null | 2023-03-03T13:35:21.910 | 2023-03-03T13:35:21.910 | null | null | 15,164,266 | [
"sql",
"postgresql",
"indexing"
] |
75,627,753 | 2 | null | 75,627,006 | 3 | null | You can use a custom view modifier.
### Custom Modifier
```
struct TextModifier: ViewModifier {
let gradient = LinearGradient(gradient: Gradient(colors: [Color("lb"), Color("rb")]),startPoint: .top, endPoint: .bottom)
func body(content: Content) -> some View {
content
.font(.cus... | null | CC BY-SA 4.0 | null | 2023-03-03T13:35:03.833 | 2023-03-04T09:53:54.523 | 2023-03-04T09:53:54.523 | 17,562,044 | 15,963,676 | null |
75,627,751 | 1 | null | null | 0 | 24 | here is a sample of my code
```
try {
// prepare sql and bind parameters
$stmt = $conn->prepare("SELECT media_image_id, media_resized_image FROM media_management ORDER BY media_create_date DESC ");
$stmt->execute();
$media_results = $stmt->fetchAll(PDO::FETCH_ASSOC);
}
catch (Exception $e) {
die('E... | Failing to retrieve images from the database | CC BY-SA 4.0 | null | 2023-03-03T13:34:43.897 | 2023-03-03T14:06:26.630 | 2023-03-03T14:06:26.630 | 5,947,043 | 9,288,757 | [
"php",
"html",
"image",
"foreach",
"pdo"
] |
75,627,743 | 1 | null | null | 0 | 14 | I am trying to make nested listview. but the inner listview did not displaying. outer is displaying.
I have outer listview and inner listview. each has its own sqldatasource. the problem is I cannot get the "subcat" to the inner listview and that is why the second listview does not contain any data.
```
<asp:ListView I... | ASP.NET VB Nested Listviews problem with the inner listview | CC BY-SA 4.0 | null | 2023-03-03T13:34:10.960 | 2023-03-03T16:07:05.473 | 2023-03-03T16:07:05.473 | 4,420,967 | 18,067,573 | [
"asp.net",
"vb.net",
"listview",
"nested",
"sqldatasource"
] |
75,627,749 | 1 | 75,628,074 | null | 0 | 27 | First of all, I'm not an Ubuntu expert and I have barely used its terminal so there might be a better way to do this.
I'm trying to execute this command over several .fits files:
`astmkcatalog ${filename} --ids --ra --dec --magnitude --sn --zeropoint=${zeropoints} --brightness --clumpbrightness --brightnessnoriver --ri... | Automatic Ubuntu terminal commands get cut | CC BY-SA 4.0 | null | 2023-03-03T13:34:24.470 | 2023-03-03T15:58:52.687 | 2023-03-03T15:58:52.687 | 21,326,028 | 21,326,028 | [
"ubuntu",
"awk",
"sed",
"terminal",
"command"
] |
75,627,744 | 1 | null | null | 0 | 32 | While working on a React Native project,I encountered the following error:
```
TypeError: undefined is not an object (evaluating 'date.getFullYear')
This error is located at:
in ExpenseItem (created by CellRenderer)
in RCTView (created by View)
in View (created by CellRenderer)
in VirtualizedListCellCo... | TypeError: undefined is not an object (evaluating 'date.getFullYear') | CC BY-SA 4.0 | null | 2023-03-03T13:34:16.403 | 2023-03-03T17:37:59.390 | 2023-03-03T17:37:59.390 | 4,883,195 | 18,363,851 | [
"javascript",
"react-native"
] |
75,627,733 | 1 | null | null | 0 | 29 | I have python homework, most part of homework have done, but i have issues with remaining. So:
According to the task we have list of all documents:
1.
```
documents = [
{‘type’: ‘passport’, ‘number’: ‘2207 876234’, ‘name’: ‘Vasily Gupkin’},
{‘type’: ‘invoice’, ‘number’: ‘11-2’, ‘name’: ‘Gennady Pokemono’},
{‘type’: ‘in... | Python homework programming | CC BY-SA 4.0 | null | 2023-03-03T13:32:58.077 | 2023-03-03T13:32:58.077 | null | null | 21,326,143 | [
"python",
"command",
"document"
] |
75,627,762 | 1 | null | null | -1 | 19 | [](https://i.stack.imgur.com/j6EJE.png)
[](https://i.stack.imgur.com/k5nYv.png)
[](https://i.stack.imgur.com/ZnuxX.png)
It can't find any reason why this wouldn't work. I have watched all tutorials doing the same. Any one have an idea?
| Error when fetching data. Sanity studio v3 and React | CC BY-SA 4.0 | null | 2023-03-03T13:35:59.793 | 2023-03-04T11:02:34.383 | null | null | 19,259,867 | [
"reactjs",
"sanity"
] |
75,627,759 | 1 | null | null | 0 | 16 | We have Docker version 20.10.21, build baeda1f. It is running fine without logging options in docker-compose.yml but when we specify the logging options and then start docker-compose, it throws an error
"ERROR: for Cannot create container for service : json: cannot unmarshal number into Go struct field LogConfig.Host... | Docker-compose - facing error while starting container after adding logging option | CC BY-SA 4.0 | null | 2023-03-03T13:35:36.820 | 2023-03-03T13:35:36.820 | null | null | 5,958,451 | [
"logging",
"docker-compose"
] |
75,627,758 | 1 | null | null | 0 | 11 | I have a pipeline that provisions my clients clients Firewall and all associated Resources. As part of that Pipeline, I am taking a backup of the Firewall and Rule Collections before release and if anything goes wrong, a YAML stage (via a condition) will use the two backup files and restore the Firewall and its Rule Co... | az group export Azure Firewall and restore issue | CC BY-SA 4.0 | null | 2023-03-03T13:35:32.973 | 2023-03-03T16:36:31.533 | null | null | 2,878,101 | [
"powershell",
"azure-cli"
] |
75,627,765 | 2 | null | 75,627,545 | 2 | null | This simply means, You have created a subfolder in your project.
Look in the Solution Explorer - You should see a folder with the same name.
[](https://i.stack.imgur.com/3KXdT.png)
| null | CC BY-SA 4.0 | null | 2023-03-03T13:36:29.397 | 2023-03-03T13:36:29.397 | null | null | 15,322,319 | null |
75,627,756 | 1 | null | null | 0 | 9 | im trying to get unity working on my ubuntu 22.10. i installed unity version 2021.3.19f1 and latest vs code version with C# extention and a few other extentions. but now im getting this log message and the intellisense not working.
```
Starting OmniSharp server at 3/3/2023, 4:58:51 PM
Target: /home/amiroof/AshoobRe... | vs code for unity on ubuntu, attemped to update project that is not loaded | CC BY-SA 4.0 | null | 2023-03-03T13:35:23.960 | 2023-03-03T13:35:23.960 | null | null | 21,005,993 | [
"unity3d",
"ubuntu",
"visual-studio-code",
"omnisharp"
] |
75,627,766 | 2 | null | 75,624,690 | 1 | null | In Quarkus, with SmallRye Health, we got you covered :)
Either Wellness - [https://smallrye.io/docs/smallrye-health/3.0.1/wellness.html](https://smallrye.io/docs/smallrye-health/3.0.1/wellness.html) or as we later extended this idea -- HealthGroup(s) - [https://smallrye.io/docs/smallrye-health/3.0.1/health-groups.html]... | null | CC BY-SA 4.0 | null | 2023-03-03T13:36:30.783 | 2023-03-03T13:36:30.783 | null | null | 14,040,597 | null |
75,627,767 | 2 | null | 75,627,704 | 2 | null | This can work if we use `REGEXP_REPLACE()` with a capture group:
```
SELECT input_String,
TRIM(REGEXP_REPLACE(input_String, '([A-Za-z]+)', ' \1 ')) AS output_String
FROM yourTable;
```
[](https://dbfiddle.uk/YBsVTeym)
## Demo
This regex replacement replaces all letter word substrings with the same substring s... | null | CC BY-SA 4.0 | null | 2023-03-03T13:36:33.273 | 2023-03-03T13:36:33.273 | null | null | 1,863,229 | null |
75,627,763 | 1 | 75,630,240 | null | 1 | 65 | I have a text message in a bash script which I am trying to extract a part of it within a pattern. For example my text string looks like:
```
-----START\nabcdEFGHij\nKLMN\nO/PqR\n-----END\n'This is a sample text..
```
This is part of a script:
```
#!/bin/sh
test="-----START\nabcdEFGHij\nKLMN\nO/PqR\n-----END\n'This i... | How to extract pattern using sed and awk command? | CC BY-SA 4.0 | null | 2023-03-03T13:36:01.687 | 2023-03-03T19:05:43.227 | 2023-03-03T18:01:52.230 | 17,762,566 | 17,762,566 | [
"linux",
"awk",
"sed"
] |
75,627,764 | 2 | null | 75,598,179 | 0 | null | The relevant code to understand the error is
```
page = 0
while page != 2:
html = driver.page_source
page += 1
if page != 1:
button = ...
button.click()
```
The first time you arrive at `if page != 1:` you have `page=1` since just before there is `page+=1`, so the button is not clicked and ... | null | CC BY-SA 4.0 | null | 2023-03-03T13:36:23.210 | 2023-03-03T13:36:23.210 | null | null | 8,157,304 | null |
75,627,760 | 1 | null | null | 0 | 8 | I have an Android `WebView` with a `WebChromeClient` implemented like so:
```
webView.webChromeClient = object : WebChromeClient() {
override fun onConsoleMessage(message: ConsoleMessage): Boolean {
when (message.messageLevel()) {
ConsoleMessage.MessageLevel.TIP -> Log.INFO
ConsoleMessag... | What is the severity of a console message at the 'TIP' and 'LOG' severity level on Android's WebChromeClient? | CC BY-SA 4.0 | null | 2023-03-03T13:35:53.513 | 2023-03-03T13:35:53.513 | null | null | 3,169,029 | [
"javascript",
"android",
"logging",
"android-webview",
"console.log"
] |
75,627,771 | 2 | null | 50,228,108 | 0 | null | As Mui documentation says you can create styled text field with these properties:
```
const CssTextField = styled(TextField)({
'& label.Mui-focused': {
color: 'white',
},
'& .MuiInput-underline:after': {
borderBottomColor: 'white',
},
'& .MuiInputLabel-root': {
color: 'white',
... | null | CC BY-SA 4.0 | null | 2023-03-03T13:36:58.173 | 2023-03-03T13:36:58.173 | null | null | 12,468,540 | null |
75,627,772 | 2 | null | 62,515,523 | 0 | null | The TYPO3 backend wants proper referers since [TYPO3-CORE-SA-2020-006: Same-Origin Request Forgery to Backend User Interface](https://typo3.org/security/advisory/typo3-core-sa-2020-006), and your TYPO3 backend is behind a reverse proxy.
You have to configure the reverse proxy settings, see [an explanation](https://www.... | null | CC BY-SA 4.0 | null | 2023-03-03T13:37:03.947 | 2023-03-03T13:46:12.173 | 2023-03-03T13:46:12.173 | 282,601 | 282,601 | null |
75,627,757 | 1 | null | null | 0 | 18 | I am currently trying to allow for two scripts to communicate in Python using confluent_kafka.
The idea is that script 1 produces a message to script 2 for a temperature reading. Script 2 consumes the message from s1 and produces the current temperature back to script 1 and then prints the temperature to the console.
T... | Is there a way to use kafka consumers and producers in the same Python file using confluent_kafka | CC BY-SA 4.0 | null | 2023-03-03T13:35:25.217 | 2023-03-03T17:01:49.923 | null | null | 15,808,736 | [
"python",
"apache-kafka",
"confluent-kafka-python"
] |
75,627,769 | 2 | null | 75,597,035 | 0 | null | > What is wrong?
The short answer: Fundamentals.
The long answer: (1) The `copy` "codec" isn't used for transcoding, but for transmuxing, i.e., it copies the compressed packets stored in one video container into another video container without converting them to frames in-between. There is no way of doing this when goi... | null | CC BY-SA 4.0 | null | 2023-03-03T13:36:47.603 | 2023-03-03T13:36:47.603 | null | null | 6,753,182 | null |
75,627,768 | 1 | null | null | 1 | 33 | Is there a way to call the deferred functions in the signal handler function instead of re-implement it manually ?
Here is an example with multiple steps that take time where I tried to call the defer functions when the SIGINT is received
```
package main
import (
"fmt"
"os"
"os/signal"
"syscall"
"... | How to call deferred functions on SIGINT handling in Go | CC BY-SA 4.0 | null | 2023-03-03T13:36:40.667 | 2023-03-03T15:15:22.997 | 2023-03-03T14:25:01.643 | 4,252,184 | 4,252,184 | [
"go",
"deferred",
"sigint"
] |
75,627,773 | 2 | null | 75,627,704 | 0 | null | To split a string and add spaces between the alphabets and numbers in SQL, you can use a combination of string functions and regular expressions. Here's an example SQL query that achieves this using a user-defined function:
```
CREATE FUNCTION dbo.SplitAlphaNum (@InputString VARCHAR(100))
RETURNS VARCHAR(100)
A... | null | CC BY-SA 4.0 | null | 2023-03-03T13:37:11.657 | 2023-03-03T13:37:11.657 | null | null | 4,165,839 | null |
75,627,776 | 2 | null | 54,111,885 | 0 | null | My situation was solved by the hint [from Fco's answer above.](https://stackoverflow.com/a/56086345/5898327)
Basically, I was not mindful of my build context size. I had a git submodule that gathered a lot of data after usage that was bloating the build context.
The solution was to include this (and other directories a... | null | CC BY-SA 4.0 | null | 2023-03-03T13:37:26.983 | 2023-03-03T13:37:26.983 | null | null | 5,898,327 | null |
75,627,775 | 2 | null | 75,627,292 | 0 | null | There are various speed tweaks available to you: (1) lower the estimate percent, (2) explicitly use parallelism, (3) request block sampling, (4) bypass indexes, and (5) disallow histograms by setting SIZE 1 on all columns:
```
BEGIN
dbms_stats.gather_table_stats(ownname => ABC'
tab... | null | CC BY-SA 4.0 | null | 2023-03-03T13:37:22.993 | 2023-03-03T16:22:37.847 | 2023-03-03T16:22:37.847 | 20,542,862 | 20,542,862 | null |
75,627,780 | 2 | null | 75,627,640 | 3 | null | If you have `_emailController` and `_passController` defined inside the `build` method, then move them outside it. This is so they don't get reinitialized when `setState` is called.
| null | CC BY-SA 4.0 | null | 2023-03-03T13:37:36.430 | 2023-03-03T13:37:36.430 | null | null | 12,999,567 | null |
75,627,778 | 2 | null | 75,603,698 | 1 | null | After a comment from @Yogi helped me, this is my working code if anyone has the same issue:
```
const navLinks = document.querySelectorAll(".nav-links a");
const divs = document.querySelectorAll("div.articleDiv");
// Linking nav element with div
// And displaying active
navLinks.forEach((link) => {
link.addEventList... | null | CC BY-SA 4.0 | null | 2023-03-03T13:37:32.157 | 2023-03-03T13:37:32.157 | null | null | 10,109,814 | null |
75,627,770 | 1 | null | null | -2 | 10 | I have a form that i echoed some list of locations, so that someone can select more than one option. I don't have a problem connecting to the database but I have a problem posting checkbox values and text field data at the same time.
Below are the codes i have written but values are not posting, but my connection are o... | Post echoed checkbox to database in mysql | CC BY-SA 4.0 | null | 2023-03-03T13:36:53.717 | 2023-03-03T13:36:53.717 | null | null | 15,920,943 | [
"mysql",
"post",
"checkbox"
] |
75,627,781 | 2 | null | 75,627,107 | 2 | null | Currently there is no build-in/provided by Microsoft UI framework for C# which supports Linux. To monitor Linux support for "cross-platform" MAUI you can follow [this github issue](https://github.com/dotnet/maui/issues/5801). But there are alternatives, for example - [AvaloniaUI](https://github.com/AvaloniaUI/Avalonia)... | null | CC BY-SA 4.0 | null | 2023-03-03T13:37:37.583 | 2023-03-03T13:48:28.030 | 2023-03-03T13:48:28.030 | 2,501,279 | 2,501,279 | null |
75,627,785 | 1 | null | null | 0 | 28 | I don't know what am I doing wrong. Based on the ruler in Word `left_indent` is the place where the text begins. So, I tried `left_indent` and it doesn't work, it only works on the normal text, with no bullet. Then I tried `first_line_indent`, doesn't work either.
Btw, here's my code:
```
import docx
def getText(filen... | How do I get indentation of bullet list (python-docx) | CC BY-SA 4.0 | null | 2023-03-03T13:37:48.260 | 2023-03-03T14:06:31.887 | null | null | 19,723,806 | [
"python",
"python-3.x",
"python-docx"
] |
75,627,777 | 1 | null | null | 0 | 7 | I'm trying to get a user logged in the Amplify iOS SDK with the id_token from Cognito user pool, this is my call:
```
AWSMobileClient.sharedInstance().federatedSignIn(
providerName: cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>,
token: cognitoTokens.token,
federa... | Login a user in Amplify iOS SDK with Cognito id_token | CC BY-SA 4.0 | null | 2023-03-03T13:37:31.453 | 2023-03-03T13:37:31.453 | null | null | 18,770,645 | [
"amazon-cognito",
"aws-amplify"
] |
75,627,782 | 1 | 75,627,960 | null | 2 | 32 | [](https://i.stack.imgur.com/GNU3M.png)
I have an excel file in the column somewhere in the middle of which (yellow selected row for example)
, and what I tried with VBA making two ranges out of that gets over-complicated quickly, making me think there must be an easier way, potentially even using a formula.
- - -
I... | How do I get the longest text of a row in some column in the middle of an Excel file? Formulas or VBA are okay | CC BY-SA 4.0 | null | 2023-03-03T13:37:38.420 | 2023-03-03T13:54:22.010 | 2023-03-03T13:51:29.283 | 9,199,828 | 3,955,499 | [
"excel",
"vba",
"excel-formula",
"office365",
"excel-2021"
] |
75,627,774 | 1 | null | null | 0 | 26 |
1. Hello, I’m pretty new to excel and need a bit of help. In the Delivered tab I need to populate columns Answered and Date/Time Answered with the Answered and Date/Time columns in the Calls tab based on matching the ID from the Delivered tab to the ID in the Calls tab. For example: for the first row: ID: C763G. I sho... | Need a formula to find the nearest date/time based on a matching criteria | CC BY-SA 4.0 | null | 2023-03-03T13:37:14.273 | 2023-03-04T18:47:13.733 | 2023-03-03T16:23:11.880 | 8,260,484 | 21,326,142 | [
"excel",
"excel-formula",
"excel-365"
] |
75,627,787 | 1 | null | null | -1 | 34 | So I have a `clear_all()` sub and it doesn't work on hidden rows (the blue marked rows in my screen).
Only if I drag them to a certain size then the sub works.
```
Sub clear_all()
Sheets("sheet1").Range("D17:DX100000").ClearContents
'there are more sheets but they are all build like this one here
End Sub
```
... | Why does VBA code not work on hidden rows? | CC BY-SA 4.0 | null | 2023-03-03T13:37:52.970 | 2023-03-03T15:05:41.303 | 2023-03-03T13:45:55.667 | 16,965,070 | 16,965,070 | [
"excel",
"vba"
] |
75,627,790 | 2 | null | 75,627,440 | 2 | null | You can group by and the use the group value via `cur_group()`
```
df %>%
group_by(Gender) %>%
mutate(newVariable = factor(Strength>(if(cur_group()==1) 29 else 10),labels = c("Weaker", "Stronger")))
```
| null | CC BY-SA 4.0 | null | 2023-03-03T13:37:58.333 | 2023-03-03T13:55:26.740 | 2023-03-03T13:55:26.740 | 4,447,540 | 4,447,540 | null |
75,627,779 | 2 | null | 36,635,745 | 0 | null | In my case, I have SAML library in my project which is initializing the ESAPI with its specific security configuration(ESAPISecurityConfig).
The ESAPISecurityConfig always returns null when requested for HTTPUtilitiesImplementation.
```
/** {@inheritDoc} */
public String getHTTPUtilitiesImplementation() {
r... | null | CC BY-SA 4.0 | null | 2023-03-03T13:37:34.427 | 2023-03-03T13:37:34.427 | null | null | 21,326,210 | null |
75,627,786 | 2 | null | 75,625,517 | 0 | null | As commented, there are some flaws in your code:
- `-Properties *``MemberOf`- - `foreach ($singleItem in $collectionOfItems) { <# do something with $singleItem here #> }`
Try
```
$OU = 'OU=This,OU=Users,OU=Is,DC=A,DC=Test'
# Get-ADUser by default returns objects with these properties:
# DistinguishedName, Enabled, Giv... | null | CC BY-SA 4.0 | null | 2023-03-03T13:37:50.690 | 2023-03-03T13:37:50.690 | null | null | 9,898,643 | null |
75,627,788 | 2 | null | 75,492,756 | 0 | null | The landmarks are found in holistic.process() after you've passed in your frame or image.
`results = holistic.process(cv2.cvtColor(image, cv2.COLOR_BGR2RGB))`
Here, I am converting my BGR image to RGB using opencv and passing it into the holistic.processs() function. After which you can access each landmark from the re... | null | CC BY-SA 4.0 | null | 2023-03-03T13:37:53.167 | 2023-03-03T13:38:42.417 | 2023-03-03T13:38:42.417 | 17,295,433 | 17,295,433 | null |
75,627,791 | 2 | null | 40,506,221 | 0 | null | Another solution is to use the following [Drill system option](https://drill.apache.org/docs/configuration-options-introduction/#system-options), which was introduced in Drill 1.14:
```
drill.exec.allow_loopback_address_binding: true
```
Specify this option in the `/conf/drill-override.conf` file.
| null | CC BY-SA 4.0 | null | 2023-03-03T13:38:17.807 | 2023-03-03T13:38:17.807 | null | null | 6,937,598 | null |
75,627,794 | 2 | null | 75,627,704 | 0 | null | Sure,but you didnt tell which programing language you want this but anyways i will do this on python here we go :
```
import re
input_string = '01ABC23fg98'
output_string = re.sub(r'(\d+|\D+)', r'\1 ', input_string).strip()
print(output_string)
```
the output must look like this : 01 ABC 23 fg 98
| null | CC BY-SA 4.0 | null | 2023-03-03T13:38:39.377 | 2023-03-03T13:40:02.123 | 2023-03-03T13:40:02.123 | 21,326,227 | 21,326,227 | null |
75,627,789 | 1 | 75,628,571 | null | 0 | 24 | I know this will be some stupid thing but I don't know why express.js is doing this.
So, I am sending a HTML file in a `GET` request
```
const express = require("express");
require('dotenv').config()
const app = express();
const PORT = process.env.PORT || 5000;
app.use(express.static(__dirname + "/public"));
app.get... | Express.js proper file not being sent as response | CC BY-SA 4.0 | null | 2023-03-03T13:37:56.460 | 2023-03-03T16:22:07.107 | null | null | 14,449,776 | [
"javascript",
"node.js",
"express",
"file-sharing"
] |
75,627,796 | 2 | null | 75,627,724 | 0 | null | When using `execute_script()` method to scroll down the page, the second argument should be None instead of an empty string.
Try :
```
from selenium import webdriver
import time
browser = webdriver.Firefox()
browser.get("https://sellercentral.amazon.co.uk/forums/c/sell-on-amazon")
browser.execute_script("window.scrol... | null | CC BY-SA 4.0 | null | 2023-03-03T13:38:51.980 | 2023-03-03T13:38:51.980 | null | null | 9,670,412 | null |
75,627,797 | 1 | null | null | 0 | 6 | currently i have this code placing the on ticket updated function inside the use effect.
the problem is that whenever i change the value of the use effect hook it seems to trigger the on(ticket.updated)
eg i change the form value 3 times the function inside on(ticket.updated) is also called 3 times
now i tried to call ... | Zendesk:where to put an .on('ticket.updated' in a react app in zendesk | CC BY-SA 4.0 | null | 2023-03-03T13:38:52.627 | 2023-03-03T13:38:52.627 | null | null | 2,463,863 | [
"reactjs",
"react-hooks",
"zendesk",
"zendesk-api",
"zendesk-app"
] |
75,627,802 | 2 | null | 74,431,121 | 0 | null | ```
browser.moveToElement('xpath', 'selector', 0, 0)
.mouseButtonDown(0)
.moveToElement('xpath', 'selector', 100, 0)
.mouseButtonUp(0);
```
Here, moveToElement() is used to move the mouse cursor to the start and end of the element, and mouseButtonDown() and mouseButtonUp() are used to simulate the mouse button p... | null | CC BY-SA 4.0 | null | 2023-03-03T13:39:11.587 | 2023-03-03T13:39:11.587 | null | null | 10,174,710 | null |
75,627,800 | 1 | null | null | 0 | 14 | I have a Flutter app that comunicate with a nodejs backend in Firebase, and that backend with some APIs. I want to make the user watch 2 rewarded ads videos and let him access the APIs, but I can't find a way to verify in the backend that the user has watched succesfully the videos. There is a URL callback function wit... | Verifying rewarded ads with flutter and firebase | CC BY-SA 4.0 | null | 2023-03-03T13:39:07.713 | 2023-03-03T13:39:07.713 | null | null | 11,796,915 | [
"flutter",
"firebase",
"admob",
"backend",
"ads"
] |
75,627,801 | 1 | null | null | 0 | 11 | I need to check impact of few of the columns/tables as some of the workflows are about to be decommissioned.
One way of finding is to manually open each session of each of the workflows and check in lookups/source queries.
So is there any easier way to do it ?
We are using Teradata SQL and Informatica 10.5.
| Is there any SQL query to check if we are using a table or a column in any of our workflows (Sources or lookup)? | CC BY-SA 4.0 | null | 2023-03-03T13:39:08.187 | 2023-03-03T13:39:08.187 | null | null | 13,240,783 | [
"informatica-powercenter",
"teradatasql"
] |
75,627,792 | 2 | null | 75,611,347 | 0 | null | If you are using dedicated SQL pool in synapse as per [this](https://learn.microsoft.com/en-us/sql/t-sql/queries/select-for-clause-transact-sql?view=sql-server-ver15) It is not supported. I tried to replicate the situation in my dedicated sql pool with sample data.
I created table inserted values
```
create table tab1 ... | null | CC BY-SA 4.0 | null | 2023-03-03T13:38:21.530 | 2023-03-03T14:44:58.370 | 2023-03-03T14:44:58.370 | 19,893,538 | 19,893,538 | null |
75,627,798 | 1 | 75,627,878 | null | 0 | 16 | When we are working with DbContext it tracks what happens to the entities attached to it.
If you modify a property, an entry will be added to ChangeTracker.Entries with EntityState.Modified, the same happens when you add or delete entites, they will be sent to ChangeTracker with a State EntityState.Added or EntityState... | How to get previous state of a tracked entity in dbcontext after savechanges | CC BY-SA 4.0 | null | 2023-03-03T13:38:55.523 | 2023-03-03T13:46:24.620 | null | null | 1,720,925 | [
"c#",
"entity-framework",
"logging",
"dbcontext"
] |
75,627,799 | 2 | null | 75,625,305 | 0 | null | `vmap` and `pmap` have slightly different APIs when it comes to `in_axes`. In `vmap`, setting `in_axes=None` causes inputs to be unmapped and static (i.e. un-traced), while in `pmap` even inputs with `in_axes=None` will be unmapped but still traced:
```
from jax import vmap, pmap
import jax.numpy as jnp
def f(x, cond... | null | CC BY-SA 4.0 | null | 2023-03-03T13:39:01.137 | 2023-03-03T13:39:01.137 | null | null | 2,937,831 | null |
75,627,803 | 1 | null | null | 0 | 26 | I'm trying to set up Unity Catalog on Databricks and for that purpose I created a new cluster with runtime version 11.3 and Single user as Access Mode. I tried to run
```
%sql
create catalog if not exists playcatdemo
```
from a notebook attached to the cluster I made previously but I get the following error:
> [UC_NOT... | Unity Catalog is not enabled on this cluster | CC BY-SA 4.0 | null | 2023-03-03T13:39:23.093 | 2023-03-04T16:37:47.143 | null | null | 7,074,969 | [
"databricks",
"databricks-unity-catalog"
] |
75,627,805 | 2 | null | 75,618,900 | 0 | null | Turns out I was missing the `path_mapping` entry in Sublime Text project file. I initially added it but the path was erroneously pointing to my server file and not the file actually opened in Sublime Text:
```
"path_mapping": {
"/xampp/htdocs/max/" : "M:/Users/dev/Documents/Source/max"
... | null | CC BY-SA 4.0 | null | 2023-03-03T13:39:31.010 | 2023-03-03T13:39:31.010 | null | null | 8,349,736 | null |
75,627,804 | 2 | null | 75,626,122 | 0 | null | A simple way to "sanitize" your input is to try to find the table name and column names in the system tables and do it using a parametrized query.
```
SELECT *
FROM SYS.SYSOBJECTS SO
JOIN SYS.SYSCOLUMNS SC ON SC.id = SO.id
WHERE SO.XTYPE = N'U'
AND SO.NAME = N'TABLE NAME'
AND SC.NAME = N'COLUMN NAME'
```
: I'm not a b... | null | CC BY-SA 4.0 | null | 2023-03-03T13:39:30.767 | 2023-03-03T13:50:16.617 | 2023-03-03T13:50:16.617 | 2,516,160 | 2,516,160 | null |
75,627,809 | 2 | null | 75,625,305 | 0 | null | I can seemingly avoid this problem by passing the timing values prior to vmapping using partial, that is:
```
run_trajectory = partial(run_trajectory, starting_time=timings)
traj_state = pmap(vmap(run_trajectory, in_axes=(0, 0)))(reshaped_sim_state, reshaped_lambda_array)
```
| null | CC BY-SA 4.0 | null | 2023-03-03T13:39:54.137 | 2023-03-03T13:39:54.137 | null | null | 21,324,738 | null |
75,627,811 | 1 | null | null | 0 | 17 | I want to send data from node server to statically rendered index.html
I have tried setting cookies by res.cookies but not able to access those cookies on client side
| How to send data and get headers on client side e.g. index.html from node server | CC BY-SA 4.0 | null | 2023-03-03T13:39:55.213 | 2023-03-03T15:28:11.730 | 2023-03-03T13:40:27.010 | 21,323,638 | 21,323,638 | [
"node.js",
"reactjs",
"token",
"server-side-rendering",
"request-headers"
] |
75,627,812 | 2 | null | 75,544,092 | 0 | null | This works:
```
public class tokenResponse
{
public string resource { get; set; }
public string token_type { get; set; }
public int expires_in { get; set; }
public int ext_expires_in { get; set; }
public int expires_on { get; set; }
public int not_before { get; set; }
public string access_to... | null | CC BY-SA 4.0 | null | 2023-03-03T13:39:55.560 | 2023-03-03T13:39:55.560 | null | null | 10,397,242 | null |
75,627,806 | 1 | null | null | 0 | 5 | On running the code provided in code lab in [https://developers.home.google.com/codelabs/matter-sample-app#1](https://developers.home.google.com/codelabs/matter-sample-app#1)
I have tried to run it on physical android phone (with compatible android version and google play services version) as well as pixel 6 virtual ph... | CommissioningClient.API is not available on this device | CC BY-SA 4.0 | null | 2023-03-03T13:39:41.977 | 2023-03-03T13:39:41.977 | null | null | 5,389,418 | [
"google-smart-home",
"matter-iot-standard"
] |
75,627,814 | 2 | null | 75,627,537 | 1 | null | Use the following approach:
```
df.groupby('profile')['id'].apply(list)\
.reset_index(name='ids').to_dict(orient='records')
```
---
```
[{'profile': 'SG-1234-BOM-A',
'ids': ['8298-hdfbs-37483-s', 'dhduf-7435-4897h-a']},
{'profile': 'SG-4567-PUN02', 'ids': ['game-uio-09349-831']},
{'profile': 'SG-7527-DEL02'... | null | CC BY-SA 4.0 | null | 2023-03-03T13:40:12.747 | 2023-03-03T13:40:12.747 | null | null | 3,185,459 | null |
75,627,807 | 2 | null | 75,625,104 | 0 | null | According to the [google cloud documentation](https://cloud.google.com/bigquery/docs/information-schema-datasets-schemata#scope_and_syntax)
`SELECT * FROM INFORMATION_SCHEMA.SCHEMATA`
The above query will list the dataset in the region US by default.To get the list of dataset in a particular region you need to given re... | null | CC BY-SA 4.0 | null | 2023-03-03T13:39:42.147 | 2023-03-03T14:28:03.223 | 2023-03-03T14:28:03.223 | 17,258,510 | 17,258,510 | null |
75,627,810 | 2 | null | 75,627,696 | 0 | null | use summernotes's `editor`, `welEditable` parameter omn funciton inside onImageUpload option
your code
```
$(document).ready(function() {
$('#summernote').summernote({
height: "300px",
dialogsInBody: true,
callbacks: {
onImageUpload: function(files) {
uploadFile(f... | null | CC BY-SA 4.0 | null | 2023-03-03T13:39:55.160 | 2023-03-03T13:39:55.160 | null | null | 17,033,432 | null |
75,627,793 | 1 | null | null | -3 | 44 | It's a bit complicated but I'll give my best to explain everything so if someone is willing to help have a good understanding of the problem.
I have `Transaction` and `Wallet` entities:
`Transaction`
```
@Entity
@Table(name = "transaction")
public class Transaction {
@Id
@GeneratedValue(strategy = GenerationType.IDENT... | For loop doesn't loop through all data from table | CC BY-SA 4.0 | null | 2023-03-03T13:38:34.410 | 2023-03-03T14:30:59.087 | null | null | 21,032,025 | [
"java",
"spring",
"spring-boot",
"jpa",
"spring-data-jpa"
] |
75,627,808 | 1 | null | null | 1 | 22 | Consider the following models and associations.
```
class User < ApplicationRecord
validates :name, presence: true
has_many :posts
has_many :favorites
has_many :favorite_posts, through: :favorites, source: :post do
def by_other_user
where(user: self)
end
end
end
```
```
class Favorite < Ap... | Passing a block with a method to an association acts as a filter? | CC BY-SA 4.0 | null | 2023-03-03T13:39:46.487 | 2023-03-03T14:25:40.560 | null | null | 11,800,557 | [
"sql",
"ruby-on-rails",
"postgresql",
"activerecord"
] |
75,627,816 | 1 | null | null | 0 | 7 | I have test case:
```
class HttpbinSuit(IsolatedAsyncioTestCase):
async def asyncSetUp(self):
self.client = Client("https://httpbin.org/")
#...
```
Then in the main I want to run it and see results, or generate allure-report.
```
suites = {
"playground": HttpbinSuit,
}
suite = unittest.TestLoader(... | Parallel and sequential run of unittest.IsolatedAsyncioTestCase | CC BY-SA 4.0 | null | 2023-03-03T13:40:15.047 | 2023-03-03T13:40:15.047 | null | null | 3,014,866 | [
"python",
"python-3.x",
"asynchronous",
"python-asyncio",
"python-unittest"
] |
75,627,817 | 2 | null | 75,627,630 | 0 | null | call this function on your button-click event. try to make this function global so you can access it from every swiftUI View.
```
func navigateToViewController(view : any View)
{
let newVC = UIHostingController(rootView: view)
newVC.modalPresentationStyle = .overCurrentContext
let transition = CATransition(... | null | CC BY-SA 4.0 | null | 2023-03-03T13:40:27.263 | 2023-03-03T13:40:27.263 | null | null | 12,278,098 | null |
75,627,815 | 1 | null | null | 0 | 32 | I have a struct and I am using as a view
```
struct CritterView: View {
@Binding var critterViewIsShowing:Bool
var body: some View {
VStack{
CritterViewHeader(critterViewIsShowing: $critterViewIsShowing)
}
// this works
// let _ = CritterData().getCritterData()
// this does ... | Trying to call a method in a struct from inside my View struct | CC BY-SA 4.0 | null | 2023-03-03T13:40:13.113 | 2023-03-03T15:37:21.047 | null | null | 2,875,080 | [
"swift",
"swiftui",
"struct"
] |
75,627,818 | 2 | null | 38,636,189 | 0 | null | It seems like the arguments order matters. You have to specify the encoding before the JAR file like so:
```
spark-submit --class my.package.app --conf "spark.driver.extraJavaOptions=-Dfile.encoding=utf-8" --conf spark.driver.extraJavaOptions=-Dfile.encoding=UTF-8 --conf spark.executor.extraJavaOptions=-Dfile.encoding=... | null | CC BY-SA 4.0 | null | 2023-03-03T13:40:48.867 | 2023-03-03T13:41:05.887 | 2023-03-03T13:41:05.887 | 14,859,171 | 14,859,171 | null |
75,627,820 | 2 | null | 75,622,940 | 0 | null | As you seem to have realized, events come with far more information than just the payload itself. You can checkout the docs for the event format and how you should respond.
[https://docs.aws.amazon.com/lambda/latest/dg/services-apigateway.html#apigateway-example-event](https://docs.aws.amazon.com/lambda/latest/dg/servi... | null | CC BY-SA 4.0 | null | 2023-03-03T13:41:09.520 | 2023-03-03T13:41:09.520 | null | null | 11,335,072 | null |