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,638,330 | 1 | null | null | 0 | 8 | I have converted any edi file to xml using this repository [edifact-reader-github-repository](https://github.com/BerryWorksSoftware/edireader). For an instance see in the following xml file:
This is my un/edifact file:
```
UNB+UNOA:1+US::US+50138::THEM+140531:0305+001934++ORDERS'
UNH+1+ORDERS:91:2:UN'
BGM+220+A761902+4... | How can we understand what the data in the edifact file belongs to? | CC BY-SA 4.0 | null | 2023-03-04T20:00:03.847 | 2023-03-04T20:15:15.417 | 2023-03-04T20:15:15.417 | 17,141,839 | 17,141,839 | [
"java",
"edi",
"edifact"
] |
75,638,342 | 2 | null | 75,630,074 | 0 | null | This apparently happens in Chrome, but not in Firefox.
It seems to be not caused by MUI, but a simple HTML file shows this behavior already:
```
<html><body>
<input type="number" min="0" max="1000" />
</body></html>
```
Also setting or not setting `min` has a similar effect.
## Conclusion
It seems to me that th... | null | CC BY-SA 4.0 | null | 2023-03-04T20:02:46.293 | 2023-03-04T20:02:46.293 | null | null | 7,556,457 | null |
75,638,348 | 2 | null | 75,636,748 | 0 | null | The command `nginx -g daemon off` is typically used in Dockerfiles to start the Nginx server as the main process and keep it running in the foreground, instead of running it as a background daemon process. This is because Docker containers are designed to run a single process, and if the main process stops, the contain... | null | CC BY-SA 4.0 | null | 2023-03-04T20:03:28.683 | 2023-03-04T20:03:28.683 | null | null | 1,557,013 | null |
75,638,346 | 1 | null | null | 0 | 14 | I'm trying to create a BaseEntity with generic `get` and `set` methods that will inherit their keys from the extending classes and I'm getting the following error:
`Type 'IBaseModel' recursively references itself as a base type.`
Minimal repro of the issue
```
type IBaseEntityKeys = keyof Omit<IBaseEntity, keyof EventT... | Passing as Generics Keys of Extending Class | CC BY-SA 4.0 | null | 2023-03-04T20:03:21.617 | 2023-03-05T06:00:31.693 | 2023-03-05T06:00:31.693 | 4,282,248 | 4,282,248 | [
"typescript",
"generics",
"typescript-generics"
] |
75,638,349 | 2 | null | 75,637,881 | 0 | null | This was because my `index.js` was using
```
ReactDOM.createRoot(document.getElementById('root')!);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
```
instead of
```
import { AppRegistry } from "react-native";
AppRegistry.registerComponent("App", () => App);
AppRegistry.runApplication("App", ... | null | CC BY-SA 4.0 | null | 2023-03-04T20:03:36.030 | 2023-03-04T20:03:36.030 | null | null | 3,750,050 | null |
75,638,351 | 1 | null | null | 0 | 9 | I'm writing a PowerPoint enterprise plugin to manage our customer's color themes. I need to read / set Office color themes, .
I see there is a `Office.context.officeTheme` property, but there are only 4 of a total of 12 colors. Also, when I change one of the colors, it creates a new color pallete rather than modify the... | Manage Office accent colors with Office Javascript API | CC BY-SA 4.0 | null | 2023-03-04T20:03:54.997 | 2023-03-04T20:03:54.997 | null | null | 4,548,329 | [
"office-js"
] |
75,638,350 | 2 | null | 75,637,564 | 0 | null | Can't you use SVG in a `cursor:url( ... )`
```
<style>
.container {
width: 100vw;
height: 20vh;
background: gold;
cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 512 512'><g transform='rotate(45 256 256)'><rect id='r' x='16' y='216' width='480'... | null | CC BY-SA 4.0 | null | 2023-03-04T20:03:36.203 | 2023-03-04T20:03:36.203 | null | null | 2,520,800 | null |
75,638,333 | 1 | null | null | 0 | 21 | I am trying to build an analytics dashboard that allows user to filter project, toDate, fromDate, timeFrame. And also allow them to clearFilters
[](https://i.stack.imgur.com/3rXEN.png)
Depending upon the range between toDate and fromDate, TimeFrame will be disabled.
```
useEffect(() => {
// fetch data only once whe... | Maintain state between multiple renders in React (Implementation of complex filters UI) | CC BY-SA 4.0 | null | 2023-03-04T20:00:33.847 | 2023-03-04T21:35:50.757 | 2023-03-04T21:35:50.757 | 14,287,127 | 14,287,127 | [
"javascript",
"reactjs",
"react-native",
"react-hooks"
] |
75,638,354 | 1 | null | null | 2 | 37 | I'm trying to make my own component that will be themed the same as the rest of application (the theme is set in `Project > Options > Application > Appearance`).
The control is derived from `TWinControl` (in the red frame below). How can I apply the application theme to my component?
I will use on it a lot of stanard c... | How can I implement themes support in my own component? | CC BY-SA 4.0 | null | 2023-03-04T20:04:40.730 | 2023-03-04T21:41:26.727 | 2023-03-04T21:41:26.727 | 21,333,254 | 21,333,254 | [
"delphi",
"vcl",
"delphi-10.4-sydney"
] |
75,638,340 | 1 | null | null | 0 | 10 | I have a problem with sending images on React Js. The reason is api sends null array. For understanding firstly I have to write about parent and child component.
`courierDocument.js/FileSendCourier.js` and `courierDocument.js/CourierPhotoUpload.js`
CourierDocument.js
```
const [images, setImages] = useState([]);
cons... | In image upload, Api sends empty array on React JS, after second click it works | CC BY-SA 4.0 | null | 2023-03-04T20:02:15.413 | 2023-03-04T20:02:15.413 | null | null | 19,188,332 | [
"javascript",
"reactjs",
"file"
] |
75,638,355 | 2 | null | 75,636,558 | 4 | null | change your `ItemsSource` to
```
<ListView BackgroundColor="Red" ItemsSource="{Binding lteStrengths}">
```
and set your `BindingContext` in the constuctor
```
public CellularInfo()
{
InitializeComponent();
BindingContext = this;
}
```
| null | CC BY-SA 4.0 | null | 2023-03-04T20:04:50.880 | 2023-03-04T20:04:50.880 | null | null | 1,338 | null |
75,638,356 | 2 | null | 75,638,309 | 1 | null | You can use [async components](https://vuejs.org/guide/components/async.html#async-components) as follows :
```
<template>
<button>
<MyIcon></MyIcon>
</button>
</template>
<script>
export default {
name: 'ToolbarButton',
props: ['icon']
components: {
MyIcon: defineAsyncComponent(() =>
... | null | CC BY-SA 4.0 | null | 2023-03-04T20:04:54.507 | 2023-03-04T20:04:54.507 | null | null | 8,172,857 | null |
75,638,352 | 2 | null | 75,636,942 | 1 | null | Stack normally creates it's main state directory at `$HOME/.stack`. So the parent directory is normally the user's home directory.
Checking that the parent directory isn't owned by another user would be an important security feature in case it is run on a multi-user system, because Stack caches code and binaries under ... | null | CC BY-SA 4.0 | null | 2023-03-04T20:04:19.333 | 2023-03-04T21:00:33.500 | 2023-03-04T21:00:33.500 | 450,128 | 450,128 | null |
75,638,335 | 2 | null | 75,633,997 | 0 | null | Your `getProc()` function has several problems.
- it is not checking if `CreateToolhelp32Snapshot()` or `Process32First()` fail.- it is skipping the first process reported by `Process32First()` (if it is successful).- if `Process32Next()` returns false (either because `CreateToolhelp32Snapshot()` or `Process32First()` ... | null | CC BY-SA 4.0 | null | 2023-03-04T20:01:10.470 | 2023-03-04T20:07:42.830 | 2023-03-04T20:07:42.830 | 65,863 | 65,863 | null |
75,638,304 | 1 | null | null | -2 | 36 | I would like to know how to get this form making script to work again , it was written in 2007 but now it containing errors that I will attach...
```
#******************************************************************
#************************* SUBROUTINES ***************************
#**********************************... | script is written in perl but contains errors | CC BY-SA 4.0 | null | 2023-03-04T19:55:49.393 | 2023-03-04T20:19:57.180 | 2023-03-04T20:06:50.437 | 2,766,176 | 13,545,069 | [
"perl"
] |
75,638,353 | 2 | null | 75,637,762 | 1 | null | First of all, you do not use `user:promote whatever_value`, you use `artisan("user:promote", ['email' => $user->email])`.
Second, the issue is that `artisan` method, returns a class that you then call `->assertSuccessful();`, this last method returns nothing, BUT it is using `__destruct`, that means that, when nothing ... | null | CC BY-SA 4.0 | null | 2023-03-04T20:04:34.130 | 2023-03-04T20:11:04.047 | 2023-03-04T20:11:04.047 | 1,998,801 | 1,998,801 | null |
75,638,357 | 1 | null | null | 0 | 6 | Below is a simple demonstration of my issue. When I execute "Evaluate" I get an exception stating `Schema mismatch for score column 'Score': expected known-size vector of Single, got Vector<Single>` The tutorial use a unknown-size vector so it should work?
[https://learn.microsoft.com/en-us/dotnet/machine-learning/tuto... | Can't get KMeans clustering to work in Microsoft.ml (C#) | CC BY-SA 4.0 | null | 2023-03-04T20:05:04.717 | 2023-03-04T20:05:04.717 | null | null | 1,750,190 | [
"c#",
"ml.net",
"microsoft.ml"
] |
75,638,359 | 1 | null | null | -1 | 13 | ```
import speech_recognition as sr
import pyttsx3
import pywhatkit
import datetime
import wikipedia
import pyjokes
listener = sr.Recognizer()
engine = pyttsx3.init()
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[1].id)
def talk(text):
engine.say(text)
engine.runAndWait()
talk('all... | why does the python code doesnt run fully | CC BY-SA 4.0 | null | 2023-03-04T20:05:50.123 | 2023-03-04T20:05:50.123 | null | null | 21,333,262 | [
"python-3.x",
"printing",
"artificial-intelligence"
] |
75,638,365 | 2 | null | 75,638,249 | 0 | null | We can put the data.frames in a list and call function in a loop:
```
library(dplyr)
my_data_frames <- list(df1, df2, df3, df4)
my_function <- function(df) {
df %>%
mutate(DOB = as.character(as.Date(DOB, format = "%m/%d/%y")),
StudentId = as.numeric(StudentId))
}
lapply(my_data_frames, my_fun... | null | CC BY-SA 4.0 | null | 2023-03-04T20:06:58.940 | 2023-03-04T21:57:10.993 | 2023-03-04T21:57:10.993 | 13,972,333 | 13,972,333 | null |
75,638,364 | 2 | null | 75,491,565 | 0 | null | > Unfortunately this bootloader has several compatibility problems with my board
What kind of issues? And why not address them?
> I would like to use Barebox for booting a u-boot image from another partition on the same QSPI rom
Keep in mind that chainloading U-Boot even from U-Boot itself isn't always guaranteed to wo... | null | CC BY-SA 4.0 | null | 2023-03-04T20:06:53.293 | 2023-03-04T20:06:53.293 | null | null | 1,257,035 | null |
75,638,363 | 2 | null | 75,633,811 | 0 | null | Here are some measures.
First off we write a measure that counts sales. From your attempts it looks like one row in the `Product` table is one sale. So to count sales we just need to count rows.
```
Total Sales =
COUNTROWS ( 'Product' )
```
Then we make a simple measure that calculates the number of products. Apparen... | null | CC BY-SA 4.0 | null | 2023-03-04T20:06:37.337 | 2023-03-04T20:06:37.337 | null | null | 16,528,000 | null |
75,638,360 | 2 | null | 17,385,256 | 0 | null | As @hardy stated in his answer its not possible to retrieve the validation groups at runtime within the validator implementation. But it can be done using a workaround creating a different annotation and specifying the group or using repeating annotations.
```
@ValidFoo
@ValidFoo(bar = true, groups =
{
FooBarGro... | null | CC BY-SA 4.0 | null | 2023-03-04T20:06:15.063 | 2023-03-04T20:06:15.063 | null | null | 1,085,958 | null |
75,638,358 | 1 | null | null | 0 | 24 | I have two C++ classes/structs which use each other's type alias, but the compiler doesn't recognize one of the type aliases.
In "A.h":
```
#pragma once
#include "B.h"
struct A {
using id_t = int;
B::id_t id;
};
```
And in "B.h":
```
#pragma once
#include "A.h"
struct B {
using id_t = int;
A::id_t ... | C++ classes mutual using type alias | CC BY-SA 4.0 | null | 2023-03-04T20:05:22.323 | 2023-03-04T20:09:18.077 | 2023-03-04T20:08:06.997 | 4,014,558 | 4,014,558 | [
"c++"
] |
75,638,361 | 1 | null | null | 0 | 17 | Hi so I'm having lots of trouble with my display count on this assembly project. This is what I have to do: Generate an array counts which holds the number of times each value in the range [LO, HI] ([15, 50] for default constant values) is seen in randArray (a random array), even if the number of times a value is seen ... | Counting the occurrence of an element in an array assembly MASM | CC BY-SA 4.0 | null | 2023-03-04T20:06:16.043 | 2023-03-04T20:06:16.043 | null | null | 20,617,885 | [
"assembly",
"masm"
] |
75,638,362 | 1 | null | null | 0 | 7 | I am facing a little challenge trying to use dataproc + spark to query data from my bigquery table.
I have created a cluster on GCP and configured a jupyter notebook that was automatically connected to the cluster in Vertex AI.
Below is the code I am executing from the notebook (the code works fine).
```
from pyspark.s... | Query a BQ table with Dataproc & Spark - How to run the script on local IDE | CC BY-SA 4.0 | null | 2023-03-04T20:06:31.787 | 2023-03-04T20:16:30.020 | 2023-03-04T20:16:30.020 | 13,353,856 | 13,353,856 | [
"python",
"apache-spark",
"google-cloud-platform",
"pyspark",
"google-cloud-dataproc"
] |
75,638,371 | 2 | null | 71,490,083 | 0 | null | I have kind of the same issue, this worked for me.
```
var map = L.map('map').setView([0,0], 0).whenReady(() => {
setTimeout(() => {
map.invalidateSize();
}, 100);
});
```
I think that you should update the "map size" after it's creation. I tried without the `setTimeout` but it doesn't do anything.
| null | CC BY-SA 4.0 | null | 2023-03-04T20:07:55.887 | 2023-03-04T20:07:55.887 | null | null | 10,951,665 | null |
75,638,368 | 1 | null | null | -1 | 30 | For the following json I extracted from an XML
```
{
"unit-type": "amp",
"unit-id": "0",
"cpu": [
{
"cpu-id": "0",
"temperature": "64(C)"
},
{
"cpu-id": "1",
"temperature": "64(C)"
}
]
}
{
"unit-type": "bcp",
"unit-id": "1",
"cpu": {
"cpu-id": "0",
"temperat... | jq json to csv with all child elements | CC BY-SA 4.0 | null | 2023-03-04T20:07:37.760 | 2023-03-04T20:15:49.167 | null | null | 442,430 | [
"bash",
"csv",
"jq",
"yq"
] |
75,638,366 | 1 | null | null | 0 | 4 | link for plot: [https://codepen.io/Tpex/pen/YzOQNmV](https://codepen.io/Tpex/pen/YzOQNmV)
```
<head>
<!-- Load plotly.js into the DOM -->
<script src='https://cdn.plot.ly/plotly-2.18.2.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js'></script>
</head>
<body>
<d... | Plotly 3D scatterplot jittery and partially appearing with javascript | CC BY-SA 4.0 | null | 2023-03-04T20:07:04.610 | 2023-03-04T20:07:04.610 | null | null | 13,020,348 | [
"javascript",
"3d",
"plotly",
"dataset",
"jitter"
] |
75,638,375 | 2 | null | 75,637,909 | 0 | null | It's basically complaining about not finding a "LittleLemonAPI_category" with id of "1" here:
`'1' that does not have a corresponding value in LittleLemonAPI_category.id.`
You need to insert a category with the id of 1 before inserting your menuitem
| null | CC BY-SA 4.0 | null | 2023-03-04T20:08:52.670 | 2023-03-04T20:08:52.670 | null | null | 4,979,317 | null |
75,638,347 | 1 | 75,639,231 | null | 1 | 33 | So i'm working on this feedback board website.
And i have this roadmap route where users get to see what is the website improvement roadmap.
And on Mobile i would like to have a three section slide : planned , in-progress and live
So i got [this code](https://stackoverflow.com/questions/17567344/detect-left-right-swipe... | Redux State won't update via dispatch | CC BY-SA 4.0 | null | 2023-03-04T20:03:24.603 | 2023-03-04T23:09:46.010 | 2023-03-04T23:09:46.010 | 18,197,875 | 18,197,875 | [
"javascript",
"reactjs",
"web",
"redux",
"mobile"
] |
75,638,374 | 2 | null | 75,442,411 | 0 | null | you could also have a function that while the video is plaing it repeats a function
ex
```
def musicpause():
while videoplay is true
time.sleep(.1)
```
or
```
def musicpause():
if videotime > 0
time.sleep(.1)
```
hope this helps
| null | CC BY-SA 4.0 | null | 2023-03-04T20:08:47.923 | 2023-03-04T20:08:47.923 | null | null | 21,332,882 | null |
75,638,370 | 1 | 75,638,908 | null | 0 | 58 | I want to read a file in one shot in my Python script. Also, I want to skip first line while doing so.
I can think of a few ways:
1.
```
with open('file name', 'r') as fh:
fh.readline()
lines = fh.readlines()
```
1.
```
with open('file name', 'r') as fh:
lines = fh.readlines()
del l... | What's the most efficient way to skip first line of a file while reading the whole file in a list of lines | CC BY-SA 4.0 | null | 2023-03-04T20:07:46.473 | 2023-03-04T22:58:04.547 | 2023-03-04T20:45:21.913 | 10,795,385 | 10,795,385 | [
"python",
"list",
"readlines"
] |
75,638,376 | 2 | null | 34,573,527 | 0 | null | @Cyrus @Thej
my html tags are also printing in the mail body.
```
Content-Type: text/html; charset="us-ascii"
<html><body><table border=1>
<tr>
<td>Filename</td>
<td>Destname</td>
<td>rowcount</td>
<td>bytesize</td>
</tr>
<tr>
<td>file1</td>
<td>default</td>
<td>1488</td>
<td>2248</td>
</tr>
<tr>
<td>file2</td>
<td>de... | null | CC BY-SA 4.0 | null | 2023-03-04T20:09:12.090 | 2023-03-04T20:09:12.090 | null | null | 21,333,295 | null |
75,638,377 | 1 | null | null | 0 | 16 | We have the need to distinguish between an optional fields vs. nullable fields (i.e when a field is present, that it could be nullable) when serializing Kotlin data classes to JSON using GSON.
The initial thought was to model the optional field as a generic:
```
class Optional<T>(val isPresent: Boolean = false, val val... | Skip serializing GSON field in generics based on value | CC BY-SA 4.0 | null | 2023-03-04T20:09:17.980 | 2023-03-04T20:09:17.980 | null | null | 4,059,914 | [
"java",
"json",
"kotlin",
"serialization",
"gson"
] |
75,638,378 | 2 | null | 39,491,168 | 0 | null | I suggest you convert it to pdf and then print it and To convert the worksheet in an Excel file into a PDF file, you can use the EPPlus library that enables you to export the page as a PDF file, using the WorksheetToPdfConverter function that converts the page into a PDF file and saves it to the hard disk. The followin... | null | CC BY-SA 4.0 | null | 2023-03-04T20:09:18.487 | 2023-03-04T20:09:18.487 | null | null | 16,832,062 | null |
75,638,381 | 1 | null | null | 0 | 9 | I'm trying to optimize my game and I have a question. Is it possible to track keystrokes in Unity without Update()? Although I don’t have many functions in it, is it still possible to optimize it somehow? Is it better to read keys in FixedUpdate()?
I would appreciate any advice on optimization
| Is there a way in Unity to track a keyboard keystroke without using Update()? | CC BY-SA 4.0 | null | 2023-03-04T20:09:36.257 | 2023-03-04T22:01:56.967 | null | null | 21,332,742 | [
"unity3d"
] |
75,638,369 | 2 | null | 75,561,058 | 0 | null | The answer proposed is absolutely fine, but let me propose a more complete one using the MVVM design pattern.
[](https://imgur.com/mDrPFoq)
First of all you will need a model to describe your data, some call this data-class from other languages, but in this is most commonly described as a .
```
//
// ItemModel.swift
... | null | CC BY-SA 4.0 | null | 2023-03-04T20:07:38.477 | 2023-03-04T20:31:52.160 | 2023-03-04T20:31:52.160 | 1,636,456 | 1,636,456 | null |
75,638,373 | 2 | null | 75,482,126 | 0 | null | In the following code you can find examples how to get and update the NAT objects on the Fortigate using the [fortigate-api](https://github.com/vladimirs-git/fortigate-api) package
```
from pprint import pprint
from fortigate_api import FortigateAPI
HOST = "host"
USERNAME = "username"
PASSWORD = "password"
fgt = For... | null | CC BY-SA 4.0 | null | 2023-03-04T20:08:21.903 | 2023-03-04T20:08:21.903 | null | null | 15,222,211 | null |
75,638,384 | 1 | null | null | 0 | 9 | I am puzzled by using `exec` in my POSIX shell scripts, for example, this snippet:
(Print usage and aliases if the script is called with less or equal to 2 arguments.)
```
if [ "$#" -le 2 ]; then
{
show_help
printf '\n'
list_aliases
} >&2
exit 1
fi
```
---
```
if [ "$#" -le 2 ];... | Using `exec >&2` in shell scripts - good or bad idea? | CC BY-SA 4.0 | null | 2023-03-04T20:09:58.907 | 2023-03-04T20:09:58.907 | null | null | 1,997,354 | [
"shell",
"exec",
"posix",
"io-redirection",
"stderr"
] |
75,638,382 | 2 | null | 72,349,730 | 0 | null | I can help with the "Solution that creates a new Big Query table periodically". I have a file called `predictions_1514.csv` in a google cloud location (). And then I needed to import the `.csv` content into a Big query table. For achieving this, I am using Jupyter Notebook, which I trigger to run using CRON. My solutio... | null | CC BY-SA 4.0 | null | 2023-03-04T20:09:41.467 | 2023-03-04T20:15:51.153 | 2023-03-04T20:15:51.153 | 5,750,741 | 5,750,741 | null |
75,638,383 | 1 | null | null | 0 | 23 | I installed Angular fontawesome with this command found here: [https://www.npmjs.com/package/@fortawesome/angular-fontawesome](https://www.npmjs.com/package/@fortawesome/angular-fontawesome)
```
ng add @fortawesome/angular-fontawesome@6
```
My problem is I realized I wanted to change into Font Awesome's SCSS version a... | How to remove angular-fontawesome from a project? | CC BY-SA 4.0 | null | 2023-03-04T20:09:42.783 | 2023-03-04T22:57:13.957 | 2023-03-04T22:57:13.957 | 19,512,665 | 16,823,231 | [
"angular",
"npm",
"font-awesome",
"npm-package",
"angular-fontawesome"
] |
75,638,385 | 2 | null | 66,466,696 | 0 | null | Make sure to set the executable bit on the `.py`file:
In your docker file or entrypoint.sh:
```
chmod +x ./manage.py
```
| null | CC BY-SA 4.0 | null | 2023-03-04T20:10:24.447 | 2023-03-04T20:10:24.447 | null | null | 736,079 | null |
75,638,380 | 1 | null | null | 0 | 25 | Let's say I have an application and it has 10000k monthly users and I need to clean session data from database every 2 days, should I use the built-in background service in .net core or is it better and more performant to use hangfire? what is the best way to do this?
I made it as BackgroundService like this
```
public... | Clear session data perodically from db | CC BY-SA 4.0 | null | 2023-03-04T20:09:28.543 | 2023-03-04T22:25:02.180 | 2023-03-04T22:25:02.180 | 10,797,541 | 10,797,541 | [
"sql-server",
"asp.net-core",
"scheduled-tasks",
"hangfire",
"ihostedservice"
] |
75,638,387 | 2 | null | 75,242,666 | 2 | null | Thank you everyone for contributing to this issue. It was a really big help. However, [this](https://stackoverflow.com/questions/16420595/how-to-add-external-native-dependency-dll) helped me export specific DLLs & referencing thus solving the problem.
Also, In the C++ project properties I had to Change "Copy to Output ... | null | CC BY-SA 4.0 | null | 2023-03-04T20:10:31.197 | 2023-03-04T20:10:31.197 | null | null | 9,134,795 | null |
75,638,379 | 2 | null | 32,505,298 | 0 | null |
## Another important variation on this for Histograms developed in 2019.
The computation was updated and includes something - excuse me for maybe oversimplifying -
like creating bins according to the `limit=()` specification on your binning axis,
and if this is wider than your data,
- -
The ggplot developers sugge... | null | CC BY-SA 4.0 | null | 2023-03-04T20:09:25.203 | 2023-03-04T20:09:25.203 | null | null | 1,518,460 | null |
75,638,393 | 1 | null | null | -1 | 13 | I installed a command line python package using pip on Mac Ventura. It is not added to my path automatically. What directory do I need to navigate to to run that package from the CLI?
| I installed a command line python package using pip on Mac. How do I run it? | CC BY-SA 4.0 | null | 2023-03-04T20:11:57.910 | 2023-03-04T20:11:57.910 | null | null | 3,321,579 | [
"python",
"command-line-interface"
] |
75,638,388 | 1 | null | null | -1 | 14 | I'm using this code:
```
import smtplib, ssl
smtp_server = "smtp.office365.com"
port = 587 # For starttls
sender_email = "my@email.com"
password = input("Type your password and press enter: ")
# Create a secure SSL context
context = ssl.create_default_context()
# Try to log in to server and send email
try:
serv... | email thru smtplib- shows no subject or body | CC BY-SA 4.0 | null | 2023-03-04T20:10:44.080 | 2023-03-04T20:10:44.080 | null | null | 15,048,804 | [
"python",
"email",
"smtplib"
] |
75,638,391 | 2 | null | 75,637,899 | 1 | null | You can get the outline of Vermont as an `sf` object and use it to trim the rivers using `st_intersection`
```
vermont <- rnaturalearth::ne_states(country = "United States of America",
returnclass = "sf") %>%
filter(name == "Vermont")
vermont_rivers <- na_riv_width %>% st_intersection(vermont... | null | CC BY-SA 4.0 | null | 2023-03-04T20:11:51.860 | 2023-03-04T20:11:51.860 | null | null | 12,500,315 | null |
75,638,396 | 2 | null | 60,622,985 | 0 | null | I replicate the error when I remove the app.MapControllers(); on the Program.cs on the web [enter image description here](https://i.stack.imgur.com/qEXQL.png)API
| null | CC BY-SA 4.0 | null | 2023-03-04T20:12:15.220 | 2023-03-04T20:12:15.220 | null | null | 9,967,725 | null |
75,638,389 | 1 | null | null | 0 | 22 | I am looking for the cleanest way to validate complex hierarchies of objects.
I have a master class names `Container`. `Constainer` consists of some string fields and `ContainerProp`. `ContainerProp` is abstract class with many subclasses like `PropA`, `PropB` etc. `PropA` has a `Constraint` which is albo an abstract c... | Clean validation of complex object hierarchy | CC BY-SA 4.0 | null | 2023-03-04T20:10:47.723 | 2023-03-04T20:10:47.723 | null | null | 19,995,812 | [
"java",
"spring",
"spring-boot",
"oop",
"design-patterns"
] |
75,638,392 | 1 | null | null | 0 | 62 | I wrote a program in C that uses approximation to calculate the nth root of a number. Everything works but, with this approach you need an assumption for the guess and I would like to improve this assumption but I don't know how.
So this down below is my code.
```
#include<stdio.h>
float power(float num, int t){
fo... | How to get a better initial guess for the nth root approximation? | CC BY-SA 4.0 | null | 2023-03-04T20:11:57.583 | 2023-03-04T23:02:42.690 | null | null | 21,333,242 | [
"c"
] |
75,638,397 | 1 | 75,638,843 | null | 2 | 41 | Or, what does the “” stand for?
---
See what I mentioned here: [SXHASH](http://clhs.lisp.se/Body/f_sxhash.htm#sxhash)
| `Sxhash` Got Its Name From …? | CC BY-SA 4.0 | null | 2023-03-04T20:12:17.183 | 2023-03-05T05:51:25.520 | 2023-03-05T05:51:25.520 | 20,212,483 | 20,212,483 | [
"common-lisp",
"terminology",
"language-history"
] |
75,638,399 | 2 | null | 75,637,160 | 0 | null | I solved the problem, it turned out that my version of the node is very different from the version of the node of my colleagues. Therefore, I had to downgrade the node version in order to run correctly. To change the version of the node, it was necessary to register `nvm install 16.16.0` and `nvm use 16.16.0` Thanks to... | null | CC BY-SA 4.0 | null | 2023-03-04T20:13:03.980 | 2023-03-04T20:13:03.980 | null | null | 20,914,598 | null |
75,638,395 | 1 | null | null | 0 | 23 | not I have a requirement to read millions of Oracle DB rows, process the zipped xml Blob (upto 50Mb) stored in each row, extract it out into CSV files. it is a non-spark env. Currently my code does this:
```
List<String[]> csvRows = new ArrayList<>();
ResultSet Rows = runDBQuery("select * from table");
for(ResultSet ro... | how to read/process/transform millions of rows from Oracle DB | CC BY-SA 4.0 | null | 2023-03-04T20:12:15.047 | 2023-03-04T21:35:35.590 | 2023-03-04T20:17:26.010 | 19,979,114 | 19,979,114 | [
"java",
"database",
"oracle",
"fetch",
"dataset"
] |
75,638,401 | 1 | null | null | 0 | 8 | Is there any way to add images to the reference library as a bulk, i have around 400 images to upload, is there any way to do it other than adding it one by one.
I was able to select and all the images into an folder under asset but not able to do so for the reference image section.
| Adding multiple images to reference image library in a bulk manner | CC BY-SA 4.0 | null | 2023-03-04T20:14:13.367 | 2023-03-04T20:14:13.367 | null | null | 21,333,305 | [
"unity3d",
"unityscript"
] |
75,638,402 | 2 | null | 43,016,478 | 0 | null | In my case, I'm making just an API without HTML views. So I fixed this by making an empty route for the favicon.
```
router.get('/favicon.ico', (req, res) => res.send(''));
```
| null | CC BY-SA 4.0 | null | 2023-03-04T20:14:42.377 | 2023-03-04T20:14:42.377 | null | null | 472,064 | null |
75,638,394 | 1 | null | null | 0 | 4 | I have a use case where
1. User submits a select query for any data base (right now snowflake, postgres and oracle).
2. Usually the select query is in million records.
3. Once the user submits the DataStore Details (Credentials, Connection details etc) and the select query we need to start ingest the data (async) and ... | Dynamic (Runtime) Spring Batch Job creation with multiple Data Source | CC BY-SA 4.0 | null | 2023-03-04T20:12:12.830 | 2023-03-04T20:12:12.830 | null | null | 2,076,966 | [
"spring-batch"
] |
75,638,400 | 2 | null | 75,637,890 | 2 | null | You cannot add attributes to a function while it is being constructed by a `def` statement. The closest you can come is to have a decorator add the attribute once the function has been defined.
```
def attach(name, value):
def decorator(f):
setattr(f, name, value)
return f
return decorator
@at... | null | CC BY-SA 4.0 | null | 2023-03-04T20:13:45.703 | 2023-03-04T20:13:45.703 | null | null | 1,126,841 | null |
75,638,398 | 1 | null | null | 0 | 11 | I need to put arrays of image1 and image2, plus their labels (0 or 1) into tf dataset. Then, this dataset will be used in training neural network. My model will have two inputs and one output.
I've tried to create tf dataset in such way:
```
X1 = [] # array of 1000 images
X2 = [] # array of another 1000 images
Y = [] #... | How to put images and labels in tensorflow dataset? | CC BY-SA 4.0 | null | 2023-03-04T20:12:32.983 | 2023-03-04T20:13:59.477 | 2023-03-04T20:13:59.477 | 21,311,940 | 21,311,940 | [
"python",
"tensorflow-datasets"
] |
75,638,404 | 2 | null | 64,938,102 | 0 | null | `setMaxBounds` will bounce back from [south, west] coordinate to [north, east] coordinate, therefore south should be -90 and north should be 90
```
const bounds = [[-90, -180], [90, 180]]
L.map("map").setMaxBounds(bounds)
```
The following is optional. It prevents zooming out of the map based on window height but the ... | null | CC BY-SA 4.0 | null | 2023-03-04T20:15:04.853 | 2023-03-04T20:15:04.853 | null | null | 18,465,962 | null |
75,638,406 | 2 | null | 75,637,850 | 1 | null | If you are on Windows and compiling for Windows I would recommend the `fyne package` command instead of `fyne-cross`. The latter requires an installed Docker or podman instance as it’s for cross compiling.
| null | CC BY-SA 4.0 | null | 2023-03-04T20:15:39.287 | 2023-03-04T20:15:39.287 | null | null | 672,958 | null |
75,638,405 | 1 | null | null | -1 | 18 | I got this issue that it runs but I does not load the mapped seats like not even empty brackets.
I watched many tutorials in Youtube I do 1 on 1 and still doesnt work
```
@Data
@Entity
@Table(name = "seats",schema = "public")
public class Seat {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Colum... | Spring cannot map correctly properties | CC BY-SA 4.0 | null | 2023-03-04T20:15:23.330 | 2023-03-04T20:15:23.330 | null | null | 19,115,318 | [
"java",
"spring",
"intellij-14"
] |
75,638,409 | 2 | null | 75,635,919 | 0 | null | You could write a measure like this, which will give you the last date where `Ania` has status `Started A` no matter what filters you have selected.
```
Latest Ania Started A =
CALCULATE (
MAX ( 'Table'[Date] ),
ALL ( 'Table' ),
'Table'[Status] = "Started A",
'Table'[Name] = "Ania"
)
```
| null | CC BY-SA 4.0 | null | 2023-03-04T20:16:08.287 | 2023-03-04T20:16:08.287 | null | null | 16,528,000 | null |
75,638,410 | 1 | null | null | 0 | 6 | As per [this](https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/service-accounts-governing-azure#plan-your-service-account) MSFT is recommending NOT to use the service account ( even if they have given the use of service account - which seems to be necessary at some point).
Is there any ways to figu... | What is the best practice for Azure Service Principle? | CC BY-SA 4.0 | null | 2023-03-04T20:16:08.280 | 2023-03-04T20:16:08.280 | null | null | 1,837,976 | [
"azure-active-directory",
"azure-service-principal",
"microsoft-entra"
] |
75,638,412 | 2 | null | 75,637,610 | 0 | null | Navigate to File > Settings > Editor > Spelling, press the button and add a Cyrillic Hunspell spellchecking dictionary like [this](https://github.com/grakic/hunspell-sr) one.
##### With spelling mistake:
[](https://i.stack.imgur.com/rWMRG.png)
##### Without spelling mistake:
[](https://i.stack.imgur.com/tgshq.pn... | null | CC BY-SA 4.0 | null | 2023-03-04T20:16:27.713 | 2023-03-04T20:16:27.713 | null | null | 19,170,534 | null |
75,638,411 | 1 | null | null | 0 | 40 | I have created a function which finds the mean of all the columns in a matrix.
It looks like this:
```
Finding_mean <- function(m = c(matrix)) {
i = 1
while(i < 15){
matrix_mean = (mean(matrix[,i],na.rm=TRUE))
print(matrix_mean)
i = i + 1
}
}
```
This is what the output looks like:
```
[1] 38.... | How to get the name of a specific column using a column number in R | CC BY-SA 4.0 | null | 2023-03-04T20:16:19.700 | 2023-03-04T21:13:06.987 | null | null | 19,445,493 | [
"r"
] |
75,638,408 | 1 | null | null | -1 | 26 | ```
from selenium import webdriver
driver = webdriver.Chrome()
url_1 = "https://imdb.com"
driver.get(url_1)
```
İt's super easy code but it does not work
ı get
DevTools listening on ws://127.0.0.1:54250/devtools/browser/1584417f-6522-4aba-a8e8-53b832ffe695 error
opens the site, but the site instantly closes and gives... | How can ı solve this python selennium problem? | CC BY-SA 4.0 | null | 2023-03-04T20:16:05.220 | 2023-03-04T21:25:23.257 | 2023-03-04T21:25:23.257 | 20,684,635 | 20,684,635 | [
"python",
"selenium-webdriver",
"undetected-chromedriver"
] |
75,638,407 | 2 | null | 75,638,368 | 0 | null | Your input is a stream, therefore, to output the header just once, use the `-n` flag to have a single input to print from, then `inputs` to process all the actual inputs. Using `arrays` and `objects`, you can distinguish between the two cases for `.cpu`.
```
jq -nr '
["unit-type","unit-id","cpu-id","temperature"] as ... | null | CC BY-SA 4.0 | null | 2023-03-04T20:15:49.167 | 2023-03-04T20:15:49.167 | null | null | 2,158,479 | null |
75,638,414 | 2 | null | 75,637,585 | 1 | null | When you call the api, you essentially call the create_item function, which would manipulate your dictionary. When you directly run your python code, you don't call the create_item function, therefore the dictionary isn't manipulated, and you get the original dictionary back, which is `{'name': '', 'desc': ''}`.
When y... | null | CC BY-SA 4.0 | null | 2023-03-04T20:16:46.633 | 2023-03-04T20:16:46.633 | null | null | 4,979,317 | null |
75,638,419 | 1 | null | null | 0 | 5 | I am getting error while hosting node.js server on vercel
I was expecting the node.js server to be hosted successfully
[](https://i.stack.imgur.com/oAqYo.png)
| Serverless Function Invocation Failed Vercel Error Error Code: 500 | CC BY-SA 4.0 | null | 2023-03-04T20:17:41.330 | 2023-03-04T20:17:41.330 | null | null | 21,213,332 | [
"java",
"node.js",
"hosting",
"vercel",
"stateless"
] |
75,638,415 | 2 | null | 75,638,281 | 1 | null | > When you use memo, your component re-renders whenever any prop is not shallowly equal to what it was previously. This means that React compares every prop in your component with the previous value of that prop using the Object.is comparison. Note that Object.is(3, 3) is true, but Object.is({}, {}) is false.
To get th... | null | CC BY-SA 4.0 | null | 2023-03-04T20:16:50.217 | 2023-03-04T20:16:50.217 | null | null | 13,488,990 | null |
75,638,417 | 1 | null | null | 0 | 9 | I have cloud run endpoint that generates some logs.
I want to display the number of time those differents logs have been triggered per day in a bar chart.
To do this, I filtered my logs with the right criteria, created a counter metric and then used the monitoring metrics explorer to create a bar chart.
It kind of work... | GCP Counter log metrics as a barchart | CC BY-SA 4.0 | null | 2023-03-04T20:17:22.230 | 2023-03-04T20:17:22.230 | null | null | 6,753,061 | [
"google-cloud-platform"
] |
75,638,420 | 2 | null | 75,637,550 | 1 | null | The first parameter should be an object type. Then you can destructure it:
```
const SvgExporter = ({ logoName }: { logoName: string }) => {
let Logo = logoTypesMap[logoName];
return <Logo />;
};
```
| null | CC BY-SA 4.0 | null | 2023-03-04T20:18:00.170 | 2023-03-04T20:18:00.170 | null | null | 18,244,921 | null |
75,638,421 | 2 | null | 75,635,954 | 0 | null | Try `min-width:100%`
```
<div className="flex justify-center" style="min-width:100%">
</div>
```
| null | CC BY-SA 4.0 | null | 2023-03-04T20:18:06.077 | 2023-03-04T20:18:06.077 | null | null | 12,716,453 | null |
75,638,422 | 2 | null | 75,638,133 | 0 | null | First I can't reach links you sent. Did you replace your old website domain in your database with new domain address?
| null | CC BY-SA 4.0 | null | 2023-03-04T20:18:14.217 | 2023-03-04T20:18:14.217 | null | null | 15,467,707 | null |
75,638,423 | 2 | null | 69,193,890 | 0 | null | Previously must have been installed.
```
@react-navigation/native-stack
react-native-safe-area-context
react-native-screens
```
Additionally, try clearing the cache and recompiling the app.
```
watchman watch-del-all && rm -rf node_modules
yarn cache clean && yarn
npx pod-install
yarn start --reset-cache
```
After th... | null | CC BY-SA 4.0 | null | 2023-03-04T20:18:25.863 | 2023-03-04T21:22:24.877 | 2023-03-04T21:22:24.877 | 10,028,024 | 10,028,024 | null |
75,638,386 | 1 | null | null | 0 | 5 | I can't for the life of me figure this one out :(
My app is a game, so the users are called players. In order to keep consistency across the app, I want to change the property name that koa-passport uses when it logs a user in. The default is `user`, but I want it to be `player`
My app is set up like this:
```
import... | Updating `userProperty` in koa-passport doesn't work | CC BY-SA 4.0 | null | 2023-03-04T20:10:30.053 | 2023-03-04T20:13:30.777 | 2023-03-04T20:13:30.777 | 5,993,389 | 5,993,389 | [
"passport.js",
"koa",
"koa-passport",
"koa-session"
] |
75,638,416 | 1 | null | null | 0 | 8 | I am making a blog website and I need a review section. So far I have a database tables for places and reviews, api route with POST request and a form. I am able to create a review and send it to the database but I am confused about how to connect the review with certain place. I will also have to connect the user with... | Review Section with PostgresSql and Rest API in Next.js | CC BY-SA 4.0 | null | 2023-03-04T20:17:21.313 | 2023-03-04T20:17:21.313 | null | null | 17,743,877 | [
"postgresql",
"api",
"rest",
"next.js",
"review"
] |
75,638,429 | 1 | null | null | 0 | 9 | I was thinking that instead of having all the components (html elements) in a single HTML, it would be possible to create fragments for each component, where they contained:
1. html (fragment)
2. scss
3. javascript (maybe)
Call these and add in the main HTML?
It would basically be what frameworks do nowadays, howeve... | Is it possible to create a static website without losing SEO with Webpack and HTML Fragments? | CC BY-SA 4.0 | null | 2023-03-04T20:20:17.640 | 2023-03-04T20:20:17.640 | null | null | 14,549,200 | [
"html",
"webpack",
"webpack-5"
] |
75,638,418 | 2 | null | 75,638,255 | 0 | null | Try:
```
df["Dates"] = pd.to_datetime(df["Dates"], dayfirst=True)
ofs1 = pd.tseries.offsets.MonthBegin(n=1)
ofs2 = pd.tseries.offsets.MonthBegin(n=2)
max_date = df["Dates"].max() + ofs1
cur1 = df["Dates"].min()
cur2 = cur1 + ofs2
ranges = []
while True:
if cur2 > max_date:
break
m1, y1 = cur1.month, c... | null | CC BY-SA 4.0 | null | 2023-03-04T20:17:37.100 | 2023-03-04T20:55:07.493 | 2023-03-04T20:55:07.493 | 10,035,985 | 10,035,985 | null |
75,638,424 | 1 | null | null | 0 | 23 | Wondering if this is an Excel bug or there is something I'm missing...
Using Excel VBA `Dir` to list in a worksheet all the filenames (with path) in a user-selected folder, like:
```
C:\users\ubmcc\pictures\2023\March\[DPI] Cat with hat_PM.jpg
```
Data is extracted from the filenames, then the files are copied to a ne... | Excel VBA issue with a filename containing em dash | CC BY-SA 4.0 | null | 2023-03-04T20:18:56.537 | 2023-03-04T23:29:01.440 | 2023-03-04T23:29:01.440 | 11,683 | 18,469,075 | [
"excel",
"vba",
"filecopy"
] |
75,638,413 | 1 | null | null | -1 | 12 | I am attempting to deploy my Python script, 'model.py', using a Flask web application. However, when I run the application, I encounter an error message that indicates the function in my script may be returning an empty result. I am uncertain how to proceed and would greatly appreciate any assistance or guidance on how... | Is there a possibility to deploy a LSTM algorithm using flask | CC BY-SA 4.0 | null | 2023-03-04T20:16:41.060 | 2023-03-04T20:16:41.060 | null | null | 20,943,354 | [
"python",
"flask",
"lstm",
"recurrent-neural-network"
] |
75,638,426 | 1 | null | null | -1 | 9 | I setup site 2 site connection using this guide: [Site-to-site networking](https://tailscale.com/kb/1214/site-to-site/). It works perfectly, after I setup next-hop on my router pointing to node IP address. Any device on my network can access remote site devices. I just have a little problem, because on node itself I ca... | Tailscale Site 2 site subnet router problem | CC BY-SA 4.0 | null | 2023-03-04T20:19:50.930 | 2023-03-04T20:19:50.930 | null | null | 11,065,959 | [
"networking",
"tailscale"
] |
75,638,433 | 2 | null | 42,066,437 | 0 | null | Relative xpath to the node you have selected can be done using `./` instead of `//`
see [https://devhints.io/xpath](https://devhints.io/xpath)
So you were almost there.
instead of `node.xpath('.//*[@class = "ARTabResultadosLinhaImpar"]')`
it should be
```
node.xpath('./*[@class = "ARTabResultadosLinhaImpar"]')
```
| null | CC BY-SA 4.0 | null | 2023-03-04T20:21:14.237 | 2023-03-04T20:59:19.350 | 2023-03-04T20:59:19.350 | 5,446,749 | 7,457,867 | null |
75,638,427 | 2 | null | 75,638,304 | 1 | null | You have an unescaped / in the `<br />` part:
```
$_->[0] !~ /<br />\s*$|<\/td>\s*$|<\/tr>\s*$|<\/p>\s*$/
```
Since you have many forward slashes in the pattern, you might want to use an alternate delimiter:
```
$_->[0] !~ m! ... !;
```
Also, you might be able to make the whole thing much simpler by reducing the repe... | null | CC BY-SA 4.0 | null | 2023-03-04T20:19:57.180 | 2023-03-04T20:19:57.180 | null | null | 2,766,176 | null |
75,638,434 | 2 | null | 75,623,095 | 0 | null | , Actually, as the user name, I was using the user ID that I set as the Jenkins credentials instead of the , so I replaced that username and the groovy script is working fine.
Thank you.
| null | CC BY-SA 4.0 | null | 2023-03-04T20:21:15.577 | 2023-03-04T20:21:15.577 | null | null | 8,638,467 | null |
75,638,432 | 2 | null | 75,638,260 | 0 | null | You can wrap the `small` tag with a `div` tag and add inline CSS style `float:right`.
```
{% for entry in entries %}
<div class="card mb-3">
<h4 class="card-header">
{{ entry.title }}
<div style="float: right;">
<small>{{ entry.date_added|date:'M ... | null | CC BY-SA 4.0 | null | 2023-03-04T20:21:02.937 | 2023-03-04T20:21:02.937 | null | null | 3,443,037 | null |
75,638,431 | 1 | 75,638,569 | null | 3 | 57 | I'm looking at the RNG from K&R2 2.7 Type Conversions:
```
unsigned long int next = 1;
/* rand: return pseudo-random integer on 0..32767 */
int rand(void)
{
next = next * 1103515245 + 12345;
return (unsigned int)(next / 65536) % 32768;
}
/* srand: set seed for rand() */
void srand(unsigned int seed)
{
n... | Why divide a variable before type conversion? | CC BY-SA 4.0 | null | 2023-03-04T20:20:25.423 | 2023-03-04T20:48:16.667 | 2023-03-04T20:33:47.857 | 1,825,603 | 1,825,603 | [
"c"
] |
75,638,430 | 1 | null | null | 0 | 6 | Let's say that I have a Helm chart named "child" with the following `values.yaml`
```
name: "John"
greeting: "Hello {{ .Values.name }}"
```
And a template `test.yaml` with the following contents:
```
result: {{ tpl .Values.greeting $ }}
```
If I run the `helm template .` command, I get this output:
```
---
# Source: ... | Using parent values in a tpl function of a helm subchart | CC BY-SA 4.0 | null | 2023-03-04T20:20:25.237 | 2023-03-04T20:20:25.237 | null | null | 12,377,450 | [
"kubernetes-helm",
"helm3"
] |
75,638,436 | 1 | null | null | 0 | 6 | My website has 5 different WordPress installations. One is the homepage and four niches. All of them including the homepage has site kit wordpress plugin installed. So there are five different Google analytics. I want to add the four Google analytics from the four niches to the homepage analytics sọ the total figures o... | How do i merge the google analytics of a 5 niche WordPress on a single domain and 5 databases into one sọ the total traffic can be seen? | CC BY-SA 4.0 | null | 2023-03-04T20:21:24.390 | 2023-03-04T20:21:24.390 | null | null | 21,333,275 | [
"wordpress",
"google-analytics"
] |
75,638,435 | 1 | null | null | 0 | 11 | I want to add a `.mov` transparent overlay on top of a `.mp4` video, and for that I am using `movipy` and `CompositeVideoClip`, but it's too slow.
The speed is `40 it/s` when only the video is rendering but when it comes to the overlay it is only `5 it/s`. To speed it up I have used `use_bgclip=True` and now I get `90 ... | Python moviepy, CompositeVideoClip is Slow and Wierd | CC BY-SA 4.0 | null | 2023-03-04T20:21:18.503 | 2023-03-04T20:21:18.503 | null | null | 12,499,290 | [
"python",
"ffmpeg",
"video-processing",
"moviepy",
"video-editing"
] |
75,638,440 | 2 | null | 75,638,324 | 1 | null | `inkscape --shell` is a completely different thing than what `shell` means in `spawn`. The latter just means that you are running the process in a new shell, like `bash`. `--shell` for inkscape means that you will be put in a REPL shell where you can send commands to a running inkscape process.
Furthermore, the `child.... | null | CC BY-SA 4.0 | null | 2023-03-04T20:22:15.467 | 2023-03-04T20:22:15.467 | null | null | 1,087,119 | null |
75,638,439 | 2 | null | 75,638,129 | 2 | null | Eslint is yelling because the idea is to have in the dependency any variable defined outside of a `useEffect`, and that's used inside of it. In your case, you could use a function updater like so:
```
useEffect(() => {
setNavigation((navigation) =>
navigation.map((item) => ({
...item,
current: item.hr... | null | CC BY-SA 4.0 | null | 2023-03-04T20:22:07.167 | 2023-03-04T20:51:51.130 | 2023-03-04T20:51:51.130 | 15,288,641 | 15,288,641 | null |
75,638,443 | 2 | null | 75,638,442 | 0 | null | I found the answer while writing this question.
It seems [Knex has an open issue where it doesn't read the tsconfig](https://github.com/knex/knex/issues/4698) resulting in failing to resolve local paths.
You can fix this with adding following to the top of the knexfile.ts:
```
import 'tsconfig-paths/register';
```
Als... | null | CC BY-SA 4.0 | null | 2023-03-04T20:22:48.740 | 2023-03-04T20:22:48.740 | null | null | 5,373,971 | null |
75,638,442 | 1 | null | null | 0 | 4 | It seem I cannot seem to grok NX.
I have 2 packages in a [newly integrated NX project](https://nx.dev/getting-started/integrated-repo-tutorial).
We have @ici/shared and @ici/project.
@ici/project is a knex migration project, where the migration files use imports of @ici/shared.
Whenever I try to run the knex migration ... | nx - knex - Cannot find module '@nx-created-lib-project/something' | CC BY-SA 4.0 | null | 2023-03-04T20:22:48.740 | 2023-03-04T20:22:48.740 | null | null | 5,373,971 | [
"shared-libraries",
"knex.js",
"monorepo",
"nrwl-nx"
] |
75,638,425 | 1 | null | null | -1 | 30 | I am trying to get the `javascript` code on [this](https://stackoverflow.com/questions/65850680/how-to-extract-the-cartesian-coordinates-x-y-of-an-svg-image) old post - converting SVG files to x,y coordinates in plain-text format - to work, and I am wondering what I am missing - it looks so simple. I put my setup and r... | node.js and javascript library / script example : no output | CC BY-SA 4.0 | null | 2023-03-04T20:19:39.553 | 2023-03-05T01:36:04.560 | 2023-03-04T21:44:13.053 | 20,186,245 | 20,186,245 | [
"javascript",
"node.js",
"svg",
"command-line",
"nvm"
] |
75,638,444 | 1 | null | null | 0 | 48 | I am using this snippet of code
```
function sleep(s) {
return new Promise(resolve => setTimeout(resolve, s));
}
function run() {
for (let i = 0; i <= 200; i++) {
sleep(i * 1000).then(_ => {
console.log(`Waiting ${i} seconds...`);
})
};
}
run();
```
And with the help of this [link](https:... | How to stop the loop using the sleep function in javaScript? | CC BY-SA 4.0 | null | 2023-03-04T20:23:45.537 | 2023-03-05T00:10:20.980 | 2023-03-05T00:10:20.980 | 20,493,210 | 14,046,915 | [
"javascript"
] |
75,638,445 | 1 | 75,638,482 | null | -3 | 50 | In what real life case would you need
```
char *c = "Hello, world!";
```
more than
```
char c[] = "Hello, world!";
```
I'm not only talking about `Hello, world!` but in general. \
In what good case would you need `malloc()`?
| In what real life example are C pointers better than another type? / In what case would you need malloc()? | CC BY-SA 4.0 | null | 2023-03-04T20:23:48.753 | 2023-03-04T21:03:02.510 | 2023-03-04T20:26:24.007 | 21,327,910 | 21,327,910 | [
"c",
"string",
"pointers",
"char",
"malloc"
] |
75,638,441 | 1 | null | null | 0 | 14 | I'm creating an API rest using express, and for the documentation I'm using swagger-ui-express, when deploying my code to the aws lambda every endpoint is accesible from the API gateway, except the endpoint where the documentation is returned.
I'm using the swagger-ui-express package to deploy the documentation, this w... | Swagger Documentation not showing when deploying api rest that uses swagger-ui-express into a aws lambda with api gateway | CC BY-SA 4.0 | null | 2023-03-04T20:22:45.627 | 2023-03-05T00:09:21.750 | 2023-03-05T00:09:21.750 | 15,047,473 | 15,047,473 | [
"javascript",
"express",
"aws-lambda",
"aws-api-gateway",
"swagger-ui-express"
] |
75,638,447 | 2 | null | 75,638,039 | 0 | null | I am not sure what is happening, but `optimize:clear` just cleans everything: [https://github.com/laravel/framework/blob/e2a32f2c172a97966a8390f7387d57b50fed20bc/src/Illuminate/Foundation/Console/OptimizeClearCommand.php#L30-L44](https://github.com/laravel/framework/blob/e2a32f2c172a97966a8390f7387d57b50fed20bc/src/Ill... | null | CC BY-SA 4.0 | null | 2023-03-04T20:24:18.157 | 2023-03-04T20:24:18.157 | null | null | 1,998,801 | null |