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,635,892 | 1 | null | null | 1 | 23 | I have a class which structurally isn't very different from this:
```
internal class Class1
{
string? member;
[MemberNotNull(nameof(member))]
private void SetupMembers() => member = "some value";
private int DoCalculation() => member.Length; // Possible null reference
public int ExternalMethod()
... | C# is it possible to escalate "possible null reference" warning to caller of method | CC BY-SA 4.0 | null | 2023-03-04T13:15:35.280 | 2023-03-04T13:47:08.877 | null | null | 1,978,365 | [
"c#",
"nullable-reference-types"
] |
75,635,890 | 1 | null | null | -7 | 21 | question 1.
There are two weights, one big and one small. The big weight can snap any rope when attached and dropped. The small
weight reduces the number of newtons by 1 each time it is dropped attached to a rope. For example, a rope which
requires 3 newtons of force to snap will take 1 drop with the big weight and 3 d... | Snap the ropes using array | CC BY-SA 4.0 | null | 2023-03-04T13:15:26.443 | 2023-03-04T13:15:26.443 | null | null | 17,092,646 | [
"python",
"arrays"
] |
75,635,889 | 1 | null | null | 3 | 30 | I working with AsyncEnumerables to read a bunch of files into my C# application (.NET 6) and want to add an option to cancel reading. However I'm confused by the behaviour of `ToArrayAsync` when provided with a `cancellationToken`.
I tried to break it down to this snippet:
```
var enumerable = Enumerable.Range(1, 10)
... | How does cancellation work for IAsyncEnumerable.ToArrayAsync()? | CC BY-SA 4.0 | null | 2023-03-04T13:15:18.093 | 2023-03-04T19:59:51.783 | 2023-03-04T19:59:51.783 | 11,178,549 | 19,508,375 | [
"c#",
".net-6.0",
"cancellation-token",
"iasyncenumerable",
"ix.net"
] |
75,635,896 | 1 | null | null | 0 | 16 | I need to create a new schema for my app via ASP.NET CORE migrations.
My connection string:
```
"ConnectionStrings": { "NAMECONNECTION": "Server=127.0.0.1;Port=5432;Database=databasename;User Id=postgres;Password=mypass;" }
```
Now the problem is, it is creating a new , and places its tables inside schema. I would li... | How to connect to a Schema in PostgreSQL from ASP.NET CORE | CC BY-SA 4.0 | null | 2023-03-04T13:16:02.017 | 2023-03-04T15:15:36.197 | 2023-03-04T15:15:36.197 | 19,693,556 | 19,693,556 | [
"c#",
"postgresql",
"asp.net-core",
"entity-framework-core"
] |
75,635,863 | 1 | 75,635,958 | null | 0 | 36 | I have a page with a Table, this table is controlled with other inputs which are put in common through a custom hook, I try to read the values in the hook in the page where the component is but although the values inside the hook are updated they are not read in the page
to clarify
[Page] - contains -> [ table ] - con... | custom hook not reading value updated by reducer | CC BY-SA 4.0 | null | 2023-03-04T13:09:57.347 | 2023-03-04T18:33:05.423 | 2023-03-04T18:33:05.423 | 6,470,117 | 6,470,117 | [
"reactjs",
"react-hooks",
"use-reducer"
] |
75,635,895 | 2 | null | 75,635,851 | 3 | null | You can split the string into parts by the space with the `.split(" ")` method. And then just use the first element of the created array.
## Example
```
query = query.split(" ")[0]
```
## With your code
```
const getShortUrl = (string) => {
let query = string.trim().replaceAll('"', '');
query = query.split("... | null | CC BY-SA 4.0 | null | 2023-03-04T13:15:55.577 | 2023-03-04T13:15:55.577 | null | null | 1,371,995 | null |
75,635,888 | 1 | null | null | 0 | 9 | I am trying to implement checkstyle in a standard out-of-the-box project for Android. However, the tasks for checkstyle do not get added even though I am implementing the plugin. What am I doing wrong?
The official documentation for checkstyle just mentions applying the plugin and then the tasks are supposed to be crea... | Checkstyle task does not get added for android project | CC BY-SA 4.0 | null | 2023-03-04T13:15:10.273 | 2023-03-04T13:15:10.273 | null | null | 21,331,588 | [
"java",
"android",
"gradle",
"checkstyle"
] |
75,635,899 | 2 | null | 75,633,024 | 0 | null | It's not just if the first fails. If either Observable fails, the other will be disposed and your onNext will not be called.
There are a few different ways to solve this, and they all involve turning the `error` event into a `next` event.
You could use:
```
Observable.zip(api1.materialize(), api2.materialize())
.su... | null | CC BY-SA 4.0 | null | 2023-03-04T13:16:30.317 | 2023-03-04T20:44:52.790 | 2023-03-04T20:44:52.790 | 506,441 | 506,441 | null |
75,635,901 | 1 | null | null | 1 | 15 | I'm trying to pause a video playback started with `FFPLAY` through a python `subprocess`. You can do this manually by pressing the "p" key on the keyboard while the video is playing. I'd like to emulate this behavior through a python call.
I'm now sending a "p" string, encoded as bytes, through the `stdin` of the `Pope... | how to write subcommand to FFPLAY during playback using subprocess module? | CC BY-SA 4.0 | null | 2023-03-04T13:16:40.257 | 2023-03-04T13:16:40.257 | null | null | 9,687,467 | [
"python",
"python-3.x",
"ffmpeg",
"subprocess",
"ffplay"
] |
75,635,884 | 1 | null | null | -1 | 18 | In Python, is this possible?
my code for class boid, colliding with 2 other classes (not using complex coordinates):
class Boid(pygame.sprite.Sprite):
```
def __init__(self):
super().__init__()
self.image = pygame.transform.flip(boid_img, True, False)
self.x = (random.randint(0, scre... | Colliderect with complex numbers as position | CC BY-SA 4.0 | null | 2023-03-04T13:15:01.363 | 2023-03-04T13:43:33.970 | 2023-03-04T13:43:33.970 | 13,694,400 | 13,694,400 | [
"python",
"numpy",
"pygame",
"collision"
] |
75,635,897 | 1 | null | null | 0 | 16 | I was trying to push comment in the post schema my Post schema looks like this
```
const postSchema = new mongoose.Schema({
content:{
type: String,
required: true,
},
user:{
type:mongoose.Schema.Types.ObjectId,
ref:'User'
},
commments: [
{
type:mo... | getting an error on pushing the object inside the array in mongoose TypeError: Cannot read properties of undefined (reading 'push') | CC BY-SA 4.0 | null | 2023-03-04T13:16:03.807 | 2023-03-04T13:23:21.470 | 2023-03-04T13:23:21.470 | 9,267,467 | 14,072,518 | [
"javascript",
"node.js",
"mongodb",
"mongoose",
"nodejs-server"
] |
75,635,902 | 1 | null | null | 0 | 21 | I need to configure a two tier application consisting of 2 servers each and I need to do it for 100 servers. For example frontendsrv-01 needs to be configured to point to backendsrv-01 and frontendsrv-02 need to be configured to point to backendsrv-02 and so on as shown below:
```
frontendsrv-01 -> backendsrv-01
front... | Dynamically generate endpoint variable that is different for each host in Ansible | CC BY-SA 4.0 | null | 2023-03-04T13:16:43.550 | 2023-03-05T05:09:33.510 | null | null | 3,138,929 | [
"ansible"
] |
75,635,907 | 2 | null | 75,635,844 | 0 | null | You can use [random.sample](https://docs.python.org/3/library/random.html#random.sample), as pointed out by @slothrop:
```
luckynumber = random.sample(range(1, 50), 6)
```
| null | CC BY-SA 4.0 | null | 2023-03-04T13:17:41.240 | 2023-03-04T13:17:41.240 | null | null | 5,956,261 | null |
75,635,906 | 1 | null | null | 0 | 4 | import ContentCopyIcon from '@mui/icons-material/ContentCopy';
import { Grid,Button } from '@mui/material';
export default function SharePlaceComponent(props) {
```
const handleCopyLink = (myLink) => {
}
return (
<Grid container spacing={2} style={{ margin: 5 }}>
<Grid item xs={4}>
<Button s... | What changes can be made in handleCopyLink function to implement copy and paste commands | CC BY-SA 4.0 | null | 2023-03-04T13:17:27.947 | 2023-03-04T13:17:27.947 | null | null | 18,027,675 | [
"reactjs",
"button",
"grid",
"copy",
"paste"
] |
75,635,908 | 2 | null | 73,607,837 | 0 | null | I fixed this by making sure that `tls` in spec is present of ingress
```
spec:
tls:
- hosts:
- deck.spinnaker.abc.com
secretName: spin-deck-tls
```
| null | CC BY-SA 4.0 | null | 2023-03-04T13:17:58.407 | 2023-03-04T13:17:58.407 | null | null | 12,421,507 | null |
75,635,910 | 2 | null | 75,635,654 | 0 | null | First make `data class or normal class` and add some parameters
```
data class SomeContent(
...
...
)
```
after that pass this data class in `TopSection` composable function
```
TopSection(
someContent:SomeContent
){
....
....
}
```
you can also take reference from `Text` composable function , where it... | null | CC BY-SA 4.0 | null | 2023-03-04T13:18:07.863 | 2023-03-04T13:18:07.863 | null | null | 9,741,578 | null |
75,635,912 | 1 | null | null | 0 | 5 | I want to be able to display data from one site in my wordpress multisite network on another site. Please what is the easiest way to acheive this?
Are there any exixting plugin to do this?
Been looking for answers, never seem to find one.
| I want to be able to display data from one site in my wordpress multisite network on another site | CC BY-SA 4.0 | null | 2023-03-04T13:18:41.553 | 2023-03-04T13:18:41.553 | null | null | 19,321,842 | [
"php",
"wordpress",
"plugins",
"wordpress-rest-api",
"multisite"
] |
75,635,913 | 2 | null | 71,849,981 | 0 | null | This seems to be similar to this question: [React Native running in emulator gives bundling failed: permission denied error](https://stackoverflow.com/questions/51622425/react-native-running-in-emulator-gives-bundling-failed-permission-denied-error)
Try the solution under it, it solves my problem.
| null | CC BY-SA 4.0 | null | 2023-03-04T13:18:47.790 | 2023-03-04T13:18:47.790 | null | null | 10,905,370 | null |
75,635,914 | 1 | null | null | 0 | 16 | Is it possible for an end user to manually change the contents of an Axios request (in React), e.g. with developer tools, when my back-end requires an authentication token with each request?
If yes, is there a way to prevent this? I want to make sure all data sent to the php back-end results from real user-interactions... | Can users manually change authenticated Axios requests? | CC BY-SA 4.0 | null | 2023-03-04T13:18:53.773 | 2023-03-04T13:18:53.773 | null | null | 13,473,983 | [
"php",
"reactjs",
"authentication",
"axios",
"jwt"
] |
75,635,916 | 2 | null | 75,480,878 | 0 | null | It seems disabling control resizing solved the problems.
| null | CC BY-SA 4.0 | null | 2023-03-04T13:19:21.097 | 2023-03-04T13:19:21.097 | null | null | 13,019,353 | null |
75,635,905 | 1 | null | null | 0 | 7 | I want to install udp2raw on my VPS Ubuntu20. I run this command on my server.
```
./udp2raw_x86 -s -l0.0.0.0:68 -r 127.0.0.1:53 -k "passwd" --raw-mode faketcp -a
```
i get this result
[enter image description here](https://i.stack.imgur.com/k0KDU.jpg)
the port i use came from this
[enter image description here](https... | UDP2RAW Tunnel on android | CC BY-SA 4.0 | null | 2023-03-04T13:17:25.887 | 2023-03-04T13:17:25.887 | null | null | 16,980,457 | [
"shell",
"github",
"udp",
"port",
"vpn"
] |
75,635,917 | 1 | null | null | 0 | 7 | When I try upload file with CodeIgniter 4 I have this error:
> File could not be uploaded: missing temporary directory.
How can I set upload_tmp_dir in CodeIgniter app?
| upload_tmp_dir in CodeIgniter 4 | CC BY-SA 4.0 | null | 2023-03-04T13:19:21.647 | 2023-03-04T13:19:21.647 | null | null | 7,683,760 | [
"php",
"codeigniter-4"
] |
75,635,915 | 2 | null | 75,635,878 | 0 | null | I fix two div
if screen size is small run the first else run the other
```
<div class="small"> <?php
$myVar=100;
echo'<svg width="'.$myVar.'" height="'.$myVar.'">';
echo'<circle cx="50" cy="50" r="40" stroke="yellow" stroke-width="4" fill="green" />';
echo'</svg> ';
?>
</div>
<div class="big"> <... | null | CC BY-SA 4.0 | null | 2023-03-04T13:19:07.607 | 2023-03-04T13:19:07.607 | null | null | 17,944,895 | null |
75,635,903 | 2 | null | 75,635,786 | 2 | null | Updated, given character columns, and new 32 column example
```
df["new"] = apply(df[, -c(29:32)], 1,\(x) ifelse(sum(as.numeric(x))>0, "positive", "negative"))
```
# Original answer (assuming numeric columns):
You can simply do this:
```
df["new"] =ifelse(rowSums(df[,-(1:3)])>0, "positive", "negative")
```
Output:... | null | CC BY-SA 4.0 | null | 2023-03-04T13:16:46.740 | 2023-03-04T14:37:23.117 | 2023-03-04T14:37:23.117 | 4,447,540 | 4,447,540 | null |
75,635,921 | 2 | null | 75,635,844 | 2 | null | `random.sample` will give you a sample of random elements from a population, with each element guaranteed to be different. So you can do that and not have to worry about finding and replacing duplicates.
[Link to standard library documentation](https://docs.python.org/3/library/random.html#random.sample)
In your code ... | null | CC BY-SA 4.0 | null | 2023-03-04T13:19:45.063 | 2023-03-04T13:19:45.063 | null | null | 765,091 | null |
75,635,904 | 1 | null | null | 0 | 6 | On a .NET 6 Web App I use OAuth2 with an external provider for authentication. The access token is valid for two hours, an renew token is available as well. I want to use the access token from the OAuth provider to get more data from the providers API, but the access_token is not renewed after it's expired.
I'm looking... | .NET 6 OAuth2 renew token | CC BY-SA 4.0 | null | 2023-03-04T13:17:12.137 | 2023-03-04T13:17:12.137 | null | null | 4,161,736 | [
"oauth-2.0",
"asp.net-core-webapi",
".net-6.0"
] |
75,635,911 | 2 | null | 65,923,766 | 0 | null | @4source's solution had some errors for me, fixed it:
```
import React, { useEffect, useState } from "react";
import TextField from "@mui/material/TextField";
import Autocomplete, { createFilterOptions } from "@mui/material/Autocomplete";
type Options = {
id?: number;
label?: string;
name: string;
create?: bo... | null | CC BY-SA 4.0 | null | 2023-03-04T13:18:26.023 | 2023-03-04T13:18:26.023 | null | null | 14,427,002 | null |
75,635,919 | 1 | null | null | 0 | 13 | I would like to display latest date based on values on other columns.
I have data in excel and would like to display value in powerbi.
Based on the data below I would like to show when Ania Started A. This date should be displayed always without additional filters set manually.
| Date | Status | Name |
| ---- | -----... | Power BI: latest date based on values in other columns | CC BY-SA 4.0 | null | 2023-03-04T13:19:40.690 | 2023-03-04T20:16:08.287 | 2023-03-04T20:13:58.333 | 16,528,000 | 20,443,485 | [
"date",
"filter",
"powerbi"
] |
75,635,920 | 2 | null | 75,611,389 | 0 | null | Actually, you shouldn t need to create a new many2many fields "channel_ids" in your myStudent-model, because this field is already existing in its inheriting model (res.partner)...
But, if you somehow really need to create a new many2many fields on the same co-model ("mail.channel"?) for a different purpose than the or... | null | CC BY-SA 4.0 | null | 2023-03-04T13:19:43.040 | 2023-03-04T17:15:19.317 | 2023-03-04T17:15:19.317 | 3,854,191 | 3,854,191 | null |
75,635,923 | 1 | null | null | -2 | 23 | I have absolutely no clue on how to write a bash script. I let chatgpt create one and its not bad actually. However, I want to include something which it cant seem to figure out haha. I let the script open pdf files and I look at them review them then I will be prompted to give a rating. The pdf closes and the next one... | Bash script for reviewing pdf files | CC BY-SA 4.0 | null | 2023-03-04T13:20:14.263 | 2023-03-04T13:20:14.263 | null | null | 17,230,038 | [
"bash",
"pdf"
] |
75,635,909 | 1 | null | null | 1 | 20 |
I am creating an invoice page.
To populate the row data I am using a dropdown (i don't know a better way).
I can successfully insert the data on the first row but, when I select the dropdown on the next row, it changes the value of the first one and the new row remains blank.
What am I doing wrong?
How can this be s... | How to insert rows dynamically in html bootstrap table, with values from dropdownlist in .net 5.0? | CC BY-SA 4.0 | null | 2023-03-04T13:18:01.623 | 2023-03-04T15:57:26.753 | 2023-03-04T15:57:26.753 | 16,955,137 | 16,955,137 | [
"javascript",
"c#",
"html",
"asp.net-core",
"bootstrap-4"
] |
75,635,931 | 2 | null | 68,025,275 | 0 | null | Delete .firebasesrc file and your good to go
| null | CC BY-SA 4.0 | null | 2023-03-04T13:21:15.390 | 2023-03-04T13:21:15.390 | null | null | 18,264,585 | null |
75,635,925 | 1 | null | null | 0 | 13 | I understand the difference between an IDR frame (=this and every frame after this frame can be decoded without reference to previous frames) and an I-frame (this frame can be decoded without reference to any other frame (including any previous frame).
As far as I understand, "previous" in the definition above refers t... | What is the sense of non-IDR I-frames with recovery points SEI and exact_match=1 in a h264 stream | CC BY-SA 4.0 | null | 2023-03-04T13:20:30.790 | 2023-03-04T15:20:16.023 | 2023-03-04T15:20:16.023 | 1,207,489 | 1,207,489 | [
"h.264"
] |
75,635,926 | 2 | null | 3,219,393 | 0 | null | Expanding on the answer of @AndrejsCainikovs, here is a code that works for 24-bits rgb code (both for font and background color) with terminals that supports such code (Xterm, KDE's Konsole, and iTerm, as well as all libvte based terminals, including GNOME Terminal according to [https://en.wikipedia.org/wiki/ANSI_esca... | null | CC BY-SA 4.0 | null | 2023-03-04T13:20:39.787 | 2023-03-04T14:00:50.690 | 2023-03-04T14:00:50.690 | 9,381,746 | 9,381,746 | null |
75,635,927 | 2 | null | 75,635,753 | 4 | null | No, however here are some ideas you may be interested in.
### Pass a reference to the stack
You could pass a reference to the stack to the functions, and let them pop arguments off themselves.
```
use v5.10;
sub compare {
my $v1 = pop @{ $_[0] };
my $v2 = pop @{ $_[0] };
if ( $v1 < $v2 ) {
retur... | null | CC BY-SA 4.0 | null | 2023-03-04T13:20:42.953 | 2023-03-04T13:34:30.613 | 2023-03-04T13:34:30.613 | 1,990,570 | 1,990,570 | null |
75,635,930 | 2 | null | 75,635,590 | 0 | null | You were almost there with your first option, adding `labelpad` to the `ax.set_xlabel()` and `ax.set_ylabel()` calls should fix your issue.
Here is an updated version.
```
# [...]
fig, axs = plt.subplots(2, 2, figsize=(16, 8), tight_layout=True)
# [...]
# Create the new axis for marginal X and Y labels
ax = fig.add_... | null | CC BY-SA 4.0 | null | 2023-03-04T13:21:08.923 | 2023-03-04T13:32:38.740 | 2023-03-04T13:32:38.740 | 11,080,037 | 11,080,037 | null |
75,635,933 | 2 | null | 75,634,326 | 0 | null | ```
mawk '{ __[$11] += (_= $9 - __[$11]) * (-_<_)
} END { for(_ in __) { print _, +__[_] } }'
ENSGALP00010000228 10
ENSGALP00010000157 16
ENSGALP00010000035 26
```
==========
UPDATE 1 : multi-`awk` compatibility testing :
```
for __ in nawk mawk1 mawk2 'gawk -e' 'gawk -Pe' 'gawk -ce' 'gawk -te'; do
echo " $... | null | CC BY-SA 4.0 | null | 2023-03-04T13:21:25.260 | 2023-03-05T05:04:29.590 | 2023-03-05T05:04:29.590 | 14,672,114 | 14,672,114 | null |
75,635,934 | 2 | null | 63,428,971 | 0 | null | Please store the value of search input in a separate state and set that state value to filters on click of search button like follows
```
export default function Search() {
const [filter, setFilter] = useState({ name: 'Hungary' });
const [formdata, setFormData] = useState({ countryName: '' });
const { data, loading, er... | null | CC BY-SA 4.0 | null | 2023-03-04T13:21:27.140 | 2023-03-04T13:21:27.140 | null | null | 14,145,906 | null |
75,635,937 | 2 | null | 75,635,774 | 0 | null | Problem 1:
```
v_sql := 'CREATE TABLE V_STUDENTS AS SELECT * FROM ' || v_table_name || ' WHERE 1=2; ';
```
will produce
```
v_sql := 'CREATE TABLE V_STUDENTS AS SELECT * FROM V_STUDENTS WHERE 1=2; ';
```
There should not be a semi-colon in that statement after the `2`, and you can't create a table that doesn't exist ... | null | CC BY-SA 4.0 | null | 2023-03-04T13:22:04.970 | 2023-03-04T13:22:04.970 | null | null | 12,913,491 | null |
75,635,922 | 1 | null | null | 1 | 11 | I am new to programming and do not know much about it. I recently tried to make a hamburger menu for my website and when it's zoomed in, the headers don't go inside of it. Does anyone know how to fix it?

```
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
... | Does anyone know why when I zoom into my hamburger menu, all of the content headers in the navigation bar are out of it? | CC BY-SA 4.0 | null | 2023-03-04T13:19:52.150 | 2023-03-04T14:05:46.530 | 2023-03-04T14:05:46.530 | 2,395,282 | 21,323,845 | [
"javascript",
"html",
"css"
] |
75,635,939 | 1 | null | null | 0 | 7 | I have a node app that uses a worker thread to do some stuff with `tensforflow.js`. When I compile using `tsc`, all is good. It works fine.
However, when I try to bundle with either `esbuild` or `rollup`, I get a handful of errors along these lines when running the bundles:
> node:internal/event_target:1033process.next... | Bundling @tensorflow/tfjs-node requires mock-aws-s3 | CC BY-SA 4.0 | null | 2023-03-04T13:22:17.110 | 2023-03-04T13:22:17.110 | null | null | 343,159 | [
"node.js",
"typescript",
"tensorflow.js",
"rollup",
"rollupjs"
] |
75,635,940 | 1 | null | null | -2 | 10 | I have a Gigabyte Aorus NVMe Gen4 SSD.
When I try to copy files into it, it freezes and gives this error `0x800701B1`
- It changes from NTFS to RAW file system.- It gets disconnected from disk management when I rescan disk.- And the SSD temperature get increased.
I tried.
- `chkdsk /f /r`
I want to install windows 11 i... | Why my SSD freezes and not found while performing task on it? | CC BY-SA 4.0 | null | 2023-03-04T13:22:34.733 | 2023-03-04T13:22:34.733 | null | null | 20,615,354 | [
"windows",
"disk",
"windows-11",
"solid-state-drive"
] |
75,635,936 | 2 | null | 75,635,814 | 0 | null | Since you will not change the size of Tic-Tac-Toe board you can initialize it as static size 2-dimensional array. Possible options below.
I also attach the Microsoft documentation:
[Jagged Arrays](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/arrays/jagged-arrays), [Multidemensional Arrays](https://... | null | CC BY-SA 4.0 | null | 2023-03-04T13:22:02.130 | 2023-03-04T13:22:02.130 | null | null | 21,299,794 | null |
75,635,942 | 1 | null | null | 1 | 8 | Good morning everyone.
I need some help to go over the problem I am encountering.
I would like to know how would you guys do to resolve this problem.
I have a custom multi select component and I can add selected element from the options inside the multi select to show which option is selected.
When I select an option i... | Hide tag children when div exceed Multi Select width and show X selected in a tag | CC BY-SA 4.0 | null | 2023-03-04T13:22:45.317 | 2023-03-04T13:22:45.317 | null | null | 16,220,935 | [
"javascript",
"html",
"css",
"reactjs"
] |
75,635,944 | 2 | null | 17,895,497 | 2 | null | yes, the condition must have "<"or ">" or ">=" or "<="
as we need to apply a limit to the loop. when you use "==" the loop will test if the number is equal to 5 or not and of course 0 is not equal to 5 and hence the loop will be terminated. where as when you use "<" the loop will check if the value of "i" is less than ... | null | CC BY-SA 4.0 | null | 2023-03-04T13:22:56.157 | 2023-03-04T13:22:56.157 | null | null | 21,232,911 | null |
75,635,946 | 1 | null | null | 0 | 12 | Qwik has a built in plugin for AuthJS called qwik auth (which as far as I am aware is undocumented). I’m not having any issue with it except that I want a custom login page (I want my form to authenticate the user instead of the default ugly form on /api/auth/signin) but I cannot figure out how to do this. Because ther... | Custom Login Page in Qwik with Qwik-auth plugin | CC BY-SA 4.0 | null | 2023-03-04T13:22:59.113 | 2023-03-04T13:22:59.113 | null | null | 17,667,472 | [
"authentication",
"qwik"
] |
75,635,941 | 1 | null | null | 0 | 9 | I 've successfully installed cpu version, shown as below,
[](https://i.stack.imgur.com/yOYLF.png)
I am using macOS 11.4, shown as below:
[](https://i.stack.imgur.com/b7i6H.png)
I read from pytorch website, saying it is supported on masOS 12.3 or later version, shown as below:
[](https://i.stack.imgur.com/LHaA8.png)
in ... | how to install gpu accelerated-gpu version pytorch on mac OS (M1)? | CC BY-SA 4.0 | null | 2023-03-04T13:22:35.067 | 2023-03-04T13:22:35.067 | null | null | 17,765,892 | [
"installation",
"pytorch",
"macos-big-sur"
] |
75,635,945 | 1 | null | null | 0 | 4 | I keep receiving an error when calling the bittrex api (v3).
My signature does not seem to be correct, but i do not know why.
I've been spending a lot of time on this but don't seem to get to the issue.
I have the feeling that something is wrong with my hash encoding, but can't seem to figure out what.
Could you help m... | Invalid signature: Bittrex Api - Python 3.10 | CC BY-SA 4.0 | null | 2023-03-04T13:22:56.840 | 2023-03-04T13:22:56.840 | null | null | 5,667,745 | [
"authentication",
"hash",
"encode"
] |
75,635,935 | 1 | null | null | 0 | 28 | I am faced with this situation and I don't know if I'm doing it right. I have a classic ViewModel that I use for CRUD operations. Is it a good practice to instantiate the collection each time with "new" in order to apply filters? (see the Task DoSearch at the end).
I wondered about this because I don't know what it mea... | Update a list (ObservableCollection) after instantiating it in the class constructor (MVVM e WINUI) | CC BY-SA 4.0 | null | 2023-03-04T13:21:34.040 | 2023-03-04T16:52:43.617 | 2023-03-04T14:35:03.087 | 3,378,110 | 3,378,110 | [
"c#",
"mvvm",
"winui-3",
"windows-community-toolkit"
] |
75,635,947 | 1 | null | null | 0 | 14 | I'm trying to read data from a flow meter device called TUF_2000 using modbus-serial library
the data I trying to read is in two registers but I don't know how to, the result I got is showing 2 buffer.
```
const ModbusRTU = require("modbus-serial");
const client = new ModbusRTU();
// open connection to a serial port
c... | Using modbus rtu with nodejs | CC BY-SA 4.0 | null | 2023-03-04T13:23:11.433 | 2023-03-04T13:41:16.260 | 2023-03-04T13:41:16.260 | 21,331,614 | 21,331,614 | [
"javascript",
"node.js",
"modbus",
"modbus-rtu-over-tcp"
] |
75,635,943 | 1 | null | null | 0 | 22 | I recently tried to rerun some old code. When I ran
```
install.packages('tidyverse')
```
it came back with the error message:
> Error: package or namespace load failed for ‘tidyverse’:
.onAttach failed in attachNamespace() for 'tidyverse', details:
call: NULL
error: package or namespace load failed for ‘ggplot2’ in l... | Install rlang 1.0.6 but reads as 1.0.2 | CC BY-SA 4.0 | null | 2023-03-04T13:22:47.440 | 2023-03-04T15:05:39.280 | 2023-03-04T15:05:39.280 | 17,303,805 | 7,282,088 | [
"r",
"tidyverse",
"r-package",
"rlang"
] |
75,635,948 | 2 | null | 75,615,285 | 0 | null | you can do this:
```
import { setUser, setAccessToken } from '[API/PATH]';
```
then you have access dispatch in `onCacheEntryAdded`.
you can do it with `queryFn` too you have the dispatch as the second argument like `queryFn: (value, { dispatch }) => ...`
```
loginUser : builder.mutation({
query: (value) => ({
... | null | CC BY-SA 4.0 | null | 2023-03-04T13:23:30.633 | 2023-03-04T13:23:30.633 | null | null | 5,330,103 | null |
75,635,949 | 2 | null | 75,635,153 | 0 | null | One option to avoid using a union, you can use an array then unnest it as the following:
```
select unnest(mcnt) as gender_1,
unnest(fcnt) as gender_2
from
(
select
array['Male', count(*) filter (where gender = 'Male')::text] as mcnt,
array['Female', count(*) filter (where gender = 'Female')::text] as ... | null | CC BY-SA 4.0 | null | 2023-03-04T13:23:31.650 | 2023-03-04T13:23:31.650 | null | null | 12,705,912 | null |
75,635,951 | 2 | null | 75,635,654 | 1 | null | You can incapsulate your data in data class this way:
```
class MyViewModel : ViewModel() {
private val _buttonUiState = MutableStateFlow(ButtonUiState())
val buttonUiState: StateFlow<ButtonUiState>
get() = _buttonUiState.asStateFlow()
fun setNewState(index: Int) {
_buttonUiState.updat... | null | CC BY-SA 4.0 | null | 2023-03-04T13:23:50.120 | 2023-03-04T13:23:50.120 | null | null | 21,197,370 | null |
75,635,953 | 1 | null | null | -1 | 17 | I have this function that displays the information on the page:
```
: __d(
'Invoice.help',
[
'confirmButton' => $confirmButton
'linkToOffer' => $pagesInstance->getPage(WWWPages::OFFER)['url]
]
)
```
And if the function is called then such text will be shown on the page:
```
msgid "Invoice.help"
... | How to display a specific piece of text depending on whether a condition is true (CakePHP)? | CC BY-SA 4.0 | null | 2023-03-04T13:23:58.337 | 2023-03-04T13:28:06.797 | 2023-03-04T13:28:06.797 | 21,313,882 | 21,313,882 | [
"php",
"if-statement",
"cakephp"
] |
75,635,952 | 1 | null | null | -4 | 24 | Password authentication is usually performed while signing into platforms such as Gmail, Canvas, LinkedIn etc. Write a python program to verify if the password entered by a user complies with the conditions as below and display a message “Password is acceptable”. In case, the password does not meet the given criteria, ... | Write a python program for password | CC BY-SA 4.0 | null | 2023-03-04T13:23:50.800 | 2023-03-04T13:48:07.483 | 2023-03-04T13:48:07.483 | 3,962,537 | 21,186,882 | [
"python",
"python-3.x"
] |
75,635,950 | 1 | null | null | 0 | 6 | when I am trying to update the the schema which is having a array by pushing the object in it, it is showing null as result.
The model structure follows like this
```
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const testProductSchema = new Schema({
name: {
type: String,
required: ... | While pushing object in array mongoose is returning null | CC BY-SA 4.0 | null | 2023-03-04T13:23:47.220 | 2023-03-05T05:51:57.187 | 2023-03-05T05:51:57.187 | 16,074,235 | 16,074,235 | [
"node.js",
"mongodb",
"mongoose",
"model-view-controller"
] |
75,635,928 | 1 | null | null | -2 | 27 | I'm making Chatting Application with using PyQT5 and Socket(server).
there are two programs, Server one and Client one.
I made SignIn and LogIn functions, when LogIn is completed, enter the Chatting Window(Function Enter) and
Until now, I have no problem(Of course I had some, but fixed. and I didn't include these codes... | I have a problem making Chatting Apllication with Socket and PyQt5 in Python | CC BY-SA 4.0 | null | 2023-03-04T13:20:58.007 | 2023-03-04T13:20:58.007 | null | null | 21,006,613 | [
"python",
"sockets",
"user-interface",
"pyqt5",
"serversocket"
] |
75,635,954 | 1 | null | null | 0 | 15 | I am displaying movie cards by looping on data. I used a grid container and I didn't give any gap-x in the grid still I am getting extra space at the right side of the card after that center card element by using flex and but still getting extra space on both sides of the card. please help me. thank you.
Problem Image:... | Getting extra space out side card component in ReactJS | CC BY-SA 4.0 | null | 2023-03-04T13:24:00.580 | 2023-03-04T20:18:06.077 | null | null | 18,133,693 | [
"html",
"css",
"reactjs",
"tailwind-css"
] |
75,635,957 | 1 | null | null | 0 | 7 | I want to show arrow in ARCore camera frame without tapping.
Below is my code snippet.
In [Google Sample](https://github.com/google-ar/arcore-android-sdk/tree/master/samples/shared_camera_java) it works with Tap.
```
public ColoredAnchor(Anchor a, float[] color4f) {
this.anchor = a;
this.color = color4f;
... | How do I create a trackable plane and Anchor without tap in ARCore? | CC BY-SA 4.0 | null | 2023-03-04T13:25:21.637 | 2023-03-04T16:05:19.637 | 2023-03-04T16:05:19.637 | 4,420,967 | 2,903,317 | [
"android",
"arcore"
] |
75,635,929 | 1 | null | null | 0 | 25 | I have tab called 'site base production plan' in a google sheet where there are two tables. In the first table each row has information about a crop. For example
[](https://i.stack.imgur.com/HTdvl.png)
Picking means harvesting and frequency is basically harvest after every 4 days in the current example
Now in the secon... | Reading from one tab in google sheet and writing to another sheet with some modifications.Any way to improve speed to avoid execution time out error? | CC BY-SA 4.0 | null | 2023-03-04T13:20:58.380 | 2023-03-05T05:12:05.743 | 2023-03-05T05:12:05.743 | 1,330,560 | 6,040,218 | [
"arrays",
"google-apps-script",
"executiontimeout"
] |
75,635,955 | 2 | null | 75,626,373 | 0 | null | Docker engine uses`/var/lib/docker` to store the images and container runtime environment. Looks like the disk mounted to `/var/lib/docker` is full. You can verify the size using the command `du -sh /var/lib/docker`.
These are possible resolutions:
1. Mount a disk with a good amount of space based on the number of ima... | null | CC BY-SA 4.0 | null | 2023-03-04T13:24:26.833 | 2023-03-04T13:24:26.833 | null | null | 15,745,120 | null |
75,635,956 | 1 | null | null | 0 | 13 | I have an input that fires a onclick calling a javascript function in my main template:
```
<div class="removeTagElementChildDiv">
{% csrf_token %}
<input type="image" name="deleteTagImage" class="deleteTagImage" src="{% static 'images/deleteTag.png' %}" width = "10" height = "10" onclic... | Django: sending a POST request with Javascript, but then displaying an updated page rather than the old one | CC BY-SA 4.0 | null | 2023-03-04T13:24:30.143 | 2023-03-04T13:56:09.973 | null | null | 12,439,183 | [
"javascript",
"python",
"django",
"post"
] |
75,635,959 | 2 | null | 75,635,696 | 1 | null | When you remove that element, you remove the class attribute. You can place it back like this:
```
class(test) <- "survdiff"
```
| null | CC BY-SA 4.0 | null | 2023-03-04T13:25:29.750 | 2023-03-04T13:25:29.750 | null | null | 4,447,540 | null |
75,635,963 | 1 | null | null | 0 | 38 | My Laravel app is working normally but every now and then I get this error `SQLSTATE[HY000] [2002] Connection refused`
It only happens for few seconds then when I request the rest apis again it works
```
{message: "SQLSTATE[HY000] [2002] Connection refused", exception: "Doctrine\DBAL\Driver\PDO\Exception",…}
exception
... | Frequent Mysql Connection Refused Issue with Laravel | CC BY-SA 4.0 | null | 2023-03-04T13:25:48.420 | 2023-03-04T13:46:49.903 | 2023-03-04T13:46:49.903 | 984,422 | 921,868 | [
"mysql",
"laravel"
] |
75,635,970 | 2 | null | 75,635,843 | 0 | null | It's maybe due to bad error connection or your's URL is not correct.
| null | CC BY-SA 4.0 | null | 2023-03-04T13:28:03.227 | 2023-03-04T13:28:03.227 | null | null | 21,303,295 | null |
75,635,960 | 2 | null | 75,632,955 | 0 | null | In general, for reusing an existing Style, Style.Triggers are better than ControlTemplate.Triggers because Style.Triggers can be defined at an derived Style.
A simple base Style would be like:
```
<Style x:Key="TextBoxTheme" TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
<Setter Property... | null | CC BY-SA 4.0 | null | 2023-03-04T13:25:33.037 | 2023-03-04T13:31:22.153 | 2023-03-04T13:31:22.153 | 3,137,337 | 3,137,337 | null |
75,635,967 | 1 | null | null | 1 | 48 | I have a dataset that looks like this (value means how much hours the user played the game):
[dataframe image](https://i.stack.imgur.com/1iFWl.png)
I need to calculate correlation between users and correlation between games. In Pandas, on the same dataframe (with user column being an index), this is done like this for ... | How to implement this Pandas code using Polars? | CC BY-SA 4.0 | null | 2023-03-04T13:27:12.990 | 2023-03-04T15:03:53.710 | null | null | 21,331,616 | [
"python-polars"
] |
75,635,965 | 1 | null | null | 0 | 12 | I have Write code to bring category data into category page by using parameters but it fails. I am using
react-router-dom@6. Now I need help, how to resolve it in react. I have made ProductCategoryPage and component in productDetails part where a route get all products according to category.
```
src/pages/ProductCatego... | Uncaught TypeError: Cannot read properties of undefined (reading 'params') in Product Category Page | CC BY-SA 4.0 | null | 2023-03-04T13:27:05.047 | 2023-03-04T20:49:41.387 | 2023-03-04T20:49:41.387 | 8,690,857 | 20,059,554 | [
"javascript",
"reactjs",
"react-router",
"react-router-dom"
] |
75,635,972 | 2 | null | 75,635,869 | 0 | null | `math.pow(5,25)%6` uses a method optimized for floating-point arithmetic and when working with large integers may give incorrect answers due to the limited precision of floating-point numbers.
You can try other libraries or try built-in, see [this](https://stackoverflow.com/questions/23715787/does-gmpy2-or-gmp-have-a-p... | null | CC BY-SA 4.0 | null | 2023-03-04T13:28:14.033 | 2023-03-04T13:31:08.110 | 2023-03-04T13:31:08.110 | 21,203,244 | 21,203,244 | null |
75,635,969 | 1 | null | null | -1 | 13 | I import the following modules:
```
import numpy as np
import pandas as pd
from tensorflow import keras
from tensorflow.keras.optimizers import Adam
from keras.models import Sequential
from keras.layers import LSTM, Densr, Bidirectional, Dropout
from sklearn.preprocessing import StandardScaler
```
--- code ---
`print... | Is it possible to iterate through a pandas dataframe in an LSTM prediction model? | CC BY-SA 4.0 | null | 2023-03-04T13:27:57.540 | 2023-03-04T15:48:16.870 | 2023-03-04T13:39:51.537 | 4,773,006 | 4,773,006 | [
"arrays",
"pandas",
"iterator",
"lstm",
"prediction"
] |
75,635,974 | 1 | null | null | 0 | 9 | How to enable drag and drop scrolling in webview like in phone?
tried like this:
```
<webview webpreferences="navigateOnDragDrop=yes"></webview>
```
but it doesn't work
| how to enable scroll by drag in webview? | CC BY-SA 4.0 | null | 2023-03-04T13:28:34.877 | 2023-03-04T13:28:34.877 | null | null | 17,518,287 | [
"electron"
] |
75,635,971 | 2 | null | 75,635,696 | 1 | null | I ran your example code and it gives me a list of 6 items (no pvalue). So in my case I am working on the 6th element - you might need to work on the 7th.
```
# remove sixth list item (keeping the class attribute)
surv_diff[6] <- NULL
# look at the resulting list
str(surv_diff)
List of 5
$ n : 'table' int [1:2(1d)... | null | CC BY-SA 4.0 | null | 2023-03-04T13:28:10.650 | 2023-03-04T16:55:40.207 | 2023-03-04T16:55:40.207 | 13,519,961 | 13,519,961 | null |
75,635,976 | 2 | null | 75,635,213 | 2 | null | Under `Platforms/Android/Resources/drawable` that is the Android native resources folder
| null | CC BY-SA 4.0 | null | 2023-03-04T13:28:49.933 | 2023-03-04T13:28:49.933 | null | null | 1,506,387 | null |
75,635,977 | 2 | null | 75,635,711 | 1 | null | Based on your code snippet, it looks like you're trying to generate a function for each button. Instead, you can use querySelectorAll to select the container of the buttons, and attach one event handler function to it. This will give you access to the event object, and you can use the target property to access the clic... | null | CC BY-SA 4.0 | null | 2023-03-04T13:29:29.620 | 2023-03-04T13:29:29.620 | null | null | 18,292,806 | null |
75,635,981 | 2 | null | 73,508,643 | 0 | null | In my case I've tried a lot stuff, this solved my issue;
module.exports --> should be imported like this `import { something } from "somewhere"`
export default --> should be imported like this `import something from "somewhere"`
Please attention to curly braces are existing or not!
| null | CC BY-SA 4.0 | null | 2023-03-04T13:31:19.770 | 2023-03-04T13:31:19.770 | null | null | 17,924,398 | null |
75,635,975 | 1 | null | null | 0 | 19 | I have a public file on Google drive. I can download it, no matter I logged in to my Google account or not.
Lets say I acces the file by using Firefox (no Google account logged in): `https://drive.google.com/file/d/1lsXIQkxqRBEbMO86OxHs8C8fET7D4oeo/view?usp=drivesdk`. Then I click Download button and I can get a downlo... | Google drive 403 while downloading a public file if using downloadable url | CC BY-SA 4.0 | null | 2023-03-04T13:28:49.150 | 2023-03-04T16:21:46.097 | null | null | 10,870,817 | [
"java",
"android",
"google-drive-api"
] |
75,635,968 | 1 | null | null | 0 | 8 | I have a grid which has only 1 editable field(date field) where I want to add some validation logic(user can't input random string etc.). I'm using a `template driven form` so that I can use `<mat-error>` to display the actual error to the user.
Now, I was facing an issue where the date field(Due Date) was not binding ... | ngModelOptions removing Form Control from Angular Template Driven Form | CC BY-SA 4.0 | null | 2023-03-04T13:27:29.873 | 2023-03-04T13:27:29.873 | null | null | 10,204,642 | [
"html",
"angular",
"typescript",
"angular-material2"
] |
75,635,982 | 1 | null | null | -2 | 42 | HOW TO MAKE A TEXT TO MP3 CONVERTER USING PYTTSX3
i am creating a notification app using python it takes two input 1 ) after hoe many second you want to ring the bell 2)which text
please help me i am 13 year old i am from india
i want python code for that
| HOW TO MAKE A TEXT TO MP3 CONVERTER USING PYTTSX3 MODULE IN PYTHON | CC BY-SA 4.0 | null | 2023-03-04T13:31:55.350 | 2023-03-04T13:31:55.350 | null | null | 21,331,673 | [
"python",
"text",
"python-requests",
"text-to-speech",
"pyttsx3"
] |
75,635,980 | 2 | null | 75,635,555 | 0 | null | Some issues:
- `nc !== 0` is certainly wrong, as you should compare with `ring` (for all except the outermost ring, no column will ever be 0).- `rNew--` does not do what the comment next to it says.- `cNew--` does not do what the comment next to it says.
A correct way to "mirror" the functioning code, is to mirror bott... | null | CC BY-SA 4.0 | null | 2023-03-04T13:31:05.683 | 2023-03-04T13:31:05.683 | null | null | 5,459,839 | null |
75,635,987 | 1 | null | null | 0 | 10 | so I'm having problems when trying to manually use new (some specific) imports.
I am trying to send a Http request in with Ktor/Kotlin. But I cant seem to get some one of the imports to work. I hit this wall over and over again. "Unresolved reference: ".
My progress is like this: (for example want to use the function `... | I always get "Unresolved reference" on imports. Ktor | CC BY-SA 4.0 | null | 2023-03-04T13:32:41.110 | 2023-03-04T13:32:41.110 | null | null | 17,695,655 | [
"kotlin",
"import",
"ktor"
] |
75,635,985 | 1 | null | null | 0 | 12 | When you have products split on multiple pages in WooCommerce, it loads the next paage from the bottom. Because I have lazyload on images this means for a while there is just an empty white page. I would like to move to the top when the next page is loaded.
My code doesn't work. I have tried the following in my functio... | Scroll to top after clicking page 2 in WooCommerce | CC BY-SA 4.0 | null | 2023-03-04T13:32:37.547 | 2023-03-04T13:32:37.547 | null | null | 8,151,420 | [
"php",
"jquery",
"wordpress",
"woocommerce"
] |
75,635,973 | 1 | null | null | 0 | 22 | I have a `compile_commands.json` that reads
```
[
{
"directory": ".",
"command": "clang++ -I/usr/local/include -I/usr/local/opt/libomp/include -std=c++2a -MT release/source.o -MMD -MP -MF release/source.d Wall -O3 -fopenmp -flto -DNDEBUG -c -o release/source.o source.cpp",
"file": "source.cpp"
},
...
... | Why does clangd report errors that are not there when compiling? | CC BY-SA 4.0 | null | 2023-03-04T13:28:23.127 | 2023-03-04T13:44:07.800 | 2023-03-04T13:44:07.800 | 9,484,595 | 9,484,595 | [
"c++",
"autocomplete",
"clang",
"llvm",
"clangd"
] |
75,635,988 | 1 | null | null | 0 | 39 | New to java streams and I have a quick question.
I have a list with objects.
```
List<Object> list = new ArrayList<>();
```
And a second List with different Objects.
```
List<Object2> list2 = new ArrayList<>();
```
basicaly I have a filter method to check if some conditions are met.
if condition is true:
add object t... | Java streams to remove element if result is null | CC BY-SA 4.0 | null | 2023-03-04T13:33:38.587 | 2023-03-04T14:14:25.243 | null | null | 21,226,791 | [
"java",
"dictionary",
"stream"
] |
75,635,986 | 1 | null | null | 0 | 31 | I am trying to read access token from JSON file. here from `child component` I am calling to `MapReportConfigModel` class. Inside the class I applied `getMapConfig()` method. using that method I am getting JSON data.
```
childComponent --> MapReportConfigModel
--> getMapConfig() ---> mapReportConfi... | Angular 9 : TypeError: Cannot read properties of undefined (reading 'accesToken') | CC BY-SA 4.0 | null | 2023-03-04T13:32:38.053 | 2023-03-04T15:22:16.783 | 2023-03-04T14:36:14.973 | 21,240,143 | 21,240,143 | [
"angular",
"typescript",
"angular9"
] |
75,635,995 | 1 | 75,636,369 | null | 0 | 29 | I want to add `MediatR` to my services.
Here is the code:
```
public class Program
{
public static async Task Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddMediatR(Assembly.GetExecutingAssembly());
}
// rest of codes ...
}
```
Here is the Error:
> E... | Adding MediatR service | CC BY-SA 4.0 | null | 2023-03-04T13:35:06.857 | 2023-03-04T14:39:11.760 | null | null | 7,826,774 | [
"c#",
"asp.net-core",
"dependency-injection",
"mediatr"
] |
75,635,991 | 1 | null | null | 0 | 34 | I tried to find an answer but nothing, only questions solved by frames. Selenium can't find this element by class.
HTML:
```
<html>class="default-theme" lang=""</html>
<body>
<div data-v-87e3a7ca="" id="app">
<div data-v-87e3a7ca="" class="app-wrapper">
<div data-v-87e3a7ca="" class="inventory">... | Python selenium "no such element: Unable to locate element" error | CC BY-SA 4.0 | null | 2023-03-04T13:34:01.140 | 2023-03-04T21:59:52.320 | 2023-03-04T16:15:15.110 | 2,386,774 | 14,800,177 | [
"python",
"selenium-webdriver"
] |
75,635,993 | 1 | null | null | 0 | 13 | I am encountering a bug when I plot this code:
```
#Categorical axes
#importing libraries
from bokeh.plotting import figure
from bokeh.io import curdoc
from bokeh.models.annotations import LabelSet
from bokeh.models import ColumnDataSource, Range1d
from bokeh.models.widgets import Select, Slider
from bokeh.layouts imp... | overlapping layout with bokeh serve | CC BY-SA 4.0 | null | 2023-03-04T13:34:12.360 | 2023-03-04T14:20:44.003 | 2023-03-04T14:20:44.003 | 2,395,282 | 21,331,670 | [
"python",
"bokeh"
] |
75,635,997 | 2 | null | 71,128,119 | 0 | null | You can modify your CSS by specifying a maximum height for the container dependent on the width of the picture to get your desired layout where photos with a wider width don't need to be squeezed into a 1:1 ratio.
```
.img-container {
background: transparent;
position: relative;
width: 100%;
}
.img-container:aft... | null | CC BY-SA 4.0 | null | 2023-03-04T13:35:31.253 | 2023-03-04T13:35:31.253 | null | null | 16,300,231 | null |
75,635,996 | 2 | null | 75,630,642 | 0 | null | Based on the numbers in your question you need to change how you approach the problem. I dont have enough info from your question to give you the correct answer, but here are some ideas for different approaches that might suit your goals and will perform better.
1. If the log files are rotating every few seconds can y... | null | CC BY-SA 4.0 | null | 2023-03-04T13:35:07.867 | 2023-03-04T13:35:07.867 | null | null | 4,438,168 | null |
75,635,994 | 1 | null | null | 0 | 13 | So I am trying to use this form to send user collected data to an express backend but nothing happens when the form is submitted. I tried handling the event as an onClick and not onSubmit but still had no luck. I put console.log`s inside the submitForm function which showed them being logged for a split second on form ... | Having trouble sending form data to an express backend | CC BY-SA 4.0 | null | 2023-03-04T13:34:45.550 | 2023-03-04T13:34:45.550 | null | null | 20,822,103 | [
"javascript",
"reactjs",
"express"
] |
75,635,962 | 1 | null | null | -1 | 50 | I've made a query to count and rank every row for a table, but I can't join the query into one table.
I've been trying to make a leaderboard and I've managed to make a query that ranks every row based on the amount of points they have (ie. 1st, 2nd, 3rd, etc). Due to my SQL version, I've had to use a workaround to ROW_... | Combining SQL COUNT(*) with an INNER JOIN query | CC BY-SA 4.0 | null | 2023-03-04T13:25:38.597 | 2023-03-05T05:39:29.483 | 2023-03-05T05:39:29.483 | 3,404,097 | 21,315,179 | [
"mysql",
"count",
"inner-join"
] |
75,635,999 | 2 | null | 75,635,723 | 1 | null | You could try this regex pattern: `(.*?(\d+).*)\.pdf`
It makes the first part `.*?` become lazy matching.
See demo [here](https://regex101.com/r/YCSUDP/1)
| null | CC BY-SA 4.0 | null | 2023-03-04T13:36:31.040 | 2023-03-04T13:36:31.040 | null | null | 7,430,869 | null |
75,635,990 | 1 | null | null | 0 | 21 | So i have shift excel sheet which i need to get values from, which is populated as follows
| | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday |
| | ------ | ------- | --------- | -------- | ------ | -------- | ------ |
| Time | | | | | | | |
| Early 7-13 | name | name | name | name | ... | how do i extract values from a sheet depending on a datetime value | CC BY-SA 4.0 | null | 2023-03-04T13:33:58.137 | 2023-03-04T17:00:39.420 | 2023-03-04T17:00:39.420 | 20,018,488 | 20,018,488 | [
"c#",
"office-interop"
] |
75,636,002 | 1 | null | null | 0 | 7 | I have created a nlg moel and reformatted the file using functions it contains 24mb data i have trained it i want to use it for chatbot how do i import it to my other file for chatbot snice this is my first time creating a nlg model
Snice I don't have any errors I just wanted to know how to do it umm ye
| I have created an nlg model and trained this is my first time build an nlg model so i do i use this nlg model for chatbot and import it | CC BY-SA 4.0 | null | 2023-03-04T13:37:25.367 | 2023-03-04T13:37:25.367 | null | null | 21,331,675 | [
"python",
"artificial-intelligence",
"nlg"
] |
75,636,000 | 1 | null | null | -1 | 20 | I am trying to activate a virtual environment using `venv\scripts\activate` on Windows 10 but I keep on getting an error `The system cannot find the path specified.` What am I doing wrong? The error comes when I try to activate the venv after navigating to its directory using `cd venv`.
I tried navigating to the `venv`... | trying: "venv\scripts\activate" error:"venv\Scripts\activate' is not recognized as an internal or external command, operable program or batch file" | CC BY-SA 4.0 | null | 2023-03-04T13:36:56.103 | 2023-03-04T22:50:36.327 | 2023-03-04T22:50:36.327 | 20,103,413 | 14,048,318 | [
"python",
"visual-studio-code"
] |
75,635,998 | 1 | 75,636,966 | null | 2 | 23 | I'm trying to style each popover title separately, one would be for danger (red) and one for warning (orange).
`HTML`:
```
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.m... | Change .popover-title style individually | CC BY-SA 4.0 | null | 2023-03-04T13:36:20.213 | 2023-03-04T16:19:59.447 | null | null | 9,610,309 | [
"javascript",
"jquery"
] |
75,636,001 | 2 | null | 73,471,581 | 2 | null | A widget’s budget applies to a 24-hour period. WidgetKit tunes the 24-hour window to the user’s daily usage pattern, which means the daily budget doesn’t necessarily reset at exactly midnight. For a widget the user frequently views, a daily budget typically includes from 40 to 70 refreshes. This rate roughly translates... | null | CC BY-SA 4.0 | null | 2023-03-04T13:37:14.477 | 2023-03-04T13:37:14.477 | null | null | 21,331,610 | null |
75,636,004 | 2 | null | 75,635,020 | 0 | null | Well, after much searching, I found the answer here:
[https://learn.microsoft.com/en-us/answers/questions/864367/unresolved-external-symbol-imp-select-referenced-i?orderby=oldest](https://learn.microsoft.com/en-us/answers/questions/864367/unresolved-external-symbol-imp-select-referenced-i?orderby=oldest)
Basically, I w... | null | CC BY-SA 4.0 | null | 2023-03-04T13:37:38.363 | 2023-03-04T13:37:38.363 | null | null | 9,405,019 | null |
75,635,989 | 1 | null | null | 0 | 8 | So I've been following a [blog](https://towardsdatascience.com/fun-with-html-canvas-lets-make-lava-lamp-plasma-e4b0d89fe778) that details creation of vanilla js+html lava/plasma canvas animation. It uses pixelBuffer, and animates via requestAnimationFrame, and tick.
The final code is generating random colors for 2 pale... | Replacing (lava lamp's) animation color palettes which are randomly generated, with two pre-defined ones? | CC BY-SA 4.0 | null | 2023-03-04T13:33:51.697 | 2023-03-04T13:34:30.983 | 2023-03-04T13:34:30.983 | 21,331,145 | 21,331,145 | [
"animation",
"math",
"html5-canvas",
"requestanimationframe",
"canvasjs"
] |