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,636,556 | 1 | null | null | 0 | 10 | I am curretly using spring security for Oauth2 login via social providers (google, facebook etc). The current setup is based heavily on the following tutorial: [https://www.callicoder.com/spring-boot-security-oauth2-social-login-part-1/](https://www.callicoder.com/spring-boot-security-oauth2-social-login-part-1/)
i.e. ... | Add query parameters to social login authorisation URI with spring security | CC BY-SA 4.0 | null | 2023-03-04T15:09:15.807 | 2023-03-04T15:09:15.807 | null | null | 6,346,653 | [
"spring-security",
"oauth-2.0",
"google-oauth",
"spring-social"
] |
75,636,554 | 1 | null | null | 0 | 28 | I have a Firebase login flow with one NavHost and when the user successfully logs in, I go to another NavHost with a BottomBar Navigation. This flow is working as expected. The problem I am running into is that the HomeScreen(after a successful login) is being rendered over and over again. I have a RootNavGraph that ca... | Composable being rendered over and over | CC BY-SA 4.0 | null | 2023-03-04T15:09:01.457 | 2023-03-04T15:52:17.560 | 2023-03-04T15:30:18.653 | 4,219,444 | 4,219,444 | [
"android",
"android-jetpack-compose"
] |
75,636,537 | 2 | null | 11,658,189 | 0 | null | There is a way to do this for modern browsers (Edge 15+, Chrome, Safari),
You can use normal css.
```
div.sticky {
position: -webkit-sticky; /* Safari */
position: sticky;
}
```
Source: [W3Schools.com demo](https://www.w3schools.com/howto/howto_css_sticky_element.asp)
```
div.sticky {
position: -webkit-sticky;
... | null | CC BY-SA 4.0 | null | 2023-03-04T15:07:04.803 | 2023-03-04T15:07:04.803 | null | null | 921,224 | null |
75,636,561 | 1 | null | null | 0 | 45 | When I try to update with Json file, I get this error:
> Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon.
The code I used inside my stored procedure is:
```
U... | When I try to update using Json, in SQL Sever stored procedure, I get an error | CC BY-SA 4.0 | null | 2023-03-04T15:10:11.887 | 2023-03-04T16:19:20.270 | 2023-03-04T16:19:20.270 | 2,029,983 | 6,412,888 | [
"json",
"sql-server",
"sql-server-2016"
] |
75,636,560 | 1 | null | null | 0 | 28 | I want the script to open a pdf, prompt me to rate it, close it and open the next pdf. After I have rated all the pdfs I want it to go through them in order of rating, so I see those that I rated with 1 first and then those with the rating 2 and so on. There is a issue in the following script as it doesnt go through th... | bash script that goes through pdf files and asks for a rating | CC BY-SA 4.0 | null | 2023-03-04T15:09:52.853 | 2023-03-05T02:07:39.413 | null | null | 17,230,038 | [
"bash",
"pdf",
"terminal",
"zsh"
] |
75,636,557 | 2 | null | 46,751,164 | 0 | null | The biggest difference between the two is that calling `new` on a `class` creates a `this` object, while the modular function may or may not create an instance-like state object.
I am not going to post the advantages of using a `class` because there are hundreds of them in Stack Overflow. Instead, here is why you migh... | null | CC BY-SA 4.0 | null | 2023-03-04T15:09:21.973 | 2023-03-04T15:09:21.973 | null | null | 5,093,961 | null |
75,636,562 | 1 | null | null | 0 | 7 | I am trying to access the URL of Wagtail's image field that I use for a model. I usually don't need it for my web apps but we're talking about a mobile app so I need to serialize the absolute URL.
This is what it looks like/where I am, I think I went the wrong way:
Models:
```
class Banner(models.Model):
name = mod... | Get Wagtail Image absolute URL | CC BY-SA 4.0 | null | 2023-03-04T15:10:15.650 | 2023-03-04T15:10:15.650 | null | null | 15,490,350 | [
"wagtail"
] |
75,636,558 | 1 | 75,638,355 | null | 1 | 35 | I have a class "CellularInfo" where I am trying to display items in an Observable Collection, but the binding of `Rssi`, `Rsrp`, and `Rsrq` are not showing.
I know that LTEInfo is getting populated in CellularInfo.xaml.cs, but it's not binding.
Cellularinfo.xaml:
```
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage... | .NET MAUI - How come binding isn't working with ObservableCollection? | CC BY-SA 4.0 | null | 2023-03-04T15:09:42.283 | 2023-03-04T20:04:50.880 | 2023-03-04T15:37:37.017 | 12,637,353 | 12,637,353 | [
"c#",
".net",
"xaml",
"maui"
] |
75,636,547 | 1 | null | null | -1 | 19 | I am trying the following PHP code but, I didn't get what I expect. I want to display mark of students from mark table on HTML table. Mark table in database have id r_no, mark, weight, grade_id, subject_id, and exam term (term) attributes. I tried to display array of these mark on HTML table by using foreach loop. But ... | Why PHP foreach loop returns the same value multiple times? | CC BY-SA 4.0 | null | 2023-03-04T15:08:05.277 | 2023-03-04T15:21:40.907 | 2023-03-04T15:21:40.907 | 1,839,439 | 20,683,840 | [
"php",
"foreach",
"html-table"
] |
75,636,565 | 2 | null | 75,635,516 | 1 | null | `rpenabled.containsKey(true)` will always return false because the keys in your map are `Long`.
And `rpenabled.values().contains(true)` will return true if any of your map entries has a `true` value.
You probably want to query the map with `rpenabled.get(event.getGuild().getIdLong())` which will return the boolean valu... | null | CC BY-SA 4.0 | null | 2023-03-04T15:10:42.973 | 2023-03-04T15:10:42.973 | null | null | 5,646,962 | null |
75,636,569 | 2 | null | 75,495,752 | 0 | null | Ok, I finally found an answer to the problem:
In the auth-config.ts find this code:
```
export const loginRequest = {
scopes: []
}
```
Change it to:
```
export const loginRequest = {
scopes: [],
prompt: 'login'
}
```
This forces the user to enter their credentials on that request, negating single-sign on.... | null | CC BY-SA 4.0 | null | 2023-03-04T15:11:08.330 | 2023-03-04T15:11:08.330 | null | null | 183,425 | null |
75,636,566 | 2 | null | 75,632,990 | 0 | null | What credentials is Tableau using?
a) Personal credentials
b) Service Account credentials
1. If a), then double-check that you have proper access to both. I am not fully aware of what permissions Tableau requests when you establish a connection with BigQuery. But it is likely that it only asks for the BigQuery scope.
... | null | CC BY-SA 4.0 | null | 2023-03-04T15:10:56.583 | 2023-03-04T15:10:56.583 | null | null | 5,605,605 | null |
75,636,567 | 1 | null | null | 0 | 7 | I am working with a software (lobster _data) that has an HSQLDB 2.0.26 in it's calsspath. It is using it for internal stuff.
I am wondering if it is possible to create an AFTER UPDATE trigger that calls an http endpoint after a row has been updated.
I never worked with DB triggers, so this is quite new to me.
I learned... | HSQLDB AFTER UPDATE TRIGGER call http GET request | CC BY-SA 4.0 | null | 2023-03-04T15:11:01.153 | 2023-03-04T15:29:45.233 | null | null | 1,992,990 | [
"triggers",
"classpath",
"hsqldb"
] |
75,636,573 | 1 | null | null | -4 | 17 | I am trying to make a web game toy that can save your data and export it like the `Clicker Heroes` feature. However, I want a simplified version for a few variables but nothing has worked so far.
First I looked up ways to do this and found `Window.localStorage`. After trying a few versions nothing has worked so I want ... | Is there a way to save variable data from different sessions | CC BY-SA 4.0 | null | 2023-03-04T15:12:45.067 | 2023-03-05T05:32:13.143 | 2023-03-05T05:32:13.143 | 13,664,137 | 21,331,817 | [
"javascript",
"local-storage"
] |
75,636,564 | 2 | null | 75,636,364 | 2 | null | You should create a `Java project` using the IntelliJ idea first, so it will create all the necessary files for the IDE to recognize it as a native Java project.
Then, you can copy and paste your existing file codes into the `src` folder, respecting the Java module organization of:
`src > main > java > your Files/Packa... | null | CC BY-SA 4.0 | null | 2023-03-04T15:10:23.793 | 2023-03-04T16:01:03.440 | 2023-03-04T16:01:03.440 | 6,689,024 | 6,689,024 | null |
75,636,568 | 2 | null | 75,598,685 | 0 | null | Referring to the ["Adding additional style options"](https://clang.llvm.org/docs/ClangFormatStyleOptions.html) section of the `clang-format` documentation, not all customisations are sensible from either a conventional usage perspective, a runtime performance perspective or due to the penalties associated with invoking... | null | CC BY-SA 4.0 | null | 2023-03-04T15:11:07.810 | 2023-03-04T15:11:07.810 | null | null | 21,331,790 | null |
75,636,574 | 1 | null | null | -1 | 9 | I want to implement the google map using flutter web. I need current plug in an details documentations.
```
```
| how to implement google map on flutter web project | CC BY-SA 4.0 | null | 2023-03-04T15:12:45.567 | 2023-03-04T17:57:40.930 | null | null | 21,332,030 | [
"flutter",
"dart",
"google-maps"
] |
75,636,577 | 2 | null | 75,634,215 | 0 | null | There will be cases where your server might misbehave. It's always advised to handle null cases. In your model Model(url: json["json_url"]?? "https://a_fallback_imahlge.jpg")
| null | CC BY-SA 4.0 | null | 2023-03-04T15:13:21.090 | 2023-03-04T15:13:21.090 | null | null | 16,273,894 | null |
75,636,570 | 2 | null | 75,636,016 | 0 | null | With this test case the distance between all borders is exact the smae. I did check it, no pixel difference ;)
```
* {
box-sizing: border-box;
}
html, body {
height: 100%;
margin: 0;
}
body {
font: 400 16px/1.5 sans-serif;
}
img {
width: 65px;
height: 65px;
border: 0;
}
.container, a, img {
border: thin... | null | CC BY-SA 4.0 | null | 2023-03-04T15:11:47.293 | 2023-03-04T15:11:47.293 | null | null | 5,160,920 | null |
75,636,572 | 1 | null | null | 0 | 11 | There is a parser, it should collect all pages from the site in JSON, but only the last page is processed, the code is attached
from unittest import result
import requests
import json
from fake_useragent import UserAgent
ua = UserAgent()
def get_page():
```
headers = {
"user-agent":f"{ua.random}",
"accept": "te... | Not parsing all Json page data | CC BY-SA 4.0 | null | 2023-03-04T15:12:24.507 | 2023-03-04T15:31:02.800 | 2023-03-04T15:31:02.800 | 21,332,093 | 21,332,093 | [
"json"
] |
75,636,575 | 2 | null | 75,564,733 | 1 | null | Inside your browse functions you repeat the code that creates the labels that hold the paths :
```
def JMfileBrowser():
stfiletypes = (('text files', '*.xlsx'),('All files', '*.*'))
path= filedialog.askopenfilename(filetypes=stfiletypes)
JMFilePath = Label(window, width=100,text=path)
JMFilePath.grid(co... | null | CC BY-SA 4.0 | null | 2023-03-04T15:12:48.147 | 2023-03-04T15:12:48.147 | null | null | 1,362,643 | null |
75,636,576 | 1 | null | null | 0 | 26 | I'm trying to write a regex that can find & symbols that are not inside brackets. For example:
```
gotcha & symbol [but not that & one [even that & one] and not this & one] but this is & ok
```
I end up with this regex, but I can't realize how to handle properly nested brackets:
```
&(?![^[]*])
```
[Link](https://re... | How to match & symbols which inside brackets using regex | CC BY-SA 4.0 | null | 2023-03-04T15:13:06.197 | 2023-03-04T16:53:00.990 | null | null | 2,891,802 | [
"regex",
"python-re"
] |
75,636,578 | 2 | null | 75,636,111 | 0 | null | You can locate all local maxima using `scipy`:
```
from scipy.signal import argrelextrema
inds_local_max = argrelextrema(zz, np.greater)
```
| null | CC BY-SA 4.0 | null | 2023-03-04T15:13:25.940 | 2023-03-04T15:13:25.940 | null | null | 21,221,244 | null |
75,636,582 | 2 | null | 75,636,426 | -1 | null | I recommend to use “union all”, seperate select query for each like statement, as below:
```
select * from table where column like 'abc%'
Union All
select * from table where column like 'bcd%'
Union All
select * from table where column like '%cde'
```
| null | CC BY-SA 4.0 | null | 2023-03-04T15:13:53.750 | 2023-03-04T15:13:53.750 | null | null | 12,334,298 | null |
75,636,583 | 2 | null | 75,626,031 | 0 | null | Generally speaking this is something mitmproxy does not have a great answer to at the moment.
One approach that comes to mind is to use a library like [httpx](https://www.python-httpx.org/) in an `async def request` hook to populate `flow.response`, but that's quite a bit of manual setup.
| null | CC BY-SA 4.0 | null | 2023-03-04T15:13:59.907 | 2023-03-04T15:13:59.907 | null | null | 934,719 | null |
75,636,585 | 2 | null | 75,636,353 | 1 | null | Why not pass the selected name to `prepare(for:sender:)` using the `sender` parameter.
```
...
let selectedName = cell?.textLabel?.text
performSegue(withIdentifier: "segue", sender: selectedName)
```
and then read it as
```
let selectedName = sender as? String ?? ""
vc2.name = selectedName
```
| null | CC BY-SA 4.0 | null | 2023-03-04T15:14:11.170 | 2023-03-04T15:14:11.170 | null | null | 9,223,839 | null |
75,636,579 | 1 | null | null | 0 | 45 | I'm trying to render products array using a map, but when I try to use the spread operator to pass map data to child component, I get this error: `Parsing error: Unexpected token ...`. Do you know what is the reason?
This is my code:
```
<div className="products">
{products &&
products?.products?.map((data) => (
... | Can I use .map() and spread operator for render a div in React hooks? | CC BY-SA 4.0 | null | 2023-03-04T15:13:27.980 | 2023-03-04T17:24:41.823 | 2023-03-04T15:27:38.513 | 1,762,224 | 6,437,104 | [
"javascript",
"reactjs"
] |
75,636,588 | 1 | null | null | 0 | 14 | I want `pip install jupyterthemes` in my environment on Anaconda.
At first it said I didn't install `Rust`. But after I install and pip again, it says
```
Collecting pywinpty>=1.1.0
...
Preparing wheel metadata ... error
...
ERROR: Command errored out with exit status 1:
Caused by: Cargo metadata failed. Does your cr... | pip install in virtual environment / cargo metadata failed | CC BY-SA 4.0 | null | 2023-03-04T15:15:20.900 | 2023-03-04T21:23:45.140 | 2023-03-04T21:23:45.140 | 5,446,749 | 19,492,541 | [
"rust",
"pip",
"virtual-environment"
] |
75,636,580 | 2 | null | 75,627,192 | 0 | null | I have been using a unit test helper library that I wrote long ago.
```
export class TestHelper {
static isDisabled(fixture: ComponentFixture<any>, selector: string): boolean {
const element = fixture.debugElement.query(By.css(selector));
expect(element).toBeTruthy(`${selector} should exist`);
return element.pr... | null | CC BY-SA 4.0 | null | 2023-03-04T15:13:32.430 | 2023-03-04T15:13:32.430 | null | null | 11,975,045 | null |
75,636,592 | 1 | null | null | -1 | 26 | I have three tables, Students and Grades and Group, I want to update the Students who have at least one grade below 5 and change their Group.
So far i found a way just to select the students with at least one grade below 5.
```
SELECT Student.Name
FROM Student
JOIN (
SELECT Student, Subject
FROM Grades
WHER... | Update a table values from the same table based on a value from another table | CC BY-SA 4.0 | null | 2023-03-04T15:16:24.997 | 2023-03-04T16:49:19.100 | 2023-03-04T16:30:11.387 | 9,169,016 | 9,169,016 | [
"sql",
"sql-server",
"tsql"
] |
75,636,590 | 2 | null | 75,636,555 | 2 | null | You wrong error.
Sample data:
```
SQL> set serveroutput on
SQL> select * from employees;
EMPLOYEE_ID FIRST_NAME
----------- ----------
1 Littlefoot
9999
```
Your procedure, modified - added `no_data_found` exception which fires when `select` doesn't return any rows (which is what you wanted). excep... | null | CC BY-SA 4.0 | null | 2023-03-04T15:16:03.303 | 2023-03-04T15:16:03.303 | null | null | 9,097,906 | null |
75,636,587 | 2 | null | 75,633,533 | 0 | null | The sequence and its elements are loaded in a `CommentedSeq` which behaves like a Python
list, but also contains the comments. You can inspect its `.ca` attribute
to see what the comments on the existing lines look like and create an
extra comment item for the added entry:
```
import sys
from pathlib import Path
import... | null | CC BY-SA 4.0 | null | 2023-03-04T15:14:48.277 | 2023-03-04T15:14:48.277 | null | null | 1,307,905 | null |
75,636,593 | 2 | null | 67,239,799 | 0 | null | As stated you can add multiple interceptors to the same `OkHttpClient`
```
OkHttpClient client = new OkHttpClient.Builder()
.addInterceptor(authInterceptor)
.addInterceptor(appendInterceptor)
.addInterceptor(loggingInterceptor)
.readTimeout(20, TimeUnit.SECONDS)
.build();
```
I just want to add that you need to ad... | null | CC BY-SA 4.0 | null | 2023-03-04T15:16:31.707 | 2023-03-04T15:16:31.707 | null | null | 753,000 | null |
75,636,581 | 2 | null | 75,636,296 | 1 | null | Here's one approach:
- [Series.tolist](https://pandas.pydata.org/docs/reference/api/pandas.Series.tolist.html)`CashFlowDto`[pd.DataFrame](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html)[SO answer](https://stackoverflow.com/a/63311361/18470692)- `n = len(df)`[pd.concat](https://pandas.pydata.org/docs... | null | CC BY-SA 4.0 | null | 2023-03-04T15:13:46.470 | 2023-03-04T16:09:43.173 | 2023-03-04T16:09:43.173 | 18,470,692 | 18,470,692 | null |
75,636,594 | 1 | null | null | 0 | 30 | I have a MDI application that has MDI child windows.
Those windows have a TEventScrollBox
```
TEventScrollBox = class(TScrollBox)
private
FVScrollEvent: TNotifyEvent;
FHScrollEvent: TNotifyEvent;
FCanvas : TCanvas;
Procedure WMVScroll( Var msg: TWMVScrol... | Delphi scrollBox image display flickering issue | CC BY-SA 4.0 | null | 2023-03-04T15:16:44.027 | 2023-03-04T15:16:44.027 | null | null | 4,059,171 | [
"delphi",
"graphics"
] |
75,636,595 | 1 | 75,637,568 | null | 1 | 26 | just wondering if there is a much faster loop than the loop below,what its doing is from sheet1 B check if E is blank then compare B of sheet1 on B of sheet2 with trim-replace if true enter value to both E of sheet1 and sheet2, just over 1.5K rows and its taking about 10 seconds
```
Sub CompareData()
Dim lastRowSht1 A... | convert to much faster loop with offset | CC BY-SA 4.0 | null | 2023-03-04T15:16:59.193 | 2023-03-04T22:13:27.997 | null | null | 16,220,410 | [
"excel",
"vba"
] |
75,636,600 | 1 | null | null | -1 | 29 | I added other password rules using opts inside the Program.cs file. Only one password rule can't be defined here, which is that the password has to start with a letter. Right now, it doesn't care if the password starts with a number or a letter.
```
services.Configure<IdentityOptions>(opts => {
opts.Password.RequiredLe... | Password has to start with a letter - ASP.NET Core MVC 6 | CC BY-SA 4.0 | null | 2023-03-04T15:17:40.170 | 2023-03-04T18:49:43.023 | 2023-03-04T15:18:48.733 | 23,528 | 21,332,104 | [
"c#",
"asp.net-core"
] |
75,636,602 | 2 | null | 75,636,533 | 0 | null | There is no way to change a user's custom claims in the Firebase console. To change a user's custom claim, you'll have to call the API as you already do.
The only alternative I know off is the [Set Auth claims with Firestore](https://github.com/FirebaseExtended/experimental-extensions/tree/next/firestore-auth-claims) e... | null | CC BY-SA 4.0 | null | 2023-03-04T15:18:03.417 | 2023-03-04T15:18:03.417 | null | null | 209,103 | null |
75,636,601 | 1 | null | null | -2 | 11 | Is there a performance difference between passing builder.Services directly to a method or passing builder.Services to a variable and then passing it to a method?
Example:
```
var builder = WebApplication.CreateBuilder(args);
var services = builder.Services;
Test1(builder.Services);
Test2(services);
Test3(builder)
vo... | Difference between passing builder.Services directly to a method or passing builder.Services to a variable and then passing it to a method? | CC BY-SA 4.0 | null | 2023-03-04T15:17:48.270 | 2023-03-04T15:17:48.270 | null | null | 3,874,813 | [
"c#",
".net"
] |
75,636,591 | 2 | null | 75,635,495 | 0 | null | Your request are running concurrently, it is just that some of them are in the phase of the Connection Start. This could be because of any of the reasons under . See [previewing a timing breakdown](https://developer.chrome.com/docs/devtools/network/reference/#timing-preview).
- - - -
You can see the difference betwee... | null | CC BY-SA 4.0 | null | 2023-03-04T15:16:24.017 | 2023-03-04T15:16:24.017 | null | null | 258,174 | null |
75,636,589 | 1 | null | null | 1 | 28 | I'm new to Laravel and much newer when it comes to AJAX. Right now I'm still learning about Laravel CRUD with AJAX using Yajra DataTables by building a small project. I'm also enabling server-side processing in DataTables. The web works fine and all, but I noticed a problem, Laravel Debugbar shows exactly the same 2 qu... | Why Yajra DataTables Fires 2 Duplicate Queries? | CC BY-SA 4.0 | null | 2023-03-04T15:15:46.010 | 2023-03-04T17:51:39.560 | 2023-03-04T15:41:45.647 | 21,332,065 | 21,332,065 | [
"laravel",
"datatables",
"yajra-datatable"
] |
75,636,599 | 2 | null | 75,636,296 | 1 | null | There's probably a more elegant way to do this by applying [pd.json_normalize](https://pandas.pydata.org/docs/reference/api/pandas.json_normalize.html) to your original data, but I'll suggest a solution using [list comprehension](https://www.programiz.com/python-programming/list-comprehension) (and [zip](https://docs.p... | null | CC BY-SA 4.0 | null | 2023-03-04T15:17:27.677 | 2023-03-04T15:17:27.677 | null | null | 6,146,136 | null |
75,636,606 | 2 | null | 75,636,451 | 0 | null | It's regex back-references, you could find out more about it [here](https://www.regular-expressions.info/backref.html).
The second part `(x)\1{1,}` means looking for letter `x` which followed by repeated letter `x`, then captured it to 1st group.
| null | CC BY-SA 4.0 | null | 2023-03-04T15:18:58.757 | 2023-03-04T15:22:16.827 | 2023-03-04T15:22:16.827 | 7,430,869 | 7,430,869 | null |
75,636,598 | 1 | null | null | 0 | 15 | What should happen:
The bar.low of the green fractal before the entry defines the SL (bar.low*0,9998 = SL)
What happens:
The value gets overwritten all the time. If a new green fractal appears, it changes the SL to the low of the new bar.
Here's an example
[Screenshot that explains the problem](https://i.stack.imgur.co... | How to use ta.valuewhen in combination with fractals & strategy.open | CC BY-SA 4.0 | null | 2023-03-04T15:17:18.873 | 2023-03-04T15:20:42.947 | 2023-03-04T15:20:42.947 | 21,152,740 | 21,152,740 | [
"pine-script",
"trading",
"algorithmic-trading"
] |
75,636,610 | 2 | null | 24,303,279 | 1 | null | Just implement this method in your custom view.
```
override func layoutSubviews() {
super.layoutSubviews()
sublayer1.frame = self.layer.bounds
}
```
| null | CC BY-SA 4.0 | null | 2023-03-04T15:19:59.397 | 2023-03-04T15:19:59.397 | null | null | 21,331,610 | null |
75,636,605 | 2 | null | 27,304,792 | 0 | null | This is my solution for trimming leading/trailing characters. This runs entirely inside AppleScript.
```
-- trim specified leading/trailing characters from a string
on trimString(theSource, theTrimmer)
local theResult
set strBegin to 1
set strEnd to length of theSource
-- find first char after... | null | CC BY-SA 4.0 | null | 2023-03-04T15:18:27.047 | 2023-03-04T15:53:27.493 | 2023-03-04T15:53:27.493 | 21,332,114 | 21,332,114 | null |
75,636,608 | 2 | null | 75,635,498 | 0 | null | PyScript is based on Pyodide, so you can use Python-only packages from PyPi and parts of the standard library that is available in Pyodide [as explained in PyScript FAQ](https://docs.pyscript.net/latest/reference/faq.html#what-packages-can-i-use-can-i-use-anything-from-pypi).
However, Pyodide does not include tkinter a... | null | CC BY-SA 4.0 | null | 2023-03-04T15:19:34.420 | 2023-03-04T15:19:34.420 | null | null | 21,313,424 | null |
75,636,613 | 2 | null | 75,631,506 | 1 | null | The issue is that [annotations](https://plotly.com/javascript/reference/layout/annotations/#layout-annotations) expects an array of objects, so you just need to enclose the definition into square brackets :
```
// ...
annotations: [{
x: 2,
y: 5,
xref: 'x',
yref: 'y',
text: 'Annotation Text',
showarrow: true... | null | CC BY-SA 4.0 | null | 2023-03-04T15:20:25.170 | 2023-03-04T15:20:25.170 | null | null | 2,529,954 | null |
75,636,612 | 1 | null | null | -1 | 14 | Chrome frequently discards (i.e. 'unloads') tabs that haven't been active for a while. That makes sense if low on RAM, but I have ~70GB spare RAM.
I put this into the address bar: `chrome://discards` and can see all open tabs and their discard status (AKA 'Loading State') i.e. `loaded` vs `unloaded`).
How can I configu... | How to disable tab discarding (unloading) in Google Chrome? | CC BY-SA 4.0 | null | 2023-03-04T15:20:14.990 | 2023-03-04T15:26:19.300 | 2023-03-04T15:26:19.300 | 5,783,745 | 5,783,745 | [
"google-chrome"
] |
75,636,614 | 2 | null | 75,616,152 | 1 | null | To add new columns, you may:
1. Add new states to needed work item types: Change the workflow for a work item type
2. Add new states to the boards: Import and export process configuration, Map WIT category workflow states to state categories
| null | CC BY-SA 4.0 | null | 2023-03-04T15:20:31.283 | 2023-03-04T15:20:31.283 | null | null | 8,235,971 | null |
75,636,615 | 2 | null | 2,338,001 | 0 | null | This is the final code that seems to be working (thanks for the suggestions):
```
# Add serialization for array objects
def array_unpickler(data):
return array.array(data[0], data[1:])
def array_pickler(arr):
return array_unpickler, ("%s%s" % (arr.typecode, arr.tostring()),)
copy_reg.pickle(array.ArrayType, arr... | null | CC BY-SA 4.0 | null | 2023-03-04T15:20:39.237 | 2023-03-04T15:20:39.237 | null | null | 5,446,749 | null |
75,636,609 | 1 | null | null | 0 | 5 | I am trying to make a chart that is filtering data based on timeline, and when I select the timeline 1 Year or All , the line moves onto the right side of the screen and shows empty space on the left side its expected behavior since there is not enough data and missing coordinate data shows empty space
Is there a way t... | how to ignore the empty plot coordinates in apex charts? | CC BY-SA 4.0 | null | 2023-03-04T15:19:50.870 | 2023-03-04T15:19:50.870 | null | null | 20,765,912 | [
"javascript",
"apexcharts",
"ng-apexcharts"
] |
75,636,616 | 1 | null | null | 0 | 5 | We have ionic 6 project with capacitor .
Currently we are on capacitor 2 so our native apps are build using capacitor 2 version.
When I update capacitor version to 4 we got below errors in native apps.Both android and Ios.
And thais error also not came every time.This will only generates when I use redirection function... | ERROR Error: Uncaught (in promise): Error: Importing g which does not have a ɵmod property | CC BY-SA 4.0 | null | 2023-03-04T15:20:52.730 | 2023-03-04T15:20:52.730 | null | null | 20,123,769 | [
"android",
"angular",
"ionic-framework",
"capacitor"
] |
75,636,604 | 1 | null | null | 0 | 13 | I'm trying to serve some images (based on upload year) from outside the `public_html` directory.
However, I'm failing to attend so.
The current path is
`/home/username/public_html/images/uploaded/{year}/{month}/image.jpg|png|gif`
I have mounted an additional space due to storage shortage and moved some images to this v... | Serve Images from Directory Outside public_html using NGINX Apache | CC BY-SA 4.0 | null | 2023-03-04T15:18:19.443 | 2023-03-04T15:18:19.443 | null | null | 3,901,458 | [
"image",
"apache",
"nginx",
"configuration"
] |
75,636,618 | 2 | null | 72,192,880 | 0 | null | You would just need to setup a contact flow that uses the Start Media Streaming with Lambda involved. The process uses Kinesis and then you can retrieve the full transcript through your S3 (or send it whereever you need). Although doesn't give you direct steps, this link explains the use. [https://docs.aws.amazon.com... | null | CC BY-SA 4.0 | null | 2023-03-04T15:21:19.393 | 2023-03-04T15:21:19.393 | null | null | 21,329,598 | null |
75,636,620 | 2 | null | 75,566,593 | 0 | null | can anyone find the solution. it's also shown in my vs code ? I research a lot but no solutons found.After typing pip install speechRecognititon when i run the code it's showing module not find error .
| null | CC BY-SA 4.0 | null | 2023-03-04T15:21:45.337 | 2023-03-04T15:21:45.337 | null | null | 21,332,127 | null |
75,636,621 | 2 | null | 75,636,208 | 0 | null | You have imported BookPropertyComponent in app-routing.module.ts but you forgot to import it in app.module.ts
| null | CC BY-SA 4.0 | null | 2023-03-04T15:22:00.093 | 2023-03-04T15:22:00.093 | null | null | 11,526,505 | null |
75,636,617 | 1 | null | null | 0 | 7 | I am trying to add a table as a footer in a PDF document.
According to what I am reading online, I can do that by using a RtfHeaderFooter.
When I try it:
```
package openpdf;
import com.lowagie.text.Document;
import com.lowagie.text.Font;
import com.lowagie.text.FontFactory;
import com.lowagie.text.PageSize;
import co... | RTF footer not showing table text | CC BY-SA 4.0 | null | 2023-03-04T15:21:07.117 | 2023-03-04T15:21:07.117 | null | null | 17,852,207 | [
"openpdf"
] |
75,636,625 | 2 | null | 66,852,210 | 0 | null |
## Dataset
```
let arr = [
{ name: 'A', age: 40 },
{ name: 'B', age: 50 },
{ name: 'C', age: 30 },
]
```
## Sort: Ascending order on age values
```
arr?.sort((a, b) => {
return a?.age-b?.age
})
```
## Sort: Descending order on age values
```
arr?.sort((a, b) => {
return b?.age-a?.... | null | CC BY-SA 4.0 | null | 2023-03-04T15:22:32.737 | 2023-03-04T15:22:32.737 | null | null | 14,350,717 | null |
75,636,623 | 1 | null | null | 1 | 27 | I want to change the color of the items of my `ListBox` that are meeting SQL condition, when the Forms is loaded.
Example :
I open the `FormsProducts`:
The A product has a MTBF value above 30 -> The item will be written normally in the `ListBox`.
The B product has a MTBF value == 30 or below -> The item will be written... | Windows Forms - Color on ListBox Items if meets SQL condition | CC BY-SA 4.0 | null | 2023-03-04T15:22:19.263 | 2023-03-04T19:55:26.110 | 2023-03-04T19:55:26.110 | 11,654,250 | 21,332,080 | [
"c#",
"colors",
"conditional-statements",
"listbox"
] |
75,636,622 | 2 | null | 75,635,986 | 0 | null | The approach you are using to get data from the JSON file is correct. However, the issue you are facing is related to asynchronous execution. Since the HTTP request is asynchronous, it does not block the execution of the rest of the code. Therefore, when you try to access this.configData.accessToken outside of the subs... | null | CC BY-SA 4.0 | null | 2023-03-04T15:22:16.783 | 2023-03-04T15:22:16.783 | null | null | 3,825,502 | null |
75,636,619 | 1 | null | null | -3 | 22 | When I am writing multiple time to a conn it is mixing my data but not when i am writing after 1 second sleep what is the reason and how do i fix it.In go playgroud i get in one long string very confused about this. if i write multiple times dosen't it send multiple data why it is joining all the data.
english is not m... | Golang why net.Conn is mixing the data on write | CC BY-SA 4.0 | null | 2023-03-04T15:21:24.683 | 2023-03-04T15:29:13.560 | null | null | 21,305,172 | [
"go",
"tcp"
] |
75,636,628 | 2 | null | 72,765,663 | 0 | null | choose proper image tag which has linux/arm64 OS/arch
Eg: 3.11.10-debian-11-r0 in [https://hub.docker.com/r/bitnami/rabbitmq/tags?page=1](https://hub.docker.com/r/bitnami/rabbitmq/tags?page=1)
| null | CC BY-SA 4.0 | null | 2023-03-04T15:22:43.700 | 2023-03-04T15:22:43.700 | null | null | 5,190,040 | null |
75,636,626 | 1 | 75,636,922 | null | 1 | 39 | I have a list of IDs in the file `example` shown below:
```
3SN0P00000026941
14N0P00000026677
6SN0P00000024671
3SN0P00000018643
```
What I want to output is shown below:
```
ENSN0P00000026941 3
ENSN0P00000026677 14
ENSN0P00000024671 6
ENSN0P00000018643 3
```
It basically extracts all the integers from the range of th... | Substitute all integers in a range of first 3 characters | CC BY-SA 4.0 | null | 2023-03-04T15:22:38.400 | 2023-03-04T17:06:16.333 | 2023-03-04T15:44:58.200 | 20,377,593 | 20,377,593 | [
"linux",
"loops",
"awk",
"sed"
] |
75,636,629 | 2 | null | 32,059,556 | 0 | null | The quote from [Gamrix's response](https://stackoverflow.com/a/32060634/5446749) leads to the solution. If points are separated by too small a difference (Euclidean distance), the triangulate function crashes. Removing points separated by an amount less than 1e-12 solved the problem.
---
[edit](https://stackoverflow... | null | CC BY-SA 4.0 | null | 2023-03-04T15:23:00.723 | 2023-03-04T15:23:00.723 | null | null | 5,446,749 | null |
75,636,627 | 2 | null | 75,635,786 | 1 | null | Another option is `if_any`
```
library(dplyr)
df1 %>%
type.convert(as.is = TRUE) %>%
mutate(new_column = c("negative", "positive")[if_any(contains("PCR")) + 1])
```
-output
```
species code forest_site Filovirus (MOD) PCR Phlebo (Sanchez-Seco) PCR new_column
1 SM 1 UMNP-mangabey 0 ... | null | CC BY-SA 4.0 | null | 2023-03-04T15:22:40.640 | 2023-03-04T15:22:40.640 | null | null | 3,732,271 | null |
75,636,607 | 1 | 75,636,697 | null | 0 | 30 | New to Spring, I am building a toy application that represents a car dealership. Here's my interface for this service:
```
public interface DealershipService {
Long getRevenue();
void sell(Car car);
void buy(Car car);
List<Car> findByMake(String make);
List<Car> findByMakeAndModel(String make, String mod... | Spring test cannot resolve @Value placeholder despite IDE even auto-completing it | CC BY-SA 4.0 | null | 2023-03-04T15:19:16.973 | 2023-03-04T19:13:32.190 | null | null | 1,379,730 | [
"java",
"spring"
] |
75,636,631 | 1 | null | null | 1 | 37 | Using a self referential `ThisType` in an object literal works as expected. The typescript compiler is ok with accessing properties defined in the object and emits error messages when trying to access undefined properties.
```
function define<A>(options: A & ThisType<A>) {}
define({
a() {},
w1: function () {
t... | Inferring ThisType in function inside object literal | CC BY-SA 4.0 | null | 2023-03-04T15:23:07.360 | 2023-03-04T15:30:53.420 | 2023-03-04T15:30:53.420 | 23,528 | 6,938,147 | [
"typescript"
] |
75,636,635 | 1 | null | null | 0 | 27 | There is such a possibility in Python to lock the app window?
I have one external application window that minimizes itself all the time when another application appears above it.
| Python. Locking the window so that it cannot be minimized | CC BY-SA 4.0 | null | 2023-03-04T15:24:32.407 | 2023-03-04T15:24:32.407 | null | null | 20,735,310 | [
"python"
] |
75,636,634 | 1 | null | null | 0 | 6 | I have some microservices as eureka clients and eureka server itself. After launching all of them it takes around 40 second to get `200` instead of `503 Unavailable`. Then everything works just fine. If I decide to re-run some of my services that delay appears again.
I've tried to play around with `lease-renewal-interv... | Eureka client registration takes around 40 seconds | CC BY-SA 4.0 | null | 2023-03-04T15:24:26.463 | 2023-03-04T15:24:26.463 | null | null | 16,234,748 | [
"spring-cloud",
"netflix-eureka",
"spring-cloud-netflix"
] |
75,636,611 | 1 | null | null | -1 | 24 | I am trying to write Tetris in a CLI and am receiving the following error:
```
Fatal glibc error: malloc assertion failure in sysmalloc: (old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)
Ab... | Fatal glibc error: malloc() assertion failure in sysmalloc | CC BY-SA 4.0 | null | 2023-03-04T15:20:08.947 | 2023-03-04T15:30:50.163 | 2023-03-04T15:30:50.163 | 18,644,626 | 18,644,626 | [
"c++",
"malloc"
] |
75,636,632 | 2 | null | 75,635,485 | 0 | null | There must be some difference in your files, other than raster images (PDF images can be vector based too), here I take just one image
convert to PDF (where PNG is stored as 2 images) thus adds additional image related overheads of 5,705 bytes and run your command
`gs -o noimages.pdf -sDEVICE=pdfwrite -dFILTERIMAGE inp... | null | CC BY-SA 4.0 | null | 2023-03-04T15:23:39.633 | 2023-03-04T17:53:49.490 | 2023-03-04T17:53:49.490 | 10,802,527 | 10,802,527 | null |
75,636,571 | 2 | null | 75,626,950 | -1 | null | when it comes to divide your code into smaller pieces you have three options
1. wrap the code in a variable inside your struct
2. wrap the code in a function inside your struct if you want to pass some parameters to that chunk of code
3. wrap the code in completely new struct and that will be a separate view you can a... | null | CC BY-SA 4.0 | null | 2023-03-04T15:12:15.340 | 2023-03-04T15:12:15.340 | null | null | 10,701,774 | null |
75,636,636 | 1 | 75,636,836 | null | 1 | 33 | The essence of the problem: there is a list of divs with the `username-card` class. First subtask: check if the value entered by the user exists in the array of `title` attributes of all divs in the class. If it doesn't exist, return an error. If it exists, then the second subtask is solved: hide all divs that do not m... | How to use JS to filter div elements of a definite class? | CC BY-SA 4.0 | null | 2023-03-04T15:24:38.360 | 2023-03-04T15:57:57.160 | 2023-03-04T15:31:43.653 | 13,376,511 | 21,118,682 | [
"javascript",
"html",
"css"
] |
75,636,639 | 1 | null | null | 0 | 12 | I have a field '`winning`' in firestore database whose value is .
[](https://i.stack.imgur.com/AHtE2.png)
I want to decrease value by or whatever user inputs in ediitext.
Suppose here user entered 500.
But by doing
`FieldValue.increment(-1*(Double.parseDouble(edittext.getText().toString().trim())))` ;
writes value i... | FieldValue.increment produce the wrong sum when using decimals | CC BY-SA 4.0 | null | 2023-03-04T15:25:25.540 | 2023-03-04T15:32:35.613 | 2023-03-04T15:28:54.550 | 209,103 | 16,570,179 | [
"java",
"android",
"google-cloud-firestore"
] |
75,636,630 | 2 | null | 75,636,398 | 2 | null | The reason why the same image is making two network requests when the "Open Image" button is clicked is that the `initViewer()` function is called every time when the component is mounted or re-rendered.
Look at what happens when the "Open Image" button is clicked,
1. the Viewer component is rendered and mounted
2. I... | null | CC BY-SA 4.0 | null | 2023-03-04T15:23:07.127 | 2023-03-04T16:57:51.617 | 2023-03-04T16:57:51.617 | 11,385,320 | 11,385,320 | null |
75,636,640 | 2 | null | 41,369,550 | 0 | null | ```
import re
def SimpleSymbols(str):
#added padding, because if str = 'y+4==+r+'
#then program would return true when it should return false.
string = '=' + str + '='
#regex that returns false if a letter *doesn't* have a + in front or back
plusReg = re.compile(r'[^\+][A-Za-z].|.[A-Za-z][^\+]')
... | null | CC BY-SA 4.0 | null | 2023-03-04T15:25:26.517 | 2023-03-04T15:25:26.517 | null | null | 5,446,749 | null |
75,636,643 | 1 | null | null | 0 | 13 | the website that i want to fetch needs cors, because BASIC authentication is required. I get the following Erro
> Access to fetch at 'WEBSITE I WANT TO FETCH' from origin 'MY DOMAIN' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header... | CORS preflight Issue when using GET-Request to fetch Website | CC BY-SA 4.0 | null | 2023-03-04T15:25:44.933 | 2023-03-04T15:25:44.933 | null | null | 13,293,333 | [
"javascript",
"cors"
] |
75,636,633 | 1 | null | null | 0 | 7 | I know the psp is deprecated,but it is still mandatory in our cluster. We are having a problem with the deployment of linkerd viz. I created a role,rolebinding,psp
there is a problem when creating floors in namespace linkerd-viz
```
8m27s Warning FailedCreate replicaset/web-cb5fc858f Error cr... | pods are not created in namespace from pod security policy | CC BY-SA 4.0 | null | 2023-03-04T15:23:40.807 | 2023-03-04T15:23:40.807 | null | null | 14,823,254 | [
"kubernetes",
"linkerd",
"podsecuritypolicy"
] |
75,636,648 | 2 | null | 75,636,208 | 0 | null | BookProperty component not declared in App.Module.TS
4 hours of my life down the drain
| null | CC BY-SA 4.0 | null | 2023-03-04T15:27:07.387 | 2023-03-04T15:27:07.387 | null | null | 13,302,565 | null |
75,636,646 | 2 | null | 75,636,311 | 0 | null | There is a syntax error in your code. The function handle() should be declared using the function keyword or as an arrow function. Here's the corrected code:
```
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { StyleSheet, Text, View, Button } from 'react-native';
export default functio... | null | CC BY-SA 4.0 | null | 2023-03-04T15:26:56.737 | 2023-03-04T15:26:56.737 | null | null | 17,808,861 | null |
75,636,649 | 1 | null | null | -2 | 10 | I wana loop through list but name of list is determent by given parameter.
```
class lists():
List1=[1,3,5,etc]
List2=[2,4,6,etc]
List3=["a","e","i","o","u"]
def loop(name):
For i in lists.name:
Print(i)
loop(List1)
```
| Python loop through list depending on given name without if else | CC BY-SA 4.0 | null | 2023-03-04T15:27:31.320 | 2023-03-04T15:42:25.017 | 2023-03-04T15:35:56.037 | 724,039 | 19,511,823 | [
"list",
"for-loop"
] |
75,636,642 | 1 | null | null | 0 | 47 | I'm developing NuGet package as a side project. With the package, the user will be able to retrieve data from my MySQL database server by executing a function that contains SQL query in it - let's call it `GetStuff()`.
Example of the GetStuff code:
```
public class GetStuff : IDisposable {
public string? name;
... | Secure way to perform SQL query in C# class library? | CC BY-SA 4.0 | null | 2023-03-04T15:25:43.400 | 2023-03-04T19:35:45.283 | 2023-03-04T19:35:45.283 | 3,179,389 | 20,911,877 | [
"c#",
"sql"
] |
75,636,644 | 1 | null | null | -1 | 27 | I have the following entity:
```
public class Role {
@Id
private Long id;
@Enumerated(EnumType.STRING)
private RoleName name;
}
```
And here is the `RoleName` enum:
```
public enum RoleName {
ROLE_USER,
ROLE_ADMIN
}
```
I am trying to find a role by name and for this purpose, I have to pass ... | Spring Data JPA : find enum field as String? | CC BY-SA 4.0 | null | 2023-03-04T15:26:24.460 | 2023-03-04T16:25:00.073 | null | null | 21,277,932 | [
"java",
"spring",
"spring-boot",
"enums",
"spring-data-jpa"
] |
75,636,650 | 2 | null | 75,635,828 | 1 | null | To fix your problem, you need a clean-up function in your `useEffect` where you are calling `dispatch`, to reset your state/store before the component gets unmounted:
```
const CategoryPage = () => {
const { name } = useParams();
const loading = useSelector((state) => state.shop.loading);
const categoryItems = us... | null | CC BY-SA 4.0 | null | 2023-03-04T15:27:31.783 | 2023-03-04T19:58:56.850 | 2023-03-04T19:58:56.850 | 15,288,641 | 15,288,641 | null |
75,636,652 | 2 | null | 53,289,286 | 0 | null | Here is what I ended up doing as a simple solution based on [MRocklin's answer](https://stackoverflow.com/a/53352314/5446749).
```
class CustomScheduler(object):
def __init__(self, max_computes=1):
self.max_computes = max_computes
self.total_computes = 0
def __call__(self, dsk, keys, **kwargs):... | null | CC BY-SA 4.0 | null | 2023-03-04T15:27:57.523 | 2023-03-04T15:27:57.523 | null | null | 5,446,749 | null |
75,636,654 | 1 | null | null | -3 | 22 | Hello Fellow Programmers,
I have recently started working with react
I'm facing a problem which I can't solve
I created a log in form and everything works perfectly except that when login is successful the page does not navigate
if anyone is interested or have the time to help
plz reach out to me
Thanks!
I tried using ... | ReactJS does not navigate | CC BY-SA 4.0 | null | 2023-03-04T15:28:04.990 | 2023-03-04T16:24:37.663 | null | null | 21,332,141 | [
"reactjs",
"react-hooks",
"react-router"
] |
75,636,656 | 2 | null | 75,636,550 | 0 | null |
```
(?<=AA).*?(?=BB)
```
```
AA.*?BB
```
| null | CC BY-SA 4.0 | null | 2023-03-04T15:28:20.370 | 2023-03-04T22:35:30.953 | 2023-03-04T22:35:30.953 | 20,959,773 | 20,959,773 | null |
75,636,657 | 2 | null | 75,626,637 | 0 | null | I'm tired to fight against this problem, that maybe related to an unnumerable series of possibilities. The fact that my installation of Delphi 10.4.2 works differently by those of yours makes me think that there may be something corrupted or broken in my installation. I will repeat the installation once I've time to do... | null | CC BY-SA 4.0 | null | 2023-03-04T15:28:24.423 | 2023-03-04T15:28:24.423 | null | null | 3,873,919 | null |
75,636,651 | 2 | null | 75,636,259 | 1 | null |
//use "type" : "module" in package.json
```
{
"name": "jsd",
"version": "1.0.0",
"type": "module",
"description": "",
"main": "j.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
```
```
class A {
constructor() {}
m() {
return ne... | null | CC BY-SA 4.0 | null | 2023-03-04T15:27:33.313 | 2023-03-04T15:32:36.343 | 2023-03-04T15:32:36.343 | 20,493,210 | 20,493,210 | null |
75,636,638 | 2 | null | 75,550,927 | 1 | null | Amplify REST APIs do not use Cognito authorization by default. In order to use Cognito authorization you have two options:
#### Create a Cognito Authorizer in API Gateway
1. Create a Cognito user pool authorizer in API Gateway console, providing "Authorization" as the token source value.
2. Add the Cognito user poo... | null | CC BY-SA 4.0 | null | 2023-03-04T15:25:08.433 | 2023-03-04T15:30:24.560 | 2023-03-04T15:30:24.560 | 656,912 | 656,912 | null |
75,636,662 | 2 | null | 75,630,636 | 2 | null | Your quoting is incorrect. You don't want the command and all its arguments in a single shell word, which is what quoting the entire command accomplishes.
```
dcdn () {
if [ -n "$1" ]
then
"$dccmd" -f "$1" down
else
"$dccmd" down
fi
}
```
This won't work, though for a similar reason: i... | null | CC BY-SA 4.0 | null | 2023-03-04T15:29:01.980 | 2023-03-04T16:10:35.107 | 2023-03-04T16:10:35.107 | 1,126,841 | 1,126,841 | null |
75,636,658 | 1 | null | null | 0 | 18 | whenever I refreshed my index file the video in my video tag doesn't play , to play it i have to restart my server
html code:
```
<div id="frm2">
<video autoplay loop playsinline preload="metadata" class="video-container">
<source class="video-main" src="./GHS.mp4" type="video/mp4" >
... | Video does NOT work on refreshing application developed on PHP | CC BY-SA 4.0 | null | 2023-03-04T15:28:27.843 | 2023-03-04T15:39:36.160 | 2023-03-04T15:39:36.160 | 3,294,262 | 21,332,138 | [
"php",
"html",
"css"
] |
75,636,641 | 1 | null | null | 0 | 13 | It takes more than 25 minutes to run "react-scripts build" in the cloud. On my PC it is somewhat fast (like 2 min). I tried to disable ES lint, and that didn't make any difference. Here's what I have:
Dockerfile
```
FROM node:16-alpine AS ui-build
WORKDIR /usr/src/app
COPY . .
RUN cd /usr/src/app && npm install --forc... | react-scripts build very slow | CC BY-SA 4.0 | null | 2023-03-04T15:25:42.513 | 2023-03-04T15:25:42.513 | null | null | 1,338,052 | [
"reactjs"
] |
75,636,663 | 1 | null | null | 0 | 19 | I have a weird situation, and I am not sure if it's related to Vue's composition API.
I have a listener that triggers a class for responsiveness. The listener works fine; the event gets captured, and the value that was supposed to trigger the class is not updating.
I added the two console.logs to follow the value as it... | Issue with Nuxt 3/Vue 3 and class binding | CC BY-SA 4.0 | null | 2023-03-04T15:29:02.723 | 2023-03-04T15:29:02.723 | null | null | 2,904,202 | [
"vue.js",
"nuxt.js",
"vuejs3",
"nuxtjs3"
] |
75,636,668 | 2 | null | 75,636,567 | 0 | null | If ound out that I have to name the function fully qualified.
```
CREATE FUNCTION http_get(url VARCHAR(255)) RETURNS VARCHAR(4096)
LANGUAGE JAVA DETERMINISTIC NO SQL EXTERNAL NAME 'my.packe.strcuture.HttpGetFunction.httpGet';
```
insteat of
```
CREATE FUNCTION http_get(url VARCHAR(255)) RETURNS VARCHAR(4096)
LANGUAG... | null | CC BY-SA 4.0 | null | 2023-03-04T15:29:45.233 | 2023-03-04T15:29:45.233 | null | null | 1,992,990 | null |
75,636,665 | 1 | null | null | 0 | 19 | Byte pair encoding is apparently sometimes used to compress/tokenize text prior to running machine learning algorithms on it.
According to [https://en.wikipedia.org/wiki/Byte_pair_encoding](https://en.wikipedia.org/wiki/Byte_pair_encoding) the basic step is one in which
> the most common pair of contiguous bytes of dat... | Byte pair encoding when most bytes are already used | CC BY-SA 4.0 | null | 2023-03-04T15:29:20.033 | 2023-03-04T18:22:32.217 | null | null | 45,843 | [
"text",
"nlp",
"compression",
"tokenize"
] |
75,636,670 | 1 | null | null | 0 | 20 | when I try to send an email with mailgun in laravel (i send by API not smtp) it gives me this error:
> Could not reach the remote Mailgun server.
| Could not reach the remote Mailgun server | CC BY-SA 4.0 | null | 2023-03-04T15:30:01.823 | 2023-03-05T01:12:28.197 | 2023-03-04T19:50:26.993 | 1,998,801 | 21,225,580 | [
"php",
"laravel",
"mailgun"
] |
75,636,655 | 2 | null | 75,635,806 | 3 | null | DataFrames.jl uses a different method of setting an index.
Do the following:
```
julia> dfPaths = DataFrame(arc=["a", "b", "a", "c", "d"], from=[1,1,2,3,2], to=[2,3,3,2,4])
5×3 DataFrame
Row │ arc from to
│ String Int64 Int64
─────┼──────────────────────
1 │ a 1 2
2 │ b 1 ... | null | CC BY-SA 4.0 | null | 2023-03-04T15:28:08.950 | 2023-03-04T15:28:08.950 | null | null | 1,269,567 | null |
75,636,669 | 2 | null | 62,728,362 | 0 | null | in my case, it was because of the package name, so I just renamed the package name and it worked for me
```
Go to build.gradle in the app module and rename applicationId "com.company.name"
Go to Manifest.xml in app/src/main and rename package="com.company.name" and android:label="App Name"
Go to Manifest.xml in app/s... | null | CC BY-SA 4.0 | null | 2023-03-04T15:29:58.363 | 2023-03-04T15:29:58.363 | null | null | 13,587,389 | null |