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,619,922 | 2 | null | 72,234,218 | 0 | null | Thank you Jelphy. You did.
I worked around it deleting my local repo after extending maven to download ruby gems directly from ruby repositories.
Add the following snippets to pom.xml:
```
<build>
<extensions>
<extension>
<!-- Allows us to download Ruby gems -->
<!-- See https://gith... | null | CC BY-SA 4.0 | null | 2023-03-02T19:16:01.927 | 2023-03-02T19:16:01.927 | null | null | 17,232,977 | null |
75,619,925 | 1 | 75,620,340 | null | 1 | 31 | I'm creating some new algorithms for my project (Food App Generator) and I run into this problem of generating random new list from a pre-set dictionary of amount of same item I want to appear through out a week while not allowing the previous item to be the same.
Down below dictionary specifies food and amount of time... | How to Randomly generate a new list of items but not select previous item that has been selected? | CC BY-SA 4.0 | null | 2023-03-02T19:16:19.100 | 2023-03-02T20:25:11.777 | null | null | 19,381,612 | [
"python",
"python-3.x",
"list",
"dictionary"
] |
75,619,928 | 2 | null | 75,619,201 | 0 | null | There are mentioning it in the documentation [here](https://django-simple-history.readthedocs.io/en/latest/user_tracking.html#manually-track-user-model-1)
There are three parameters to `HistoricalRecords` or `register` that facilitate the ability to track a `history_user` manually:
`history_user_id_field`, `history_use... | null | CC BY-SA 4.0 | null | 2023-03-02T19:16:49.640 | 2023-03-02T21:51:11.940 | 2023-03-02T21:51:11.940 | 1,056,460 | 1,056,460 | null |
75,619,929 | 2 | null | 75,619,034 | 0 | null | You may try:
```
=lambda(z,filter(z,index(z,,1)<>""))(reduce({"Name","Emails","Year","Value"},sequence(counta(A2:A)),LAMBDA(a,c,{a;reduce(makearray(1,4,lambda(r,c,iferror(1/0))),sequence(counta(C1:D1)),lambda(x,y,{x;index(A2:A,c),index(B2:B,c),index(C1:D1,,y),index(C2:D,c,y)}))})))
```
[](https://i.stack.imgur.com/jQO... | null | CC BY-SA 4.0 | null | 2023-03-02T19:16:51.770 | 2023-03-02T19:16:51.770 | null | null | 5,479,575 | null |
75,619,927 | 2 | null | 75,617,204 | 1 | null | Use `luac` to display all active line numbers (in square brackets)
```
C:\>luac54 -l -p -
return function() -- A
function f1() -- B
f2(function() -- C
print"Hi" -- D
end)
end
end
^Z
main <stdin:0,0> (4 instructions at 000001f3e84f7880)
0+ params, 2 slots, 1 upvalue, 0 locals, 0 constants, ... | null | CC BY-SA 4.0 | null | 2023-03-02T19:16:42.810 | 2023-03-02T19:16:42.810 | null | null | 20,468,470 | null |
75,619,912 | 1 | 75,624,567 | null | 0 | 17 | I have several UVC-Cameras. When I plug them in they appear as "videoinout" into device manager and I can see them thru browser when I try to access them via navigator:
```
// Just driven straight inside empty browsers console.
navigator.mediaDevices.enumerateDevices( ).then( res => {
res.filter( ( d ) => {
... | How can I access UVC-Camera from USB (set/get -commands) while it is "videoinput" device for ReactCam in Windows environment? | CC BY-SA 4.0 | null | 2023-03-02T19:14:38.580 | 2023-03-03T08:05:44.123 | null | null | 21,321,124 | [
"reactjs",
"windows",
"usb",
"libusb",
"uvc"
] |
75,619,932 | 2 | null | 75,619,515 | 0 | null | You can add a rule [no-console](https://eslint.org/docs/latest/rules/no-console) as
```
no-console: "error"
```
or
```
"no-console": [ "error", { "allow": [""] ]
```
| null | CC BY-SA 4.0 | null | 2023-03-02T19:17:03.123 | 2023-03-02T19:17:03.123 | null | null | 9,153,448 | null |
75,619,931 | 1 | null | null | 0 | 27 | I have today added the FusionSolar integration through HACS so I can monitor my solar panel production in HA. Under Settings > Dashboards > Energy under solar panels I've added the sensor for today's production. However, when I go to the Energy dashboard, I only see the "Energy Distribution" card and the "Solar Product... | Home Assistant: solar production graph not working | CC BY-SA 4.0 | null | 2023-03-02T19:16:58.507 | 2023-03-04T23:34:23.907 | null | null | 7,478,471 | [
"home-assistant"
] |
75,619,930 | 1 | 75,625,157 | null | 1 | 26 | When using the programmatic way of extending `DefaultBatchConfiguration`, the meta tables are not created even when the property `spring.batch.jdbc.initialize-schema` is set to `always`.
Is there a way to enable auto schema initialization when extending `DefaultBatchConfiguration` ?
Code example:
```
@Configuration
pub... | Spring batch 5 and spring boot 3 meta data tables not created when using programmatic way of extending DefaultBatchConfiguration | CC BY-SA 4.0 | null | 2023-03-02T19:16:54.520 | 2023-03-03T09:27:35.340 | null | null | 4,994,633 | [
"spring",
"spring-boot",
"spring-batch"
] |
75,619,933 | 2 | null | 75,619,531 | 1 | null | Are you looking for something like this?
```
A <- c(2, 4)
B <- c(8, 16)
C <- c(3, 11)
C1<- c(11, 16)
library(sf)
library(sfheaders)
myline <- sf_linestring(matrix(rbind(A,B), ncol = 2))
mypoint <- sf_point(matrix(rbind(C,C1), ncol = 2))
st_length(st_nearest_points(mypoint, myline))
#[1] 0.2425356 7.0000000
```
visu... | null | CC BY-SA 4.0 | null | 2023-03-02T19:17:10.483 | 2023-03-03T07:35:47.813 | 2023-03-03T07:35:47.813 | 6,356,278 | 6,356,278 | null |
75,619,909 | 1 | null | null | 0 | 29 | I'd like to create a bar chart showing elapsed time of a series of events. Time displayed in the Y axis and Date in the X axis. I'd like y axis limits range from 6 am day 1 to 6 am day 2.
My data looks something like:
```
TS<- data.frame(Date = c("01/07/1985", "02/07/1985", "03/07/1985",
"04/07/1985", "05/07/1985", "0... | Stacked bar graph for time series of multiple events with ggplot | CC BY-SA 4.0 | null | 2023-03-02T19:14:20.883 | 2023-03-03T09:50:11.767 | 2023-03-03T09:50:11.767 | 17,409,744 | 17,409,744 | [
"r",
"ggplot2",
"time-series",
"bar-chart",
"stacked-chart"
] |
75,619,934 | 2 | null | 75,619,875 | 1 | null | One approach is to create a dictionary from `FieldName` and `Standard`:
```
d = dict(zip(mappings_df['FieldName'], mappings_df['Standard']))
info_df = info_df.rename(columns=d)
```
Note that [read_excel](https://pandas.pydata.org/docs/reference/api/pandas.read_excel.html) returns a `DataFrame`. The following can be si... | null | CC BY-SA 4.0 | null | 2023-03-02T19:17:15.947 | 2023-03-02T19:23:48.697 | 2023-03-02T19:23:48.697 | 9,245,853 | 9,245,853 | null |
75,619,943 | 2 | null | 47,061,662 | 0 | null | options.add_argument("--window-size=1440, 900")
after trying out what others recommended, this I taken from "Slyme" solved my issue. mine is a java framework.
| null | CC BY-SA 4.0 | null | 2023-03-02T19:17:52.907 | 2023-03-02T19:17:52.907 | null | null | 21,321,482 | null |
75,619,942 | 2 | null | 11,735,560 | 0 | null | edit -[ /home/$USER/.config/nvim/init.vim ]->
by commenting (adding a " just before eol) - the line -[ set listchars=tab:>\ ,trail:+,eol:$ ]->
so it looks like this -[ set listchars=tab:>\ ,trail:+,"eol:$ ]-
| null | CC BY-SA 4.0 | null | 2023-03-02T19:17:48.623 | 2023-03-02T19:45:06.240 | 2023-03-02T19:45:06.240 | 10,846,601 | 10,846,601 | null |
75,619,936 | 1 | null | null | 0 | 14 | I have one widget and would like to have two dynamic inputs using searchbar. Is that possible? Using ios14, widgetKit.
I could create two CustomIntents and the IntentHandler has two provideOptionsCollection, like so
```
func provideIntent1Collection(for intent: Intent1, with completion: @escaping (INObjectCollection<Se... | iOS WidgetKit - two dynamic Intents for one widget | CC BY-SA 4.0 | null | 2023-03-02T19:17:23.057 | 2023-03-02T19:17:23.057 | null | null | 6,616,489 | [
"swiftui",
"widgetkit",
"customintents"
] |
75,619,941 | 2 | null | 75,619,869 | 0 | null | Your select element has only one option which is already selected, so there is no actual "change" happening when you select that option again.
```
$('#firstSelect').on('change', function() {
console.log("selected");
alert($(this).find(":selected").val());
});
```
```
<script src="https://ajax.googleapis.com/ajax/li... | null | CC BY-SA 4.0 | null | 2023-03-02T19:17:48.573 | 2023-03-02T19:29:34.153 | 2023-03-02T19:29:34.153 | 1,967,864 | 1,967,864 | null |
75,619,938 | 2 | null | 50,138,145 | 0 | null | For some reason, jsch use a quite different authentication method.
TLDL;
Create a rsa-sha2-512 key (using a PEM format).
`ssh-keygen -t rsa-sha2-512 -m PEM -T '' -f ~/.ssh/id_rsa-sha2-512`
In cases where you cantt easily change key type:
1. recreate a rsa key (using a PEM format). ssh-keygen -t rsa -m PEM -T '' -f ~/.... | null | CC BY-SA 4.0 | null | 2023-03-02T19:17:28.897 | 2023-03-02T19:17:28.897 | null | null | 1,207,796 | null |
75,619,940 | 1 | null | null | 0 | 12 | I am not sure why I got errors every time I use utils "AttributeError: module 'utils' has no attribute 'plotData'" and also "AttributeError: module 'utils' has no attribute 'svmTrain'"
```
import os
import numpy as np
import re
from matplotlib import pyplot
from scipy import optimize
from scipy.io import loadmat
impor... | AttributeError: module 'utils' has no attribute 'svmTrain' | CC BY-SA 4.0 | null | 2023-03-02T19:17:43.323 | 2023-03-02T19:20:09.760 | 2023-03-02T19:20:09.760 | 535,275 | 21,321,383 | [
"python-3.x"
] |
75,619,945 | 1 | null | null | 0 | 15 | I am making a social media app with next.js and sanity as cms. I want a feature that if someone on other computer likes a post, it gets automatically live updated at someone else screen, just like twitter
I saw that sanity supports live update, but I can't understand its docs.
For example, I like a post here, it will m... | Sanity- Next.js real time updating content | CC BY-SA 4.0 | null | 2023-03-02T19:18:22.727 | 2023-03-02T22:56:41.113 | null | null | 21,267,834 | [
"next.js",
"real-time",
"sanity"
] |
75,619,939 | 2 | null | 75,619,043 | 0 | null | This is easier to illustrate in a 2-step process. There might be a way to combine to a single step.
Create a helper column which creates a starting point for a username. This will substitute a hyphen with nothing and force all to lowercase.
```
C2 formula: =LOWER(CONCAT(LEFT(A2,1),SUBSTITUTE(B2,"-","")))
```
Count t... | null | CC BY-SA 4.0 | null | 2023-03-02T19:17:30.917 | 2023-03-02T19:29:51.293 | 2023-03-02T19:29:51.293 | 13,118,009 | 13,118,009 | null |
75,619,948 | 1 | null | null | -1 | 37 | I am developing an art website inspired by :
[monopo.london](https://monopo.london/)
However after several days of development I still can't create a bouncing effect on scroll, like this one :
[the effect i am trying to recreate](https://monopo.london/work)
So, i tried to create a zoom in and out animation using : Twee... | How to create a bounce in and out on scroll effect? | CC BY-SA 4.0 | null | 2023-03-02T19:18:41.930 | 2023-03-03T21:13:32.537 | 2023-03-03T21:13:32.537 | 5,577,765 | 21,321,138 | [
"javascript",
"css",
"three.js",
"gsap",
"fragment-shader"
] |
75,619,949 | 1 | null | null | 0 | 16 | I want to make a histogram of data out of the `groupby` method in Pandas.
Here's the piece of code that I wrote:
```
df['Total Revenue'] = df['Quantity'] * df['UnitPrice']
df.groupby('Country')['Total Revenue'].sum().sort_values(ascending=False)
```
which produces this output:
```
Country
United Kingdom 81878... | Making a histogram out of groupby() data using Pandas in Python | CC BY-SA 4.0 | null | 2023-03-02T19:18:49.233 | 2023-03-02T19:18:49.233 | null | null | 16,372,930 | [
"python",
"pandas"
] |
75,619,954 | 1 | null | null | 0 | 11 | While passing time-series grouped data to a scikit RandomForestRegressor model, should the group id be mandatorily included in the dataset for training?
For reference, we are dealing with pipe segments. Each pipe segment has an id, its general characteristics, and a bunch of defect observations over time associated wit... | Grouped data training and prediction | CC BY-SA 4.0 | null | 2023-03-02T19:19:25.027 | 2023-03-02T19:19:25.027 | null | null | 5,640,500 | [
"time-series",
"regression",
"random-forest"
] |
75,619,946 | 1 | 75,620,325 | null | 0 | 50 | I have different types of numbers of type float and/or double.
I want to set these numbers to a specific format of 6 digits.
Examples:
```
1.01234
10.1234
101.234
1012.34
10123.4
101234
1.10000
1.33000
```
Regardless of how a number looks, whether is has a a decimal or it doesn't, I want it to be 6 digits.
So I have:
... | How can a number be formatted so the position of the decimal point varies with magnitude? | CC BY-SA 4.0 | null | 2023-03-02T19:18:30.433 | 2023-03-04T04:35:13.640 | 2023-03-04T04:35:13.640 | 5,103,317 | 21,267,377 | [
"java",
"android",
"string",
"android-studio"
] |
75,619,947 | 1 | null | null | 0 | 19 | We have some logic in my project to put files in an FTP server, we are getting this error: `ErrorException: ftp_fput(): Connection timed out in /var/www/vendor/league/flysystem-ftp/FtpAdapter.php:163.`
Despite the error, the files are actually being uploaded to the FTP server.
This is this configuration that we have:
`... | Getting Connection timed out with flysystem-ftp even when the file appears in FTP | CC BY-SA 4.0 | null | 2023-03-02T19:18:33.873 | 2023-03-02T19:18:33.873 | null | null | 13,119,215 | [
"laravel",
"laravel-9",
"flysystem"
] |
75,619,952 | 1 | null | null | 0 | 17 | I have installed the basics (nodejs, npm, selenium, python), which all claim to be there. I'm not using (haven't installed) Eclipse or other IDE -- just trying to make sure the infrastructure is working first.
So I am trying a Javascript "hello world" program to run from the windows command line. Windows Jscript throw... | Trying to get Selenium set up for Javascript in Windows: require statement not working | CC BY-SA 4.0 | null | 2023-03-02T19:19:06.237 | 2023-03-03T05:55:25.060 | 2023-03-03T05:55:25.060 | 11,107,541 | 11,352,518 | [
"javascript",
"node.js",
"windows",
"selenium-webdriver"
] |
75,619,951 | 2 | null | 75,619,531 | 1 | null | This is mostly a port of the javascript answer, though I've made it a bit more idiomatic for R. In particular, it uses vectors as arguments like the C++ answer (`vec2` just means a 2d vector), rather than supplying individual `x` and `y` points. To that end, I've defined your points using `x` and `y` values:
```
A <- c... | null | CC BY-SA 4.0 | null | 2023-03-02T19:19:00.870 | 2023-03-02T21:28:40.970 | 2023-03-02T21:28:40.970 | 12,545,041 | 12,545,041 | null |
75,619,953 | 1 | null | null | 0 | 45 | I have a dataframe which contains several ids in various columns. Some of those IDs are missing or could be duplicated. The goal is to group the DataFrame by those ids and keep properties in a list.
To show an example that I would like to get:
```
import pandas as pd
# initialize data of lists.
data = {'first_id': [... | Group Pandas DataFrame by multiple columns with connected IDs | CC BY-SA 4.0 | null | 2023-03-02T19:19:11.323 | 2023-03-02T22:37:10.990 | null | null | 5,108,517 | [
"python",
"pandas",
"dataframe",
"grouping"
] |
75,619,956 | 2 | null | 75,617,599 | 0 | null | Figured out the problem, hopefully this can help someone else in the future.
First: I set up my project weird. I made a repo in github and cloned it, but then made my app using create-t3-app. So my .next folder was not in my root directory.
1. Changed the root directory in Vercel -> Settings -> General to actually b... | null | CC BY-SA 4.0 | null | 2023-03-02T19:20:01.363 | 2023-03-02T19:20:01.363 | null | null | 11,309,195 | null |
75,619,950 | 1 | null | null | 0 | 19 | I am submitting a Dataflow batch job using the Google Workspace API. This dataflow job does data processing from multiple BQ tables. I am attempted to make one of the queries that is submitted to BQ a RuntimeValueProivder argument.
```
def run():
ARGS = ['--option=option,...']
class MyPipelineOptions(Pipel... | RunTimeValueProvider not being accepted during Batch Dataflow Job run from Google Workspace API | CC BY-SA 4.0 | null | 2023-03-02T19:18:57.343 | 2023-03-02T19:28:58.970 | 2023-03-02T19:20:03.647 | 21,305,873 | 21,305,873 | [
"python-3.x",
"google-bigquery",
"google-cloud-dataflow",
"apache-beam"
] |
75,619,960 | 1 | null | null | 0 | 29 | I need to iterate over an array-type object. I printed that object into the browser console. I am getting this value from a third-party UI control. Here is the image :
[](https://i.stack.imgur.com/3XKnz.png)
Now how can I iterate this array? I tried with the below code. But nothing comes:
```
element.formGroup.control... | Iterate over a array type object in Angular | CC BY-SA 4.0 | null | 2023-03-02T19:21:18.387 | 2023-03-02T20:26:16.137 | 2023-03-02T20:26:16.137 | 19,512,665 | 2,975,931 | [
"javascript",
"angular"
] |
75,619,961 | 2 | null | 57,340,540 | 0 | null | Full Code With NodeJS and instagram-private-api
```
require("dotenv").config();
const { IgApiClient } = require("instagram-private-api");
const postToInsta = async (orderDetails) => {
try {
//Contect Instagram API Client
const ig = new IgApiClient();
ig.state.generateDevice(process.env.IG_USERNAME);
... | null | CC BY-SA 4.0 | null | 2023-03-02T19:21:41.080 | 2023-03-02T19:26:57.637 | 2023-03-02T19:26:57.637 | 19,092,955 | 19,092,955 | null |
75,619,964 | 2 | null | 75,619,708 | 0 | null | The variable you pass to LaunchedEffect is used to tell it to launch the effect again each time it changes. Since you don't want this to happen, you should use a value that never changes. Conventionally, this is done by passing `Unit` or `true`.
```
LaunchedEffect(Unit) {
sendAddEvent(lastMethod)
}
// or
Launched... | null | CC BY-SA 4.0 | null | 2023-03-02T19:22:12.413 | 2023-03-02T19:22:12.413 | null | null | 506,796 | null |
75,619,935 | 1 | null | null | 1 | 18 | I have a table with 4 columns grouped by the second one, when rendering the page, not every group contains every row with that name, I checked that they share the same grouping name because when uncollapsing the group every group of the same name performs this action.
[screenshot of some groups collapsed](https://i.sta... | DataTables rowGroup not grouping every item correctly | CC BY-SA 4.0 | null | 2023-03-02T19:17:19.253 | 2023-03-02T19:46:46.153 | 2023-03-02T19:46:46.153 | 6,214,210 | 5,194,416 | [
"javascript",
"datatables"
] |
75,619,957 | 1 | null | null | 0 | 23 | I'm trying to do some automated testing in Dynamics 365, whose tables look like this
[](https://i.stack.imgur.com/4OoS1.png).
Each 'cell' here is an `<input>` element.
[](https://i.stack.imgur.com/8gAT3.png)
Inside that element is a link of some kind that directs you to another page. It's not an anchor `<a>`, or a `<bu... | Playwright: is there a selector for the text *inside* an <input>? | CC BY-SA 4.0 | null | 2023-03-02T19:20:40.193 | 2023-03-02T19:45:52.107 | 2023-03-02T19:45:52.107 | 5,879,768 | 5,879,768 | [
"css-selectors",
"automated-tests",
"playwright",
"playwright-python"
] |
75,619,955 | 1 | null | null | 0 | 23 | i would like to enable/disable the save button when any of the input value changes. What's wrong in my code? Now the button work properly only if i change the password input, if i change the email input and/or the name input then the button it stay disabled. I don't understand what's the matter because i specified that... | How to disable the submit button in react js with conditions? | CC BY-SA 4.0 | null | 2023-03-02T19:19:55.473 | 2023-03-02T19:19:55.473 | null | null | 20,657,335 | [
"javascript",
"reactjs"
] |
75,619,963 | 2 | null | 75,619,632 | 0 | null | We can use list comprehension to create `xticklabels` from `get_xticks()`, adding `':00'` to the end of the `xtick`, prepending `'0'`, then shortening the `str` to (the last) 5 indexes (i.e. formatted `xx:xx`):
```
subplot_number = 0
for i in important_cols[1:]:
subplot_number += 1
ax = plt.subplot(1, len(impor... | null | CC BY-SA 4.0 | null | 2023-03-02T19:22:10.357 | 2023-03-02T21:35:19.693 | 2023-03-02T21:35:19.693 | 16,785,596 | 16,785,596 | null |
75,619,958 | 2 | null | 75,616,403 | 1 | null | To match the first part in Java, you could use
```
(?:^/\*!\d{0,10}\h.*\h\*/;\R+)+(?=--$)
```
- `(?:`- `^`- `/\*!\d{0,10}`- `\h.*\h\*/;``*/;`- `\R+`- `)+`- `(?=--$)``--`
In Java:
```
String regex = "(?:^/\\*!\\d{0,10}\\h.*\\h\\*/;\\R+)+--$";
```
[Regex demo](https://regex101.com/r/RWe9v9/1)
---
To match both part... | null | CC BY-SA 4.0 | null | 2023-03-02T19:21:11.243 | 2023-03-02T19:28:39.097 | 2023-03-02T19:28:39.097 | 5,424,988 | 5,424,988 | null |
75,619,967 | 1 | null | null | 0 | 28 | Can we schedule notifications in Flutter to start firing sometime in Future and also be recurring like for eg reminding a user to take medicines from 6th march 9:00 AM and then everyday on 9:00 AM and the date and time currently is 3rd March 10:00 AM?
If I do this with [flutter_local_notifications](https://pub.dev/pack... | Future and Recurring Notifications | CC BY-SA 4.0 | null | 2023-03-02T19:22:42.660 | 2023-03-04T11:23:22.150 | 2023-03-04T11:23:22.150 | 11,979,146 | 14,117,609 | [
"flutter",
"dart"
] |
75,619,965 | 2 | null | 75,619,478 | 0 | null | If a method is the for an event emitted elsewhere, use `@listens`, `@event`. The class in the `ClassName#eventName` notation is the class of the of the event.
```
initialize: function() {
/**
* Anonymous event handler.
*
* @listens myModel#change:foo
*/
this.model.... | null | CC BY-SA 4.0 | null | 2023-03-02T19:22:28.323 | 2023-03-02T19:22:28.323 | null | null | 1,166,087 | null |
75,619,971 | 1 | null | null | 0 | 7 | I am very happy with the "Bino 3D" app on my Windows operating system, but when I display a side-by-side video in anaglyph, it is nicely centred, three-dimensional and has a good aspect ratio. But I always have to go close to the screen to see the film well. Is there a way to change the video size in terms of height/wi... | How can I enlarge the video in "Bino 3D"? (more inches) | CC BY-SA 4.0 | null | 2023-03-02T19:23:18.353 | 2023-03-03T12:55:09.807 | 2023-03-03T12:55:09.807 | 3,195,477 | 17,850,579 | [
"3d"
] |
75,619,968 | 2 | null | 75,618,317 | 1 | null | Your memory consumption is at ~2GB, and the garbage collector is unable to free up any, despite trying very hard. Some allocation request needs more memory than is left available, so a crash is the only option to deal with that.
Solution 1: use less memory. The details depend on your application:
- - - - -
Solution 2:... | null | CC BY-SA 4.0 | null | 2023-03-02T19:23:02.460 | 2023-03-02T19:23:02.460 | null | null | 6,036,428 | null |
75,619,974 | 1 | null | null | 0 | 23 | I'm working on this method and trying to add a unit test for it. However, I don't have any idea about result, so I'm trying to verify the variable `cantidad` with `assertNotNull` to resolve the distinct condition, but can not continue.
```
cantidad = mapsCodigoError.getHaspMapCodigos().size();
if (cantidad != 0) {
... | How to resolve Unit test for this method whit Assertions or mocks? | CC BY-SA 4.0 | null | 2023-03-02T19:23:38.703 | 2023-03-03T00:19:13.527 | 2023-03-03T00:19:13.527 | 893,952 | 21,321,469 | [
"java",
"junit",
"mockito"
] |
75,619,962 | 1 | null | null | 0 | 36 | I have two problems, but the main one is that the hover I am doing on a button changes the color of the text but does not change the background color and I do not understand how to fix it.
The second problem is that I have had to put its own background and it does not look good, but if not directly I do not catch the b... | Hover in a button not changing background-color | CC BY-SA 4.0 | null | 2023-03-02T19:21:59.007 | 2023-03-02T20:34:22.890 | 2023-03-02T20:23:19.763 | 616,443 | 21,111,764 | [
"html",
"css"
] |
75,619,972 | 1 | null | null | 1 | 14 | This is my caching mechanism to "make sure" that I don't have to connect to mongoDB several times.
```
let cachedClient
async function makeDB() {
if (cachedClient) {
return cachedClient.db('invoice')
}
cachedClient = await client.connect()
return cachedClient.db('invoice')
}
```
However I am w... | How does the Firebase Cloud Functions instance Lifecycle look like? does my caching even make sense? | CC BY-SA 4.0 | null | 2023-03-02T19:23:19.677 | 2023-03-02T19:23:19.677 | null | null | 12,120,371 | [
"mongodb",
"google-cloud-functions"
] |
75,619,978 | 2 | null | 69,320,790 | 0 | null | The issue is the library I was importing was calling `sns.set()` internally
| null | CC BY-SA 4.0 | null | 2023-03-02T19:24:10.077 | 2023-03-02T19:24:10.077 | null | null | 11,278,044 | null |
75,619,976 | 2 | null | 75,604,972 | 0 | null | I found a solution. As is usually the case in such cases, I made the problem myself. In the model file in the first line, where it defines the mid field, there is a comma "," at the end, which is why django did not want to do the migration and therefore did not see the changes between the table definition in the databa... | null | CC BY-SA 4.0 | null | 2023-03-02T19:24:01.940 | 2023-03-02T19:24:01.940 | null | null | 1,005,023 | null |
75,619,973 | 2 | null | 75,619,739 | 1 | null | In your case regexp is not a good option as it's quite costly and the alternation `(..|..| 90K items)` will cause a huge regex backtracking.
Convert your `lst2` into a `set` object beforehand and find intersection to each splitted sentence:
```
def count_keys_within(lst1, lst2):
keys = set(lst2)
for s in lst1:... | null | CC BY-SA 4.0 | null | 2023-03-02T19:23:21.593 | 2023-03-03T19:07:30.057 | 2023-03-03T19:07:30.057 | 3,185,459 | 3,185,459 | null |
75,619,979 | 2 | null | 69,984,233 | 0 | null | In case someone is on the same boat...when `s3a://` is used, EMR Spark writes to any SSE-KMS enabled S3 bucket with a default AWS-managed KMS key regardless of:
1. The bucket default KMS key settings
2. The KMS key specified in the EMR configuration (eg. here)
| null | CC BY-SA 4.0 | null | 2023-03-02T19:24:12.350 | 2023-03-02T19:24:12.350 | null | null | 8,529,250 | null |
75,619,970 | 1 | null | null | 0 | 40 | I want to move from the folder named Main a file and it should go to Folder 1 every 15 seconds and from Main to Folder 2 every 60 seconds.
The problem is that folders 1 and 2 will conflict on 60 seconds tick. For Folder 1 it would be 4th time ticking and taking files from Folder Main and for Folder 2 it will be the fir... | File relocator in C# | CC BY-SA 4.0 | null | 2023-03-02T19:23:17.363 | 2023-03-02T20:15:32.740 | 2023-03-02T20:10:37.113 | 102,937 | 21,321,449 | [
"c#",
"timer",
"file-move"
] |
75,619,981 | 2 | null | 75,618,911 | 0 | null | You should wrap your `Func<T, bool>` into expression:
```
public T Get<T>(Expression<Func<T, bool>> predicate)
{
var entityName = GetEntitySetName<T>();
var query = _d365Context.CreateQuery<T>(entityName);
return query.Where(predicate).FirstOrDefault();
}
```
The reason is that a query cannot be constructed in s... | null | CC BY-SA 4.0 | null | 2023-03-02T19:24:35.623 | 2023-03-02T19:30:10.617 | 2023-03-02T19:30:10.617 | 21,278,191 | 21,278,191 | null |
75,619,966 | 1 | null | null | 0 | 32 | I have an error in . My Visual Studio is up to date.
[](https://i.stack.imgur.com/akK15.png)
[](https://i.stack.imgur.com/IvKfL.png)
The license file "LICENSE.md" does not exists in the package. [NuGet Error NU5030](https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu5030)
---
The files are loc... | NuGet Error NU5030 - The license file 'LICENSE.txt' does not exist in the package | CC BY-SA 4.0 | null | 2023-03-02T19:22:31.620 | 2023-03-03T02:01:20.750 | 2023-03-02T20:53:09.293 | 3,158,594 | 3,158,594 | [
"c#",
".net",
"visual-studio",
"msbuild",
"nuget"
] |
75,619,988 | 2 | null | 75,619,088 | 1 | null | Try this measure:
```
=
VAR ThisProduct =
MIN( Products[Product] )
RETURN
COUNTROWS( FILTER( Query1, SEARCH( ThisProduct, Query1[M0_List],, 0 ) > 0 ) )
```
| null | CC BY-SA 4.0 | null | 2023-03-02T19:25:20.680 | 2023-03-02T19:25:20.680 | null | null | 17,007,704 | null |
75,619,984 | 1 | null | null | -3 | 27 | PHP function `array_filter` accepts an anonymous function
```
<?php
$numbers = [12, 18, 5, 11, 10, 95, 3];
$multiple_five = array_filter($numbers, function($n) {
return $n%5 == 0;
});
```
Is it possible to write a functionin in PHP doing exactly what `array_filter` does? If it is, how?
| Write a function in php doing exactly what array_filter does | CC BY-SA 4.0 | null | 2023-03-02T19:25:11.333 | 2023-03-02T19:46:45.353 | 2023-03-02T19:46:45.353 | 4,381,271 | 4,381,271 | [
"php",
"callback",
"anonymous-function"
] |
75,619,975 | 1 | null | null | 0 | 20 | I'm using PhotoCapture API with Unity 2021. After extracting the image and spatial data, how can I obtain the respective 3d point from the image pixel coordinate?
I use this class for acquiring the image from Hololens2 Webcam. It's similar to Unity's example available in the documentation.
```
public class HololensScre... | Obtaining a 3D point from an image obtained with Unity PhotoCapture and Hololens 2 | CC BY-SA 4.0 | null | 2023-03-02T19:23:49.133 | 2023-03-02T19:23:49.133 | null | null | 8,551,282 | [
"unity3d",
"augmented-reality",
"hololens",
"mrtk",
"windows-mixed-reality"
] |
75,619,985 | 1 | null | null | 0 | 31 | I have been trying to use VLOOKUP between 2 Excel files Where i need to search the value of a specific column from Another Excel file, in the Another sheet (Sheet2), I am suppose to use filter based on a specific value.
For Eg:
```
Col1 Col2
ID223 Active
ID225 Not Active
ID667 Static
ID345 Active
ID67... | Formula to Use VLOOKUP on the filtered Data only | CC BY-SA 4.0 | null | 2023-03-02T19:25:14.327 | 2023-03-02T21:25:15.073 | null | null | 6,812,076 | [
"excel",
"vba"
] |
75,619,987 | 1 | null | null | -1 | 18 | I am using TypeScript and just started unit testing.
I am using mysql2 package to connect with mysql database.
As a best practice I created a wrapper class around the mysql2 package and now I am testing the functions in that class to make sure they call `mysql2` functions with the right params and return the correct re... | How to spy on a function which is inside an object created by a module in Jest? | CC BY-SA 4.0 | null | 2023-03-02T19:25:16.760 | 2023-03-02T19:25:16.760 | null | null | 20,911,344 | [
"typescript",
"jestjs",
"ts-jest",
"mysql2"
] |
75,619,986 | 2 | null | 75,619,881 | 1 | null | In the absence of a `break` or `continue` statement, the body of the loop executes in its entirety before the condition is checked again. After setting `test = "something changes in this try statement, should break while condition"`, the condition `test == None` evaluate to false, but not until the body of the loop co... | null | CC BY-SA 4.0 | null | 2023-03-02T19:25:15.420 | 2023-03-02T19:25:15.420 | null | null | 1,126,841 | null |
75,619,980 | 2 | null | 75,618,911 | 1 | null | Using `Func` makes your query to switch to `IEnumerable` so it will need to fetch all data. OData needs to work with `IQueryable` to be able to translate the query (the same goes for LINQ-based ORMs like EF Core). From [OData docs](https://learn.microsoft.com/en-us/odata/client/query-options) (assuming you are using it... | null | CC BY-SA 4.0 | null | 2023-03-02T19:24:20.887 | 2023-03-02T19:32:24.640 | 2023-03-02T19:32:24.640 | 2,501,279 | 2,501,279 | null |
75,619,993 | 1 | 75,620,060 | null | 0 | 42 | I wanted to convert from 03FEB23 format to yyyy-mm-dd in python
how can I do it?
Use the below code:
```
from pyspark.sql.functions import *
df=spark.createDataFrame([["1"]],["id"])
df.select(current_date().alias("current_date"), \
date_format("03MAR23","yyyy-MMM-dd").alias("yyyy-MMM-dd")).show()
```
| How can i convert from 03MAR23 format to yyyy-mm-dd in python | CC BY-SA 4.0 | null | 2023-03-02T19:25:55.180 | 2023-03-02T19:46:50.067 | 2023-03-02T19:30:55.660 | 9,375,102 | 8,084,131 | [
"python",
"dataframe",
"pyspark"
] |
75,619,994 | 2 | null | 75,585,053 | 0 | null | The issue happens to be with the `entrez_query` format.
```
from Bio.Blast import NCBIWWW as ncbi
from Bio.Blast import NCBIXML
seq2 = 'CCTTCATTCTTCTGTATTGGAGACTTACAGTTGGCACAAGGCTTGGAGTT'
result1 = ncbi.qblast("blastn", "nr", seq2, entrez_query='txid9823[ORGN]')
blast_records = NCBIXML.parse(result1)
records_list = [... | null | CC BY-SA 4.0 | null | 2023-03-02T19:26:02.877 | 2023-03-02T19:26:02.877 | null | null | 11,286,032 | null |
75,619,997 | 2 | null | 75,619,034 | 0 | null | Another shorter approach; assuming your source table is at the top left of a sheet, use the following:
```
={{"Name","Email","Year","Value"};arrayformula(split(flatten(A2:A5&"|"&B2:B5&"|"&C1:D1&"|"&C2:D5),"|"))}
```
Change the cell references to match your real dataset.
| null | CC BY-SA 4.0 | null | 2023-03-02T19:26:08.490 | 2023-03-02T19:26:08.490 | null | null | 18,645,332 | null |
75,619,998 | 1 | null | null | -2 | 14 | I have a different problem!
I created a VM on azure, it has the windows 10 image, and with a GPU, it was created correctly!
The problem is when I connect to the VM it starts and then restarts, does anyone have a solution?
espero uma solução!..
| VM azure restarting by itself | CC BY-SA 4.0 | null | 2023-03-02T19:26:09.440 | 2023-03-02T22:10:10.577 | 2023-03-02T22:10:10.577 | 781,754 | 21,321,452 | [
"azure"
] |
75,619,995 | 2 | null | 75,619,619 | 1 | null | I think you need to first convert the string values to float values before casting to an array of floats. Maybe something like this:
```
from pyspark.sql.functions import col, transform
df = df.withColumn("val", transform(col("val"), lambda x: x.cast("float")))
df = df.withColumn("val", col("val").cast("array<float>"... | null | CC BY-SA 4.0 | null | 2023-03-02T19:26:07.237 | 2023-03-02T19:26:07.237 | null | null | 2,566,740 | null |
75,619,991 | 1 | null | null | 0 | 17 | Reason I'm asking: pycurl requires both `libcurl-devel` and `openssl-devel`. To install these, I have these two lines the my .bash_profile:
```
sudo yum install libcurl-devel
sudo yum install -y openssl-devel
```
Previously, I just ran those commands in the terminal while ssh'd into the EC2 instance.
However, it seems... | EC2 .bashrc and .bash_profile re-setting | CC BY-SA 4.0 | null | 2023-03-02T19:25:38.740 | 2023-03-02T19:32:56.603 | null | null | 13,468,711 | [
"python",
"django",
"amazon-ec2",
"pycurl",
"amazon-linux-2"
] |
75,619,989 | 1 | null | null | -1 | 11 | Given Import Statements
```
import pandas as pd
import numpy as np
import tensorflow as tf
import tensorflow.keras as keras
from tensorflow.keras.models import Sequential
from tensorflow.keras import layers
from keras.utils.np_utils import to_categorical
from sklearn.model_selection import train_test_split
```
The B... | Partial Label Subset data on Cifar10 erroing while using 'from keras.utils.np_utils import to_categorical ' | CC BY-SA 4.0 | null | 2023-03-02T19:25:31.610 | 2023-03-02T19:44:56.143 | 2023-03-02T19:44:56.143 | 2,458,922 | 2,458,922 | [
"python",
"keras"
] |
75,619,983 | 1 | null | null | 1 | 35 | I have a page and I want to allow only users with a certain claim (CanViewContract) to access it. The api controller works as expected but the blazor side cannot read that claim, and always gives me an unauthorized error.
I use this attribute at the top of the page:
```
@attribute [Authorize(Policy = "CanViewContract")... | Implement User Claims, Blazor WASM | CC BY-SA 4.0 | null | 2023-03-02T19:24:55.650 | 2023-03-04T12:51:46.193 | 2023-03-03T11:30:29.317 | 4,486,780 | 4,486,780 | [
"blazor",
"blazor-webassembly"
] |
75,620,001 | 2 | null | 75,618,839 | 0 | null | Another way using `melt` and `merge` which will allow you to run this over multiple columns.
```
s = pd.melt(df,id_vars=['ID','Date'])
s['indicator'] = (
s.groupby(['ID','Date','value'])['value']\
.transform('size') > 1).astype(int)
)
df_out = pd.merge(df,s.drop_duplicates(
subset=... | null | CC BY-SA 4.0 | null | 2023-03-02T19:27:05.603 | 2023-03-02T19:27:05.603 | null | null | 9,375,102 | null |
75,620,002 | 1 | null | null | 0 | 9 | My question is, Is there Any other tools, packages other than express-jsdoc-swagger to create OpenAPI 3 Specification code from jsondoc comments.
I want to read jsondoc comments from files and get compiled OpenAPI 3 code. I dont need ui or anything, just code
| from jsondoc comments to OpenAPI 3 Specification code | CC BY-SA 4.0 | null | 2023-03-02T19:27:06.977 | 2023-03-02T19:49:07.260 | 2023-03-02T19:49:07.260 | 21,245,797 | 21,245,797 | [
"node.js",
"express",
"openapi",
"jsdoc"
] |
75,620,004 | 1 | null | null | 0 | 13 | I am developing a script in python using selenium, what it does is that it runs automatically enter a login insert username and password and submit, finally it reaches a page that shows a datatable, I need to download this datatable I don't know if I can use selenium or is there another way.
The problem is that I see t... | Download json from datatable automatically | CC BY-SA 4.0 | null | 2023-03-02T19:27:29.587 | 2023-03-02T19:27:29.587 | null | null | 21,321,477 | [
"javascript",
"python"
] |
75,620,009 | 1 | 75,620,212 | null | 0 | 25 | Suppose I have data, P, that is a 3x3x10 array and a matrix, q, that is a 10x3 matrix. A function, pv_fun, takes P[,,i] as an input and q[i,] as an input:
```
P=array(runif(90,0,1),c(3,3,10))
q=matrix(runif(30,0,1),nrow = 10)
pv.fun<-function(Prob,Prev){
solve(diag(as.vector(Prob%*%Prev)))%*%Prob%*%diag(Prev)
}
```
... | apply involving array and matrix | CC BY-SA 4.0 | null | 2023-03-02T19:28:13.140 | 2023-03-02T19:53:36.633 | null | null | 2,853,230 | [
"r",
"apply"
] |
75,620,003 | 1 | 75,620,067 | null | -1 | 30 | This is a recurring theme. I'm trying to return an object (in this case a list of NpiResponseModel) with JsonConvert, what would be the proper way to do this? In the below scenario I receive that cannot convert type NpiResponseModel to Generic.List. Thanks!
```
public List<NpiResponseModel> LookupByNpiNumber(NpiReque... | CS0029 Cannot convert Type to Type with JsonConvert.DeserializeObject | CC BY-SA 4.0 | null | 2023-03-02T19:27:16.750 | 2023-03-02T19:34:29.097 | 2023-03-02T19:29:18.117 | 22,656 | 659,328 | [
"c#",
"json.net"
] |
75,620,006 | 1 | 75,621,925 | null | 0 | 12 | I am using [ctrip apollo](https://github.com/apolloconfig/apollo) to manage the application config, now I want to switch the application config from properties format to yaml format. First I added the yaml namespace called `application-yaml`, then add config in the legacy properties like this:
```
# apollo namespaces
a... | Could not load config for namespace application-yaml from Apollo, please check whether the configs are released in Apollo | CC BY-SA 4.0 | null | 2023-03-02T19:27:34.593 | 2023-03-02T23:46:48.217 | null | null | 2,628,868 | [
"java",
"spring-boot",
"ctrip-apollo"
] |
75,619,996 | 1 | 75,620,105 | null | 0 | 23 | I have a table in Google Sheets with the following structure:
| Start Date | End Date |
| ---------- | -------- |
| Start Date 1 | End Date 1 |
| Start Date 2 | End Date 2 |
| Start Date 3 | End Date 3 |
I'm using the following formula:
`IFERROR(FLATTEN( SEQUENCE(DATEDIF(D2,E2,"D"), 1, D2, 1), SEQUENCE(DATEDIF(... | Create flatten dates sequence in Google Sheets in one column (without using MACRO FUNCTIONS) | CC BY-SA 4.0 | null | 2023-03-02T19:26:07.420 | 2023-03-04T18:31:41.347 | 2023-03-04T18:31:41.347 | 16,487,945 | 16,487,945 | [
"arrays",
"google-sheets",
"arraylist",
"sequence",
"flatten"
] |
75,620,011 | 1 | 75,620,076 | null | 0 | 22 | Just wondering if anyone knows why there is sometimes a linear correlation between the `latency` value (jitter buffer size in ms) in webrtcbin as added latency on a smooth network?
It seems that with some downstream elements, it adds latency linearly. As far as I understand, this is the max time packets will stay in th... | Why does webrtcbin's jitter buffer size affect latency when there is no jitter? | CC BY-SA 4.0 | null | 2023-03-02T19:28:16.873 | 2023-03-02T19:35:25.663 | null | null | 3,783,770 | [
"gstreamer"
] |
75,620,012 | 1 | null | null | 0 | 11 | I have the following Snippet that changes Woo default behaviour and makes everything purchasable. As soon as stock quantity reaches zero it goes to "Backorder".
```
// Change all products stock statuses to 'instock'
add_filter( 'woocommerce_product_get_stock_status', 'filter_get_stock_status_callback', 10, 2 );
add_fil... | How to filter Stock status from "Out of Stock" to "Backorder" when quantity reaches zero in Woocommerce | CC BY-SA 4.0 | null | 2023-03-02T19:28:19.780 | 2023-03-02T19:28:19.780 | null | null | 21,321,503 | [
"wordpress",
"woocommerce",
"code-snippets"
] |
75,620,017 | 2 | null | 75,619,950 | 0 | null | You should try using [flex templates](https://cloud.google.com/dataflow/docs/guides/templates/using-flex-templates) instead.
| null | CC BY-SA 4.0 | null | 2023-03-02T19:28:58.970 | 2023-03-02T19:28:58.970 | null | null | 582,333 | null |
75,620,013 | 1 | null | null | -1 | 24 | I have few mobile applications (.NET Maui) consuming gRPC Services. All these mobile apps started crashing after a VS2022 update (ver. 17.5.1) release. see pic below.
VS2022 Preview (17.6.0 preview 1.0) shows same error. I am trying to Rollback VS2022 to previous version; it cannot be rolled back.
I have a desktop a... | (VS2022) .Net MAUI and gRPC service: Failing Issue | CC BY-SA 4.0 | null | 2023-03-02T19:28:24.427 | 2023-03-02T19:28:24.427 | null | null | 2,475,838 | [
".net",
"grpc",
"visual-studio-2022",
"maui"
] |
75,620,016 | 2 | null | 62,233,763 | 0 | null | The solution for me was to authenticate with a special flag on the gcloud login command which adds the extra scope that @shollyman mentioned in their answer.
`gcloud auth login --update-adc --enable-gdrive-access`
via [https://cloud.google.com/bigquery/docs/external-data-drive#enable-google-drive](https://cloud.google.... | null | CC BY-SA 4.0 | null | 2023-03-02T19:28:38.680 | 2023-03-02T19:35:04.800 | 2023-03-02T19:35:04.800 | 352,432 | 352,432 | null |
75,619,999 | 1 | null | null | 0 | 13 | Getting this exception while attempting to animate a button inside a sliver list.
```
SemanticsNode#5(Rect.fromLTRB(1.0, 1.0, 392.0, 18.0), tags: [RenderViewport.twoPane], label: "hello", textDirection: ltr) (with SemanticsOwner#0852b) tried to set a non-finite rect.
'package:flutter/src/semantics/semantics.dart':
Fai... | SemanticsNode tried to set a non-finite rect | CC BY-SA 4.0 | null | 2023-03-02T19:26:33.413 | 2023-03-02T19:26:33.413 | null | null | 20,824,592 | [
"ios",
"flutter"
] |
75,620,020 | 2 | null | 75,494,633 | 0 | null | Don't have an answer but I just update KB to latest version and same thing. Could not even log out until I moved the app dir away. Kinda renders the module useless yes?
| null | CC BY-SA 4.0 | null | 2023-03-02T19:29:14.250 | 2023-03-02T19:29:14.250 | null | null | 21,321,565 | null |
75,620,014 | 1 | null | null | 0 | 20 | In my Heads or Tails code, randomly it will yield incorrect results. For example, I will type in Heads and the computer will choose Tails and the display would say You Win! instead of You lose! or both inputs can be Heads and the display will say You lose!
Below is the code. I have it to ask Heads or Tails and once use... | Head or Tails code - Beginner Python developing | CC BY-SA 4.0 | null | 2023-03-02T19:28:34.250 | 2023-03-02T19:28:34.250 | null | null | 21,321,458 | [
"python-3.x"
] |
75,620,010 | 2 | null | 75,619,601 | 1 | null | There's a few things to unpack so bear with me.
> Next, I am trying to use the Admin API Alerts method to sending a simple push notification to a user. This Alerts API requires the Institution ID and a Unique Customer Identifier.
There's some confusion there to clear up. The [Alerts endpoints](https://jackhenry.dev/op... | null | CC BY-SA 4.0 | null | 2023-03-02T19:28:13.337 | 2023-03-02T19:28:13.337 | null | null | 6,680,761 | null |
75,620,022 | 2 | null | 75,619,993 | 1 | null | ```
from datetime import datetime
date_str = '03FEB23'
date = datetime.strptime(date_str, '%d%b%y')
formatted_date = date.strftime('%Y-%m-%d')
print(formatted_date) # Output: 2023-02-03
```
| null | CC BY-SA 4.0 | null | 2023-03-02T19:29:36.757 | 2023-03-02T19:29:36.757 | null | null | 3,632,409 | null |
75,619,990 | 1 | null | null | 0 | 14 | I am trying to achieve a morphing text effect using CSS, Tailwind, and Javascript in my React app. I do this with the use of a ColorMatrix and a filter, to overlay and subtract the differences between two of the same texts. Unfortunately, while this works well on Google Chrome, the performance dwindles on Safari. Is th... | Laggy/Choppy React CSS Filter on Safari | CC BY-SA 4.0 | null | 2023-03-02T19:25:31.670 | 2023-03-02T19:25:31.670 | null | null | 12,664,825 | [
"css",
"reactjs",
"safari",
"colormatrix"
] |
75,620,024 | 1 | null | null | 0 | 20 | I have an API subscription key which is used to access API. I need to provide the subscription key in header. I have stored the subscription key in Key Vault and need to access it in my custom policy IEF azure ad b2c. It is important to note that i need to pass subscription key in api header
I tried the policy keys op... | How do i access a key from my azure keyvault in Azure ad b2c custom IEF policy? | CC BY-SA 4.0 | null | 2023-03-02T19:29:41.117 | 2023-03-02T22:10:01.243 | 2023-03-02T22:10:01.243 | 781,754 | 21,321,527 | [
"azure",
"azure-active-directory",
"azure-ad-b2c",
"azure-ad-b2c-custom-policy"
] |
75,620,023 | 1 | null | null | -1 | 23 | I tried to define the module name based on parameters or defines imported from a package, but got the following error in Vivado:
```
module
`ifdef DEFINE1
ModuleName1 (
`elsif DEFINE2
ModuleName2 (
`endif
input CLK,
....
```
message ERROR: [IP_Flow 19-264] [HDL Parser] No interface information is availa... | Use different module names based on defines | CC BY-SA 4.0 | null | 2023-03-02T19:29:38.623 | 2023-03-02T19:34:08.157 | 2023-03-02T19:34:08.157 | 197,758 | 21,321,457 | [
"module",
"verilog",
"conditional-compilation"
] |
75,620,026 | 1 | null | null | -1 | 35 | ```
<div className='external-btn-cont'>
<button className='external-score-btn' onClick={SENDSCORE}>Submit</button>
</div>
```
How to do it?
| I want to make a button enabled only at specific time. How to do it | CC BY-SA 4.0 | null | 2023-03-02T19:29:55.653 | 2023-03-02T21:19:46.503 | null | null | 21,309,128 | [
"javascript",
"reactjs"
] |
75,620,018 | 1 | null | null | 0 | 31 | I set up a simple enemy in my unity 2D platformer game but it should move towards the player after a little bit of time but that doesn't happen.
I post the code below; the problem is that "transform.position = Vector2.MoveTowards(transform.position, playerPosition, JumpAttackSpeed * Time.deltaTime);" doesn't work and I... | Enemy don't attack in Unity 2D | CC BY-SA 4.0 | null | 2023-03-02T19:29:02.087 | 2023-03-03T08:28:04.700 | null | null | 21,320,824 | [
"c#",
"unity3d"
] |
75,620,027 | 1 | null | null | 0 | 18 |
```
let log = "log";
function a() {
console.log(log);
}
export { a };
```
```
import { a } from "./script1.js";
a(); // log
console.log(log) // Uncaught ReferenceError: log is not defined
```
Why does this work? Why does the function know what `log` is even though `log` is not defined?
| Why are variables in functions passed from one module to another? | CC BY-SA 4.0 | null | 2023-03-02T19:30:00.847 | 2023-03-02T19:30:00.847 | null | null | 3,016,745 | [
"javascript",
"function",
"variables",
"es6-modules"
] |
75,620,021 | 2 | null | 75,618,301 | 0 | null | I've updated the date filter to format yyyy-mm-dd hh24:mi:ss but getting a different error ==> ORA-01841: (full) year must be between -4713 and +9999, and not be 0
'"
Bad File: spam.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 row... | null | CC BY-SA 4.0 | null | 2023-03-02T19:29:35.590 | 2023-03-02T19:29:35.590 | null | null | 4,450,608 | null |
75,620,025 | 1 | null | null | 0 | 33 | I have two components, and where `tab` must be the parent tag having one or many nested `tab-content`s.
Inside I need to have a list of all tab-content child id attributes before calling `{{ $slot }}`.
```
<x-tab>
<x-tab-content id="a">testA</x-tab-content>
<x-tab-content id="b">testB</x-tab-content>
<x-... | Getting child attributes in Laravel 9x blades | CC BY-SA 4.0 | null | 2023-03-02T19:29:43.157 | 2023-03-02T19:46:42.757 | 2023-03-02T19:46:42.757 | 1,239,185 | 1,239,185 | [
"php",
"laravel",
"laravel-blade",
"laravel-9"
] |
75,620,028 | 1 | null | null | 0 | 42 | I'm new to Azure and not totally sure if I my assumptions are correct.
I've got the following requirement:
I need to provide public access to images but it should not be possible to have access to the folder structure and list all files there. Also the link should be anonymized. Is this possible?
In other words:
Link: ... | Azure Blob Storage: Image sharing configuration | CC BY-SA 4.0 | null | 2023-03-02T19:30:13.140 | 2023-03-02T19:30:13.140 | null | null | 11,896,214 | [
"azure",
"azure-blob-storage"
] |
75,620,031 | 2 | null | 75,619,539 | 0 | null | You can attach a button to the keyboard and close it when the button is pressed using `FocusState` like so:
```
@State private var number = ""
@FocusState private var isFocused
TextField("What's your favourite number?", text: $number)
.keyboardType(.numberPad)
.focused($isFocused)
.toolbar {
Toolb... | null | CC BY-SA 4.0 | null | 2023-03-02T19:30:55.217 | 2023-03-02T19:30:55.217 | null | null | 15,963,676 | null |
75,620,033 | 2 | null | 75,619,926 | 0 | null | > Does cmake set INTERNAL apply FORCE?
Yes.
> By INTERNAL implies FORCE does this mean that FORCE is applied,
Yes.
> Are the following equivalent?
Yes.
| null | CC BY-SA 4.0 | null | 2023-03-02T19:31:07.723 | 2023-03-02T19:31:07.723 | null | null | 9,072,753 | null |
75,620,030 | 2 | null | 75,619,960 | 2 | null | JavaScript has Arrays which are in brackets `[]` and Objects which are in `{}`.
You can go over their element with the for..in loop (more on [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in)):
``... | null | CC BY-SA 4.0 | null | 2023-03-02T19:30:47.847 | 2023-03-02T19:30:47.847 | null | null | 19,512,665 | null |
75,620,034 | 1 | null | null | -1 | 25 | I'm creating a flappy bird-game as a start up-project to learn the basics of Unity.
I've created pipes that spawn upon starting the game, and these pipes always spawn in the front of everything else, which means that my score text falls behind the pipes, together with my game over-menu.
I understand that UI-objects tha... | Bringing forward objects while spawning UI-objects in Unity2D | CC BY-SA 4.0 | null | 2023-03-02T19:31:19.387 | 2023-03-02T22:06:54.010 | null | null | 21,321,549 | [
"c#",
"unity3d",
"unityscript"
] |
75,620,036 | 2 | null | 55,249,773 | 1 | null | One could use something like
```
for SCOPE in system,global,local ; do
EDITOR=/bin/cat git config --${SCOPE} --edit >> /path/to/my_git_config_file
done
```
to get the config values concatenated into an INI format file which can be read back in by git.
| null | CC BY-SA 4.0 | null | 2023-03-02T19:31:26.550 | 2023-03-02T19:31:26.550 | null | null | 21,321,440 | null |
75,620,035 | 2 | null | 75,619,657 | -2 | null | Maybe `$_SERVER['HTTP_AUTHORIZATION']` ?
| null | CC BY-SA 4.0 | null | 2023-03-02T19:31:22.930 | 2023-03-03T04:07:00.297 | 2023-03-03T04:07:00.297 | 5,067,761 | 21,205,257 | null |
75,620,029 | 2 | null | 75,618,070 | 0 | null | After a few hours of investigation, I've came up with a solution (with the help of ChatGPT :)
I changed:
```
builder.Services.AddSwaggerGen();
```
To:
```
builder.Services.AddSwaggerGen(c =>
{
c.DocumentFilter<SwaggerIgnoreFilter>();
});
```
Created the Class 'SwaggerIgnoreFilter':
```
public class SwaggerIgnoreF... | null | CC BY-SA 4.0 | null | 2023-03-02T19:30:32.893 | 2023-03-02T19:30:32.893 | null | null | 9,219,508 | null |