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,697 | 1 | 75,619,727 | null | -1 | 58 | Hi,
I have this code:
```
var myarray = [ "cars", "planes", "houses", "food"]
for(let x of myarray) {
var name = things.map(d => d.id == x ? d.name : []).join('');
var price = things.map(d => d.id == x ? d.things : []).join('');
document.getElementById('list').innerHTML += `
<div>${name} : $... | Sorting an array by external values in a loop | CC BY-SA 4.0 | null | 2023-03-02T18:49:25.533 | 2023-03-02T19:20:16.713 | null | null | 2,230,939 | [
"javascript",
"arrays",
"sorting"
] |
75,619,707 | 2 | null | 75,619,675 | 0 | null | Here we go ^^
```
$ xmlstarlet edit -r '/dataTemplate' -v 'sec' xml1
<?xml version="1.0" encoding="windows-1252"?>
<sec>
<test>John</test>
<test>Peter</test>
<test>Paul</test>
</sec>
```
So
```
$ xmlstarlet edit -r '/dataTemplate' -v 'sec' xml1 | tee xml2
```
| null | CC BY-SA 4.0 | null | 2023-03-02T18:51:12.423 | 2023-03-02T18:51:12.423 | null | null | 465,183 | null |
75,619,704 | 2 | null | 68,316,160 | 0 | null | If you are done with Visual Studio 2019 and have moved on to Visual Studio 2022 you can try this solution. I had build tools for Visual Studio 2017, 2019, and 2022. I uninstalled visual studio 2019 and its corresponding build tools and that fixed the issue. Note: After uninstalling the 2019 visual studio and the 2019... | null | CC BY-SA 4.0 | null | 2023-03-02T18:50:34.690 | 2023-03-02T18:50:34.690 | null | null | 2,242,045 | null |
75,619,702 | 2 | null | 75,617,865 | 4 | null | You used the wrong function to get a completion.
[ChatGPT Completions endpoint:](https://platform.openai.com/docs/api-reference/chat/create)
```
openai.ChatCompletion.create()
```
[GPT-3 Completions endpoint:](https://platform.openai.com/docs/api-reference/completions/create)
```
openai.Completion.create()
```
| null | CC BY-SA 4.0 | null | 2023-03-02T18:50:06.117 | 2023-03-02T19:18:48.467 | 2023-03-02T19:18:48.467 | 10,347,145 | 10,347,145 | null |
75,619,708 | 1 | null | null | 0 | 31 | I would like to implement event google analytics. I would like to send an event only when the user enter to the screen and then when he changes the value of the string in the text it should trigger one more. For now it triggers every time user sees the screen and even if he goes down and up my compose triggers again (... | How to trigger event only once until it is changed in composites? | CC BY-SA 4.0 | null | 2023-03-02T18:51:12.447 | 2023-03-03T06:29:30.820 | 2023-03-03T06:29:30.820 | 21,300,258 | 21,300,258 | [
"android",
"kotlin",
"state",
"android-jetpack-compose"
] |
75,619,698 | 1 | null | null | 0 | 8 | I'm trying to create a sphere or cylinder object that has to be really big (180 meters high and 100 meters width) that I would like to see for my garden.
There will be a big building build in the area and I'm trying to create a augmented view of it.
I've got this code, but it does not seem to work.
Does anyone please h... | showing a 180 meter object from my garden with AR.JS | CC BY-SA 4.0 | null | 2023-03-02T18:49:46.110 | 2023-03-02T18:55:05.870 | 2023-03-02T18:55:05.870 | 244,970 | 244,970 | [
"augmented-reality",
"ar.js"
] |
75,619,714 | 2 | null | 75,619,318 | 0 | null | You can use the datetime function too:
```
import pandas as pd
from datetime import datetime
def filter_dates(df, start_date, end_date):
date_format = '%Y-%m-%d %H:%M:%S'
start_date_str = start_date.strftime(date_format)
end_date_str = end_date.strftime(date_format)
filtered_df = df.loc[(df['Date'] >= ... | null | CC BY-SA 4.0 | null | 2023-03-02T18:52:18.910 | 2023-03-02T18:53:14.573 | 2023-03-02T18:53:14.573 | 20,691,838 | 20,691,838 | null |
75,619,716 | 1 | 75,619,745 | null | 0 | 33 | I've been researching for a couple of days what the ellipsis is supposed to mean [in this context](https://docs.python.org/3/library/argparse.html#the-add-argument-method):
`ArgumentParser.add_argument(name or flags...)`
I understand that Ellipsis is a placeholder, or is used in type hinting for `tuples` or `Callable`s... | What does the Ellipsis mean in this Python Function Documentation? | CC BY-SA 4.0 | null | 2023-03-02T18:52:37.487 | 2023-03-02T19:06:46.443 | 2023-03-02T18:58:28.147 | 2,308,683 | 21,235,921 | [
"python",
"function",
"argparse"
] |
75,619,717 | 1 | 75,622,425 | null | 0 | 16 | I am creating a user schema and want case insensitivity on usernames. No two usernames should be similiar, even when considering capital letters.
I have added collation to the property with a locale of 'en' and a strength of 2. After this did not work, I directly entered MongoDB Compass and added the collation index wi... | How to make a MongoDB collection have an index that requires uniqueness with case insensitivity? | CC BY-SA 4.0 | null | 2023-03-02T18:52:41.947 | 2023-03-03T01:32:54.677 | null | null | 20,720,711 | [
"node.js",
"mongodb",
"express"
] |
75,619,719 | 2 | null | 54,931,275 | 0 | null | Working: cat requirements.txt
's' - at the end...
| null | CC BY-SA 4.0 | null | 2023-03-02T18:52:45.640 | 2023-03-02T18:52:45.640 | null | null | 20,881,496 | null |
75,619,721 | 2 | null | 75,619,660 | 0 | null | Simple mistake. change `context.filStyle` to `context.fillStyle`. Also, please fix the inconsistency in your code.
| null | CC BY-SA 4.0 | null | 2023-03-02T18:52:53.777 | 2023-03-02T18:52:53.777 | null | null | 15,017,928 | null |
75,619,679 | 1 | null | null | 0 | 13 | I'm following this document ([https://aws.amazon.com/blogs/opensource/setting-up-cross-account-ingestion-into-amazon-managed-service-for-prometheus/](https://aws.amazon.com/blogs/opensource/setting-up-cross-account-ingestion-into-amazon-managed-service-for-prometheus/)) to deliver metrics vis AMP to a centralized accou... | Prometheus Community Pod in Pending state after installing with helm | CC BY-SA 4.0 | null | 2023-03-02T18:47:40.080 | 2023-03-02T18:52:48.403 | 2023-03-02T18:52:48.403 | 2,051,904 | 2,051,904 | [
"amazon-web-services",
"kubernetes",
"prometheus",
"amazon-eks",
"prometheus-alertmanager"
] |
75,619,713 | 2 | null | 75,615,002 | 1 | null | It turns out that if you want to the loader data then you shouldn't be awaiting anything in the loader function, just return the promise.
See [deferred](https://reactrouter.com/en/main/guides/deferred).
The "ah-ha" moment came when I read this section in the docs:
> You can literally switch between whether something ... | null | CC BY-SA 4.0 | null | 2023-03-02T18:51:53.203 | 2023-03-02T19:00:52.600 | 2023-03-02T19:00:52.600 | 8,690,857 | 8,690,857 | null |
75,619,710 | 1 | null | null | 0 | 21 | I am trying AutoIT first time to upload `.xlsx` file in python. It's not text box so I can not use `sendkey` method.
This is AutoIT script:
```
import autoit
WinWaitActive("File Upload")
Send("C:\Users\abc\PycharmProjects\bdd\data\Abc- Remove EMail addressfinal .xlsx")
Send("{ENTER}")
```
Call the `autoIt.exe` file in... | Python Selenium Upload a file via AutoIT | CC BY-SA 4.0 | null | 2023-03-02T18:51:25.000 | 2023-03-03T14:45:20.373 | 2023-03-03T14:45:20.373 | 13,376,511 | 21,321,217 | [
"python",
"selenium-webdriver",
"ui-automation",
"autoit"
] |
75,619,722 | 2 | null | 15,592,775 | 0 | null | Step1 - Remove module-info.java file from your project
Step2 - Set the VM Arguments Click on Run--> Run Configuration --> Arguments
Add Path Like this (my sdk present in documents folder)
--module-path /Users/MICROSOFT/Documents/javafx-sdk-17.0.6/lib --add-modules javafx.controls,javafx.fxml
| null | CC BY-SA 4.0 | null | 2023-03-02T18:52:57.050 | 2023-03-02T18:52:57.050 | null | null | 6,750,838 | null |
75,619,711 | 1 | null | null | -4 | 48 | I have a SQL table for users where a single user can be up to 20 rows, each row has its own parameter.
The table has five columns and x many rows. Below is a sample extract from the table:
> DOMAIN OBJECTTYPE TESTUSERACCOUNT LAST_ACCESS 2023.01.20 08:54:48-0600 > DOMAIN OBJECTTYPE TESTUSERACCOUNT LOGIN_STAT 202... | moving multiple rows into a single row column | CC BY-SA 4.0 | null | 2023-03-02T18:51:25.587 | 2023-03-03T18:54:21.780 | 2023-03-03T15:54:34.813 | 14,839,761 | 14,839,761 | [
"sql"
] |
75,619,720 | 1 | null | null | -1 | 21 | ```
numbers = [-2, -2, -2, -5, -5, 6, 6, -2, -2, 5, 5, -2, -2, 4, 4, -2, -2]
start_index = None
super_ranges=[]
for i, num in enumerate(numbers):
# If we haven't started a new range yet
if start_index is None:
start_index = i
current_station_value = num
else:
if num == current_sta... | In Python, How can I get a list of ranges of everything between a start point and an end point? | CC BY-SA 4.0 | null | 2023-03-02T18:52:49.267 | 2023-03-03T00:35:44.267 | 2023-03-03T00:18:33.893 | 5,237,560 | 19,695,477 | [
"python",
"list",
"indexing"
] |
75,619,727 | 2 | null | 75,619,697 | 0 | null | You can use `Array#map` to create a new array where every element is replaced with the corresponding object from the other array, then sort based on the `things` field.
```
let myarray = [ "cars", "planes", "houses", "food"];
myarray.map(x => things.find(d => d.id == x))
.sort((a, b) => b.things - a.things)
.fo... | null | CC BY-SA 4.0 | null | 2023-03-02T18:53:22.383 | 2023-03-02T18:59:17.137 | 2023-03-02T18:59:17.137 | 9,513,184 | 9,513,184 | null |
75,619,725 | 1 | null | null | 0 | 24 | I am a beginner level programmer, trying to create a code editor for C# with RoslynPad. I've added the editor control to my WPF window, and highlighting also works. I would also like to enable code completion. I would appreciate if someone could point me in the right direction as to how to go about this.
This is what I... | How to set up code completion in RoslynPad wpf editor control? | CC BY-SA 4.0 | null | 2023-03-02T18:53:16.260 | 2023-03-03T07:37:12.900 | null | null | 20,997,858 | [
"c#",
".net",
"wpf",
"roslyn",
"code-editor"
] |
75,619,730 | 2 | null | 75,618,075 | 0 | null | Modifying your first query; by using subquery;
And for N = 2 it can be written as
```
SELECT id, usr, age
FROM (
SELECT id, usr, age,
ROW_NUMBER() OVER (PARTITION BY usr ORDER BY COUNT(*) DESC) AS user_rank
FROM test
GROUP BY id, usr, age
) myquery
WHERE user_rank <= 2;
```
| null | CC BY-SA 4.0 | null | 2023-03-02T18:54:08.580 | 2023-03-02T18:54:08.580 | null | null | 4,473,648 | null |
75,619,723 | 2 | null | 75,609,284 | 0 | null | This can be done in Power Query.
See the code comments for suggestions and algorithm.
```
let
//Change next line to reflect actual data source
Source = Excel.CurrentWorkbook(){[Name="Table3"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{
{"StoreNumber", Int64.Type}, {"StoreName", typ... | null | CC BY-SA 4.0 | null | 2023-03-02T18:53:07.123 | 2023-03-02T18:53:07.123 | null | null | 2,872,922 | null |
75,619,734 | 1 | null | null | 0 | 27 | Can you use the built in function randomElement() with the range so i can get a random element in the array with a specific range?
I am trying to get a random element in an array with a range to it, i am unable to use .random as it is an array.
I see that there is randomElemt(using:) but not sure how RandomNumberGenera... | Swift using the randomElement() function with a range | CC BY-SA 4.0 | null | 2023-03-02T18:54:43.113 | 2023-03-03T07:03:29.293 | null | null | 18,967,235 | [
"arrays",
"swift",
"random"
] |
75,619,733 | 1 | null | null | 0 | 11 | I'm trying to create a Gantt Chart for 10 machines and 100 Jobs but I have not found how to get something like this

I just get something like project charts but i don't need that format.

I found this guide but if I have many machines it... | Scheduling Gantt Chart | CC BY-SA 4.0 | null | 2023-03-02T18:54:33.233 | 2023-03-04T14:25:17.960 | 2023-03-04T14:25:17.960 | 2,395,282 | 21,314,414 | [
"python",
"plot",
"scheduling",
"gantt-chart"
] |
75,619,731 | 2 | null | 75,512,745 | 0 | null | Thanks to the excellent comments we have a solution given the Python library 'cache' behavior. I was unaware that Python was caching more than just imported modules. It appears to be caching the associated packages / directories that modules reside in and not on a module 'cache miss' as one might expect.
Here is the... | null | CC BY-SA 4.0 | null | 2023-03-02T18:54:12.007 | 2023-03-02T18:54:12.007 | null | null | 8,093,154 | null |
75,619,724 | 1 | null | null | 0 | 57 | I have some large text files that are too big to (sensibly) read into memory.
I would like to iterate over the characters in the files (for the purposes of removing some undesired sequences of characters), preserving any newline (`\n`) sequences.
For example, I would like to read:
```
ab|cd|ef
gh|i
j|kl
```
as:
```
ab... | Efficiently iterating over the contents of a large text file, preserving newlines | CC BY-SA 4.0 | null | 2023-03-02T18:53:15.780 | 2023-03-03T00:40:49.137 | 2023-03-02T22:06:52.723 | 8,663,963 | 8,663,963 | [
"c++",
"csv",
"text"
] |
75,619,728 | 1 | null | null | 0 | 15 | I am using `urllib.request` to download a video file from a URL and it works fine. I am also using the `progressbar` library to track the downloaded percentage and display it on the command like and that works well to. What I want now is how can I get the download speed while downloading the file in real-time? How can ... | get download speed when downloading files with urllib | CC BY-SA 4.0 | null | 2023-03-02T18:53:29.313 | 2023-03-02T19:03:05.193 | 2023-03-02T19:03:05.193 | 1,491,895 | 16,009,435 | [
"python",
"progress-bar"
] |
75,619,735 | 1 | null | null | -2 | 54 | When I was asking ChatGpt a question "What is lifetime extension in C++", ChatGpt gives me some explanation that makes perfect sense, but then an example like this:
```
class A {
public:
A(int x) { std::cout << "A constructor called\n"; }
~A() { std::cout << "A destructor called\n"; }
};
class B {
public:
... | C++ Lifetime extension with reference member in a class | CC BY-SA 4.0 | null | 2023-03-02T18:54:47.250 | 2023-03-02T18:54:47.250 | null | null | 13,747,729 | [
"c++",
"object",
"lifetime"
] |
75,619,742 | 2 | null | 75,591,178 | 1 | null | I would suggest you using `ConstrainedBox` instead of `SizedBox` to set minimum height
```
ConstrainedBox(
constraints: new BoxConstraints(
minHeight: 5.0,
),
),
```
original answer: [link](https://stackoverflow.com/a/48676681/10766511)
| null | CC BY-SA 4.0 | null | 2023-03-02T18:55:22.643 | 2023-03-02T18:55:22.643 | null | null | 10,766,511 | null |
75,619,740 | 2 | null | 68,278,342 | 0 | null | Unless you install a third-party extension that provides its own custom PHP parser, Visual Studio Code just relies in the PHP interpreter you install in order to lint files. That's provided by the builtin extension.
I will pick your PHP interpreter from your `PATH` variable. A simple way to figure it out is to type `p... | null | CC BY-SA 4.0 | null | 2023-03-02T18:55:10.657 | 2023-03-02T18:55:10.657 | null | null | 13,508 | null |
75,619,739 | 1 | 75,619,973 | null | 2 | 59 | I am trying to scan a list of 100,000,000 (list1) strings and match it with another list(list2).
List 1 can have upto 10 million rows.
If the contents of list2 are in list1 I am flagging those values in a counter and storing the result in a third list. So my lists are somewhat like this :
list1
```
['My name is ABC and... | Quicker Iteration in python through a big list | CC BY-SA 4.0 | null | 2023-03-02T18:55:00.340 | 2023-03-05T00:06:10.373 | 2023-03-05T00:06:10.373 | 4,149,611 | 4,149,611 | [
"python",
"pandas",
"numpy"
] |
75,619,743 | 2 | null | 64,008,273 | 0 | null | The following workarounds do work for Mac. Hopefully they might work for linux as well
Solution 1 (via terminal):
1. open terminal and type "sudo -H /Applications/QGIS-LTR.app/Contents/MacOS/bin/pip3 install package_name"
2. open QGIS's python console and type "import package_name" to verify
note that "QGIS-LTR.app"... | null | CC BY-SA 4.0 | null | 2023-03-02T18:55:22.940 | 2023-03-02T18:55:22.940 | null | null | 12,520,322 | null |
75,619,745 | 2 | null | 75,619,716 | 1 | null | IMHO, the example makes it clear just a [few lines later](https://docs.python.org/3/library/argparse.html#name-or-flags) in the linked reference:
> The first arguments passed to add_argument() must therefore be either a series of flags, or a simple argument name.[...]`parser.add_argument('-f', '--foo')`
It means you ca... | null | CC BY-SA 4.0 | null | 2023-03-02T18:55:28.527 | 2023-03-02T19:06:46.443 | 2023-03-02T19:06:46.443 | 480,982 | 480,982 | null |
75,619,744 | 2 | null | 75,616,049 | 0 | null | You could use:
```
^[a-zA-Z0-9]{5,15}(?:,[a-zA-Z0-9]{5,15})*$
```
- `^`- `[a-zA-Z0-9]{5,15}`- `(?:,[a-zA-Z0-9]{5,15})*``,`- `$`
[Regex demo](https://regex101.com/r/q8ISfS/1)
| null | CC BY-SA 4.0 | null | 2023-03-02T18:55:23.913 | 2023-03-02T18:55:23.913 | null | null | 5,424,988 | null |
75,619,746 | 1 | 75,621,172 | null | -2 | 30 | after updating to WINDOWS 11 getting silly error from Compiler (Compiler do not want compile line which contains Microsoft.Interop.Word). But before update everything worked just fine (I mean on Windows 10 ) . Is someone get same error . Thank you in advance
Code:
```
Object oMissing = Missing.Value;
string exp = ... | After Updating to Windows 11 getting compiler error from Microsoft Interop.Office ASP.NET WebForms | CC BY-SA 4.0 | null | 2023-03-02T18:55:30.783 | 2023-03-02T21:52:50.430 | 2023-03-02T21:52:50.430 | 1,603,351 | 16,298,531 | [
"c#",
"asp.net",
"office-interop",
"excel-interop",
"office-automation"
] |
75,619,750 | 1 | null | null | -3 | 40 | I need to create an application in ASP.NET Core 6.0 MVC to scan a QR code that could be printed on a paper, and save that information to the database in SQL Server.
For example, if I hit a button on the application, it would open the camera to scan the QR code and save the information to the SQL Server database.
I need... | How can I scan a QR code using ASP.NET Core 6 MVC? | CC BY-SA 4.0 | null | 2023-03-02T18:56:03.437 | 2023-03-02T19:13:13.637 | 2023-03-02T19:13:13.637 | 13,302 | 21,320,370 | [
"asp.net-core"
] |
75,619,741 | 1 | null | null | 0 | 17 | I'm trying to create a cloudformaiton template that deploys EC2 instances in multiple regions but makes a slight alteration to the userdata in a particular region. To do this I'm trying to figure out a way to use a map or conditional to make it so if the region is x or y, this is the user data, but if the region is z i... | CloudFormation Using Fn::Sub inside of Fn::If | CC BY-SA 4.0 | null | 2023-03-02T18:55:15.137 | 2023-03-02T21:35:54.450 | null | null | 8,178,152 | [
"amazon-web-services",
"yaml",
"aws-cloudformation"
] |
75,619,748 | 1 | null | null | 0 | 28 | I have an ASP.NET MVC web project that has folders `Controllers`, `Views`, `App_Data`, `App_Start` etc. There is another folder called `script` at the top level which has a `foo.js` file.
When I run the website on IIS Express and access `foo.js` via my browser making a http request, I can see the contents of the file o... | Why can't I directly access a physical file in an ASP.NET MVC website by making a request to that file on the browser? | CC BY-SA 4.0 | null | 2023-03-02T18:55:44.120 | 2023-03-02T23:54:34.800 | 2023-03-02T19:14:57.117 | 13,302 | 7,310,925 | [
"asp.net",
".net",
"asp.net-mvc"
] |
75,619,747 | 2 | null | 75,525,928 | 0 | null | Whether or not an LRS will "freak out" is largely dependent on that LRS and how it is deployed, etc.
As far as what the spec dictates, mostly you should be fine particularly if your statements have an `id` that is pre-populated. The LRS has two ways it can implement handling of statements that it feels it has seen befo... | null | CC BY-SA 4.0 | null | 2023-03-02T18:55:36.653 | 2023-03-02T18:55:36.653 | null | null | 1,464,957 | null |
75,619,729 | 1 | null | null | 0 | 14 | Pandas/Python here. I have the following table `cmf_data` (here's the DDL I used to create it):
```
CREATE TABLE mydb.cmf_data (
cmf_data_id int IDENTITY(1,1) NOT NULL,
cmf_data_field_name varchar(MAX) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
cmf_data_field_data_type varchar(MAX) COLLATE SQL_Latin1_Ge... | Validating Pandas DataFrame columns and cell values | CC BY-SA 4.0 | null | 2023-03-02T18:53:51.383 | 2023-03-02T18:53:51.383 | null | null | 5,235,665 | [
"python",
"pandas",
"validation"
] |
75,619,736 | 1 | null | null | 0 | 17 | I have a java library in a folder in my home folder (on linux) and I've been trying to edit my neovim config to let it be available for any java project. I'm having trouble finding the exact config I need though. I'm using lspconfig, and have tried setting the environment variable JDTLS_JVM_ARGS (like the lspconfig wik... | How can you include referenced libraries in neovim lsp using jdtls? | CC BY-SA 4.0 | null | 2023-03-02T18:54:47.340 | 2023-03-02T20:53:26.140 | 2023-03-02T20:53:26.140 | 546,861 | 7,864,556 | [
"java",
"lua",
"neovim",
"nvim-lspconfig"
] |
75,619,754 | 2 | null | 75,619,566 | 0 | null | Not sure if this works with `Oracle` as each engine has it own subtleties but
[here](https://regex101.com/r/7DDUrv/1) it seems to work.
```
(?:\<br \/\>\<b\>[ABC]:\<\/b\>\<br \/\>([^<]+)(?:\<\/b>(?:\<br \>)?)?)?\s*\n?\s*
```
| null | CC BY-SA 4.0 | null | 2023-03-02T18:56:55.263 | 2023-03-02T18:56:55.263 | null | null | 3,171,172 | null |
75,619,753 | 2 | null | 75,619,530 | 0 | null | Since your issue may be the same as [I cannot build my VSCode extension project in VSCode after update to 1.76](https://github.com/microsoft/vscode/issues/175833) I strongly encourage you to add your information there in case the original OP doesn't respond to request for more information and to help the devs to figure... | null | CC BY-SA 4.0 | null | 2023-03-02T18:56:49.567 | 2023-03-02T19:22:35.947 | 2023-03-02T19:22:35.947 | 836,330 | 836,330 | null |
75,619,752 | 1 | null | null | 0 | 24 | I have this mediaquery on my iframe:
`@include breakpoint(m)`
that will be called in:
```
@mixin breakpoint($class) {
@if $class == s {
@media (max-width: 599px) { @content; }
}
@else if $class == m {
@media (min-width: 768px) { @content; }
}
@else if $class == l {
@media (... | scss - media query not detecting width | CC BY-SA 4.0 | null | 2023-03-02T18:56:24.820 | 2023-03-03T00:06:53.163 | 2023-03-02T18:58:22.373 | 21,165,166 | 21,165,166 | [
"html",
"css",
"iframe",
"sass"
] |
75,619,751 | 1 | null | null | -2 | 30 | I have a legal document where I want to automatically identify references to another legal document.
The documents are similarly structured like this dummy example:
> explicitly states you should do your research on , especially when it comes to and .
My goal is to identify the references to other documents. At first... | Named Entity Recognition with entities split by other words | CC BY-SA 4.0 | null | 2023-03-02T18:56:08.983 | 2023-03-05T03:43:19.807 | 2023-03-03T19:43:02.573 | 5,240,684 | 5,240,684 | [
"python",
"regex",
"nested",
"spacy",
"named-entity-recognition"
] |
75,619,757 | 2 | null | 75,606,538 | 0 | null | There are few thigs that you should ensure
1. Verify that your app is setup for PKCE flow. To ensure go to App registration --> authentication and check that you are suing SPA as your platform. Since you are using MSAL.js you need to have SPA as your platform
2. Scope : Make sure you are passing scope when requesting ... | null | CC BY-SA 4.0 | null | 2023-03-02T18:57:06.760 | 2023-03-02T18:57:06.760 | null | null | 5,627,632 | null |
75,619,759 | 1 | null | null | 0 | 13 | I am creating a react component that is hosted on one server, and will be embedded through an iframe on another regular HTML page. I want to have a button that brings up a full-screen modal on the HTML page, regardless of the size of the iframe. Is this possible?
Solutions I've tried:
- `fixed``absolute``100vh``100vw`-... | How do I make a react component break out of its iframe? | CC BY-SA 4.0 | null | 2023-03-02T18:57:57.620 | 2023-03-02T18:57:57.620 | null | null | 14,270,725 | [
"javascript",
"html",
"reactjs",
"iframe"
] |
75,619,761 | 1 | null | null | 0 | 11 | I have a Django web application that is hosted on AWS Elastic Beanstalk, with a PostgreSQL database on AWS RDS. I have a strange issue where data updates in the UI are inserted to the model locally, but not in the deployed version. Additionally, it's only for one specific model. The other models take UI inputs fine in ... | Django App on Elastic Beanstalk not Inserting to Specific Model in Deployed Version (works locally) | CC BY-SA 4.0 | null | 2023-03-02T18:58:04.600 | 2023-03-02T18:58:04.600 | null | null | 4,647,811 | [
"python",
"django",
"postgresql",
"amazon-web-services",
"amazon-elastic-beanstalk"
] |
75,619,749 | 1 | 75,632,730 | null | 0 | 48 | I have NixOS 22.11 set up as on a local workstation. I'm looking for a way to create a customizable and flexible local environment for Wordpress development using Nix. I want the solution to be "ephemeral" (just drop-in config to any directory & run) and not modify my main system configuration (it uses flakes). I'm awa... | How to set up local Wordpress development environment using Nix without modifying flakes-based system configuration? | CC BY-SA 4.0 | null | 2023-03-02T18:55:50.513 | 2023-03-04T15:06:17.447 | 2023-03-04T11:44:25.347 | 466,862 | 13,161,150 | [
"nix",
"nixos"
] |
75,619,758 | 1 | null | null | 0 | 31 | I have the following class:
```
class Node():
def __init__(self, cfg: dict, cfg_path: str):
pass
```
And the following two children classes:
```
class Master(Node):
def __init__(self, cfg: dict, cfg_path: str):
pass
```
And
```
class Client(Node):
def __init__(self, cfg: dict, cfg_path: st... | Change current object into object of a "sibling" class | CC BY-SA 4.0 | null | 2023-03-02T18:57:40.210 | 2023-03-02T20:08:58.267 | 2023-03-02T19:18:03.833 | 14,601,089 | 14,601,089 | [
"python",
"object"
] |
75,619,763 | 1 | null | null | 0 | 26 | For any node, we can just do
```
node, err := clientset.corev1().Node("node_name").Get(...)
```
I am looking for something similar to view the kubelet agent.
`clientset.corev1().Pod` does not have them since it is not managed by api server.
Is there a way to programmatically retrieve this information?
| How do I read the kubelet agent information in a k8s cluster? | CC BY-SA 4.0 | null | 2023-03-02T18:58:17.710 | 2023-03-02T21:08:37.133 | 2023-03-02T21:04:03.927 | 9,208,887 | 1,467,926 | [
"kubernetes"
] |
75,619,760 | 1 | null | null | 0 | 13 | I'm a newbie in the NVIDIA GPU domain.
I'm trying to use NVIDIA's time-slicing feature with Kubernetes using [gpu-operator](https://github.com/NVIDIA/gpu-operator). As suggested [here](https://docs.nvidia.com/datacenter/cloud-native/gpu-operator/gpu-sharing.html), I followed the instructions and created a configmap wit... | NVIDIA GPU time slicing: Helm deployment for gpu-operator with devicePlugin.config.name fails | CC BY-SA 4.0 | null | 2023-03-02T18:58:01.797 | 2023-03-02T19:05:33.130 | 2023-03-02T19:05:33.130 | 21,321,167 | 21,321,167 | [
"kubernetes-helm",
"nvidia",
"nvidia-docker"
] |
75,619,765 | 1 | null | null | 0 | 7 | I am using opentelemetry-javaagent.jar. Health check and actuator url are also coming in jaeger. Can I exclude those url patterns somehow in java command itself like -Dotel.exclude.url?
| Excluding health and actuator url in opentelemetry java agent | CC BY-SA 4.0 | null | 2023-03-02T18:58:21.103 | 2023-03-02T18:58:21.103 | null | null | 14,877,151 | [
"java",
"open-telemetry",
"jaeger",
"opentracing",
"distributed-tracing"
] |
75,619,755 | 1 | null | null | 0 | 34 | I have a table like the one below:
```
+----------------+------------------+-------------------+--------------+-------------------+
|s_date |l_id |i_dtmz |product |v_dtmz |
+----------------+------------------+-------------------+--------------+-------------------+
|2... | How do I compare date with timestamp in spark sql | CC BY-SA 4.0 | null | 2023-03-02T18:56:58.643 | 2023-03-03T03:57:22.493 | 2023-03-03T03:57:22.493 | 5,327,068 | 12,464,504 | [
"python",
"apache-spark",
"pyspark",
"apache-spark-sql"
] |
75,619,767 | 1 | null | null | 0 | 15 | CloudKit integration does not support unique constraints. The following entities are constrained:
I'm trying to create cloudkit to my application integrated with existing CoreData
[enter image description here](https://i.stack.imgur.com/xehyZ.png)
| CloudKit integration does not support unique constraints. The following entities are constrained: | CC BY-SA 4.0 | null | 2023-03-02T18:58:25.257 | 2023-03-02T19:11:05.107 | 2023-03-02T19:11:05.107 | 20,287,183 | 7,268,039 | [
"xcode",
"core-data",
"cloudkit"
] |
75,619,766 | 2 | null | 75,617,977 | 0 | null | The `TabbedPanelItem` is a `ToggleButton`, so you can use `on_state` like this:
```
TabbedPanelItem:
text: "Cut"
on_state: if self.state == "down": app.root.current = "ImageScreen"
```
Note that you will never be able to see any content in that `TabbedPanelItem` if you use the tab to change to another ... | null | CC BY-SA 4.0 | null | 2023-03-02T18:58:22.557 | 2023-03-02T19:20:49.183 | 2023-03-02T19:20:49.183 | 7,254,633 | 7,254,633 | null |
75,619,762 | 2 | null | 75,619,612 | 2 | null | the number comes from `push` function whitch
> Appends new elements to the end of an array, and returns the new length of the array.
that means for typescript, your code here
```
acc.push(`${name} is ${age}`) && acc
```
- -
so the error should more details be
> No overload matches this call.
Overload 1 of 3, '(callba... | null | CC BY-SA 4.0 | null | 2023-03-02T18:58:15.987 | 2023-03-02T18:58:15.987 | null | null | 8,198,889 | null |
75,619,756 | 1 | null | null | 0 | 38 | I am working in a Spring Boot 2.5.2 + Java 8 project which has Open API 3.0:
```
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.6.14</version>
</dependency>
```
I need to show some specific error bodies to the user like this:
This example comes from ... | Spring Boot Open API 3.0 - How to show custom examples without writing a Json Manually | CC BY-SA 4.0 | null | 2023-03-02T18:57:03.390 | 2023-03-03T17:16:28.487 | 2023-03-03T11:22:40.380 | 13,573,784 | 13,573,784 | [
"java",
"spring",
"spring-boot",
"swagger",
"openapi"
] |
75,619,769 | 2 | null | 75,619,620 | 0 | null | I think the issue may be that your merge method is not updating the original array with the sorted result.
Instead, it is returning a new array array that contains the sorted elements.
Therefore, in your `mergesort(...)` method, when you call `merge(leftArray, rightArray)`, you are not actually updating the leftArray a... | null | CC BY-SA 4.0 | null | 2023-03-02T18:58:41.500 | 2023-03-02T18:58:41.500 | null | null | 13,209,416 | null |
75,619,772 | 2 | null | 75,609,217 | 0 | null | Use of out of bounds index on most STL containers(including `std::string`) leads to undefined behavior. If the container is empty(`c.empty()` or `empty(c)` or `c.size()==0` or `size(c)==0`), then the first element doesn't exist. Remember all those famous memes about the start index of arrays?
For an empty container, ev... | null | CC BY-SA 4.0 | null | 2023-03-02T18:59:05.293 | 2023-03-02T18:59:05.293 | null | null | 6,385,640 | null |
75,619,768 | 1 | 75,619,811 | null | 0 | 20 | I have few functions in functions.ts file, like this:
```
function fun1(input: string): boolean {
{...}
}
```
and in the end of file, I export these functions:
```
export {fun1, fun2, fun3};
```
In the index.ts file, that is called in html (it's very simple client-side app), I import these functions:
```
import {isIn... | Proper way to import functions from other file in TypeScript | CC BY-SA 4.0 | null | 2023-03-02T18:58:26.030 | 2023-03-02T19:04:01.137 | null | null | 15,297,043 | [
"javascript",
"typescript",
"es6-modules"
] |
75,619,777 | 1 | null | null | 0 | 9 | I am creating expo application for Web, Ios and Android uisng native base as UI component library.
I have Floating label in my design but native base v3 has no floating label input.
Can I use React native paper components inside my app.
Is it a good practice or should I avoid it?
| Can we use React Native paper components with Native base? | CC BY-SA 4.0 | null | 2023-03-02T18:59:37.270 | 2023-03-02T18:59:37.270 | null | null | 21,229,180 | [
"javascript",
"reactjs",
"react-native",
"native-base",
"react-native-paper"
] |
75,619,778 | 1 | null | null | 0 | 18 | I'm trying to make a 2.5D tank game. Currently the tank can move and shoot. However, when the bullet object collides with the wall it looses speed.
How can I get the bullet to maintain a set speed?
[https://i.postimg.cc/FsZ9Jc4h/image.png](https://i.postimg.cc/FsZ9Jc4h/image.png)
| unity keep speed when object collides into a wall | CC BY-SA 4.0 | null | 2023-03-02T18:59:37.657 | 2023-03-02T18:59:37.657 | null | null | 10,520,199 | [
"unity3d"
] |
75,619,770 | 2 | null | 75,617,201 | 1 | null | The [StringIndexOutOfBoundsException](https://docs.oracle.com/javase/7/docs/api/java/lang/StringIndexOutOfBoundsException.html) is an unchecked exception that occurs when an attempt is made to access the character of a string at an index which is either negative or greater than the length of the string.
> Thrown by Str... | null | CC BY-SA 4.0 | null | 2023-03-02T18:58:50.730 | 2023-03-02T19:04:11.727 | 2023-03-02T19:04:11.727 | 5,037,430 | 5,037,430 | null |
75,619,771 | 1 | null | null | 0 | 8 | I have a web app that has a main main-template.njk. I am building a mini app within this web app, and I want to base the pages off of the main-template.njk file, but add a few more things to it (specifically a filter bar to filter content on the page and a section template).
Can I create a mini-app__template.njk that ... | Is it possible to use a template to extend a template in Nunjucks? | CC BY-SA 4.0 | null | 2023-03-02T18:58:57.840 | 2023-03-02T18:58:57.840 | null | null | 19,881,049 | [
"javascript",
"html",
"node.js",
"nunjucks"
] |
75,619,779 | 1 | 75,620,525 | null | 0 | 20 | I want to run dask in a distributed environment (HPC cluster style).
After preparing the array, I run the `.persist()` method which should hopefully distribute the array across the cluster.
However, I would like to know, dynamically, where each block is physically located (i. e. in which node). I haven't found the meth... | Know the "physical" locations of the blocks of a dask array after `.persist()` | CC BY-SA 4.0 | null | 2023-03-02T18:59:40.630 | 2023-03-03T00:15:44.037 | null | null | 1,433,901 | [
"dask",
"dask-distributed"
] |
75,619,780 | 2 | null | 75,617,992 | 1 | null | You could write the pattern making the last part `.*(D\d{2,3})` optional:
```
(?<=XYX)\s*(\d{1,2})(\d)\s*([A-Z])?(?:.*(D\d{2,3}))?
```
See a [regex101 demo](https://regex101.com/r/RHLbGm/1).
| null | CC BY-SA 4.0 | null | 2023-03-02T18:59:44.110 | 2023-03-02T18:59:44.110 | null | null | 5,424,988 | null |
75,619,773 | 1 | null | null | 0 | 6 | I am trying to recieve from a socket listener car details for a car rescue app.
For some reason with every new event recieved, the socket prints more and more the data recieved each time.
Client side
```
const dispatch = useDispatch()
const { rescues } = useSelector((state) => state.rescue.value)
const { user }... | Multiple console.logs from received from socketio | CC BY-SA 4.0 | null | 2023-03-02T18:59:05.757 | 2023-03-02T18:59:05.757 | null | null | 19,364,624 | [
"node.js",
"reactjs",
"socket.io"
] |
75,619,718 | 2 | null | 75,617,655 | 1 | null |
## KinematicBody vs RigidBody
The main difference between `KinematicBody` and `RigidBody` is who is in charge of moving the object.
With `KinematicBody` your code is responsible for moving the object, using `move_and_slide` et.al. methods. With `RigidBody` the physics engine is responsible for moving the object.
Th... | null | CC BY-SA 4.0 | null | 2023-03-02T18:52:44.313 | 2023-03-02T18:52:44.313 | null | null | 402,022 | null |
75,619,781 | 2 | null | 75,619,607 | 1 | null | Generally, it is not encrypted because the API Gateway performs SSL termination. You should configure [backend SSL](https://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html) if you want the rest of the downstream flow encrypted.
| null | CC BY-SA 4.0 | null | 2023-03-02T18:59:49.297 | 2023-03-02T18:59:49.297 | null | null | 17,464,257 | null |
75,619,774 | 2 | null | 75,619,711 | 0 | null | To turn your current query result into a single row with multiple columns, you can use the SQL PIVOT function. PIVOT is used to transform rows into columns and can be used to achieve the desired result.
Here's an example query that uses PIVOT to transform your current query result:
```
SELECT [CLASS] AS USER,
[L... | null | CC BY-SA 4.0 | null | 2023-03-02T18:59:10.870 | 2023-03-03T18:54:21.780 | 2023-03-03T18:54:21.780 | 14,839,761 | 17,425,551 | null |
75,619,783 | 2 | null | 75,618,810 | 0 | null | You can start by initializing the state to an empty array:
```
useEffect(() => {
setState([]) // <-- initialize the state
const fetchType = async(typeId) => {
```
This would ensure that the 1st call to `fetchType` would have empty `prevState`.
Another option is to replace the state for the 1st item instead of add... | null | CC BY-SA 4.0 | null | 2023-03-02T18:59:53.980 | 2023-03-02T19:13:07.460 | 2023-03-02T19:13:07.460 | 5,157,454 | 5,157,454 | null |
75,619,776 | 2 | null | 75,619,612 | 1 | null | As far as TypeScript is concerned, [arr.push returns number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push#return_value), which is type. This includes `0`, negative numbers, `NaN`, and `Infinity`. I know that `arr.push` only returns positive integers, but TS does not disce... | null | CC BY-SA 4.0 | null | 2023-03-02T18:59:35.287 | 2023-03-02T18:59:35.287 | null | null | 18,244,921 | null |
75,619,786 | 1 | 75,619,809 | null | 0 | 16 | I'm trying to use `jq` to get an array from a json object and I need to remove the last three elements of this array. So this is what I did so far:
```
echo '{ "tags": [ "2.9.7", "2.9.8", "2.9.9", "2.9.10", "2.9.11", "2.9.12" ]}' | jq -r '.tags | sort[:3][]'
```
gives me `2.9.10 2.9.11 2.9.12`, but need it the other w... | Use jq to remove the last three elements of an array | CC BY-SA 4.0 | null | 2023-03-02T19:01:01.663 | 2023-03-02T19:19:34.893 | null | null | 3,142,695 | [
"arrays",
"json",
"jq"
] |
75,619,782 | 1 | 75,619,824 | null | 0 | 13 | I just started migrating from plain JS to TypeScript. All works well, except for a warning I get whenever I use a jQuery element in one of my classes. Both versions below compile and work in the browser, give me an annoying warning in the IDE though that I'd like to get rid of.
Attempt 1: Use `$` as type of my element:... | IDE warning when using jQuery with TypeScript in PhpStorm | CC BY-SA 4.0 | null | 2023-03-02T18:59:50.210 | 2023-03-02T19:09:37.057 | 2023-03-02T19:09:37.057 | 783,119 | 2,549,828 | [
"jquery",
"typescript",
"phpstorm",
"webstorm"
] |
75,619,784 | 2 | null | 56,106,003 | 0 | null | It's recommended to go Long when price closes ABOVE the Channel, because if it's "touching" the channel, maybe we'll reverse.
You have to use strategy.close() to exit long at market price when low touches the channel.
On Donchian Channels usually you have the 20days for the Upper Channel, and 10days for Lower Channel t... | null | CC BY-SA 4.0 | null | 2023-03-02T19:00:16.667 | 2023-03-02T19:00:16.667 | null | null | 21,321,381 | null |
75,619,787 | 1 | null | null | -1 | 18 | [enter image description here[][1]](https://docs.google.com/spreadsheets/d/18tq0njgCPWMCSnm33483v3bT1YieyNFV/edit?usp=drivesdk&ouid=107069602876427746049&rtpof=true&sd=true)[enter image description here](https://i.stack.imgur.com/lLPOf.jpg)using excel I am trying to find the correct slot in cell k2 , for time in j2 , a... | Look up correct slot | CC BY-SA 4.0 | null | 2023-03-02T19:01:07.940 | 2023-03-02T19:26:46.983 | 2023-03-02T19:26:46.983 | 16,459,086 | 16,459,086 | [
"excel",
"vba"
] |
75,619,790 | 2 | null | 73,062,141 | 0 | null | change your line
```
<p class="description">{{ content.meta_description |
default(content.post_summary, true) | truncatehtml(150, '...', false) }}</p>
```
to
```
<p class="description">{{ content.post_summary | truncatehtml(150, '...', false) }}</p>
```
Your original block of code is using the `content.meta_descript... | null | CC BY-SA 4.0 | null | 2023-03-02T19:01:32.863 | 2023-03-02T19:01:32.863 | null | null | 3,059,714 | null |
75,619,785 | 1 | null | null | 0 | 8 | I would like the height of the left bars made with the ChartJS library to be equivalent to the right ones...
[](https://i.stack.imgur.com/hll0a.png)
With stackOverflow topics I found this method (decrease the size of the parent container) but the bars overflow (they are not in absolute position).
[](https://i.stack.img... | How to lower the height of the bars with ChartJS? | CC BY-SA 4.0 | null | 2023-03-02T19:00:37.890 | 2023-03-02T19:00:37.890 | null | null | 18,853,924 | [
"chart.js"
] |
75,619,793 | 2 | null | 48,655,291 | 0 | null | Editing your catalina.properties and defining this:
```
server.tomcat.relaxed-path-chars=|,{,},[,]
```
| null | CC BY-SA 4.0 | null | 2023-03-02T19:01:56.687 | 2023-03-02T19:01:56.687 | null | null | 11,412,191 | null |
75,619,789 | 2 | null | 2,682,397 | 0 | null | Ok, this is rather old and probably useless, but I think there is still some space for a slight addition. If you have the number "ready":
```
if($num>=0) $num='+'.(0+$num);
```
Or, if you are sure it's a number:
```
if($num>=0) $num='+'.$num;
```
- This does nothing on negative numbers and just changes to string if p... | null | CC BY-SA 4.0 | null | 2023-03-02T19:01:20.650 | 2023-03-03T09:39:17.417 | 2023-03-03T09:39:17.417 | 1,856,861 | 1,856,861 | null |
75,619,788 | 1 | null | null | 0 | 15 | Good evening,
I will have to use Spark over S3 , using parquet as file format and Delta Lake for "Data Management".
The link between Spark and S3 has been solved.
But when I try to use DeltaLake with Spark (using python) ... I get this error :
```
------------------------------------------------------------------------... | Spark and Delta Lake [resolving dependancies (Maven and Spark repositories)] | CC BY-SA 4.0 | null | 2023-03-02T19:01:20.003 | 2023-03-03T12:14:12.657 | null | null | 13,754,549 | [
"apache-spark",
"java-11"
] |
75,619,791 | 1 | null | null | 0 | 17 | [](https://i.stack.imgur.com/HbYMZ.png)I want to show image from api via CachedNetworkImage. But don't understand what type it returns to me. and how I should convert it.
```
@override
Future<ResponceT<String>> getProfileImage(int version) async {
var response = await get(ApiRoutes.getImage);
if (!response.is... | How to covert image file for CachedNetworkImage in flutter | CC BY-SA 4.0 | null | 2023-03-02T19:01:49.510 | 2023-03-02T19:58:59.080 | null | null | 13,507,274 | [
"ios",
"flutter",
"image",
"png",
"dio"
] |
75,619,792 | 1 | null | null | 0 | 28 | I didn't work with the MVC a lot and I need a little help with the static files.
However if I build my MVC project and go to the output directory and run the application, all static files are not visible from the browser.
Do I need to copy entire wwwroot folder to the output folder during the build process in order to ... | ASP.NET Core MVC and static files to the build output directory | CC BY-SA 4.0 | null | 2023-03-02T19:01:53.720 | 2023-03-02T19:12:36.283 | 2023-03-02T19:12:36.283 | 13,302 | 1,903,517 | [
"c#",
"asp.net-core",
"asp.net-core-mvc"
] |
75,619,799 | 1 | 75,624,889 | null | 1 | 31 | I tried to create a batch project (for several jobs.)
There are no problems until testing, so I built the project, and run it using command line.
But it finished without any results or any errors. wt...
Here is my code
[https://github.com/Aosamesan/batch-no-reponse](https://github.com/Aosamesan/batch-no-reponse)
I trie... | My batch program does not run any jobs (Spring Batch 5.0.1 (+ Spring Boot 3.0.3)) | CC BY-SA 4.0 | null | 2023-03-02T19:02:39.133 | 2023-03-03T08:43:37.050 | 2023-03-02T19:14:27.430 | 21,321,357 | 21,321,357 | [
"spring-boot",
"kotlin",
"spring-batch"
] |
75,619,764 | 1 | 75,621,060 | null | 0 | 14 | I tried many different codes and ways in my project but don't know the reason why the data is not getting added to the firebase database.
Can I get to know where I am making mistakes or what changes should be done.
Can I please get the complete code which can help me to add the filled data by the user into the form.
``... | Why the form filled data using html and javascript is not getting added into the firebase database (V9) | CC BY-SA 4.0 | null | 2023-03-02T18:58:20.763 | 2023-03-02T23:13:20.923 | 2023-03-02T23:13:20.923 | 209,103 | 19,755,408 | [
"javascript",
"firebase",
"firebase-realtime-database"
] |
75,619,795 | 1 | null | null | 0 | 23 | I'm trying to run an asynchronous python script. Here I connect to the Postgresql database via asyncpg and get an error immediately on asyncpg.connect. The arguments for asyncpg.connect are obtained correctly from the environment variable, I have already checked. Postgresql listens to the port on the server, as a conne... | How to connect to the Postgresql database in asyncpg? | CC BY-SA 4.0 | null | 2023-03-02T19:02:31.850 | 2023-03-03T21:27:04.947 | 2023-03-03T21:27:04.947 | 18,373,363 | 18,373,363 | [
"python",
"postgresql",
"python-asyncio",
"asyncpg"
] |
75,619,797 | 1 | null | null | 0 | 20 | trying to replicate the SQL statment SELECT COUNT(DISTINCT columnname ) in Excel. The issue is that the values in the target column are alphanumerical in order, including dashes
I have tried these formulas:
1. =SUM(1/COUNTIF(Range, Range)) but I get as a result 0.
2. =SUM(--(FREQUENCY(MATCH(Column, Column, 0), ROW(Co... | What is the correct way to replicate the SELECT COUNT(DISTINCT columnname ) in Excel, via formula or VBS | CC BY-SA 4.0 | null | 2023-03-02T19:02:36.437 | 2023-03-02T19:24:38.967 | 2023-03-02T19:24:38.967 | 13,118,009 | 4,054,920 | [
"excel",
"excel-formula"
] |
75,619,802 | 2 | null | 73,917,579 | 0 | null | I had the same error I thinking adding this dependency helped
```
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>postgresql</artifactId>
<version>1.17.6</version>
</dependency>
```
| null | CC BY-SA 4.0 | null | 2023-03-02T19:03:06.830 | 2023-03-02T19:09:08.717 | 2023-03-02T19:09:08.717 | 11,432,986 | 11,432,986 | null |
75,619,794 | 1 | null | null | 0 | 34 |
### Preface
I'm using Visual Studio Code for C++. (I'm choosing it over Visual Studio because It's for small homework assignments, and the overhead of Visual Studio is just not worth it.)
I'm curious to know why IntelliSense is not linting my code while I type, like it does with Python or Java. I've experimented wit... | Why doesn't IntelliSense lint my code on edit? | CC BY-SA 4.0 | null | 2023-03-02T19:02:11.947 | 2023-03-02T22:29:50.697 | 2023-03-02T22:29:50.697 | 13,368,672 | 13,368,672 | [
"c++",
"visual-studio-code",
"intellisense"
] |
75,619,805 | 2 | null | 74,091,897 | 0 | null | - You can make your cloud run service internal and then attach it to a load-balancing service this way you can define a good link for your API.- While you are creating a load balancer you have to create a backend service for your API which you can make more secure.- By using either Identity Aware proxy another good gcp... | null | CC BY-SA 4.0 | null | 2023-03-02T19:03:28.517 | 2023-03-02T19:03:28.517 | null | null | 21,025,266 | null |
75,619,803 | 1 | null | null | 0 | 31 | I have some troubles with my client app in telegram. When I run my code, I have to confirm my account everytime (in the telegram itself, I need to enter the phone number and the code that came to the mail). The most interesting moment, that my code doesn't contain anything criminal. Just for testing
```
import asyncio
... | Telegram account needs to be confirmed every time when using Telethon | CC BY-SA 4.0 | null | 2023-03-02T19:03:12.130 | 2023-03-03T07:27:31.333 | null | null | 21,321,324 | [
"python",
"telegram",
"telethon"
] |
75,619,800 | 1 | null | null | 0 | 44 | I have an ASP.NET MVC application hosted on a web server. It is a data visualization program that collects data every 30 seconds using an asynchronous timer method. The application has two different views. However, if the user changes the view or refreshes the page while the `TimerElapsed` method is being called, the w... | Background Task with Timer in ASP.NET MVC | CC BY-SA 4.0 | null | 2023-03-02T19:02:42.997 | 2023-03-02T19:27:25.633 | 2023-03-02T19:27:25.633 | 4,190,402 | 21,172,004 | [
"c#",
"asp.net-mvc",
"asynchronous"
] |
75,619,798 | 1 | null | null | -3 | 26 | ```
using System;
using System.Data;
using System.Data.SqlClient;
public partial class \_Default : System.Web.UI.Page
{
SqlConnection connection = new SqlConnection(@"Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\\Database.mdf;Integrated Security=True");
protected void Page_Load(object sender, E... | I'm struggling to insert data into my database via C# | CC BY-SA 4.0 | null | 2023-03-02T19:02:38.143 | 2023-03-02T19:08:15.193 | 2023-03-02T19:08:15.193 | 724,039 | 21,321,339 | [
"c#",
"sql",
"database"
] |
75,619,807 | 2 | null | 75,617,904 | 0 | null | What I would do is convert the `UIImage` to `Data` using the following `UIImage` method:
```
public func jpegData(compressionQuality: CGFloat) -> Data?
```
You can call that function directly on your image to get back `Data` which you can then use to upload to Storage.
```
// handy extension
extension StorageMetadata ... | null | CC BY-SA 4.0 | null | 2023-03-02T19:03:38.253 | 2023-03-02T19:03:38.253 | null | null | 9,086,770 | null |
75,619,804 | 2 | null | 75,616,362 | 0 | null | I think this would be easier using the scroll event. When scrolling is started add `.blurred` css to the element, and remove it when scrolling is stopped. It could look something like this.
```
<div style="min-height:2000px">
<div class="blur-on-scroll" style="min-height:500px;width:100px"></div>
</div>
```
```
.b... | null | CC BY-SA 4.0 | null | 2023-03-02T19:03:20.940 | 2023-03-02T19:03:20.940 | null | null | 591,285 | null |
75,619,811 | 2 | null | 75,619,768 | 1 | null | When you link your script, make sure to have `type="module"`:
```
<script type="module" src="./path/to/my/transpiled/javascript.js"></script>
```
Reference: [JavaScript Modules: Applying the module to your HTML](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#applying_the_module_to_your_html)
| null | CC BY-SA 4.0 | null | 2023-03-02T19:04:01.137 | 2023-03-02T19:04:01.137 | null | null | 18,244,921 | null |
75,619,806 | 1 | null | null | 2 | 36 | I am working on a UI using React with Material UI (v5+). [In the docs](https://mui.com/material-ui/experimental-api/css-theme-variables/overview/), there is an `extendTheme` function you can use with `CssVarsProvider` to inject the MUI colors into CSS. In the docs in the same place, it says `You can create unlimited co... | React Material UI - Not possible to use themes other than 'light' and 'dark'? | CC BY-SA 4.0 | null | 2023-03-02T19:03:30.647 | 2023-03-03T17:02:02.773 | 2023-03-02T19:48:12.340 | 8,690,857 | 21,204,256 | [
"javascript",
"reactjs",
"material-ui"
] |
75,619,801 | 1 | null | null | 0 | 34 | I'm trying to learn things and make a page translator with Python. I'm able to translate most of the site but I can't get to the #text part of the html codes.
I'm trying to get the texts, translate them and replace them to the copied htm/html file. I tried using .get_Text() but it just translates and put them without s... | I can't select the "#text" in html with BeautifulSoup to translate | CC BY-SA 4.0 | null | 2023-03-02T19:03:06.650 | 2023-03-02T23:57:58.800 | null | null | 9,921,133 | [
"python",
"html",
"css",
"web-scraping",
"beautifulsoup"
] |
75,619,813 | 2 | null | 92,082 | 0 | null | For Oracle Toad users:
```
ALTER TABLE YOUR_SCHEMA.YOUR_TABLENAME ADD YOUR_COLUMNNAME VARCHAR2(100 CHAR);
COOMMIT;
```
| null | CC BY-SA 4.0 | null | 2023-03-02T19:04:14.127 | 2023-03-02T19:04:14.127 | null | null | 20,178,351 | null |
75,619,810 | 1 | 75,620,137 | null | 0 | 23 | im a bit confused on how to implement a t-test across elements of multiple 3d arrays with np.vectorize.
Goal: So, take three arrays with the same dimensions and size and apply a t test across one element from each in identical positions, creating another array with the same dimensions and size as the original three, wi... | How to use ttest with np.vectorize across multiple 3d arrays | CC BY-SA 4.0 | null | 2023-03-02T19:04:00.783 | 2023-03-03T02:20:19.713 | null | null | 12,027,237 | [
"python",
"numpy"
] |