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,620,709 | 2 | null | 75,609,122 | 1 | null | Based on @Ori Drori answer, I made a service provider factory
```
import React, { createContext, useContext, useEffect, useRef, useState } from 'react';
export function serviceProviderFactory<T>(onCreate: () => T, onDestroy: (service: T) => void) {
const ServiceContext = createContext<T | undefined>(undefined);
c... | null | CC BY-SA 4.0 | null | 2023-03-02T20:53:24.570 | 2023-03-03T06:41:04.380 | 2023-03-03T06:41:04.380 | 532,695 | 532,695 | null |
75,620,717 | 2 | null | 75,616,950 | 0 | null | Do you mean something like this?
```
# Create a data frame with three series
df <- data.frame(start = c(-10, -0, 20), end = c(0, 20, 30), y = rep(1, 3))
# Create a color vector with three colors
colors <- c("#FF0000", "#00FF00", "#0000FF")
highchart() %>%
hc_plotOptions(xrange = list(grouping = FALSE, colorByPoint ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:54:30.503 | 2023-03-02T20:54:30.503 | null | null | 9,996,535 | null |
75,620,722 | 1 | null | null | 0 | 22 | I am trying to insert the first 300 characters of a document into a spreadsheet cell.
This works unless I try to iterrate.
When it is added to a while loop, instead of returning the document ID it is returning the document title. I have tried file.getUrl and file.getId as well. Those will work in an array, and insert i... | Google App Script Issue with Document ID Handling | CC BY-SA 4.0 | null | 2023-03-02T20:55:01.207 | 2023-03-02T23:53:10.990 | 2023-03-02T23:53:10.990 | 136,598 | 21,321,858 | [
"google-apps-script"
] |
75,620,718 | 1 | 75,620,847 | null | 1 | 39 | I have a hypothetical dataframe that contains columns `hashtags` and `username`.
```
hashtags <- c("['mancity', 'naomicampell']","['PaTvUpdates']","['SputnikV']","['sputnikvaccineregistration', 'UnlockOurCountry', 'AstraZeneca', 'coronaInaua']",
"['Africa', 'Sinopharm', 'Sinopham', 'vaccine', 'vaccinedeat... | Split words in a column using Regex in R | CC BY-SA 4.0 | null | 2023-03-02T20:54:30.883 | 2023-03-03T17:41:15.783 | 2023-03-02T23:37:14.590 | 3,832,970 | 1,708,393 | [
"r",
"split"
] |
75,620,723 | 1 | 75,621,018 | null | 0 | 15 | I would like to not allow the return button to be pressed on the keyboard while limiting the character count to 200.
When I add restrictions to the UITextView, I cannot copy and paste into the textView.
```
func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool {... | Allow copy and paste in UITextView with character restrictions | CC BY-SA 4.0 | null | 2023-03-02T20:55:05.610 | 2023-03-02T21:43:58.643 | 2023-03-02T21:16:34.313 | 21,130,112 | 21,130,112 | [
"ios",
"swift",
"uitextview"
] |
75,620,724 | 1 | null | null | 3 | 37 | I have this ASP.NET Core MVC project:
[](https://i.stack.imgur.com/7gREK.jpg)
I want to open the HTML element (html page) named `Impresorashtml.html` from `Index.cshtml` using
```
<a href="/Impresorashtml.html" target="_blank"> Impresoras </a>
```
The page opens, but I get an error:
> This localhost page can't be foun... | How to open an html page from razor page | CC BY-SA 4.0 | null | 2023-03-02T20:55:19.227 | 2023-03-03T09:35:24.480 | 2023-03-03T05:15:46.290 | 13,302 | 3,779,779 | [
"html",
"asp.net-core-mvc",
"razor-pages"
] |
75,620,730 | 1 | null | null | 0 | 12 | ```
df=pd.DataFrame(df)
strcols = [col for col in df.columns if df[col].dtype.kind not in (np.typecodes["AllInteger"] + np.typecodes["AllFloat"] + np.typecodes["Datetime"])]
df[strcols]=df[strcols].apply(lambda strcol: strcol.replace('[\(\)\;\[\]]|(\<p\>)|(\<\/p\>)|[\|\/\\t]|(\\r\\n)|(\\r)|(\\n)', '-', regex=True))
```... | Message='NoneType' object is not callable | CC BY-SA 4.0 | null | 2023-03-02T20:55:37.850 | 2023-03-02T20:55:37.850 | null | null | 21,321,857 | [
"python-3.x"
] |
75,620,725 | 2 | null | 75,615,756 | 1 | null | The idea behind the lint is that returning the error as-is doesn't provide that much information on what went wrong.
`std::io::Error` doesn't contain that much information, for example it can contain [NotFound](https://doc.rust-lang.org/std/io/enum.ErrorKind.html#variant.NotFound) but won't tell you which file wasn't f... | null | CC BY-SA 4.0 | null | 2023-03-02T20:55:22.873 | 2023-03-02T20:55:22.873 | null | null | 6,274,355 | null |
75,620,731 | 2 | null | 75,610,232 | 0 | null | Issue is resolved . I did following changes referring mentioned link
[Pyspark User-Defined_functions inside of a class](https://stackoverflow.com/questions/58416527/pyspark-user-defined-functions-inside-of-a-class)
```
class JobBase(object):
#all udf has to be initialised as first step
def __init__(self):
... | null | CC BY-SA 4.0 | null | 2023-03-02T20:55:41.657 | 2023-03-02T20:55:41.657 | null | null | 8,713,442 | null |
75,620,734 | 1 | 75,621,068 | null | 1 | 22 | I would like to be able to use the keyboard to press enter on a button and then tab through the corresponding menu popup to select the right option. Unfortunately when I press enter on the button, it opens the menu popup but doesn't allow me to tab through it.
My code is below:
```
import { Button } from 'primereact/b... | How can I get keyboard tabbing and aria-labels on a primereact menu popup to work? | CC BY-SA 4.0 | null | 2023-03-02T20:55:49.333 | 2023-03-03T15:02:11.837 | null | null | 410,824 | [
"html",
"reactjs",
"popup",
"wai-aria",
"primereact"
] |
75,620,733 | 1 | null | null | 0 | 30 | I have a column right now as STRING value: ex. 20200101, I want to get this column and change the date format, so: 2020-01-01.
Is there way to do this?
I have tried CAST as and TO_DATE but they don't seem to be working
I would like to go from the left colum to the right column.
[](https://i.stack.imgur.com/G7AfY.png)
| How can I convert varchar to DATE in Snowflake? | CC BY-SA 4.0 | null | 2023-03-02T20:55:42.540 | 2023-03-03T01:58:22.207 | null | null | 3,461,502 | [
"sql",
"snowflake-cloud-data-platform",
"snowflake-schema"
] |
75,620,732 | 1 | null | null | -1 | 43 | As what python mentioned here [https://docs.python.org/3/library/stdtypes.html](https://docs.python.org/3/library/stdtypes.html)
You can convert numbers to bytes via this function
And this is an easy example
```
number = 1024
result = number.to_bytes(2, byteorder = 'big')
print(result)
```
The output was correct:
B... | wrong results when converting number to bytes | CC BY-SA 4.0 | null | 2023-03-02T20:55:42.423 | 2023-03-02T20:58:46.330 | 2023-03-02T20:58:46.330 | 843,953 | 20,567,105 | [
"python"
] |
75,620,727 | 1 | null | null | 0 | 22 | I'm trying to scrape all the 'AVAILABLE VACANCIES' from the URL `https://careers.sega.co.uk/vacancies?f%5B0%5D=country%3AUnited%20Kingdom`
I've written the following code:
```
import requests
def SEGA():
data = []
headers = {
'Accept': 'application/json, text/javascript, */*; q=0.01',
'X-Reque... | Python requests, Loading in AJAX content | CC BY-SA 4.0 | null | 2023-03-02T20:55:25.317 | 2023-03-05T02:14:02.953 | null | null | 16,579,620 | [
"python",
"python-requests",
"screen-scraping"
] |
75,620,737 | 2 | null | 75,619,065 | 0 | null | since I could not find out an expression that reveals presence of null values. I used the sum of values from the column "iscurrent" as an aggregation. I split using iscurrent == 0. In that way I do assure that any duplicate is inactive since active row is 1. I did solve my issue. Anyway if somebody knows the answer to ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:56:24.503 | 2023-03-02T20:56:24.503 | null | null | 20,058,645 | null |
75,620,726 | 1 | null | null | 0 | 38 | I'm having a weird issue with a winform.
- C# winform modified with Microsoft Visual Studio Community 2022 (64-bit) - Preview
Version 17.5.0 Preview 6.0 but made with Microsoft Visual Studio 2010- Target from .Net 4.0 to 4.8 (tried to bring it back to 4.0 with no success, the problem remain)- Any CPU
Image is before a... | C# Winform wont show everything | CC BY-SA 4.0 | null | 2023-03-02T20:55:24.700 | 2023-03-02T20:55:24.700 | null | null | 2,448,358 | [
"c#",
"winforms"
] |
75,620,742 | 2 | null | 75,620,472 | 0 | null | You should create a state variable, for instance:
const [panelOpen, setPanelOpen] = useState(false);
Then when you click the hamburger, add an onclick event which would toggle the state, e.g.
onClick={togglePanel}
Then in the togglePanel function, toggle the state like so:
setPanelOpen(!panelOpen)
You then use conditio... | null | CC BY-SA 4.0 | null | 2023-03-02T20:56:44.487 | 2023-03-02T20:56:44.487 | null | null | 7,678,098 | null |
75,620,743 | 2 | null | 75,620,557 | 1 | null | Pandas Index does not support the `a < x.index < b` form:
```
df.loc[((M < df.index) & (df.index < M+5)) | (df.index % N == 0)]
```
| null | CC BY-SA 4.0 | null | 2023-03-02T20:56:56.857 | 2023-03-02T20:56:56.857 | null | null | 15,239,951 | null |
75,620,741 | 1 | null | null | 0 | 4 | In GitHub at the moment, the website types things in its textboxes on its own, e.g. after typing
```
1. item one
```
and pressing enter, GitHub adds `2.` to the new line by itself.
```
1. item one
2.
```
How can I disable this and all similar features?
I want the textbox to behave like notepad.exe.
| How to disable GitHub textbox writing assistance? | CC BY-SA 4.0 | null | 2023-03-02T20:56:41.087 | 2023-03-02T20:56:41.087 | null | null | 3,310,334 | [
"github"
] |
75,620,729 | 1 | 75,623,883 | null | 0 | 23 | I need to inject into the dom an svg that relies in a node_modules's svg file.
the file is under node_modules\react-twemoji-picker\src\twemoji.svg.
It's actually a sort of xml file which looks like the following :
```
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://w... | How to access an xml with svg content and inject it in the dom | CC BY-SA 4.0 | null | 2023-03-02T20:55:37.130 | 2023-03-03T06:37:47.017 | null | null | 1,705,922 | [
"javascript",
"svg"
] |
75,620,735 | 2 | null | 75,620,472 | 1 | null | You'll need some type of logic to determine when to open and close upon click. [useState()](https://reactjs.org/docs/hooks-state.html) would be my go-to way.
```
import React, { useState } from 'react';
// ...
const Navbar = () => {
// 'nav' will store the value, 'setNav' will change the value
const [nav, setN... | null | CC BY-SA 4.0 | null | 2023-03-02T20:56:06.567 | 2023-03-02T20:56:06.567 | null | null | 18,864,389 | null |
75,620,745 | 2 | null | 75,620,559 | 0 | null | The issue is more like the string encoding issue.
Looks like the data is being encoded in a url-encoded format. You can use the `urllib.parse` library to parse the string and extract the data.
Try this:
```
import urllib.parse
def main(event: dict, context) -> dict:
body = urllib.parse.parse_qs(event["body"]) // dec... | null | CC BY-SA 4.0 | null | 2023-03-02T20:57:27.430 | 2023-03-02T20:57:27.430 | null | null | 5,249,708 | null |
75,620,748 | 2 | null | 4,185,105 | 0 | null | You can try javers I didn't find any better solution till now [https://javers.org/](https://javers.org/)
| null | CC BY-SA 4.0 | null | 2023-03-02T20:57:57.123 | 2023-03-02T20:57:57.123 | null | null | 4,436,276 | null |
75,620,744 | 2 | null | 75,620,647 | 0 | null | It's because you're not using the same X values between the `plt.bar()` and `plt.text()`
Using the same X values should work just as you want
```
# [...]
# Plot the bars
x_high = [i - width for i in range(len(labels))]
x_low = [i for i in range(len(labels))]
x_close = [i + width for i in range(len(labels))]
plt.bar(x... | null | CC BY-SA 4.0 | null | 2023-03-02T20:57:15.770 | 2023-03-02T21:03:10.737 | 2023-03-02T21:03:10.737 | 11,080,037 | 11,080,037 | null |
75,620,736 | 1 | 75,620,802 | null | -1 | 34 | I am practicing doing some programs on struct before I start practicing dynamic memory and I have been having this problem. This program is supposed to be simple, I have a Monster struct with the information that each monster will have and my main goal was to be able to create search functions to search monsters with a... | How to print a enum value in C | CC BY-SA 4.0 | null | 2023-03-02T20:56:23.367 | 2023-03-02T21:03:22.557 | null | null | 20,265,248 | [
"c"
] |
75,620,751 | 2 | null | 9,811,429 | 0 | null | It is possible to measure the latency between hearable audio and `currentTime`. Eg. this method is used in [wavearea](https://github.com/dy/wavearea/blob/d12be3eec2da45f8ee2a13655136a4d8ad495c8d/src/measure-latency.js):
```
let mediaElement = new Audio('data:audio/wav;base64,UklGRmgAAABXQVZFZm10IBAAAAABAAEAgLsAAAB3AQAC... | null | CC BY-SA 4.0 | null | 2023-03-02T20:58:26.590 | 2023-03-02T20:58:26.590 | null | null | 1,052,640 | null |
75,620,739 | 1 | null | null | -1 | 38 | I have a table "A" against B one-to-many (A can have many Bs). I want to select all data from A and sort by fields from B, but:
```
select * from A a left outer join B b to b.a_id = a.id order by b.id;
```
It returns duplicates based on how many A has related B items. For example, when A is related to 3 x B then I hav... | SQL select one to many remove duplicates | CC BY-SA 4.0 | null | 2023-03-02T20:56:27.500 | 2023-03-02T22:19:14.323 | 2023-03-02T22:19:14.323 | 11,870,756 | 11,870,756 | [
"sql",
"oracle"
] |
75,620,747 | 2 | null | 75,620,718 | 2 | null | Extract the words with gregexpr/regmatches, `unlist` the list to a vector and use `table` to get the frequency count in `base R`
```
table(unlist(with(twts, regmatches(hashtags, gregexpr('[A-Za-z]+', hashtags)))))
```
-output
```
Africa AstraZeneca coronaInaua COVID ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:57:49.293 | 2023-03-03T17:41:15.783 | 2023-03-03T17:41:15.783 | 3,732,271 | 3,732,271 | null |
75,620,740 | 1 | null | null | 0 | 28 | I have a dictionary: `Dictionary<string,string> prefabPaths`. This prefab paths is a simple key,value that stores a filepath to prefabs that I have already created in Unity. To test this, I have a for loop that iterates through the dictionary and performs `Resources.Load<GameObject>(value)`. The first three are lo... | Why does Resources.Load<GameObject>() not consistently work? Returns a object is null error as well. Unity 2021 LTS | CC BY-SA 4.0 | null | 2023-03-02T20:56:34.117 | 2023-03-03T16:02:59.557 | 2023-03-03T16:02:59.557 | 6,584,878 | 21,321,866 | [
"c#",
"unity3d",
"resources",
"gameobject"
] |
75,620,753 | 2 | null | 75,613,063 | 0 | null | You made a mistake in your Cloud Build step. You are using a linux output redirect, in a args format
If you look at the Mete sample, it use the bash command format. So, update your step like that
```
{
"name": "gcr.io/google.com/cloudsdktool/cloud-sdk",
"entrypoint": "/bin/bash",
"args": [
... | null | CC BY-SA 4.0 | null | 2023-03-02T20:58:38.907 | 2023-03-02T20:58:38.907 | null | null | 11,372,593 | null |
75,620,755 | 2 | null | 75,608,150 | 1 | null | For anyone looking for this in the future, I found the answer here: [https://security.stackexchange.com/questions/227100/pdf-user-password-always-give-access-to-the-owner-password-even-when-encrypted](https://security.stackexchange.com/questions/227100/pdf-user-password-always-give-access-to-the-owner-password-even-whe... | null | CC BY-SA 4.0 | null | 2023-03-02T20:58:42.220 | 2023-03-02T20:58:42.220 | null | null | 2,936,605 | null |
75,620,756 | 2 | null | 75,620,656 | 2 | null | You can bind `.city.sunrise` to a variable in the filter itself.
```
$ curl ... | jq -r '.city.sunrise as $sr | .list[] | select(.dt > $sr) | .clouds.all | add'
<your sum>
```
An `as` expression is a pass-through assignment whose output is the same as its input. The filter argument is applied to the input as well, wit... | null | CC BY-SA 4.0 | null | 2023-03-02T20:59:01.743 | 2023-03-02T20:59:01.743 | null | null | 1,126,841 | null |
75,620,757 | 1 | null | null | 0 | 13 | Today I have faced the "There is already an open DataReader associated with this Command" exception that occurs when you have an open/active data retrieval command and you try to execute another command and this has raised a question in my mind on how less robust might be slowly fetching entities through a IQueryable c... | Entity Framework: long running operation with an open DataReader - is it less robust than immediately fetching all the data? | CC BY-SA 4.0 | null | 2023-03-02T20:59:03.830 | 2023-03-02T23:02:19.827 | 2023-03-02T23:02:19.827 | 5,014,665 | 5,014,665 | [
".net",
"entity-framework",
"entity-framework-core",
"entity-framework-6"
] |
75,620,754 | 2 | null | 75,620,656 | 1 | null | You could bind `.city.sunrise` to a variable and use it later:
```
jq -r '.city.sunrise as $sunrise | .list[] | select(.dt > $sunrise) | .clouds.all'
```
Note: If calculating the average is all you need `awk` for, consider also doing it inside jq, to save another call to another program, e.g.
```
jq -r '.city.sunrise ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:58:41.143 | 2023-03-02T21:02:10.377 | 2023-03-02T21:02:10.377 | 2,158,479 | 2,158,479 | null |
75,620,750 | 1 | null | null | 1 | 11 |
Microsoft recently started supporting `messagePack` protocol when the transport type's mode is `Persistent` [per this article](https://github.com/Azure/azure-signalr/blob/dev/docs/management-sdk-guide.md#transport-type).
The challenge is that the Azure Function App supporting the backend uses the following pattern to ... | Supporting messagePack protocol in Serverless Azure SignalR services | CC BY-SA 4.0 | null | 2023-03-02T20:58:25.623 | 2023-03-02T20:58:25.623 | null | null | 89,558 | [
"azure-functions",
"signalr",
"signalr-hub",
"azure-signalr"
] |
75,620,752 | 2 | null | 75,620,278 | 2 | null | All scalar (aka non-array) variables listed in the function's arg list are `'local'`.
as RARE Kpop Manifesto has alluded to in comments, array processing is different; if an (global) array name is passed to the function then the function's input arg acts as a reference to the 'global' array (ie, any modifications to t... | null | CC BY-SA 4.0 | null | 2023-03-02T20:58:37.560 | 2023-03-03T02:09:12.893 | 2023-03-03T02:09:12.893 | 7,366,100 | 7,366,100 | null |
75,620,762 | 2 | null | 75,619,165 | 0 | null | I swap to [jsoup](https://jsoup.org/) because have a good parser for raw strings.
| null | CC BY-SA 4.0 | null | 2023-03-02T20:59:34.220 | 2023-03-02T20:59:34.220 | null | null | 3,693,223 | null |
75,620,760 | 2 | null | 75,620,663 | 0 | null | The arguments to the `Comparator` should be `Integer`s since that is what the `List` contains. You would need to call `counter.get` to get the frequencies to compare. This can be accomplished more simply with `Comparator.comparing` and `.thenComparing`.
```
Map<Integer, Long> counter = items.stream().collect(
... | null | CC BY-SA 4.0 | null | 2023-03-02T20:59:25.963 | 2023-03-02T21:04:47.103 | 2023-03-02T21:04:47.103 | 9,513,184 | 9,513,184 | null |
75,620,766 | 1 | null | null | 0 | 6 | i have a large JSON scrip which contains properties information I wish to parse address and date sold for every property (there are 50) in the script.
How do I iterate through the JSON script to parse this data out.
At the moment I am writing:
```
'''properties = data['properties']
properties1 = properties[0]
address =... | interating through JSON script to parse multiple data | CC BY-SA 4.0 | null | 2023-03-02T21:00:00.660 | 2023-03-02T21:00:00.660 | null | null | 16,309,625 | [
"json"
] |
75,620,765 | 1 | null | null | -1 | 17 | I'm trying to test the app on my phone so i have to generate release apk so im using `npx react-native run-android --variant release` command and i got multiply gradle, metro and packet errors
here is the all errors;
[https://www.mediafire.com/file/z7x5ec1np5qerzd/multiply_errors.txt/file](https://www.mediafire.com/fil... | React native release mode multiply errors | CC BY-SA 4.0 | null | 2023-03-02T20:59:50.897 | 2023-03-02T21:06:42.400 | 2023-03-02T21:06:42.400 | 1,235,698 | 19,385,315 | [
"android",
"react-native",
"gradle"
] |
75,620,759 | 2 | null | 75,620,420 | 1 | null | I think, for your , the [SNS-SQS fanout design](https://aws.amazon.com/getting-started/hands-on/send-fanout-event-notifications/) is a good fit. If you have control over how messages are sent to SNS you can make use of [SNS message attributes](https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html) to fi... | null | CC BY-SA 4.0 | null | 2023-03-02T20:59:22.040 | 2023-03-02T21:07:45.387 | 2023-03-02T21:07:45.387 | 10,369,131 | 10,369,131 | null |
75,620,749 | 1 | null | null | 0 | 16 | I am trying to run a React app with a contact form, that is utilising nodemailer as its back end. However, since the app is running on a very basic hosting, I am not able to open a specific port and therefore want to store the server.js file on a virtual machine in the cloud.
The code is as follows:
```
import React, ... | React & Nodemailer | running server.js file in the cloud | CC BY-SA 4.0 | null | 2023-03-02T20:58:03.260 | 2023-03-02T20:58:03.260 | null | null | 15,064,854 | [
"javascript",
"node.js",
"reactjs",
"nodemailer"
] |
75,620,767 | 2 | null | 75,620,543 | 2 | null | Here's a faceted alternative:
```
library(dplyr)
means <- rand.df %>%
group_by(sp) %>%
summarize(rand.mean = round(mean(rand.data), 2))
ggplot(rand.df, aes(x=rand.data)) +
geom_histogram(aes(color = sp)) +
theme_classic() +
geom_vline(aes(xintercept = rand.mean), data = means, color="blue", linetype="dashed",... | null | CC BY-SA 4.0 | null | 2023-03-02T21:00:02.890 | 2023-03-02T21:00:02.890 | null | null | 3,358,272 | null |
75,620,768 | 1 | null | null | 0 | 15 | I have a situation where I need to create a computed property from a pinia store getter -
```
import { computed} from 'vue'
import { storeToRefs } from 'pinia'
import {useMyStore} from './../stores/mystore'
export default {
setup() {
const { sessionUser } = storeToRefs(useMyStore())
const fullName = computed(... | Vue3/Pinia computed from storeToRefs | CC BY-SA 4.0 | null | 2023-03-02T21:00:05.337 | 2023-03-02T21:00:05.337 | null | null | 2,175,593 | [
"vuejs3",
"computed-properties",
"pinia"
] |
75,620,772 | 2 | null | 75,618,952 | 0 | null | since you compiled Circle.java already and it's in the package circleClass, for other classes using the circleClass.Circle class, during compilation they'll try and find classes in the folder you're compiling from.
To compile you have two options.
1. Compile both classes together. From the folder circleClass, you can ... | null | CC BY-SA 4.0 | null | 2023-03-02T21:00:15.220 | 2023-03-02T21:00:15.220 | null | null | 368,416 | null |
75,620,764 | 1 | null | null | -2 | 19 | I need to create a map in Node.js that matches a list of ids from a csv to a number.
The csv file looks like this:
```
participant_membership_id
32533
4986
5494
5650
5666
5673
5674
5680
5907
6064
...
```
And I need the map to be like this:
```
{
32533: 0
4986: 0
5494: 0
...
}
```
The default values are 0.
I g... | How to use the rows of a csv as keys of Node.js object? | CC BY-SA 4.0 | null | 2023-03-02T20:59:46.483 | 2023-03-03T14:42:59.703 | 2023-03-03T14:42:59.703 | 13,771,916 | 13,771,916 | [
"node.js",
"csv",
"iteration"
] |
75,620,763 | 2 | null | 75,620,024 | 0 | null | I think you are almost there.
You need to create a policy key as mentioned in below link
[https://learn.microsoft.com/en-us/azure/active-directory-b2c/policy-keys-overview?pivots=b2c-custom-policy#policy-key-management](https://learn.microsoft.com/en-us/azure/active-directory-b2c/policy-keys-overview?pivots=b2c-custom-... | null | CC BY-SA 4.0 | null | 2023-03-02T20:59:42.920 | 2023-03-02T21:42:54.857 | 2023-03-02T21:42:54.857 | 5,627,632 | 5,627,632 | null |
75,620,746 | 1 | null | null | 0 | 28 | ```
import React, { Component } from 'react'
import '../Pages.css'
import { Box, Card, CardContent, Typography, CardMedia, Button} from "@mui/material";
import Grid from '@mui/material/Grid';
import styled from "styled-components";
import WaveSurfer from 'wavesurfer.js';
... | How do access cart Items and use find to check if a product exist in an array using the handle add product function? | CC BY-SA 4.0 | null | 2023-03-02T20:57:33.233 | 2023-03-03T02:00:10.153 | 2023-03-03T02:00:10.153 | 8,510,405 | 20,589,393 | [
"javascript",
"reactjs",
"find",
"undefined"
] |
75,620,776 | 1 | null | null | 0 | 8 | How can I exclude the sample folder from the following rules? with this configuration it is not working and detekt keeps parsing the sample folder
```
UndocumentedPublicClass:
active: true
excludes: &samples
- '**/rd/compose/samples/**'
includes: &composeComponent
- '**/rd/compose/**'
UndocumentedPublicFu... | Detekt setting for exclude is ignored | CC BY-SA 4.0 | null | 2023-03-02T21:00:47.303 | 2023-03-02T21:00:47.303 | null | null | 2,099,272 | [
"android",
"yaml",
"config",
"detekt"
] |
75,620,774 | 1 | null | null | 0 | 10 | I am trying to only display the orders stats of only assigned products to the current shop manager on tab.
Assigning products to a specific shop manager part is done. The shop manager Id is successfully saved in _aptsm_assigned_shop_manager meta field.
Now, I am trying to only display the orders stats of assigned prod... | display the orders stats of only assigned products to the current shop manager on WooCommerce Analytics > overview tab | CC BY-SA 4.0 | null | 2023-03-02T21:00:24.797 | 2023-03-02T21:00:24.797 | null | null | 21,321,911 | [
"woocommerce",
"hook-woocommerce"
] |
75,620,778 | 2 | null | 75,618,263 | 0 | null | After a lot of digging, I was able to answer this question myself. In the export document, with the field that you want to be the hyperlink, it should be created in the following format:
```
Text To Display + Hashtag + Address
```
So as an example
```
ABC123#www.abc123.com
```
Once you import this, what is before the... | null | CC BY-SA 4.0 | null | 2023-03-02T21:01:09.300 | 2023-03-02T21:23:25.343 | 2023-03-02T21:23:25.343 | 6,836,766 | 6,836,766 | null |
75,620,779 | 2 | null | 75,620,331 | 0 | null | So the biggest issue with your code is variable and its values.
Javascript is returning you a difference in milliseconds when you are substracting dates. So when you are substracting Date.now() and startTime you get the wrong result. What you should do to fix this is assign startTime to Date.now() everywhere where you... | null | CC BY-SA 4.0 | null | 2023-03-02T21:01:17.233 | 2023-03-02T21:01:17.233 | null | null | 3,249,734 | null |
75,620,771 | 2 | null | 75,620,439 | 0 | null | You can make a function's return type generic if you also include that generic type information in the function parameters.
For example this function requires type information to be passed to it so it can determine what type to return.
```
val strings: List<String> = listOf<String>()
```
The `<String>` after the funct... | null | CC BY-SA 4.0 | null | 2023-03-02T21:00:14.510 | 2023-03-02T21:00:14.510 | null | null | 1,099,775 | null |
75,620,773 | 2 | null | 75,620,034 | 0 | null | This is done using Sorting Layers.
> SortingLayer allows you to set the render order of multiple sprites easily. There is always a default SortingLayer named "Default" which all sprites are added to initially. Added more SortingLayers to easily control the order of rendering of groups of sprites. Layers can be ordered ... | null | CC BY-SA 4.0 | null | 2023-03-02T21:00:24.143 | 2023-03-02T22:06:54.010 | 2023-03-02T22:06:54.010 | 1,679,220 | 1,679,220 | null |
75,620,777 | 1 | null | null | 0 | 19 | when I do python manage.py makemigrations it take the change but when I do python manage.py migrate it throw
error django.db.utils.OperationalError: (1074, "Column length too big for column 'audio_file' (max = 16383); use BLOB or TEXT instead")
I have models.py where my audio_file field is
```
class RadioFile(models.Mo... | django.db.utils.OperationalError: (1074, "Column length too big for column 'audio_file' (max = 16383); use BLOB or TEXT instead") | CC BY-SA 4.0 | null | 2023-03-02T21:01:00.547 | 2023-03-03T16:31:40.120 | null | null | 21,128,905 | [
"python",
"django"
] |
75,620,758 | 1 | null | null | 0 | 21 | I am trying to upload 2 files(xml and json) into a Rest API post call using java HttpURLConection which is a simple java application.
But getting the below error
`WebApplicationException: org.jvnet.mimepull.MIMEParsingException: Missing start boundary`
My code is as below
```
private static String myPostMethod( String ... | Getting MimeParsingException in Rest API webservices post call while uploading two files | CC BY-SA 4.0 | null | 2023-03-02T20:59:06.377 | 2023-03-03T05:19:56.163 | 2023-03-03T05:19:56.163 | 21,321,895 | 21,321,895 | [
"java",
"rest"
] |
75,620,781 | 2 | null | 46,729,092 | 0 | null | You don't have to link any libraries because of PySide...
> The GNU Lesser General Public License (LGPL) is another free-software license published by the Free Software Foundation (FSF). This license is modeled on the GPL but allows developers to use software components released under the LGPL in their own software, wi... | null | CC BY-SA 4.0 | null | 2023-03-02T21:01:25.210 | 2023-03-02T21:01:25.210 | null | null | 5,985,925 | null |
75,620,786 | 2 | null | 75,504,952 | 0 | null | you can add text to image with [pillow module](https://pypi.org/project/Pillow/)
here is one example:
```
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
in_file = './input.png'
out_file = './output.png'
text = 'this is a text'
img = Image.open(in_file)
draw = ImageDraw.Draw(img)
font = Im... | null | CC BY-SA 4.0 | null | 2023-03-02T21:02:17.353 | 2023-03-02T21:02:17.353 | null | null | 13,836,911 | null |
75,620,788 | 1 | null | null | 0 | 4 | I need to transmit a QR of data over sound. Modem encoding exists as V.22 V.32 and V.34 Standard. Is this the right standard I could emit a WAV file and playback?
I'm not interested in Steganographic methods, unless it can be played back in the human-audible range.
| How can I transmit data over sound? (QR code) | CC BY-SA 4.0 | null | 2023-03-02T21:02:22.277 | 2023-03-02T21:02:22.277 | null | null | 420,003 | [
"audio",
"encoding",
"modem"
] |
75,620,784 | 2 | null | 4,146,930 | 0 | null | One option is open a new tab with this url,
```
chrome-extension://<extension-id>/popup.html
```
where `<extension-id` is the id of the extension. You can find it in the extension manager.
It keeps open for any reason. It also output the `console.log` in the background script.
One drawback: because the "tab" popup is ... | null | CC BY-SA 4.0 | null | 2023-03-02T21:02:09.817 | 2023-03-02T21:07:55.317 | 2023-03-02T21:07:55.317 | 1,323,473 | 1,323,473 | null |
75,620,780 | 2 | null | 75,479,624 | 0 | null | To echo @TravisIllig above, this would be an instance of the generally-maligned Service Locator anti-pattern. To take your questions as posed:
1. It is not considered a best (or even good) practice to use Resolve() in this way. Yes, all dependencies should be injected via constructor. This gives a very clean approach ... | null | CC BY-SA 4.0 | null | 2023-03-02T21:01:17.800 | 2023-03-02T21:01:17.800 | null | null | 85,269 | null |
75,620,787 | 1 | null | null | 0 | 10 | I have an Azure Virtual Network that I can connect to via an OpenVPN Cloud Client and a dedicated OpenVPN connector VM on Azure. With the default Split Tunnelling ON, the client accesses the public internet as normal and routes private requests to Azure where appropriate.
However, I want to allow the client internet to... | Using Open VPN Connector and Nord VPN at the same time | CC BY-SA 4.0 | null | 2023-03-02T21:02:18.567 | 2023-03-03T06:28:17.040 | 2023-03-03T06:28:17.040 | 10,248,678 | 2,479,919 | [
"azure",
"openvpn",
"openvpn-connect"
] |
75,620,790 | 1 | null | null | 0 | 7 | I have a posts document, which has title, tags, imgUrl, content, order, source fields.
I want to use firestore v9 to fetch 1 element at a time in his order, but I'm not getting it.
```
const dbb = async (orderr) => {
const querySnapshot = await getDocs(
collection(db, 'posts'),
orderBy("order"),
s... | Firestore v9 - React - get a specific document by field | CC BY-SA 4.0 | null | 2023-03-02T21:02:24.703 | 2023-03-02T23:18:05.037 | 2023-03-02T23:18:05.037 | 209,103 | 19,063,592 | [
"javascript",
"reactjs",
"google-cloud-firestore"
] |
75,620,775 | 1 | null | null | 0 | 34 | My first error was the "missing semi-colon at the end of SQL statement" which has gone away, but now I have a recurring Syntax error. I am sure I have them in the same order, I made the field list and then copied it for the value list. I believe it is probably an error such as missing a space somewhere, but after a cou... | Syntax Error in INSERT INTO statement using DoCmd.RunSQL method in VBA | CC BY-SA 4.0 | null | 2023-03-02T21:00:30.553 | 2023-03-02T21:29:19.840 | 2023-03-02T21:29:19.840 | 19,307,074 | 19,307,074 | [
"sql",
"vba",
"ms-access",
"ms-access-2016"
] |
75,620,789 | 1 | null | null | 0 | 18 | I have two dates to display in an SSRS text box showing a date range. I can build the syntax in SQL Server but I'm not able yet to figure it out in SSRS Expression Builder. Any clues?:
```
DECLARE @Start_Previous_Month DATE = DATEADD (mm, DATEDIFF (mm, 0, GETDATE ()) - 1, 0);
DECLARE @End_Previous_Month DATE = DATEADD ... | SSRS Expression builder to display two dates built in SQL | CC BY-SA 4.0 | null | 2023-03-02T21:02:23.627 | 2023-03-02T22:08:07.860 | 2023-03-02T21:05:01.587 | 5,193,536 | 2,108,264 | [
"sql",
"reporting-services",
"expression"
] |
75,620,783 | 1 | null | null | 0 | 25 | I am new to Entity Framework and not able to figure out why the repository is always creating a new entry to their corresponding foreign key table?
Here is the example: in `GeoLocationType` table I have added a foreign key to `Classification` table with the name `Classification_ID`.
My models are:
```
public partial cl... | Adding new entry to database always creating a new entry to foreign key? | CC BY-SA 4.0 | null | 2023-03-02T21:02:07.433 | 2023-03-03T05:15:11.077 | 2023-03-03T05:15:11.077 | 13,302 | 834,239 | [
"c#",
"asp.net",
"entity-framework",
"automapper"
] |
75,620,770 | 1 | null | null | 0 | 20 | I'm a newbie in web development, i'm doing a web projet with fastapi and javascript.
For a step of this project i have to create a button to download a file (an image) which is in the server in the directory "download". I've got the error "Uncaught (in promise) SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not ... | Downloading an image with fastapi and js : problem to get the response from the back to the front | CC BY-SA 4.0 | null | 2023-03-02T21:00:13.720 | 2023-03-02T21:00:13.720 | null | null | 21,321,051 | [
"javascript",
"python",
"html",
"fastapi"
] |
75,620,794 | 1 | 75,621,067 | null | 0 | 54 | I have a file with CRLF line endings, which I need to convert to LF. This sed command can do that: `sed -E -i "s/\r\n/\n/" file.txt`.
I have sed installed in my Windows 11 using msys2. So, if I execute the above sed command in Powershell, it executes successfully and converts CRLF to LF.
But instead, if I execute the a... | sed tool unable to convert CRLF to LF in Windows powershell bash | CC BY-SA 4.0 | null | 2023-03-02T21:02:59.417 | 2023-03-03T18:30:38.403 | null | null | 12,357,035 | [
"bash",
"powershell",
"sed",
"replace",
"newline"
] |
75,620,796 | 2 | null | 75,620,643 | 0 | null | I just removed the loop, would still like to know a better way but my solution ended up being:
```
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
import { a20n, Airframe } from '../airframes/index';
const defaultState: Airframe = a20n;
export const airframeSlice = createSlice({
name: 'airframe',
... | null | CC BY-SA 4.0 | null | 2023-03-02T21:03:08.117 | 2023-03-02T21:03:08.117 | null | null | 4,727,580 | null |
75,620,799 | 2 | null | 55,904,292 | 0 | null | If you are using CRA, just add the following to your package.json
```
"scripts": {
"build": "set \"GENERATE_SOURCEMAP=true\" && react-scripts build"
}
```
| null | CC BY-SA 4.0 | null | 2023-03-02T21:03:11.917 | 2023-03-02T21:03:11.917 | null | null | 9,885,018 | null |
75,620,798 | 2 | null | 65,432,650 | 0 | null | Its possible actually this is how to go about it
To mute the audio
```
const MuteAudio = async () => {
try {
const result = await sound.current.getStatusAsync();
if (result.isLoaded) {
if (result.isPlaying === true) {
sound.current.setIsMutedAsync(true)
}
}
}catch (error) {}
```
}
To unm... | null | CC BY-SA 4.0 | null | 2023-03-02T21:03:11.713 | 2023-03-02T21:03:11.713 | null | null | 13,299,012 | null |
75,620,791 | 1 | null | null | 0 | 7 |
We have a bunch of existing REST Services written in Java in a framework written on top of Springboot.
In CI/CD Pipeline, we want to check if the Spec in Swagger Hub for a given Service matches with current HEAD of the branch.
One way to do this is to get the current API Specs in Swagger (which we can easily do using ... | Create Swagger Spec Json From Spring Projects Automatically using a Terminal / Shell Based Tool | CC BY-SA 4.0 | null | 2023-03-02T21:02:27.137 | 2023-03-03T09:58:51.863 | 2023-03-03T09:58:51.863 | 7,155,594 | 7,155,594 | [
"spring-boot",
"swagger",
"springfox",
"springfox-boot-starter"
] |
75,620,793 | 1 | null | null | 0 | 20 | I have came across a rather unusual case when open my .rmd file after updating RStudio to version 2022.12.0 Build 353.
The code doesn't display properly under the (as picture 1 shows). Specifically, when scrolling the page up or down, code either disappear or doesn't show at all.
[](https://i.stack.imgur.com/r2YDd.png... | .rmd file doesn't display properly under the source mode | CC BY-SA 4.0 | null | 2023-03-02T21:02:57.700 | 2023-03-03T00:29:33.690 | 2023-03-02T21:42:56.543 | 20,524,021 | 20,524,021 | [
"css",
"r",
"r-markdown",
"rstudio"
] |
75,620,802 | 2 | null | 75,620,736 | 1 | null | `scanf` will not convert enumeration constant names in input to the enumeration constant values. `%u` tells it to match input for an `unsigned int`. You need to read the sizes as strings and write your own code to compare the strings to the names of the sizes.
You should always check whether the `scanf` result equals t... | null | CC BY-SA 4.0 | null | 2023-03-02T21:03:22.557 | 2023-03-02T21:03:22.557 | null | null | 298,225 | null |
75,620,795 | 1 | 75,621,296 | null | -1 | 36 | I have all the functions that I need, but I can't connect them to displaying a message on the screen
[it should look like this](https://i.stack.imgur.com/YeYmf.png)
In place of the red text, the necessary message is just displayed. This text has a tag reserved .
I will be eternally grateful for help...
This is a piece ... | How to display date validation value in html? | CC BY-SA 4.0 | null | 2023-03-02T21:03:07.290 | 2023-03-02T22:18:24.940 | null | null | 21,321,842 | [
"javascript",
"html",
"css",
"forms",
"validation"
] |
75,620,800 | 1 | null | null | 0 | 11 | this is an issue that started very recently. In my root level bash profile i have these env variables set
```
export ARTIFACTORY_USER="...."
export ARTIFACTORY_API_TOKEN="....."
```
I have a maven IntelliJ project `Settings.xml` file that references these variables like this...
```
<server>
<id>releases</i... | IntelliJ Maven build not pulling in mac system environment variables referenced in project Settings.xml file | CC BY-SA 4.0 | null | 2023-03-02T21:03:20.090 | 2023-03-02T21:03:20.090 | null | null | 11,928,842 | [
"spring",
"macos",
"maven",
"intellij-idea",
"ide"
] |
75,620,804 | 2 | null | 75,620,670 | 1 | null | This is how you can check if a list is in a csv (converted into list of lists)
Note that Python returns false for: "1" == 1
You will need to make sure types match in the csv and the list you want to check
```
import csv
'''
test.csv:"
1,2,3,4,5
2,3,4,5,6
3,4,5,6,7
4,5,6,7,8
"
'''
with open('test.csv', 'r') as f:
... | null | CC BY-SA 4.0 | null | 2023-03-02T21:03:35.093 | 2023-03-02T21:03:35.093 | null | null | 18,505,884 | null |
75,620,797 | 1 | null | null | 0 | 6 |
Trying to install latest MySQL on my Macbook. Following simple instructions from videos like [this](https://www.youtube.com/watch?v=CBtBZgmP22M).
After installation, upon opening System Preferences and clicking the MySQL icon, my server has red dots next to them like so: [screenshot of MySQL Server GUI](https://i.stac... | Can't seem to initialize or start MySQL on MacOS Big Sur. Any ideas why? | CC BY-SA 4.0 | null | 2023-03-02T21:03:08.120 | 2023-03-02T21:03:08.120 | null | null | 21,321,848 | [
"mysql",
"database",
"macos",
"installation"
] |
75,620,807 | 2 | null | 75,620,575 | 0 | null | Casting `brand` to a string object.
```
brand = None
match = "Vans"
if match in str(brand):
print('Y')
else:
print('N')
```
Eventually, take advantage of `str`-methods such as `str.find`
```
brand = None
match = "Vans"
if str(brand).find(match):
print('N')
else:
print('Y')
```
| null | CC BY-SA 4.0 | null | 2023-03-02T21:03:39.163 | 2023-03-02T21:03:39.163 | null | null | 16,462,878 | null |
75,620,809 | 1 | null | null | 0 | 26 | I use a third-party website to get the public ipv6. When I use VoiceOver to read the IPV6 address, it omits the colon in the address. But it reads the dot in the IPV4 address. Is there a way to read the colon in the IPV6 address?
| VoiceOver Doesn't Read Colon on iPhone | CC BY-SA 4.0 | null | 2023-03-02T21:03:55.277 | 2023-03-04T12:06:34.353 | null | null | 12,076,716 | [
"ios",
"swift",
"iphone",
"voiceover"
] |
75,620,812 | 2 | null | 75,615,304 | 0 | null | What have you found so far in the documentation that indicates this may or may not be existing functionality?
| null | CC BY-SA 4.0 | null | 2023-03-02T21:04:31.780 | 2023-03-02T21:04:31.780 | null | null | 85,269 | null |
75,620,806 | 1 | null | null | 0 | 15 | I want the user to be able to select text, use the context-menu (right-click), use my context menu buttons on the selected text, and then replace the text with a string variable.
If you need an example, I want it to be similar to Google translate, where it swaps all the words on a webpage with the translated words, but... | How would I change user selected text on a webpage with a Google Chrome extension? | CC BY-SA 4.0 | null | 2023-03-02T21:03:37.620 | 2023-03-02T21:03:37.620 | null | null | 12,839,625 | [
"javascript",
"google-chrome-extension",
"contextmenu"
] |
75,620,805 | 2 | null | 75,618,514 | 2 | null | Here's the type declarations emitted for sequelize's `Model#update` method:
```
public update<K extends keyof TModelAttributes>(key: K, value: TModelAttributes[K] | Col | Fn | Literal, options?: InstanceUpdateOptions<TModelAttributes>): Promise<this>;
public update(
keys: {
[key in keyof TModelAttributes]... | null | CC BY-SA 4.0 | null | 2023-03-02T21:03:36.023 | 2023-03-02T21:15:37.247 | 2023-03-02T21:15:37.247 | 11,107,541 | 11,107,541 | null |
75,620,815 | 1 | null | null | 0 | 13 | I need to create a program that goes into the gcs bucket and reads the bucket name (i.e. emaildownloads/20230130/abc/xyz). The code needs to loop for the 'abc' section and put all the files under 'abc' (the 'xyz' is contained in 'abc') and into an array or a list for it.
```
def my_list_bucket(self, bucketName, limit=s... | Getting the sub folder of a gcs bucket | CC BY-SA 4.0 | null | 2023-03-02T21:05:04.730 | 2023-03-02T21:24:46.653 | 2023-03-02T21:24:46.653 | 21,089,012 | 21,089,012 | [
"python",
"pandas",
"google-cloud-storage",
"gcs"
] |
75,620,808 | 2 | null | 75,620,281 | 1 | null | Analytic `rank` function you try to use contains . It is allowed for certain functions, such as `sum`
```
SQL> select sum(sal) over
2 (partition by deptno, job
3 order by trunc(hiredate)
4 range between interval '31' day preceding and interval '31' day following
5 ) result
6 from emp
7 where... | null | CC BY-SA 4.0 | null | 2023-03-02T21:03:48.070 | 2023-03-02T21:03:48.070 | null | null | 9,097,906 | null |
75,620,817 | 2 | null | 75,620,351 | 1 | null | Well, that wes simple. I'll have write up some documentation on that for the website.
`noEjs: true,` in the template file object array.
```
diff --git a/generators/server/generator.mjs b/generators/server/generator.mjs
index f15e19f2..0e97d3b1 100644
--- a/generators/server/generator.mjs
+++ b/generators/server/generat... | null | CC BY-SA 4.0 | null | 2023-03-02T21:05:18.780 | 2023-03-02T21:05:18.780 | null | null | 289,767 | null |
75,620,818 | 2 | null | 59,793,491 | 0 | null | i want to make a hit-box object not collision detection because i want to call the object instead of checking coordinates. example being; a box that follows the player (turtle) and can be used to check when it collides with another object. turtle touches banana and banana hides and moves but i want the hit-box to be an... | null | CC BY-SA 4.0 | null | 2023-03-02T21:05:20.790 | 2023-03-02T21:05:20.790 | null | null | 21,321,954 | null |
75,620,811 | 2 | null | 75,620,718 | 3 | null | With the help of `py_eval`, we can parse the words in a python way
```
> library(reticulate)
> with(twts, table(unlist(lapply(hashtags, py_eval))))
Africa AstraZeneca
1 1
coronaInaua COVID
... | null | CC BY-SA 4.0 | null | 2023-03-02T21:04:15.537 | 2023-03-02T21:04:15.537 | null | null | 12,158,757 | null |
75,620,816 | 1 | 75,620,894 | null | 0 | 28 | I have a problem with calling Ajax function which one is declared in site.js file and I want to make call of this function index.html file. But when I try there is an error.
Site.js
```
$(function updateTable() {
$.ajax({
url: '/HomeController/SendDataToTable',
dataType: 'JSON',
type: 'GET',
success: fu... | Ajax call function in index file | CC BY-SA 4.0 | null | 2023-03-02T21:05:10.427 | 2023-03-02T21:14:27.210 | null | null | 12,487,192 | [
"javascript",
"jquery",
"ajax",
"asp.net-core-mvc"
] |
75,620,810 | 1 | null | null | 0 | 40 | I'm writing a function in C that takes a string of letters as an input and returns a string of numbers for the number position in the alphabet. I think I'm on the right track on making it which you can tell me if I'm not as I'm a complete noob to programming in general but my main question is why is my function returni... | My function is returning strange characters in C | CC BY-SA 4.0 | null | 2023-03-02T21:04:05.087 | 2023-03-02T21:46:29.283 | 2023-03-02T21:46:29.283 | 21,321,905 | 21,321,905 | [
"c"
] |
75,620,823 | 2 | null | 75,620,663 | 0 | null | Count each value, then sort by the count
```
List<Integer> items = List.of( 42, 5, 17, 42, 42, 17, 5, 42 );
Map<Integer, Long> counts = items.stream()
.collect( Collectors.toMap(
Function.identity(),
v -> 1L,
Long::sum
));
List<Integer> sorted = items.stream()
.sorted( Comparator
... | null | CC BY-SA 4.0 | null | 2023-03-02T21:05:32.257 | 2023-03-02T21:05:32.257 | null | null | 1,080,585 | null |
75,620,827 | 2 | null | 50,041,942 | 0 | null | I wasn't able to scroll all the way to the bottom of the RecyclerView list. I tried the above suggestion about making the main container a vertical linearlayout and that works for me.
| null | CC BY-SA 4.0 | null | 2023-03-02T21:06:06.107 | 2023-03-02T21:06:06.107 | null | null | 18,254,048 | null |
75,620,803 | 1 | null | null | 1 | 30 | 
I need help with bootstrap, javascript and jquery, I'm using js to create a modal but after that my js can't receive the submission of the modal I created
```
$("#forgetPass").click(function() {
var id = "forgetPassword";
var tittle = "Recuperar senha"
var body = `<... | Uncaught TypeError: Cannot read properties of undefined (reading 'backdrop') | CC BY-SA 4.0 | null | 2023-03-02T21:03:29.777 | 2023-03-03T04:36:58.630 | 2023-03-03T04:36:58.630 | 2,395,282 | 21,321,460 | [
"javascript",
"jquery",
"bootstrap-modal",
"bootstrap-5"
] |
75,620,819 | 2 | null | 75,620,281 | 2 | null | The `RANK` analytic function does not support the windowing clause.
From the [Analytic Function documentation](https://docs.oracle.com/database/121/SQLRF/functions004.htm#SQLRF06174):
> In the list of analytic functions that follows, functions followed by an asterisk (*) allow the full syntax, including the `windowing_... | null | CC BY-SA 4.0 | null | 2023-03-02T21:05:21.483 | 2023-03-02T21:05:21.483 | null | null | 1,509,264 | null |
75,620,822 | 1 | 75,621,001 | null | 1 | 28 | Let's say we have the following "cities" dataframe with cities as column names:
```
NY LA Rome London Milan
date
2023-01-01 1 81 26 55 95
2023-01-02 92 42 96 98 7
2023-01-03 14 4 60 88 73
```
In another "countries" dataframe I have cit... | Replace values based on column names and other dataframe | CC BY-SA 4.0 | null | 2023-03-02T21:05:28.480 | 2023-03-02T21:39:45.220 | 2023-03-02T21:39:45.220 | 14,314,520 | 16,363,897 | [
"python",
"pandas",
"dataframe"
] |
75,620,820 | 1 | null | null | 0 | 43 | I have made a Blazor Hybrid application in .NET 6 and am looking to implement authentication and authorization with Azure AD. I found an [article by Microsoft](https://learn.microsoft.com/en-us/aspnet/core/blazor/hybrid/security/?view=aspnetcore-6.0&pivots=maui) on how to do it, but it says to
> Follow the guidance for... | How to implement sign-in with Azure AD in a Blazor Hybrid application? | CC BY-SA 4.0 | null | 2023-03-02T21:05:26.067 | 2023-03-03T06:46:51.457 | null | null | 12,300,287 | [
"c#",
"azure",
"asp.net-core",
"azure-authentication",
"blazor-hybrid"
] |
75,620,830 | 1 | null | null | -2 | 18 | I am using a grid of buttons, with a little space underneath each one. However, when I add the label element, the text within said element is on the right, pushing the rest of the buttons in that direction. I would like to use that space under each button to place a descriptive label. I've tried looking around for an a... | Positioning Label Elements | CC BY-SA 4.0 | null | 2023-03-02T21:06:23.210 | 2023-03-02T21:48:45.453 | null | null | 20,565,391 | [
"html",
"css"
] |
75,620,828 | 2 | null | 9,855,656 | -1 | null | If you land here looking for the best way to submit a form using a button outside the form:
As of HTML5, just use the button's `form` attribute.
```
<button type="submit" form="my_form_id">Submit</button>
```
This method can submit forms in unique contexts (eg: Stripe's iframe based PaymentElement) that JS inline onCl... | null | CC BY-SA 4.0 | null | 2023-03-02T21:06:12.240 | 2023-03-02T21:13:11.707 | 2023-03-02T21:13:11.707 | 1,839,965 | 1,839,965 | null |
75,620,824 | 1 | null | null | 0 | 16 | First, I've checked dozens of other SO answers, various blog posts, etc. All basically have the same advice - `transformIgnorePatterns` and a few other things, none of which work for me.
My situation is that I have a custom package, published to a private npm feed that I'm trying to use in a React application written ... | How to solve "Jest encountered an unexpected token" in custom package? | CC BY-SA 4.0 | null | 2023-03-02T21:05:36.280 | 2023-03-03T11:23:20.127 | 2023-03-03T11:23:20.127 | 1,816,009 | 1,816,009 | [
"jestjs",
"ts-jest"
] |
75,620,835 | 2 | null | 75,620,557 | 1 | null | ```
M=5
N=2
print(df.iloc[[i for i in df.index if ((M < i < M + 5) or (i % N == 0))],:])
```
| null | CC BY-SA 4.0 | null | 2023-03-02T21:06:35.327 | 2023-03-02T21:06:35.327 | null | null | 21,321,750 | null |
75,620,826 | 1 | 75,621,000 | null | -1 | 34 | I want to draw lines that go from (0,0) of the image step of the JFrame to the middle of the image using `g.drawline(x1,y1,x2,y2)`
I tried many things but I couldn't find the solution.
`getX()` and `getY()` are the coordinates relative to the frame, but I want the coordinates relative to the JLabel, to the JFrame.
I wa... | how to draw on an image added in the JLabel on java swing? | CC BY-SA 4.0 | null | 2023-03-02T21:05:46.017 | 2023-03-02T23:29:40.327 | 2023-03-02T21:13:13.030 | 1,725,871 | 20,884,266 | [
"java",
"image",
"swing",
"awt"
] |