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,485 | 2 | null | 75,618,579 | 0 | null | On click, the heart will turn red, and on the second wedge it will return to its default state
```
const star = document.querySelector(".star")
function changeColor(){
star.classList.toggle("selected")
}
```
```
.selected{
color: red;
}
.star{
cursor: pointer;
}
```
```
<li class="star" onClick="changeColor()" id="f... | null | CC BY-SA 4.0 | null | 2023-03-02T18:27:50.830 | 2023-03-02T18:27:50.830 | null | null | 21,310,938 | null |
75,619,488 | 1 | null | null | 0 | 8 | How can I detect if an element `postBody` has an ellipsis applied, preferably using angular `#postBody` as the content is dynamically bound
```
<p>
<span> [innerHTML]="data.body"
[class.expanded]="bodyExpanded"
class="post-body"
#postBody></span>
<span (click)="bodyExpanded= !bodyExpanded" *ngIf="COND... | Check if ellipsis is applied on multiline text in angular | CC BY-SA 4.0 | null | 2023-03-02T18:27:58.860 | 2023-03-02T18:27:58.860 | null | null | 21,212,553 | [
"css",
"angular",
"components",
"ellipsis"
] |
75,619,490 | 1 | null | null | 0 | 11 | I have a Winforms form with a combobox that has its Text bound to a string property P1 on the form.
When I run the app, select an item from the dropdown list of the combobox and then press Tab (without pressing Enter first), the combobox's SelectedIndex has changed, but P1 is still blank.
But if I press Enter in the co... | Winforms comboBox binding not working unless I press enter | CC BY-SA 4.0 | null | 2023-03-02T18:28:09.647 | 2023-03-02T20:49:38.167 | null | null | 18,410,054 | [
"winforms",
"combobox",
"binding"
] |
75,619,492 | 1 | null | null | -1 | 19 | I need to edit the schedule of a single release in my ADO pipeline. For now, I've canceled the deployment and now have to manually deploy at the time requested. I find this extremely inconvenient. I don't see how pre-deployment conditions can be edited:[](https://i.stack.imgur.com/gyTO5.png)
| Can you edit a scheduled release deployment in an Azure DevOps pipeline? | CC BY-SA 4.0 | null | 2023-03-02T18:28:22.790 | 2023-03-02T18:28:22.790 | null | null | 3,394,277 | [
"azure-devops",
"continuous-integration",
"azure-pipelines",
"continuous-deployment"
] |
75,619,482 | 1 | null | null | -2 | 23 | My problem is the following, I am trying to integrate BACK4APP as a database to my flutter app project with this code:
```
void main() async {
//binding
WidgetsFlutterBinding.ensureInitialized;
//SetupBack4app Parse
await Parse().initialize(
Keys.applicationID,
Keys.serveurID,
clientKey: Keys.clientID,
autoSendSessi... | Build flutter problem when trying to test BACK4app : Error :vsync: and const AnimatedSize( Back4app ) | CC BY-SA 4.0 | null | 2023-03-02T18:27:09.583 | 2023-03-04T12:36:45.513 | 2023-03-02T18:47:40.537 | 21,321,132 | 21,321,132 | [
"android"
] |
75,619,491 | 2 | null | 75,619,318 | 0 | null | You can use a boolean mask to select the rows:
```
import pandas as pd
df = pd.DataFrame(data=['2023-01-02 09:15:00','2023-03-02 15:25:02','2023-03-02 15:45:00','2023-01-02 05:55:00','2023-03-02 05:55:00'],columns=['Date'])
df['Date'] = pd.to_datetime(df['Date'])
df['Date'].dt.date
start_date = '2023-01-01'
end_date =... | null | CC BY-SA 4.0 | null | 2023-03-02T18:28:11.007 | 2023-03-02T18:28:11.007 | null | null | 235,698 | null |
75,619,495 | 2 | null | 62,649,381 | 0 | null | Your app name from './app.json' must be the same as in the getMainComponentName method on MainActivity.java.
| null | CC BY-SA 4.0 | null | 2023-03-02T18:28:31.487 | 2023-03-02T18:28:31.487 | null | null | 17,283,814 | null |
75,619,493 | 1 | null | null | -2 | 19 | [enter image description here](https://i.stack.imgur.com/3bGB9.png)
Code snippet:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from getpass import getpass
browser = webdriver.Edge()
browser.get('https://pro-typers.com/login')
email_box = browser.find_element_by_xpath("//*[@id='authenti... | I don't know where the error is, I've tried hundreds of times but it still doesn't work. I hope someone can help me | CC BY-SA 4.0 | null | 2023-03-02T18:28:26.580 | 2023-03-02T18:28:26.580 | null | null | 21,321,215 | [
"python"
] |
75,619,494 | 2 | null | 75,618,476 | 1 | null | You think the child component hasn't been rendered, but here what's happening is that even the parent hasn't, because it only does when one or more of its `useState` hooks are updated
The first time the button is clicked `showResults` passes from `false` to `true` this triggers a render
The second time it passes from `... | null | CC BY-SA 4.0 | null | 2023-03-02T18:28:29.167 | 2023-03-02T18:44:23.443 | 2023-03-02T18:44:23.443 | 13,488,990 | 13,488,990 | null |
75,619,498 | 2 | null | 75,618,383 | 0 | null | Use KafkaProtobuf from a consumer with value.serializer, then construct a new POJO to be used with KafkaAvro for a producer.
| null | CC BY-SA 4.0 | null | 2023-03-02T18:28:34.643 | 2023-03-02T18:28:34.643 | null | null | 2,308,683 | null |
75,619,497 | 2 | null | 71,256,483 | 0 | null | I am having the same problem am using Eclipse 2022-12 but Eclipse can't make AVDs above API 25.... I managed to make AVDs for API 25,24,23, and 15....But when I create a new android application the graphic layout doesn't open....It keep in saying "The project target(Android 5.0.1) is still loading. The layout will refr... | null | CC BY-SA 4.0 | null | 2023-03-02T18:28:34.007 | 2023-03-02T18:28:34.007 | null | null | 21,321,252 | null |
75,619,499 | 2 | null | 75,617,578 | 0 | null | Your controller has a design issue and the answers above give you the way to do it. You are trying to force a behavior in your application that is not compatible with the way REST Architecture works.
1. First your parameters should simply be a DTO to help you parse your object into json
2. You can delete the @Response... | null | CC BY-SA 4.0 | null | 2023-03-02T18:28:41.687 | 2023-03-02T18:28:41.687 | null | null | 893,952 | null |
75,619,500 | 1 | null | null | 0 | 10 | I'm trying to create a table based on my pandas dataframe using sqlalchemy. As per the documentation, a table can be created with sqlalchemy as follows:
```
from sqlalchemy import create_engine, MetaData, Table, Column, Integer, String
engine = create_engine('sqlite:///college.db', echo = True)
meta = MetaData()
... | Dynamically populate sqlalchemy.Table | CC BY-SA 4.0 | null | 2023-03-02T18:28:42.057 | 2023-03-02T18:33:43.870 | 2023-03-02T18:33:43.870 | 2,540,204 | 2,540,204 | [
"python",
"pandas",
"sqlalchemy"
] |
75,619,501 | 1 | 75,619,592 | null | -2 | 18 | ```
SELECT DISTINCT TABLE_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME IN ('last_update')
AND TABLE_SCHEMA='testdatabase'
```
works fine, to return all tables needed.
Now I would like to use these tablenames as Input for another query to do the following SELECT statement:
```
SELECT MAX(last... | How can I use a subquery that returns table names as table names in a Select Statement | CC BY-SA 4.0 | null | 2023-03-02T18:28:44.693 | 2023-03-02T18:38:42.850 | null | null | 12,078,083 | [
"mysql",
"mariadb",
"subquery"
] |
75,619,483 | 2 | null | 75,618,150 | 1 | null | You can use the [DiagnosticCommandMBean](https://docs.oracle.com/en/java/javase/17/docs/api/jdk.management/com/sun/management/DiagnosticCommandMBean.html) to send the same commands to the HotSpot JVM, you can send via [jcmd](https://docs.oracle.com/en/java/javase/17/docs/specs/man/jcmd.html), except that “VM.log” becom... | null | CC BY-SA 4.0 | null | 2023-03-02T18:27:26.840 | 2023-03-02T18:33:41.970 | 2023-03-02T18:33:41.970 | 2,711,488 | 2,711,488 | null |
75,619,506 | 2 | null | 75,614,285 | 0 | null | Keep in mind you can usually find whatever you want if you spend some time googling. Here's a package that looks like what you want: [https://pub.dev/packages/table_calendar](https://pub.dev/packages/table_calendar). Here's another one that includes an hourly view: [https://pub.dev/packages/calendar_view](https://pub.d... | null | CC BY-SA 4.0 | null | 2023-03-02T18:29:31.393 | 2023-03-02T18:29:31.393 | null | null | 20,850,976 | null |
75,619,503 | 1 | null | null | -1 | 8 | This is how to validate date format in Joi using Typescript.
1. Imports import coreJoi from 'joi'
import JoiDate from '@joi/date'
const Joi = coreJoi.extend(JoiDate) as typeof coreJoi;
2. Interfaces export interface DateDto {
date_from : string
date_to : string
}
3. Validation export const Schema = {
dat... | Typescript JOI validation DATE | CC BY-SA 4.0 | null | 2023-03-02T18:28:55.007 | 2023-03-02T18:28:55.007 | null | null | 5,806,337 | [
"typescript",
"date",
"validation",
"joi"
] |
75,619,502 | 2 | null | 75,612,234 | 0 | null | if you are using SQL-Server 2022, you can directly order by [datetrunc()](https://learn.microsoft.com/en-us/sql/t-sql/functions/datetrunc-transact-sql?view=sql-server-ver16) function.
If you are using an older version of SQL-Server, you can use the following code([dateadd()](https://learn.microsoft.com/en-us/sql/t-sql/... | null | CC BY-SA 4.0 | null | 2023-03-02T18:28:46.443 | 2023-03-02T18:28:46.443 | null | null | 21,309,701 | null |
75,619,504 | 2 | null | 75,618,908 | 0 | null | Currently, there isn't a way to specify the output filename from Document AI, other than the output bucket & folder. Batch Processing will always output JSON files with an extra `-0` or another number since larger documents can be split up into multiple "shards".
If it's possible, I would recommend sending the files th... | null | CC BY-SA 4.0 | null | 2023-03-02T18:29:17.923 | 2023-03-02T18:29:17.923 | null | null | 6,216,983 | null |
75,619,487 | 1 | null | null | 0 | 32 | I'm quite new to Redux. If I try to login with a wrong password it logs in, but it throws an error 400 (invalid email or password) in Redux Devtools. I don't know what I'm doing wrong. Is it from the authSlice? authService? or my login form? Register users works perfectly so I tried not to include any of its logic here... | Login still happens even when password isn't correct | CC BY-SA 4.0 | null | 2023-03-02T18:27:54.477 | 2023-03-02T22:36:55.447 | 2023-03-02T22:36:55.447 | 19,560,768 | 19,560,768 | [
"reactjs",
"redux",
"react-redux",
"redux-toolkit",
"redux-form"
] |
75,619,508 | 1 | null | null | -1 | 21 | I recently started to learn Django I am a noob at it still , I just installed django with gunicorn and nginx on a Ubuntu 20 server, and now I am configuring my server but I can't find how to reload or restart Django , any help?
I added my domain to allowed_host and saved the file and its not reloading the config I need... | How to restart or reload Django when using it with gunicorn and nginx | CC BY-SA 4.0 | null | 2023-03-02T18:29:58.073 | 2023-03-03T13:56:01.677 | 2023-03-03T13:55:26.940 | 17,562,044 | 21,283,049 | [
"python",
"django",
"linux",
"nginx",
"gunicorn"
] |
75,619,496 | 1 | null | null | 0 | 15 |
I am attempting to use Jenkins to set up an automated build o a Spring Boot application.
My Spring Boot application is on a Git repository that is running on a Synology NAS. This NAS allows access through SSH.
When setting up my build job, I am entering the correct URL to the repository:
```
ssh://mynas/volume1/deve... | Jenkins is unable to connect to a Git Repo despite having the correct credentials | CC BY-SA 4.0 | null | 2023-03-02T18:28:33.573 | 2023-03-03T00:32:12.637 | 2023-03-03T00:32:12.637 | 1,046,184 | 1,046,184 | [
"git",
"jenkins",
"jenkins-plugins"
] |
75,619,514 | 2 | null | 75,608,093 | 0 | null | You're facing [this](https://groups.google.com/g/rundeck-discuss/c/oTy3nvRLSsc) issue, basically, you need to define the ansible inventory in your `ansible.cfg` file as follow:
```
inventory = /path/to/my/hosts
```
| null | CC BY-SA 4.0 | null | 2023-03-02T18:30:14.553 | 2023-03-02T18:30:14.553 | null | null | 10,426,011 | null |
75,619,510 | 1 | null | null | 0 | 14 | The main goal was to fetch/GET req a url (like a url to an IG reels) and it returns the HTML document. Since this isn't possible due to CORS,
I'm trying something out as a workaround:
1. Function activates with window.open() with desired URL
2. Window Opens to URL
3. set a string variable to the document.body of the n... | Getting the document.body of new window after using window.open() | CC BY-SA 4.0 | null | 2023-03-02T18:30:07.993 | 2023-03-03T06:00:16.570 | 2023-03-03T06:00:16.570 | 11,107,541 | 16,055,098 | [
"javascript",
"jquery",
"dom",
"instagram"
] |
75,619,511 | 2 | null | 75,616,174 | 0 | null | If the call succeeds then the message was accepted by the remote server. This by no way means that the message reaches the recipient's inbox. It only means the remote server accepted responsibility for the message. In theory, it will send a bounce if it fails. In most cases, servers silently drop messages they cons... | null | CC BY-SA 4.0 | null | 2023-03-02T18:30:08.367 | 2023-03-02T18:30:08.367 | null | null | 3,745,692 | null |
75,619,516 | 2 | null | 74,549,306 | 0 | null | i found the issue.
in logstash.conf file, index field:
```
index => "archive-2022-09-22"
```
was continuously overwritten by the execution of the next query schedule.
because i have needed as well to change my input source (still a sql statement but executed and formatted through an exernal container) i mapped as well... | null | CC BY-SA 4.0 | null | 2023-03-02T18:30:15.447 | 2023-03-02T18:30:15.447 | null | null | 19,929,975 | null |
75,619,515 | 1 | null | null | 0 | 27 | I want to restrict developers to add console.log in their commits so I want to show warning in React JS running terminal if they have used console.log anywhere is the project.
I want to show warnings like this in the project:
[](https://i.stack.imgur.com/YcGVH.png)
I'm using Eslint and specified no-console: 2 in the pr... | How can show warnings in Terminal if Console.log is used in React JS project? | CC BY-SA 4.0 | null | 2023-03-02T18:30:15.233 | 2023-03-03T05:41:47.093 | null | null | 9,979,508 | [
"reactjs",
"babeljs",
"eslint",
"eslintrc"
] |
75,619,507 | 1 | null | null | 0 | 46 | Hello I tried making a Discord bot with ChatGPT for funn and dont have any knowledge of Python. Can anybody tell me what the problem with my code is.
So the bot runs normal and vs Code is not giving me any errors but if i type *play url... in my discord nothing happens.
this is my Code:
import discord
from discord.ext ... | My Discord music bot is not working as intended | CC BY-SA 4.0 | null | 2023-03-02T18:29:49.723 | 2023-03-04T18:03:15.387 | null | null | 21,321,238 | [
"python",
"discord",
"bots"
] |
75,619,512 | 2 | null | 75,619,035 | 2 | null | All three containers are running the same image
```
services:
scriptA:
image: python:3.9
scriptB:
image: python:3.9
scriptC:
image: python:3.9
```
You should delete these `image:` lines.
If a Compose service has both `image:` and `build:`, Compose uses `image:` as the name of the im... | null | CC BY-SA 4.0 | null | 2023-03-02T18:30:10.183 | 2023-03-02T18:30:10.183 | null | null | 10,008,173 | null |
75,619,513 | 1 | null | null | 1 | 30 | Assuming a multiindex dataframe as follows
```
import pandas as pd
df={('AB30566', 'ACTIVE1', 'A1'): {('2021-01-01', 'PHOTO'): 2,
('2021-01-01', 'QUE'): 8,
('2021-01-01', 'TXR'): 4,
('2022-02-01', 'PHOTO'): 4,
('2022-02-01', 'QUE'): 0,
('2022-02-01', 'TXR'): 1,
('2022-03-01', 'PHOTO'): 9,
('2022-03-01', 'QUE')... | changing and setting one level of a multiindex dataframe with a function | CC BY-SA 4.0 | null | 2023-03-02T18:30:12.653 | 2023-03-03T06:24:39.467 | 2023-03-03T05:56:21.347 | 7,168,098 | 7,168,098 | [
"python",
"pandas",
"multi-index"
] |
75,619,505 | 1 | null | null | 0 | 13 | I don’t have much coding experience so bear with me. I’m trying to collect tweets from a list of accounts using the Twitter API but I have the issue of my python program stopping every time it runs into a Tweepy 401 unauthorized errors due to protected or blocked accounts.
Originally, I would just remove the account fr... | How to skip protected and blocked Twitter accounts (Twitter API, Tweepy) | CC BY-SA 4.0 | null | 2023-03-02T18:29:19.330 | 2023-03-02T18:29:19.330 | null | null | 21,321,239 | [
"python",
"twitter",
"tweepy"
] |
75,619,519 | 1 | 75,619,542 | null | 3 | 40 | I was writing a socket program and I mistyped the `struct sockaddr_in` as `struct sockaddrr_in` (notice an extra `r`), but I didn't receive any compiler error only `incompatible-pointer-types` warning.
Here is a minimal reproducible program to demonstrate the issue.
```
#include <stdio.h>
struct Addr {
int flat_no... | Typecasting a pointer to undefined type doesn't produce compiler error | CC BY-SA 4.0 | null | 2023-03-02T18:30:24.647 | 2023-03-02T18:46:13.583 | null | null | 5,381,023 | [
"c",
"pointers",
"compiler-errors",
"casting"
] |
75,619,520 | 1 | null | null | 0 | 19 | For example, I have dictionary like
`data= {"a":{"b":100, "c":200}}`
> based my requirement, instead of accessing the dictionary data["a"]["b"], I'm trying to access it like this
```
var = ["a"]["b"]
print(globals() [f'data{var}])
```
Error: getting keyerror
```
print(globals() [f'data{var}'])
```
```
KeyError: 'data... | Python - fetch the preexisting variable contain value | CC BY-SA 4.0 | null | 2023-03-02T18:30:27.090 | 2023-03-02T18:30:27.090 | null | null | 3,775,097 | [
"python-3.x"
] |
75,619,524 | 2 | null | 75,316,998 | 2 | null | You can log only errors during the tests, and after they complete, return the normal logging level.
```
class SampleTestCase(TestCase):
def setUp(self) -> None:
"""Reduce the log level to avoid messages like 'bad request'"""
logger = logging.getLogger('django.request')
self.previous_level = ... | null | CC BY-SA 4.0 | null | 2023-03-02T18:30:51.683 | 2023-03-02T18:30:51.683 | null | null | 20,191,839 | null |
75,619,521 | 2 | null | 75,611,330 | 0 | null | HK2 isn't magic, and needs to know what your service bindings are. I highly recommend using the automatic service population as described [here](https://eclipse-ee4j.github.io/glassfish-hk2/getting-started.html).
You can also manually bind classes or service descriptions into your main, which is difficult to maintain ... | null | CC BY-SA 4.0 | null | 2023-03-02T18:30:27.357 | 2023-03-02T18:30:27.357 | null | null | 3,067,964 | null |
75,619,523 | 1 | null | null | 0 | 30 | We've recently noticed a problem with the ActiveMQ Artemis 2.27.1 Windows Service created if the path to service contains a space. For example, with the pathname:
```
C:\executables\my artemis\apache-artemis\bin\test_space_broker\bin"
```
The service installs and starts correctly with:
```
artemis-service.exe start
``... | Windows service not stopping correctly if there's a space in the path name | CC BY-SA 4.0 | null | 2023-03-02T18:30:42.317 | 2023-03-02T20:17:30.607 | 2023-03-02T20:17:30.607 | 8,381,946 | 64,895 | [
"windows",
"service",
"activemq-artemis",
"winsw"
] |
75,619,527 | 2 | null | 60,433,241 | 0 | null | I ran into the same problem, but I found a solution that didn't require a custom key with permissions. There are apparently two default keys that can be used with SQS, one is "SSE-KMS" and the other is "SSE-SQS"
When I had it set to SSE-KMS the notifications were not arriving in the queue. When I switched to SSE-SQS an... | null | CC BY-SA 4.0 | null | 2023-03-02T18:30:57.640 | 2023-03-02T18:30:57.640 | null | null | 4,996,927 | null |
75,619,528 | 2 | null | 75,615,774 | 0 | null | I finally got the required answer. Thank you so much for your help, Alexander and Smith.
The code is as follows:
```
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Hello
{
class Program
{
static void Main(st... | null | CC BY-SA 4.0 | null | 2023-03-02T18:30:58.743 | 2023-03-02T18:37:16.163 | 2023-03-02T18:37:16.163 | 15,337,702 | 15,337,702 | null |
75,619,517 | 1 | 75,621,007 | null | 0 | 22 | I'm creating a recommender system using collabrative filtering, im using the grouplens ml-100k as the dataset and using the Surprise import and numpy to handle it. However i noticed an issue when running an RMSE test on the testset when i tried to split the testset from the training set. Saying the predictions was empt... | what is the issue with my training & test sets? | CC BY-SA 4.0 | null | 2023-03-02T18:30:15.880 | 2023-03-03T10:48:20.033 | null | null | 9,822,351 | [
"python-3.x",
"numpy",
"scikit-learn",
"training-data"
] |
75,619,522 | 2 | null | 75,508,806 | 1 | null | While the [answer by samcarter](https://stackoverflow.com/a/75557143/117870) does the job very well, I find that unless you want all output chunks to not break across pages, it is preferable to have an output hook that can be turned on or off for each block. That way, you can achieve the desired result without having t... | null | CC BY-SA 4.0 | null | 2023-03-02T18:30:28.567 | 2023-03-02T18:30:28.567 | null | null | 117,870 | null |
75,619,526 | 1 | 75,620,337 | null | 0 | 73 | This method takes a list of dates and it returns the most frequent day within the dates. It returns correctly; however, in case of tie between the days, the earliest day should be returned. For example, if there was a tie between Tuesday and Friday, the method should return "Tue". However, I could not figure out how to... | How to choose the earliest day in a Vector (from "Mon" to "Sun") | CC BY-SA 4.0 | null | 2023-03-02T18:30:55.250 | 2023-03-03T19:35:51.277 | 2023-03-02T21:23:24.997 | 21,240,013 | 21,240,013 | [
"java"
] |
75,619,533 | 2 | null | 75,618,811 | 0 | null | Then you may need a method that will return all the objects and filter them, but it will most likely be expensive.
.Where((x=> typeof(x).BaseType == typeof(A)) || (x=>typeof(x) == typeof(A)))
| null | CC BY-SA 4.0 | null | 2023-03-02T18:31:37.087 | 2023-03-02T18:31:37.087 | null | null | 19,372,690 | null |
75,619,532 | 1 | null | null | 0 | 7 | I'm creating a chart with Apache Echarts for Angular, and I'm having trouble to see all the x labels.
Here is the image of what I see. I need the first xaxis label to be align to the left, the last xaxis label to the right (so both are seen), and the rest align in the middle. Is that possible?
[chart](https://i.stack.i... | Apache ECharts xaxis labels not being fully shown | CC BY-SA 4.0 | null | 2023-03-02T18:31:33.780 | 2023-03-02T20:00:38.213 | 2023-03-02T20:00:38.213 | 6,584,878 | 21,321,212 | [
"angular",
"charts",
"axis-labels",
"apache-echarts"
] |
75,619,529 | 1 | null | null | -1 | 25 | I've inherited an HTML file with quite a bit of DOM and it has the following code at the bottom to initialize the UI (using a library):
```
<script>
$('#foo').easyResponsiveTabs({
type: 'default',
...
});
</script>
```
This strikes me as unsafe since `foo` element may not have been parsed yet. I... | What is the safe way to initialize the UI? | CC BY-SA 4.0 | null | 2023-03-02T18:31:25.043 | 2023-03-02T18:31:25.043 | null | null | 9,382 | [
"javascript",
"html"
] |
75,619,535 | 2 | null | 75,603,020 | 0 | null | It seems you also need to specify `-o=o=bind`
```
$ mkdir ~/data
$ podman volume create \
-o device=/home/$USER/data \
-o=o=bind \
myvol
myvol
$ podman run \
-it \
-d \
--name apache \
-v myvol:/usr/local/apache2/htdocs \
-p 8080:80 \
docker.io/library/httpd
7642c34e76ed0f34ed... | null | CC BY-SA 4.0 | null | 2023-03-02T18:32:04.850 | 2023-03-02T18:32:04.850 | null | null | 757,777 | null |
75,619,534 | 2 | null | 75,619,292 | 0 | null | You can use `$ifNull` to wrap the undefined case and empty array case into []. Then use `$in` to handle the case where the array contains 4. Use `$or` to chain up the 2 criteria.
```
db.collection.find({
$expr: {
$or: [
{
$eq: [
{
$ifNull: [
"$items",
... | null | CC BY-SA 4.0 | null | 2023-03-02T18:31:55.697 | 2023-03-02T18:31:55.697 | null | null | 14,732,669 | null |
75,619,531 | 1 | null | null | 1 | 73 | This question was answered [here](https://stackoverflow.com/questions/849211/shortest-distance-between-a-point-and-a-line-segment), but not answered in R language. I am a relatively new to coding, so I haven't been able to figure out how to 'translate' the accepted answer's C++ code into R code.
As in the linked questi... | Is there a way in R to find the perpendicular distance between a point and a line segment? | CC BY-SA 4.0 | null | 2023-03-02T18:31:31.930 | 2023-03-03T07:35:47.813 | 2023-03-03T00:27:20.283 | 4,832,499 | 17,648,443 | [
"r",
"geometry",
"distance",
"line-segment"
] |
75,619,542 | 2 | null | 75,619,519 | 6 | null | Because the cast is the first time `struct Addrr` appears, it acts as a declaration of that type. The type is incomplete because it has no definition, but you can still create a pointer to an incomplete type.
So while you do get the warning about converting between incompatible pointer types, you don't get an error ab... | null | CC BY-SA 4.0 | null | 2023-03-02T18:33:57.643 | 2023-03-02T18:33:57.643 | null | null | 1,687,119 | null |
75,619,538 | 1 | null | null | 0 | 24 | I created a functions URL for my lambda function but when I set Allow Origin to * and exposed access-control-allow-origin header with allow credentials as True, even doing this will cause CORS issue when I try to call the endpoint from localhost
`$.ajax({url: "lambda.aws/functionurl", success: function(result){ $("#div... | Lambda Function URL not respecting CORS | CC BY-SA 4.0 | null | 2023-03-02T18:33:29.587 | 2023-03-02T20:27:54.593 | 2023-03-02T20:27:54.593 | 174,777 | 16,379,721 | [
"javascript",
"amazon-web-services",
"aws-lambda",
"cors"
] |
75,619,543 | 2 | null | 75,418,906 | 0 | null | I had a very similar problem, and resolved it by compiling the Kotlin debug adapter from source and configuring the Kotlin VSCode extension to use the compiled version. You can find the source [here](https://github.com/fwcd/kotlin-debug-adapter).
| null | CC BY-SA 4.0 | null | 2023-03-02T18:34:00.440 | 2023-03-02T18:34:00.440 | null | null | 14,743,122 | null |
75,619,537 | 1 | null | null | 0 | 10 | I'm creating a book website
The user can create his account without having to put the photo and create comments, but I wanted that if he put a profile picture all the comments would update with the new profile picture.
User model
```
const mongoose = require('../db/conn')
const { Schema } = mongoose
const User = mongo... | How to update more than one object using Mongoose | CC BY-SA 4.0 | null | 2023-03-02T18:32:44.613 | 2023-03-02T18:32:44.613 | null | null | 21,321,216 | [
"javascript",
"node.js",
"mongoose"
] |
75,619,544 | 1 | null | null | -2 | 21 | I'm developing a kind of screen sharing application and faced with the situation when GC works too often. I've implemented everything from [How to avoid GC pressure in C# and .NET] [1](https://www.infoworld.com/article/3614084/how-to-avoid-gc-pressure-in-c-and-net.html) but no results in fact. I've tried dotMemory and ... | GC pressure in C# and .NET - How to detect the reason | CC BY-SA 4.0 | null | 2023-03-02T18:34:03.337 | 2023-03-02T18:34:03.337 | null | null | 16,636,149 | [
"c#",
".net",
"garbage-collection",
"p-lang"
] |
75,619,530 | 1 | 75,619,753 | null | 0 | 41 | I am creating a new Extension for Vscode. I am following the "[youre first extension](https://code.visualstudio.com/api/get-started/your-first-extension)" guide.
When i press F5 absolutly nothing happen.
- - - -
- - - - - - [This issue](https://stackoverflow.com/questions/65503178/pressing-f5-is-not-working-in-vs-co... | F5 not working in Vscode extension development | CC BY-SA 4.0 | null | 2023-03-02T18:31:25.977 | 2023-03-02T19:22:35.947 | null | null | 19,468,052 | [
"visual-studio-code",
"debugging",
"vscode-extensions"
] |
75,619,545 | 2 | null | 62,132,199 | 0 | null | For me this error came for different reason, recording it here so that if someone searches they can benefit.
Firstly I found this error is thrown from this code
[https://github.com/flutter/flutter/blob/master/bin/internal/shared.bat#L68](https://github.com/flutter/flutter/blob/master/bin/internal/shared.bat#L68)
This s... | null | CC BY-SA 4.0 | null | 2023-03-02T18:34:07.593 | 2023-03-02T18:34:07.593 | null | null | 1,328,672 | null |
75,619,549 | 2 | null | 75,239,877 | 0 | null | Please Find a Solution that works for me.
I used the below code which is working perfectly fine. On Runtime 7.3 LTS
[](https://i.stack.imgur.com/nE7nV.png)
| null | CC BY-SA 4.0 | null | 2023-03-02T18:34:20.830 | 2023-03-02T18:34:20.830 | null | null | 8,084,131 | null |
75,619,546 | 1 | null | null | 0 | 33 | so I am doing a form and I need to display, lets say both of the Inputs if a radiobutton is selected. If it's not selected, nothing should happen and the user won't see these Inputs. They should be hidden if the box is not selected.
In my view and controller I have so far the following:
```
<RadioButton id="ch1" selec... | How to show/hide Input fields based on radiobutton/checkbox selection in sap ui5? | CC BY-SA 4.0 | null | 2023-03-02T18:34:10.023 | 2023-03-03T10:37:05.773 | 2023-03-03T10:37:05.773 | 2,042,216 | 21,321,247 | [
"radio-button",
"sapui5",
"show-hide"
] |
75,619,547 | 1 | 75,619,646 | null | -1 | 42 | I have a `String command` and a `String[] args` array of arguments passed to the command. Assuming the list is of the correct length, how would I replace all instances of `$1`, `$11`, `${12}` with the corresponding argument from the list?
For instance, if the command is `"move $1 to $2 while using the ISO-${3}34 standa... | Replace $1, $2, $3... in a String with an array of values | CC BY-SA 4.0 | null | 2023-03-02T18:34:10.247 | 2023-03-02T18:43:35.710 | null | null | 5,769,814 | [
"java",
"regex",
"string"
] |
75,619,536 | 1 | null | null | 0 | 12 | There are several DB queries that take a long time to complete (20-40 sec).
Queries: A call to a stored procedure where the SQL query is being assembled and REF_CURSOR is returned to the OUT variable.
In simplified form it looks like this:
```
PROCEDURE selectSomeDate(res out sys_refcursor)
IS
BEGIN
open res for 'sel... | The node process stops waiting for data from the database server | CC BY-SA 4.0 | null | 2023-03-02T18:32:29.960 | 2023-03-02T18:32:29.960 | null | null | 20,014,359 | [
"node.js",
"node-oracledb"
] |
75,619,553 | 2 | null | 75,619,267 | 0 | null | I think you need to press `Ctrl + Shift + V` to paste it. And just for additional reference you can press `Ctrl + Shift + C` to copy from the terminal.
| null | CC BY-SA 4.0 | null | 2023-03-02T18:34:33.530 | 2023-03-02T18:36:17.417 | 2023-03-02T18:36:17.417 | 18,623,288 | 18,623,288 | null |
75,619,551 | 2 | null | 75,617,804 | 0 | null | You need to inspect the shapeTypes array after the Sort. Check the following:
```
string[] shapeTypes = { "circle", "triangle", "square" };
string[] shapeColor = { "red", "blue", "orange" };
double[] shapeArea = { 20, 5, 4 };
Array.Sort(shapeArea, shapeTypes);
Console.WriteLine(shapeTy... | null | CC BY-SA 4.0 | null | 2023-03-02T18:34:32.167 | 2023-03-02T18:34:32.167 | null | null | 21,320,286 | null |
75,619,550 | 2 | null | 63,705,036 | 0 | null | Please search for gdbinit in the MinGW directory.
Debugger setting --> default --> Initialization command
source $(TARGET_COMPILER_DIR)etc\gdbinit
[](https://i.stack.imgur.com/RnHZX.png)
| null | CC BY-SA 4.0 | null | 2023-03-02T18:34:30.983 | 2023-03-02T18:34:30.983 | null | null | 13,427,648 | null |
75,619,557 | 1 | null | null | 0 | 23 | I'm trying to clear the console in eclipse scala IDE by using `\u001b[2J` and it doesn't work.
I thought `print("\u001b[2J")` would work, but it just prints `?[2J`.
| How do I clear the console window in Scala 2.12.3? | CC BY-SA 4.0 | null | 2023-03-02T18:35:02.127 | 2023-03-02T19:32:10.907 | 2023-03-02T19:32:10.907 | 5,389,127 | 16,395,772 | [
"java",
"eclipse",
"scala"
] |
75,619,558 | 2 | null | 75,616,732 | 0 | null | Yes, you can run Kafka as only one broker in a cluster, but that is a single point of failure, and therefore not recommended. It can be embedded, but this is typically used for tests, not for real application usage.
It also does require network calls, even if to localhost.
Perhaps SQLite would be a better starting poin... | null | CC BY-SA 4.0 | null | 2023-03-02T18:35:02.347 | 2023-03-02T18:35:02.347 | null | null | 2,308,683 | null |
75,619,548 | 1 | null | null | 0 | 38 | I am building a Blazor MAUI app which I am attempting to connect to my SQL Server. I am using Microsoft.Data.SqlClient and a connection string which was generated by my Visual Studio.
In order to generate my connection string, I opened Views > Server Explorer in Visual Studio to add a data connection. I successfully co... | Blazor MAUI - SQL Server not connecting | CC BY-SA 4.0 | null | 2023-03-02T18:34:11.597 | 2023-03-03T16:24:47.200 | null | null | 18,228,665 | [
"asp.net",
"sql-server",
"blazor",
"database-connection",
"maui"
] |
75,619,556 | 1 | null | null | 0 | 8 | I've got a simple useQuery hook
```
const state = useQuery(['todo', { id: editingIndex }],
async ({ meta }) => {
const data = await fetchTodoById();
meta.load = false;
return data;
},
{ meta: { load: true} });
```
and my jest code:
```
const queryClient = new QueryClient();
const wrapper = ({ children }) => (
... | Jest testing addtional data in useQuery | CC BY-SA 4.0 | null | 2023-03-02T18:34:55.370 | 2023-03-02T18:35:31.797 | 2023-03-02T18:35:31.797 | 20,665,958 | 20,665,958 | [
"jestjs",
"react-query",
"tanstackreact-query"
] |
75,619,562 | 2 | null | 74,610,660 | 0 | null | I recently discovered an excellent online resource that provides comprehensive support for all the aliases available in Azure. What's even more impressive is that the website is updated regularly to stay in sync with the latest Azure changes. I highly recommend it for anyone looking for a reliable reference on Azure al... | null | CC BY-SA 4.0 | null | 2023-03-02T18:35:35.357 | 2023-03-02T18:35:35.357 | null | null | 8,836,527 | null |
75,619,555 | 2 | null | 75,619,076 | 1 | null | > Why does SQL Server require aggregation for those columns
As explained in the other answer because SQL Server does not implement the capability allowed for in the SQL Standard to project functional dependencies of a key that is already being grouped by.
> Do other DBs have the same issue?
[Apparently not for the foll... | null | CC BY-SA 4.0 | null | 2023-03-02T18:34:50.713 | 2023-03-02T19:52:40.103 | 2023-03-02T19:52:40.103 | 73,226 | 73,226 | null |
75,619,560 | 1 | null | null | -2 | 27 | in this code i am trying to read a record from a file but it appears this error "Segmentation fault (core dumped) "
in VS code
and i have Ubuntu OS
this is the code
```
#include <iostream>
#include<fstream>
using namespace std;
class A{
private:
string name;
int age;
double grade;
publi... | i have this error "Segmentation fault (core dumped) " when run a cpp program | CC BY-SA 4.0 | null | 2023-03-02T18:35:20.217 | 2023-03-02T18:36:59.377 | 2023-03-02T18:36:59.377 | 87,189 | 17,590,114 | [
"c++"
] |
75,619,563 | 2 | null | 75,618,257 | 0 | null | You're not returning a with the `getOrdersList` function simply the response.
The `dispatch` expects this a object with a type and a payload
```
const { type, payload } = action;
```
But instead receives only the `response`
```
const getOrdersList = (data = {}) => {
// ...
return apiCall(url, body, headers).then... | null | CC BY-SA 4.0 | null | 2023-03-02T18:35:47.697 | 2023-03-02T18:35:47.697 | null | null | 20,088,324 | null |
75,619,567 | 2 | null | 73,271,672 | 0 | null | This worked for me :
FiltersParam=models.RunFilterParameters(last_updated_after=last_updated_after,last_updated_before=last_updated_before,continuation_token=listaPipeline.continuation_token)
page2=adf_client.pipeline_runs.query_by_factory(resource_group_name=resource_group_name,factory_name=factory_name,filter_paramet... | null | CC BY-SA 4.0 | null | 2023-03-02T18:36:23.823 | 2023-03-02T18:36:23.823 | null | null | 21,321,304 | null |
75,619,561 | 1 | null | null | 0 | 15 | I am using `"react": "^18.2.0"` and trying to initialize combineReducers as below
```
import { connectRouter } from 'connected-react-router';
const reducer = combineReducers({
language: languageProviderReducer,
router: connectRouter(history),
})
```
I got this error
```
Module not found: Error: Can't resolve ... | Does "react": "^18.2.0" support 'connected-react-router'? | CC BY-SA 4.0 | null | 2023-03-02T18:35:24.787 | 2023-03-02T19:10:13.847 | null | null | 2,636,642 | [
"reactjs"
] |
75,619,568 | 2 | null | 75,613,636 | 1 | null | The clientId is available on the properties of the identity:
```
param identityName string
resource identity 'Microsoft.ManagedIdentity/userAssignedIdentities@2022-01-31-preview' = {
name: identityName
location: resourceGroup().location
}
output clientId string = identity.properties.clientId
```
| null | CC BY-SA 4.0 | null | 2023-03-02T18:36:31.597 | 2023-03-02T18:36:31.597 | null | null | 4,167,200 | null |
75,619,539 | 1 | null | null | 0 | 23 | My app is in landscape mode and I have a textfield which is only numbers, so I put the modifier:
```
.keyboardType (.numberPad)
```
However when the keypad is open there is no return key and the button/navigation link is covered by the keypad.
What is the best solution for this issue? Can I have a keyboard only number... | SwiftUI iOS16 TextField .keyboardType add return key. How to? | CC BY-SA 4.0 | null | 2023-03-02T18:33:31.837 | 2023-03-02T19:30:55.217 | 2023-03-02T18:55:50.833 | 1,015,258 | 11,631,828 | [
"swiftui",
"swiftui-text"
] |
75,619,565 | 1 | null | null | -1 | 10 | After installing the kernel and rootf i wanted to boot the device with flasher boot but get the error
> ERROR: Command failed (exit code 1): (native) % fastboot --cmdline
msm_rtb.filter=0x3F ehci-hcd.park=3 coherent_pool=8M
sched_enable_power_aware=1 user_debug=31 console=ttyMSM0,115200,n8
androidboot.console=ttyMSM0 b... | Installing postmarketOS but cant get "pmbootstrap flasher boot" working? | CC BY-SA 4.0 | null | 2023-03-02T18:35:56.413 | 2023-03-03T10:35:28.243 | 2023-03-03T10:35:28.243 | 15,651,201 | 21,321,261 | [
"linux",
"fastboot"
] |
75,619,552 | 1 | 75,620,592 | null | 0 | 68 | I need to decompress an archive (`.zip`) file onto a USB stick, but after a successful number of `CreateFile()`/`WriteFile()` calls, I get various errors from `WriteFile()`, most of the time the first ones are `FILE INVALID` (`GetLastError()` gives error code 1006).
Please note that when starting the computer (I'm work... | `WriteFile` error 1006 when writing to VirtualBox-redirected USB flash drive | CC BY-SA 4.0 | null | 2023-03-02T18:34:32.723 | 2023-03-03T15:30:00.200 | 2023-03-03T15:30:00.200 | 103,167 | 21,320,326 | [
"c++",
"windows",
"io",
"usb-drive"
] |
75,619,518 | 1 | null | null | 0 | 23 | I'm currently having two problems with code:
First the values that I enter in the input from the HTML go to the controller and get calculated but, I can't get them back to the HTML so it get shown in the Chart.js chart.
The second but less problematic problem is that I also only could make it work that the calculation ... | Return values from a controller to a HTML file in Spring Boot | CC BY-SA 4.0 | null | 2023-03-02T18:30:21.190 | 2023-03-02T18:30:21.190 | null | null | 19,320,835 | [
"javascript",
"java",
"spring-boot",
"model-view-controller",
"web-applications"
] |
75,619,572 | 2 | null | 54,856,765 | 0 | null | <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> is giving 500 internal error when putting in jsp file
| null | CC BY-SA 4.0 | null | 2023-03-02T18:36:42.393 | 2023-03-02T18:36:42.393 | null | null | 21,321,306 | null |
75,619,573 | 2 | null | 75,606,368 | 0 | null | The solution is:
```
Connection con = DriverManager.getConnection("jdbc:h2:"+ "~/h2", "root", "myPassword");
```
| null | CC BY-SA 4.0 | null | 2023-03-02T18:37:01.520 | 2023-03-02T18:37:01.520 | null | null | 21,313,110 | null |
75,619,570 | 2 | null | 75,619,507 | 1 | null | welcome!
There might be some issues with the formatting of your code! Here is the code that should be formatted correctly:
```
import discord
from discord.ext import commands
import youtube_dl
intents = discord.Intents.default()
intents.members = True
bot = commands.Bot(command_prefix='*', intents=intents)
@bot.comm... | null | CC BY-SA 4.0 | null | 2023-03-02T18:36:37.300 | 2023-03-02T18:36:37.300 | null | null | 3,111,843 | null |
75,619,576 | 2 | null | 67,810,741 | 0 | null | Sometimes if this error occurs in Maven, it will totally prevent it from running, so `dependency:tree` goal will also give this error.
In my case I was getting it because of an old odfdom dependency mentioned [here](https://github.com/jferard/fastods/issues/119) - if you are in a similar situation you could try disabli... | null | CC BY-SA 4.0 | null | 2023-03-02T18:37:21.213 | 2023-03-02T18:37:21.213 | null | null | 57,033 | null |
75,619,569 | 1 | null | null | 0 | 27 | [Example of the code](https://i.stack.imgur.com/lDIb1.png)Fairly new to object oriented programming. I am trying to make a connect 4 game with a class for the overall game, which contains a board object which then contains two player objects. I've realized that I need my players to be able to access some information fr... | Why am I getting a "board not declared" error when I am trying to pass it as a parameter? (C++) | CC BY-SA 4.0 | null | 2023-03-02T18:36:35.000 | 2023-03-02T18:36:35.000 | null | null | 19,544,285 | [
"c++",
"class",
"oop",
"subclass"
] |
75,619,559 | 2 | null | 75,616,163 | 2 | null | It's the cherry pick effect (note: `git rebase` is one way to batch a sequence of individual cherry-picks).
When you cherry-pick a commit, `git` resorts to a 3 way merge, but using a merge base which is not represented by the existing history.
Let me try to illustrate :
```
# starting point:
* (HEAD -> master) master ... | null | CC BY-SA 4.0 | null | 2023-03-02T18:35:06.603 | 2023-03-03T12:01:02.613 | 2023-03-03T12:01:02.613 | 86,072 | 86,072 | null |
75,619,578 | 2 | null | 75,619,470 | 0 | null | You can change the default management group for new subscriptions in your tenant: Management Group blade -> Settings.
Then you can enable that write permissions should be required in the management group where new subscriptions are created.
[https://learn.microsoft.com/en-us/azure/governance/management-groups/how-to/pr... | null | CC BY-SA 4.0 | null | 2023-03-02T18:37:47.287 | 2023-03-02T18:39:23.917 | 2023-03-02T18:39:23.917 | 21,321,283 | 21,321,283 | null |
75,619,577 | 1 | null | null | 0 | 9 | I'm running npm i to install dependencies and get the following errors:
```
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/Users/nazar/.nvm/versions/node/v14.21.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! st... | 'npm i' issues will not install sharp MacOs M2 | CC BY-SA 4.0 | null | 2023-03-02T18:37:22.073 | 2023-03-02T18:59:29.713 | 2023-03-02T18:59:29.713 | 19,183,105 | 19,183,105 | [
"node.js"
] |
75,619,581 | 1 | null | null | 0 | 32 | I was smart enough to figure out the script to get it so column E updates every time column D changes.
```
function onEdit(e){
if(e.range.columnStart > 4 || e.range.rowStart !=3 ) return;
var ss = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
ss.getRange("E3").setValue(ss.getRange("E3").getValue()+1);
}
```... | Repeating a google apps script | CC BY-SA 4.0 | null | 2023-03-02T18:38:05.013 | 2023-03-03T10:59:02.960 | null | null | 21,321,275 | [
"javascript",
"google-apps-script",
"google-sheets",
"google-apps"
] |
75,619,566 | 1 | null | null | -1 | 28 | In Oracle, I have a database CLOB field I need to extract data from.
The specification looks like:
```
[<br /><b>A:</b><br />Text A which does not contain HTML[<br />]]
[<br /><b>B:</b><br />Text B which does not contain HTML[<br />]]
[<br /><b>C:</b><br />Text C which does not contain HTML[<br />]]
```
Any of the thr... | Regular Expression Help: Extracting Fields | CC BY-SA 4.0 | null | 2023-03-02T18:36:14.603 | 2023-03-03T14:37:34.980 | 2023-03-03T14:37:34.980 | 315,763 | 315,763 | [
"sql",
"string",
"oracle",
"regex-group"
] |
75,619,583 | 2 | null | 75,618,216 | 0 | null | This line of code
```
select.append( '<option value="'+d+'">'+d+'</option>' );
```
is where it makes the drop down list.
The first d is where it sets what is searched for the second is here it changes the display -- so if you change it to
```
select.append( '<option value="'+d+'">new: '+d+'</option>' );
```
every opt... | null | CC BY-SA 4.0 | null | 2023-03-02T18:38:09.640 | 2023-03-02T18:52:04.413 | 2023-03-02T18:52:04.413 | 215,752 | 215,752 | null |
75,619,574 | 2 | null | 75,618,252 | 1 | null | Let me know if [this](https://play.tailwindcss.com/PFD02KhvQp) is what you are looking for, if not please elaborate more.
```
<div class="box-border flex w-auto flex-row gap-2 rounded-2xl border p-4 my-4 mx-4">
<div class="grow-0">
<div class="flex h-full flex-col items-center justify-center">
<div class="m... | null | CC BY-SA 4.0 | null | 2023-03-02T18:37:10.203 | 2023-03-02T18:37:10.203 | null | null | 4,475,288 | null |
75,619,584 | 1 | null | null | 0 | 16 | I am working with Cucumber and Gherkin for testing, specifically on a feature file that contains a Scenario Outline with an Examples Table.
For each column, Check the JSON field with name of header_name is equal to the corresponding value in the table.
```
Scenario Outline: Verify JSON field is equal to expected value... | Gherkin: Is there a way to refer to the Examples Table HEADER in a Scenario Outline? | CC BY-SA 4.0 | null | 2023-03-02T18:38:14.800 | 2023-03-02T18:39:13.007 | 2023-03-02T18:39:13.007 | 21,321,188 | 21,321,188 | [
"cucumber",
"gherkin"
] |
75,619,579 | 1 | null | null | 1 | 35 | I wanted to create an App with React Native.
The Project is run with Expo.
When using the "Open JS Debugger", chrome doesnt open and the Terminal is showing this error:
> Error launching JS inspector: [LaunchBrowser] Unable to find a browser on the host to open the inspector. Supported browsers: Google Chrome, Microsof... | Android Studio - Open JS Debugger does not open Browser | CC BY-SA 4.0 | null | 2023-03-02T18:37:52.197 | 2023-03-03T12:44:09.360 | 2023-03-03T12:44:09.360 | 19,975,846 | 19,975,846 | [
"react-native",
"android-studio",
"google-chrome",
"expo"
] |
75,619,586 | 1 | null | null | 0 | 7 | ImportError: cannot import name 'Color_' from 'my_app.models' (C:\Users\Zaza12277\Documents\programming\website\store\my_app\models.py) выдает ошибку, вроде до этого не было такого, теперь появилась ошибка
```
from django.contrib import admin
from .models import Color_, User, Account
from my_app.models import Car
admi... | ImportError: cannot import name 'Color_' from 'my_app.models' (C:\Users\Zaza12277\Documents\programming\website\store\my_app\models.py) | CC BY-SA 4.0 | null | 2023-03-02T18:38:21.953 | 2023-03-02T18:38:21.953 | null | null | 21,321,295 | [
"python",
"import"
] |
75,619,587 | 1 | null | null | 0 | 23 | I want to find the total sales of Whiskeys at a certain store in the dataset
Here's my code (Using PopSql connected to bigquery)
`SELECT DISTINCT category_name, ROUND(SUM(sale_dollars)) AS Total_Revenue FROM Liquor_Sales.Iowa WHERE store_name = 'HY-VEE #3 / BDI / DES MOINES' AND category_name LIKE '%WHISK%' GROUP BY ca... | Trying to find all of whiskey sales from a certain store -SQL- | CC BY-SA 4.0 | null | 2023-03-02T18:38:25.493 | 2023-03-02T18:47:53.720 | null | null | 21,095,815 | [
"sql",
"google-bigquery",
"popsql"
] |
75,619,575 | 1 | null | null | -1 | 31 | I'm working on a PHP and HTML program that calculates the number of calories in a soda and estimates how long it would take to walk off those calories. To provide a more accurate estimate, the program considers gender, weight, height, and age. However, I'm discovering that the current calculations aren't particularly a... | PHP & HTML calculation script not accurate | CC BY-SA 4.0 | null | 2023-03-02T18:37:13.650 | 2023-03-02T18:46:45.303 | 2023-03-02T18:46:45.303 | 16,127,735 | 16,127,735 | [
"php",
"html"
] |
75,619,585 | 1 | null | null | -1 | 11 | `I was trying to fit in my model when i got the error:`
`train_data = supervised_data[:-14]`
`test_data =supervised_data[-14:]`
`print("Train Data Shape: ",train_data.shape)`
`print("Test Data Shape: ",test_data.shape)`
`scaler=MinMaxScaler(feature_range=(-1,1))`
`scaler.fit(train_data)`
`train_data = scaler.transform(... | I am Trying to fit in my data into a model | CC BY-SA 4.0 | null | 2023-03-02T18:38:16.073 | 2023-03-02T18:38:16.073 | null | null | 21,321,273 | [
"python",
"artificial-intelligence"
] |
75,619,589 | 1 | null | null | 0 | 16 | I am learning about the working of modules and was trying to run my program and for that i needed to import my own module from a different directory, so, i learned that i need to use sys.path.append method to import my module but it did not work and gave me error
I tried this
```
#! /usr/bin/env python3
import sys
sys.... | import script not working after using sys.path.append | CC BY-SA 4.0 | null | 2023-03-02T18:38:39.293 | 2023-03-02T18:38:39.293 | null | null | 20,605,317 | [
"python",
"import",
"sys"
] |
75,619,592 | 2 | null | 75,619,501 | 1 | null | You can't do what you describe in a single query. All SQL identifiers (e.g. table names) must be fixed at the time the query is parsed. There's no way to query a table whose name is not known until the query begins reading data.
You must do what you describe as two queries. The first to get the table name (as a string)... | null | CC BY-SA 4.0 | null | 2023-03-02T18:38:42.850 | 2023-03-02T18:38:42.850 | null | null | 20,860 | null |
75,619,591 | 2 | null | 75,618,170 | 0 | null | > What should be corrected if I also want to select records with the
"Occupation" field being null if the textoccupation is null?
You can change your `where` condition to :
```
WHERE Occupation LIKE IIF(ISNULL(txtoccupation), '%', txtoccupation);
```
Here is [ISNULL Documentation](https://support.microsoft.com/en-us/... | null | CC BY-SA 4.0 | null | 2023-03-02T18:38:40.673 | 2023-03-02T18:38:40.673 | null | null | 4,473,648 | null |
75,619,571 | 1 | null | null | -1 | 13 | I am building a chat with react and redux server side node js and also with socket io
Everything works as it should, but as soon as I update the user, it updates and shows me on the other side that there is an update, but it doesn't actually show it to me.
> home.js
```
import { Box, Grid } from '@mui/material'
import ... | my react & redux not rendering after dispatch with socket io | CC BY-SA 4.0 | null | 2023-03-02T18:36:39.040 | 2023-03-02T18:36:39.040 | null | null | 19,529,007 | [
"reactjs",
"redux",
"socket.io"
] |
75,619,597 | 1 | null | null | 0 | 24 | i want to make a voxel engine in javascript using webgl api. But i don't know to send to the gpu a 3D grid of voxel. I know of work voxel engine so there is no need to give me paper about how to render voxel. I'm just asking about how to get voxel information.
| How to pass a 3D grid of voxel into a fragment shader in webgl | CC BY-SA 4.0 | null | 2023-03-02T18:38:58.933 | 2023-03-02T18:38:58.933 | null | null | 16,376,426 | [
"javascript",
"webgl",
"voxel"
] |
75,619,580 | 1 | null | null | 0 | 7 | I am trying to create a Google Chrome extension that when the user clicks the extension grabs all the selected react input options in the current active tab and then display the values in a list. No errors are encountered when uploading the extension and no errors are shown in devtools while on the page.
mainfest.json
... | Chrome extension that gets all the selected input options in current tab not working | CC BY-SA 4.0 | null | 2023-03-02T18:37:58.583 | 2023-03-02T18:37:58.583 | null | null | 14,717,979 | [
"google-chrome-extension",
"chrome-extension-manifest-v3",
"content-script",
"javascript-injection"
] |