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,630,814 | 1 | null | null | 0 | 9 | I just setup Firebase Stripe Extension for my Web App. Everything goes fine. But I am struggling to add few custom functionality. I want to add some token balance for every successful subscription.
E.g.
5USD / Month - 2000 Token
19 USD/ Month - 50000 Token
And these token should be used to call an external API.
I think... | How to execute custom cloud function on Stripe-Firebase extension's events | CC BY-SA 4.0 | null | 2023-03-03T18:47:19.290 | 2023-03-03T18:47:19.290 | null | null | 4,753,716 | [
"firebase",
"stripe-payments"
] |
75,630,815 | 1 | null | null | -4 | 22 | I'm wanting to read a spreadsheet in Calc using Python, but I'm not able to run my code, in fact almost nothing runs after I migrated to linux
I haven't tried anything yet, I wanted some help..[](https://i.stack.imgur.com/qXUXH.png)
| Planilhas do Calc com Python | CC BY-SA 4.0 | null | 2023-03-03T18:47:19.767 | 2023-03-03T18:52:43.220 | 2023-03-03T18:52:43.220 | 21,328,011 | 21,328,011 | [
"python",
"python-3.x",
"libreoffice-calc"
] |
75,630,812 | 1 | null | null | 0 | 6 | I have an exam in two days where Plentymarkets is a big part. Unfortunately there are a few unanswered questions that I've been looking for an answer to for months. The teachers, educational institutions and universities don't know anything and also Plentymarkets support just referred me to a forum for which I don't ha... | Important questions about PlentyMarkets | CC BY-SA 4.0 | null | 2023-03-03T18:47:14.347 | 2023-03-03T19:07:48.790 | 2023-03-03T19:07:48.790 | 21,177,384 | 21,177,384 | [
"e-commerce",
"shopping-cart",
"webshop",
"web-technologies"
] |
75,630,818 | 2 | null | 75,630,805 | 2 | null | It is easier after transposing
```
as.data.frame(t(unname(test)))
A B C D E
1 1 2 3 4 5
```
| null | CC BY-SA 4.0 | null | 2023-03-03T18:47:54.573 | 2023-03-03T18:48:39.090 | 2023-03-03T18:48:39.090 | 3,732,271 | 3,732,271 | null |
75,630,809 | 1 | null | null | 0 | 62 | I would like to find the most eloquent and efficient method, algorithmically speaking, to count occurrences of some patterns in SWI-Prolog.
For now, my solution uses [DCG](https://en.wikipedia.org/wiki/Definite_clause_grammar) and looks like this:
```
count_occurrences(Pattern, List, Count) :-
phrase(Pattern, Patte... | Sliding window method for pattern recognition in SWI-Prolog | CC BY-SA 4.0 | null | 2023-03-03T18:46:55.727 | 2023-03-04T14:33:05.187 | 2023-03-03T18:50:28.923 | 10,157,279 | 10,157,279 | [
"prolog",
"pattern-matching",
"sliding-window",
"dcg",
"gomoku"
] |
75,630,804 | 2 | null | 75,630,108 | 1 | null | With some sample data like this:
```
WITH
orders AS
(
Select 123 "ORDER_ID", 'ORDPRIMREF 123' "ORDER_PRIM_REF" From Dual Union All
Select 456 "ORDER_ID", 'ORDPRIMREF 456' "ORDER_PRIM_REF" From Dual Union All
Select 789 "ORDER_ID", 'ORDPRIMREF 789' "ORDER_PRIM_REF" From Du... | null | CC BY-SA 4.0 | null | 2023-03-03T18:46:24.430 | 2023-03-03T18:49:06.617 | 2023-03-03T18:49:06.617 | 19,023,353 | 19,023,353 | null |
75,630,822 | 1 | null | null | 0 | 13 | I have a textbox and it accepts blank and number only. I test the valiadtionExpression on [REGULAR EXPRESSION](https://regex101.com/). It work as expect. However on my page, when I input a number, it show the error message.
There is my code snippet
```
<asp:TextBox id="txtQty" Runat="server" class="w20" MaxLength="3"><... | Regular expression is correct but still get error message in asp.net | CC BY-SA 4.0 | null | 2023-03-03T18:48:11.520 | 2023-03-03T18:48:11.520 | null | null | 1,845,614 | [
"asp.net",
"regex"
] |
75,630,816 | 2 | null | 75,629,309 | 1 | null | As i mentioned in the comment to the question, you have to use [MAX function](https://dev.mysql.com/doc/refman/8.0/en/example-maximum-column.html).
I'm not sure i understand your requirements, but i think you want to get all instance of color which date is the newest...
```
WITH MD AS
(
SELECT MAX(datefld) as maxdate... | null | CC BY-SA 4.0 | null | 2023-03-03T18:47:35.113 | 2023-03-03T18:47:35.113 | null | null | 2,142,028 | null |
75,630,820 | 1 | null | null | 0 | 27 | I am trying to solve the Leetcode Longest Consecutive Sequence problem and I run into a runtime error for Test Case [0] in C++.
Question :
My solution is below:
```
class Solution {
public:
int longestConsecutive(vector<int>& nums) {
if(nums.size()==0){
return 0;
}
if(nums.siz... | Leetcode "Longest Consecutive Sequence" problem and Runtime Error For Test Case - [0] | CC BY-SA 4.0 | null | 2023-03-03T18:48:00.287 | 2023-03-03T18:48:00.287 | null | null | 21,286,679 | [
"c++"
] |
75,630,823 | 1 | null | null | -2 | 10 | I’m on my virtual machine kali Linux and I made a meterpreter android reverse_tcp to test downloading a file on my secondary mobile phone I have sat the IP by using the ifconfig command and its right and I have sat the port to a specific one and so on
So when I type run or exploit it creates the reverse shell and every... | Is there a solution to meterpreter closed session reason dead | CC BY-SA 4.0 | null | 2023-03-03T18:48:23.857 | 2023-03-03T18:48:23.857 | null | null | 21,327,990 | [
"kali-linux",
"metasploit"
] |
75,630,825 | 1 | null | null | -1 | 11 | My Self Hosted Build Server E drive has some source files which which needs syncing with azure repos. I am managed to update the remote servers with Git Pull command however i am not able to push changes to azure repos from build server source files. I see a message head is deatcahed however if i log on to server and r... | Azure DevOps Pipeline Pull Remote Server Changes | CC BY-SA 4.0 | null | 2023-03-03T18:48:44.273 | 2023-03-03T18:48:44.273 | null | null | 1,106,219 | [
"azure",
"azure-devops",
"azure-pipelines",
"azure-pipelines-yaml"
] |
75,630,828 | 1 | 75,630,843 | null | 0 | 17 | I am trying to print the number of characters that are present in the output my function gives. in this case I'm looking for 90 as "lowercase" 10 times is 90 characters. I'm not really sure what to try, please advise.
```
num=10
def func(word, add=5, freq=1):
print(word*(freq+add))
test=func("lowercase", num)
print... | How do I get a function's output characters to be automatically counted in python? | CC BY-SA 4.0 | null | 2023-03-03T18:49:48.070 | 2023-03-03T18:53:28.423 | null | null | 21,070,455 | [
"python",
"function",
"count"
] |
75,630,824 | 1 | null | null | -2 | 48 | I am using two screens, one is the notebook and the other is an external monitor and I want to turn off . However, as the notebook I'm using is a Windows 7 and unfortunately I can't updade it to Windows 10, it has been difficult to me to find a native solution, so I decided to create a script in Python to do this.
Afte... | How to turn off computer screen using python | CC BY-SA 4.0 | null | 2023-03-03T18:48:36.577 | 2023-03-04T00:11:35.707 | 2023-03-04T00:11:35.707 | 20,154,143 | 20,154,143 | [
"python",
"windows",
"winapi",
"ctypes",
"pywin32"
] |
75,630,808 | 1 | null | null | 0 | 8 | There is a scenario.
1. I run my app,
2. Click a recyclerview item,
3. Click first bottom navigation view item
4. Click recyclerview item again,
5. Click first bottom navigation view item again,
6. Click recyclerview item again,
7. Click back button.
Then my fragments are duplicated I mean one is on top of another (... | Android fragment replace causes fragment is on top of another | CC BY-SA 4.0 | null | 2023-03-03T18:46:52.063 | 2023-03-03T18:46:52.063 | null | null | 21,172,734 | [
"java",
"android",
"android-fragments"
] |
75,630,831 | 2 | null | 71,493,957 | 0 | null | Today i had the same problem, i fixed it using:
At AppModule:
```
import { ReactiveFormsModule } from '@angular/forms';
@NgModule ({
declarations: [yours],
imports: [yours + ReactiveFormsModule],
providers: [yours],
bootstrap: [AppComponent]
})
```
| null | CC BY-SA 4.0 | null | 2023-03-03T18:50:35.660 | 2023-03-03T18:50:35.660 | null | null | 20,786,919 | null |
75,630,826 | 1 | null | null | 0 | 11 | Is it possible to test volume expansion on Minikube?
I would like to do it only locally using Minikube for learning.
I create below resources:
```
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: racher
provisioner: rancher.io/local-path
reclaimPolicy: Delete
volumeBindingMode: Immediate
allowVolumeEx... | Minikube and persistent volume claim resizing | CC BY-SA 4.0 | null | 2023-03-03T18:49:15.733 | 2023-03-03T18:49:15.733 | null | null | 10,440,409 | [
"kubernetes",
"minikube"
] |
75,630,834 | 2 | null | 75,561,485 | 0 | null | I fixed this by running python 3.9.
| null | CC BY-SA 4.0 | null | 2023-03-03T18:50:51.640 | 2023-03-03T18:50:51.640 | null | null | 21,167,762 | null |
75,630,830 | 1 | null | null | 0 | 25 | I have been trying to retrieve all of the running processes inside of the /proc directory on Linux (kali Linux). I was curious to know if there was a certain command such as `ps` or `top` that allowed me to search inside a specific directory.
I have been using a shell script (.sh) to try and retrieve all of the running... | Is there a way to list all of the running processes inside the /proc directory? | CC BY-SA 4.0 | null | 2023-03-03T18:50:13.193 | 2023-03-03T18:50:13.193 | null | null | 21,321,513 | [
"linux",
"shell",
"kali-linux"
] |
75,630,833 | 1 | null | null | 0 | 10 | I want to store the access token of paycor api in database. but is not being saved. it shows empty fields in database. I also tried using json_encode in php, but no success. Can anybody tell me how to save access token in database? Its a wordpress website. I am using ACF to create options and saving token in a text fie... | Access token of paycor api can't be stored in database | CC BY-SA 4.0 | null | 2023-03-03T18:50:43.203 | 2023-03-03T18:51:47.313 | 2023-03-03T18:51:47.313 | 4,853,015 | 4,853,015 | [
"token"
] |
75,630,836 | 1 | null | null | 0 | 8 | I am trying to write a custom data loader for a dataset where the directory structures is as follows:
```
All_data
|
->Numpy_dat
| |
| -> dat_0
| -> dat_{0}_{0}.npy
| .
| .
| -> dat_1
| -> dat_{0}_{0}.npy
| -> dat_{0}_{1}.npy
| .
| .
|->mask_numpy
|
-> mask_0
-> mask_{0}_{0}... | Pytorch DataLoader for custom dataset to load data image and mask correctly with a window size | CC BY-SA 4.0 | null | 2023-03-03T18:50:55.687 | 2023-03-03T18:50:55.687 | null | null | 10,977,868 | [
"python",
"pytorch",
"dataloader",
"pytorch-dataloader"
] |
75,630,838 | 1 | null | null | 0 | 14 | I try to run an external script with pam.exec_so, that pulls the variables and sends notification emails. It is working, but the only problem I have with it, if I log in through a domain my $PAM_USER variable becomes "DOMAIN\username" so if I try to use it as a string I get sent a mail and this part becomes "DOMAIN se... | Notification email sending using pam with shell scripting | CC BY-SA 4.0 | null | 2023-03-03T18:51:07.500 | 2023-03-03T18:51:07.500 | null | null | 21,327,998 | [
"bash",
"shell",
"authentication",
"unix",
"pam"
] |
75,630,819 | 1 | null | null | 0 | 15 | I need to overlay an `UIView` on top of `SwiftUI` content. Instead of using `UIViewController.present(_:animated:completion:)`, I simply add it to `UIWindow` hierarchy and apply constraints (I need it for additional customization, not important here).
But I ran into a problem. Overlayed `UIView` passes tap gestures thr... | UIView Overlayed over UIWindow Passes Clicks Through SwiftUI View | CC BY-SA 4.0 | null | 2023-03-03T18:47:58.703 | 2023-03-04T08:05:02.657 | 2023-03-04T08:05:02.657 | 11,627,169 | 11,627,169 | [
"swift",
"swiftui",
"uiview",
"uiviewcontroller",
"uikit"
] |
75,630,837 | 1 | 75,630,863 | null | 0 | 13 | I'm new in flutter. I'm calling a login API on button click. The API code is written in a function which is below.
My problem is that this function is calling infinitely after clicking on button at a time only.
```
Future<Login?> logins() async {
print("login function called");
String uemail = emailText... | why the function in flutter calling infinitely? | CC BY-SA 4.0 | null | 2023-03-03T18:51:03.513 | 2023-03-03T18:53:22.613 | null | null | 19,777,847 | [
"flutter",
"function",
"dart"
] |
75,630,839 | 2 | null | 75,617,467 | 0 | null | Ok folks. I managed to make it work. James Flores' answer helped me a lot and after figuring out, that the targeted GPO-object has to be set in any way, it all worked out. Thanks a lot.
To conclude everthing:
You have to create a GPOobject with just the preference you want in Group Policy Management
You find those pair... | null | CC BY-SA 4.0 | null | 2023-03-03T18:51:13.783 | 2023-03-03T18:51:13.783 | null | null | 21,319,995 | null |
75,630,829 | 2 | null | 75,629,089 | 2 | null | As already pointed out in the other answer, the problem is that the head node of your linked list was not allocated by `malloc`. Therefore, you are not allowed to call `free` on that node.
However, in contrast to the other answer, I do not recommend that you fix the problem by leaving out the head node when freeing the... | null | CC BY-SA 4.0 | null | 2023-03-03T18:49:51.313 | 2023-03-03T20:04:32.370 | 2023-03-03T20:04:32.370 | 12,149,471 | 12,149,471 | null |
75,630,835 | 2 | null | 75,629,508 | 0 | null | You are doing something wrong, but your code is not enough to find the problem.
Check the working Playground
```
const { createApp, ref } = Vue
const { createPinia, defineStore } = Pinia
const useCurrentDocument = defineStore('currentDocument',
{
state: () => {
return {
packageInfo: {
marks: []
... | null | CC BY-SA 4.0 | null | 2023-03-03T18:50:53.823 | 2023-03-03T18:50:53.823 | null | null | 2,487,565 | null |
75,630,840 | 2 | null | 75,628,114 | 0 | null | Although you are using the value for `s_hex` 3 times in your final expression, and even if it contains a random value, you can just literally reuse the formula for `s_hex` 3 times in your final formula:
```
UPDATE mytable SET new_id = REPLACE(REPLACE(REPLACE( ...
LPAD(CONV(SUBSTRING( LPAD(HEX(..., 32, '0') , 1, 2),... | null | CC BY-SA 4.0 | null | 2023-03-03T18:51:14.280 | 2023-03-03T18:51:14.280 | null | null | 6,248,528 | null |
75,630,841 | 1 | null | null | 0 | 13 | When refetchCompanies is triggered, I want to set the isLoadingCompanies state to true so this component will re-render. I only want to render the component when isLoadingCompanies is true, and not when isFetchingCompanies is true.
My object:
```
const {
isLoading: isLoadingCompanies,
isFetching: isFetchingComp... | How can I change the isLoading state to true in React Query when a refetch is triggered? | CC BY-SA 4.0 | null | 2023-03-03T18:51:21.753 | 2023-03-04T22:57:17.370 | 2023-03-04T22:57:17.370 | 2,188,587 | 14,912,123 | [
"javascript",
"reactjs",
"react-query"
] |
75,630,842 | 1 | 75,630,891 | null | 1 | 41 | I have the following data and want to create the "New" variable from A, B, and C:
```
structure(list(A = c("NA", "NA", "4", "NA"), B = c("NA", "3",
"4", "5"), C = c("1", "NA", "NA", "5"), New = c(1, 3, 4, 5)), class = c("tbl_df",
"tbl", "data.frame"), row.names = c(NA, -4L))
```
I just want the first non-NA observat... | New column from first observation of several columns dplyr | CC BY-SA 4.0 | null | 2023-03-03T18:51:26.700 | 2023-03-03T19:11:01.063 | null | null | 6,709,985 | [
"r",
"dplyr"
] |
75,630,844 | 1 | null | null | 1 | 25 | Referencing [this](https://stackoverflow.com/questions/37042161/generate-sha1-hash-function-in-codename-one) older question, I am trying to generate a MD5 hash, but I am getting a result that is not similar to an outcome that [this](https://www.md5hashgenerator.com) MD5 web generator gives.
Here is the code I am trying... | Codename One MD5 method in Bouncy Castle Library | CC BY-SA 4.0 | null | 2023-03-03T18:51:30.613 | 2023-03-04T05:47:44.293 | null | null | 21,227,766 | [
"codenameone"
] |
75,630,843 | 2 | null | 75,630,828 | 0 | null | The easiest solution is to modify your function so that it `return`s the output instead of `print`ing it:
```
num=10
def func(word, add=5, freq=1):
return word*(freq+add)
test=func("lowercase", num)
print(test, num)
print(len(test))
```
With your original code, `func` would directly `print` the output and then re... | null | CC BY-SA 4.0 | null | 2023-03-03T18:51:27.200 | 2023-03-03T18:53:28.423 | 2023-03-03T18:53:28.423 | 3,799,759 | 3,799,759 | null |
75,630,846 | 1 | null | null | 0 | 20 | This is my code
```
public static string ReadQRCode(byte[] imageBytes)
{
var barcodeReader = new BarcodeReader();
barcodeReader.Options.TryHarder = true;
barcodeReader.Options.PossibleFormats = new[] { BarcodeFormat.QR_CODE };
var result = barcodeReader.Decode(imageBytes);
if (result != null) {
... | Read QR code from byte using ZXing.Net on .net7 | CC BY-SA 4.0 | null | 2023-03-03T18:51:38.180 | 2023-03-04T12:31:41.167 | null | null | 9,608,194 | [
"c#",
".net-7.0",
"zxing.net"
] |
75,630,850 | 2 | null | 75,630,767 | 0 | null | Move `<script src="code.js"></script>` right before the closing `</body>` tag so that the element it looks for exists at the time it is run.
| null | CC BY-SA 4.0 | null | 2023-03-03T18:51:58.167 | 2023-03-03T18:57:37.183 | 2023-03-03T18:57:37.183 | 9,513,184 | 9,513,184 | null |
75,630,845 | 2 | null | 18,297,070 | 0 | null | The best solution, I found for my `ckeditor 4` version:
[https://dev.ckeditor.com/ticket/10320](https://dev.ckeditor.com/ticket/10320)
```
var editor = CKEDITOR.replace( 'editor1', {
//allowedContent : true
enterMode : CKEDITOR.ENTER_BR,
toolbar : [
['Font... | null | CC BY-SA 4.0 | null | 2023-03-03T18:51:35.383 | 2023-03-03T18:51:35.383 | null | null | 10,329,023 | null |
75,630,817 | 1 | null | null | 0 | 17 | Hello everyone I have the following error in my post and I have no idea where the problem is coming from. I'm a beginner in node is and I'll give you my node JS server below
Server.js
```
const http = require('http');
class InMemoryDatabase {
constructor() {
this.data = [];
}
// Ajoute un objet à ... | how to make a post with axios using node js as local server | CC BY-SA 4.0 | null | 2023-03-03T18:47:43.067 | 2023-03-03T19:31:49.700 | null | null | 20,204,440 | [
"node.js",
"reactjs",
"http",
"axios"
] |
75,630,852 | 1 | null | null | 1 | 38 | iOS has Segmented controls like this.[](https://i.stack.imgur.com/dzPqg.png)
I wanna have this in Android by using jetpack compose and I checked there is not build-in like this, and this UI in material 3 doesn't support jetpack compose now. What can I do? Totally customize the radio button? I know I can add the backgro... | Jetpack compose: customize radio button group to achieve segmented buttons | CC BY-SA 4.0 | null | 2023-03-03T18:52:03.957 | 2023-03-04T09:54:07.960 | 2023-03-04T09:54:07.960 | 2,016,562 | 16,824,839 | [
"android",
"android-jetpack-compose",
"android-jetpack-compose-button"
] |
75,630,854 | 1 | null | null | 0 | 52 | After looking at [this post](https://stackoverflow.com/questions/6052005/how-can-you-git-pull-only-the-current-branch) I couldn't find any answers that worked, aside from perhaps overriding the bash command.
I would like `git pull` to only fetch branches that I have a local branch for, if not just the current one. I pr... | How can I git pull to only fetch the current branch? | CC BY-SA 4.0 | null | 2023-03-03T18:52:11.680 | 2023-03-04T05:40:19.433 | 2023-03-03T18:55:33.737 | 1,487,102 | 1,487,102 | [
"git"
] |
75,630,853 | 1 | null | null | -3 | 27 | ```
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class grabbable : MonoBehaviour
{
public Transform holding;
public bool held;
Transform tr;
private void Update()
{
if(held)
{
private void holding.GetPositionAndRotation(out V... | Why am I getting these errors saying there aren't matching brackets? | CC BY-SA 4.0 | null | 2023-03-03T18:52:06.613 | 2023-03-04T16:15:12.017 | 2023-03-04T16:15:12.017 | 9,430,133 | 21,328,017 | [
"c#",
"visual-studio",
"unity3d"
] |
75,630,849 | 1 | null | null | 1 | 25 | I'm using fetch to get the product as an object and while setting it to my state I'm adding new key `comments: []` to the object. If I `console.log(product.comments)` it's returning empty array which's correct but when I `console.log(product.comments.length)` it says `can't access property "length", product.comments is... | not defining array's length in reactjs | CC BY-SA 4.0 | null | 2023-03-03T18:51:53.183 | 2023-03-04T07:59:56.327 | 2023-03-03T19:08:34.207 | 15,136,780 | 15,136,780 | [
"javascript",
"reactjs",
"arrays"
] |
75,630,855 | 2 | null | 75,628,241 | 0 | null | They way to do this is documented: [https://code.visualstudio.com/docs/remote/ssh#_remember-hosts-and-advanced-settings](https://code.visualstudio.com/docs/remote/ssh#_remember-hosts-and-advanced-settings). When adding a new SSH host, in the input that says "Enter SSH Connection Command", you can either enter a host na... | null | CC BY-SA 4.0 | null | 2023-03-03T18:52:17.523 | 2023-03-03T18:52:17.523 | null | null | 11,107,541 | null |
75,630,851 | 1 | 75,630,884 | null | 0 | 21 | Suppose we have the following string and list of numbers:
`my_string = "We change $ to 10, $ to 22, $ to 120, $ to 230 and $ to 1000."`
`nums = [1, 2, 3, 4, 5]`
By only using `re.sub`, how to replace the `$` character in `my_string` with each of the elements in the list to have:
`"We change 1 to 10, 2 to 22, 3 to 120, ... | How to replace character $ by using re.sub? | CC BY-SA 4.0 | null | 2023-03-03T18:52:01.597 | 2023-03-03T18:56:02.560 | null | null | 12,470,058 | [
"python",
"python-3.x"
] |
75,630,847 | 1 | null | null | -2 | 21 | I have been trying to create a GPT-3.5-turbo chatbot with a Gradio interface, the chatbot works perfectly fine in command line but not when I implement it with Gradio. I am able to send my input and receive the response. However the response then gets returned and Gradio doesn't properly display the result. It replies ... | Gradio ouputs keys of a dictionary instead of strings while using openai.ChatCompletion API and GPT-3.5-turbo | CC BY-SA 4.0 | null | 2023-03-03T18:51:40.357 | 2023-03-03T23:59:27.997 | 2023-03-03T21:59:03.563 | 19,614,071 | 19,614,071 | [
"python",
"chatbot",
"openai-api",
"gradio",
"chatgpt-api"
] |
75,630,857 | 2 | null | 75,630,292 | 1 | null | COALESCE simply returns the first non-null value passed to it.
In your case, you need to do the left join, then replace null values.
```
select f.id, f.city,
case when v.value is null
then select value from v where city = 'Default'
else v.value
end as value
from f left join v on v.city = f.city
... | null | CC BY-SA 4.0 | null | 2023-03-03T18:53:00.763 | 2023-03-03T20:17:30.103 | 2023-03-03T20:17:30.103 | 2,525,781 | 18,648,900 | null |
75,630,860 | 2 | null | 75,630,653 | 0 | null | `message` needs to be declared as reactive state so Vue knows to rerender the parts of the DOM that use `message` whenever `message` is updated. Once you wrap it with [ref](https://vuejs.org/api/reactivity-core.html#ref) it should work
```
import { ref } from 'vue';
setup() {
const message = ref('No input');
... | null | CC BY-SA 4.0 | null | 2023-03-03T18:53:13.047 | 2023-03-03T18:53:13.047 | null | null | 6,225,326 | null |
75,630,859 | 1 | 75,633,263 | null | 1 | 37 | Imagine an `EvalOption` type defined as follows:
```
type EvalOption = [A] =>> Eval[Option[A]]
```
Is it possible to create an instance of Monad in such a way that the stack safety of Eval is maintained?
I was able to create an Applicative instance for such type, but I'm having problems implementing the `flatMap` meth... | Monad instance for EvalOption[A] in Scala | CC BY-SA 4.0 | null | 2023-03-03T18:53:06.510 | 2023-03-04T02:18:38.577 | null | null | 16,092,224 | [
"scala",
"monads",
"scala-cats",
"applicative",
"flatmap"
] |
75,630,863 | 2 | null | 75,630,837 | 0 | null | Because you are retuning(calling) the function `return logins();`
It is known as recursive function.
based on your code it will be
```
return login;
```
| null | CC BY-SA 4.0 | null | 2023-03-03T18:53:22.613 | 2023-03-03T18:53:22.613 | null | null | 10,157,127 | null |
75,630,861 | 1 | null | null | 0 | 45 | Need help with matching Teacher with students and counting only a single occurrence of students from the column. Output to include the number of occurrences and the corresponding country of residence.
Expected output:
```
Teacher Place No
Iwin London 3
Newyork 1
... | Excel counting the number of unique occurrences after matching the name with corresponding category | CC BY-SA 4.0 | null | 2023-03-03T18:53:13.757 | 2023-03-04T00:06:15.010 | 2023-03-03T19:12:42.897 | 11,286,032 | 19,752,949 | [
"excel"
] |
75,630,856 | 1 | null | null | 0 | 15 | I want to have the same background video for every auth screen in my app (log in, register, forgot password) without needing to reload the video everytime the user switches to another screen. I currently use the compose navigation library from raamcosta.
I tried to load the video in the mainactivity before creating the... | Same background video for multiple destinations in jetpack compose | CC BY-SA 4.0 | null | 2023-03-03T18:52:41.607 | 2023-03-03T18:52:41.607 | null | null | 19,092,267 | [
"video",
"background",
"navigation",
"android-jetpack-compose"
] |
75,630,866 | 2 | null | 63,495,012 | 0 | null | Adding `codepage=65001` to the bulk insert query fixed the issue:
```
--import AD users
BULK INSERT #AllAdUsers
FROM 'C:\Employees.csv'
WITH
(
FIRSTROW = 2,
CODEPAGE = '65001',
FIELDTERMINATOR = ',', --CSV field delimiter
ROWTERMINATOR = '\n', --Use to shift the control to... | null | CC BY-SA 4.0 | null | 2023-03-03T18:54:02.733 | 2023-03-03T18:54:02.733 | null | null | 1,761,307 | null |
75,630,858 | 2 | null | 75,630,587 | 0 | null | I will assume the route getting a 404 response is `GET api/v1/lockboxes/GetAll`?
Your route attribute `[Route("api/v1/lockboxes"), ApiController]` forms the base of the controller routes but will return the first `[HttpGet]` endpoint if it has no other parameters.
In your example, `GetAll()` will actually get hit by ca... | null | CC BY-SA 4.0 | null | 2023-03-03T18:53:03.403 | 2023-03-03T18:53:03.403 | null | null | 2,479,919 | null |
75,630,832 | 1 | null | null | -1 | 15 | My Flutter app crashes directly after installing on Android real device from Mac Pro M1. It doesn't reach to building main.dart widgets.
The same crash doesn't happen on IOS.
I did some search but can't find anything related to this. I guess it is something related to accessing location from the logs. I am using this p... | Flutter app crashes on Android with error: java.lang.NullPointerException: Attempt to invoke virtual method | CC BY-SA 4.0 | null | 2023-03-03T18:50:36.400 | 2023-03-03T20:19:11.160 | 2023-03-03T20:19:11.160 | 18,816,434 | 18,816,434 | [
"android",
"flutter"
] |
75,630,874 | 1 | null | null | 0 | 4 | I have a search view on toolbar with listens for query change and filters a recycler view. I'm populating and listening for query from inside a fragment. Everything works fine untill I click a recycler view item.
When I click the item, a detail dialog pops up. And after I press the back button, the dialog closes and th... | Search view not filtering after some action | CC BY-SA 4.0 | null | 2023-03-03T18:54:55.293 | 2023-03-03T18:54:55.293 | null | null | 17,507,271 | [
"android",
"filter",
"android-recyclerview",
"searchview"
] |
75,630,868 | 1 | 75,630,945 | null | 0 | 38 | I have a DataFrame as follows:
```
import pandas as pd
data = [
[1, 188],
[1, 258],
[1, 386],
[1, 385],
[1, 386],
[2, 111],
[2, 253],
[2, 812],
[3, 936],
[3, 121],
[3, 273],
[3, 554],
]
df = pd.DataFrame(data, columns=['Num', 'Val'])
print(df)
```
What would be the bes... | Sorting pd.DataFrame | CC BY-SA 4.0 | null | 2023-03-03T18:54:05.217 | 2023-03-04T13:13:57.480 | 2023-03-04T13:13:57.480 | 18,813,174 | 19,366,691 | [
"python",
"python-3.x",
"pandas",
"dataframe"
] |
75,630,862 | 2 | null | 75,626,593 | 2 | null | Because you want to encapsulate a polymorphic value into the `Object`field of your `Field` class the task can be solved with a custom [StdDeserializer](https://fasterxml.github.io/jackson-databind/javadoc/2.14/com/fasterxml/jackson/databind/deser/std/StdDeserializer.html) deserializer distinguishing the three cases you... | null | CC BY-SA 4.0 | null | 2023-03-03T18:53:21.090 | 2023-03-03T18:53:21.090 | null | null | 11,713,777 | null |
75,630,875 | 2 | null | 75,628,071 | 0 | null | I find this solution pretty concise:
```
(defn partition-contiguous [numbers]
(->> numbers
(partition-by identity)
(map-indexed cons)
(partition-by (fn [[x y]] (- x y)))
(map #(mapcat rest %))))
(partition-contiguous [1 2 3 3 8 9 9 10 10 99])
;; => ((1 2 3 3) (8 9 9 10 10) (99))
```
| null | CC BY-SA 4.0 | null | 2023-03-03T18:54:56.927 | 2023-03-03T19:50:54.333 | 2023-03-03T19:50:54.333 | 1,008,794 | 1,008,794 | null |
75,630,876 | 1 | null | null | -3 | 16 | I am trying to update a value i replaced the value was successfully replaced but got the error in the screenshot I attached
Trying to update a replacement int Data type
| Updating replaced value with different data types in SQL | CC BY-SA 4.0 | null | 2023-03-03T18:54:57.697 | 2023-03-03T18:54:57.697 | null | null | 21,327,915 | [
"sql-server"
] |
75,630,872 | 1 | null | null | 0 | 5 | I am struggling b/w two syntaxes of coldfusion. Please, Help..!!
QueryExecute(sql, params, options);
Normal syntax:
```
sqlEmployees = "SELECT * FROM Employees
WHERE empid = :empid
AND country = :country";
sqlParamsEmployees.empid = { value = 1, cfsqltype = "cf_sql_integer", "null"... | In coldfusion, queryExecute() can i use JSON structure with {} and : for 2nd parameter 'params' type struct of struct.what are pros and cons? | CC BY-SA 4.0 | null | 2023-03-03T18:54:49.117 | 2023-03-03T18:54:49.117 | null | null | 1,439,071 | [
"cfquery",
"cfqueryparam",
"coldfusion-2021"
] |
75,630,871 | 2 | null | 75,627,397 | 0 | null | I'm assuming you're using the standard NestJS [ValidationPipe](https://docs.nestjs.com/pipes#the-built-in-validationpipe) here. When a request fails DTO validation, `ValidationPipe` will throw an exception. This is then caught by Nest's [exception filter](https://docs.nestjs.com/exception-filters#exception-filters-1), ... | null | CC BY-SA 4.0 | null | 2023-03-03T18:54:43.443 | 2023-03-03T18:54:43.443 | null | null | 19,578,983 | null |
75,630,878 | 2 | null | 70,905,560 | 0 | null | open terminal and type
`cd %LOCALAPPDATA%\Android\sdk\platform-tools`
`./adb connect <device_ip>:<device_port>`
| null | CC BY-SA 4.0 | null | 2023-03-03T18:55:10.037 | 2023-03-03T18:56:57.357 | 2023-03-03T18:56:57.357 | 11,058,814 | 11,058,814 | null |
75,630,865 | 2 | null | 75,627,455 | 2 | null | You are not connecting the `TIdSimpleWebSocketClient` to the server correctly.
`TIdSimpleWebSocketClient` derives from `TIdTCPClient`, which has a public parameter-less `Connect()` method. You are calling the `TIdTCPClient.Connect()` method directly, which will simply open the TCP connection and do nothing else. That... | null | CC BY-SA 4.0 | null | 2023-03-03T18:53:54.880 | 2023-03-03T19:05:37.087 | 2023-03-03T19:05:37.087 | 65,863 | 65,863 | null |
75,630,880 | 2 | null | 75,630,582 | 1 | null | idt you need `middleware` for it, it will cause issue if some users creating page in the same time
and keep `_id` as it is, use `counter` instead
to count all the documents, use `count()
the code would be like:
```
const counter = await Page.countDocuments({});
const data = new Page({
counter: counter
n... | null | CC BY-SA 4.0 | null | 2023-03-03T18:55:16.200 | 2023-03-03T18:55:16.200 | null | null | 9,267,467 | null |
75,630,877 | 2 | null | 75,623,924 | 0 | null | Your `build_tree` function returns a `Node` with invalid pointers.
For example,
```
var last = array[array.len - 1];
```
What happens here? A `Node` is copied from `array` to the function stack. A pointer to it is only valid until the function exits.
All other instances of taking an address in `build_tree` have the sa... | null | CC BY-SA 4.0 | null | 2023-03-03T18:55:04.423 | 2023-03-03T18:55:04.423 | null | null | 944,911 | null |
75,630,864 | 1 | null | null | -1 | 18 | I need to display some select options. Once the category is chosen, I want to display the subcategory with another select.
My flask code
```
def return_panim():
panim = ["", "טיפול ניקוי עמוק", "טיפול יופי", "טיפול פילינג עמוק", "טיפול לאקנה ולעור בעייתי", "טיפול אנטי אייג'ינג מזוטרפיה", "טיפול אנטי אייג'ינג מיצוק ... | Passing parameters with flask render_template() | CC BY-SA 4.0 | null | 2023-03-03T18:53:52.793 | 2023-03-03T18:53:52.793 | null | null | 18,163,944 | [
"javascript",
"python-3.x",
"ajax",
"flask"
] |
75,630,884 | 2 | null | 75,630,851 | 2 | null | You can escape the $ like this:
```
re.sub(r'\$', lambda i: str(nums.pop(0)), my_string)
```
| null | CC BY-SA 4.0 | null | 2023-03-03T18:56:02.560 | 2023-03-03T18:56:02.560 | null | null | 3,974,555 | null |
75,630,879 | 2 | null | 50,201,194 | 0 | null |
```
var id=[];
$('.subcheckes').each(function(){
var values=$(this).attr('value')
id.push(values)
});
var url ="{{route('routeName')}}"
var token = $("meta[name='csrf-token']").attr("content");
$.ajax({
... | null | CC BY-SA 4.0 | null | 2023-03-03T18:55:15.477 | 2023-03-03T18:55:15.477 | null | null | 14,118,303 | null |
75,630,881 | 1 | null | null | -3 | 27 | This code does not return the given command. the idea is to put the number of rooms and the price to get the links for Apartments. Help please
```
# Import the necessary libraries
import requests
from bs4 import BeautifulSoup
# Define a function to search for apartments based on the specified criteria
def search_apart... | Beatifulsoup doesnt return Python | CC BY-SA 4.0 | null | 2023-03-03T18:55:31.613 | 2023-03-03T18:55:31.613 | null | null | 17,843,312 | [
"python",
"web-scraping",
"beautifulsoup"
] |
75,630,885 | 1 | null | null | -1 | 13 | I have this path:
```
ChDir "C:\Users\fpierre\Documents\CRC.REPORT\Trial Balance Macro"
Workbooks.OpenText Filename:= _
"C:\Users\fpierre\Documents\CRC.REPORT\Trial Balance Macro\TM3_SFFIS.CRC.txt", Origin:=437, StartRow:=1 _
, DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 1), Array(4, 9), Array(6, 1) _
... | How to browse and open a text file in excel | CC BY-SA 4.0 | null | 2023-03-03T18:56:06.353 | 2023-03-03T19:02:47.400 | null | null | 3,965,884 | [
"excel",
"vba"
] |
75,630,869 | 1 | null | null | 0 | 29 | I have a chart.js graph which receives the values from a .txt file which has them a string (with `fetch()`).
The string gets split and converted into an array with numbers, which will be shown on the chart.js graph.
It's preset 24 x-Values and the y-values which will be sent through the .txt file are calculated before,... | Chart.js only shows old values from an old array | CC BY-SA 4.0 | null | 2023-03-03T18:54:19.873 | 2023-03-03T18:54:19.873 | null | null | 19,320,835 | [
"javascript",
"html",
"web-applications",
"chart.js"
] |
75,630,883 | 1 | null | null | 0 | 22 | I have two question about academictwitteR package:
I wan to get tweets contains:
((word1 OR word2)AND(wordA OR wordB))OR word*
I get what I want with below code:
```
get_all_tweets(
query = c("word1 wordA","word1 wordB","word2 wordA","word2 wordB","word*"
),
lang="en",
start_tweets = "2022-01-... | query build: academictwitteR | CC BY-SA 4.0 | null | 2023-03-03T18:56:00.317 | 2023-03-03T20:21:28.960 | 2023-03-03T20:21:28.960 | 16,883,911 | 16,883,911 | [
"r",
"tweetstream"
] |
75,630,889 | 1 | null | null | 1 | 23 | I have a problem refreshing the slashcommands in typescript. I can only pass an array of one command object as body to the Discord API. Whenever I do more, I am getting a "Invalid Form Body".
The json:
```
[{"name":"ping","description":"Replies with Pong!"},{"name":"userCount","description":"Returns the number of users... | Discord.js with typescript - post multiple commands | CC BY-SA 4.0 | null | 2023-03-03T18:56:31.580 | 2023-03-03T19:26:34.360 | 2023-03-03T19:12:06.917 | 14,119,794 | 14,119,794 | [
"javascript",
"arrays",
"typescript",
"discord.js"
] |
75,630,891 | 2 | null | 75,630,842 | 3 | null | With `pmax`:
```
df <- type.convert(df, as.is = TRUE)
df %>%
mutate(New = do.call(pmax, c(across(A:C), na.rm = TRUE)))
# A tibble: 4 × 4
A B C New
<int> <int> <int> <int>
1 NA NA 1 1
2 NA 3 NA 3
3 4 4 NA 4
4 NA 5 5 5
```
| null | CC BY-SA 4.0 | null | 2023-03-03T18:56:59.033 | 2023-03-03T19:11:01.063 | 2023-03-03T19:11:01.063 | 13,460,602 | 13,460,602 | null |
75,630,882 | 1 | null | null | 0 | 27 | I am writing a program that deals with a lot of randomness, and I am in the process of implementing automated tests that measure individual run times of functions.
I have a class which defines several functions, and I am looking to write a function that will test one of these functions with given inputs X times and ret... | Passing class methods as parameters, together with arguments | CC BY-SA 4.0 | null | 2023-03-03T18:55:44.320 | 2023-03-03T20:36:36.633 | null | null | 14,192,844 | [
"javascript",
"function",
"parameter-passing"
] |
75,630,890 | 1 | null | null | 4 | 56 | With the following code:
```
use strict;
use warnings;
use utf8;
use IO::Pty;
use Data::Dump qw(pp);
my $pty = IO::Pty->new;
open *STDOUT, '>&', $pty->slave;
if ( my $pid = open *STDOUT, '|-' ) {
# parent
my $str = "foo\n";
print {*STDERR} "parent [1]: ", pp($str), "\n";
print {*STDOUT} $str;
my $line = <$... | Where does this \r\n come from when I redirect STDOUT to a PTY in Perl? | CC BY-SA 4.0 | null | 2023-03-03T18:56:47.137 | 2023-03-04T04:04:25.287 | 2023-03-04T04:04:25.287 | 1,638,960 | 1,638,960 | [
"perl",
"newline",
"tty",
"pty"
] |
75,630,896 | 2 | null | 70,941,848 | 0 | null | It is a python issue not a Lambda issue.
Basically, this issue is raised when we try to get some value from the null
Eg:
res = val[0] # the issue is raised when val is null
| null | CC BY-SA 4.0 | null | 2023-03-03T18:58:20.080 | 2023-03-03T18:58:20.080 | null | null | 21,296,931 | null |
75,630,892 | 2 | null | 75,630,842 | 2 | null | We may need to first convert the `"NA"` to `NA` before extracting the first non-NA
```
library(dplyr)
library(purrr)
df1 %>%
type.convert(as.is = TRUE) %>%
mutate(New = invoke(coalesce, pick(A:C)))
```
-output
```
# A tibble: 4 × 4
A B C New
<int> <int> <int> <int>
1 NA NA 1 1
2 ... | null | CC BY-SA 4.0 | null | 2023-03-03T18:57:02.817 | 2023-03-03T19:05:30.990 | 2023-03-03T19:05:30.990 | 3,732,271 | 3,732,271 | null |
75,630,895 | 1 | null | null | -1 | 16 |
disnake.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: Messageable.send() got an unexpected keyword argument 'ephemeral'
```
#ЖИВ
@bot.command()
async def test(ctx):
await ctx.reply('test', ephemeral=True)
```
```
import disnake, os, sys, asyncio, random, datetime
from disnake.e... | Ephemeral and hidden not working | Disnake | CC BY-SA 4.0 | null | 2023-03-03T18:57:55.747 | 2023-03-03T18:57:55.747 | null | null | 21,328,055 | [
"python",
"discord",
"discord.py",
"disnake"
] |
75,630,888 | 2 | null | 75,630,767 | 0 | null | You need to put your script tag as the last item in your body, like so:
```
<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
<title>Kokice5</title>
<link rel="stylesheet" href="styles.css">
</head>
<body onload="startTime()">
<p id="clock" style="text-align: center;"... | null | CC BY-SA 4.0 | null | 2023-03-03T18:56:25.123 | 2023-03-03T19:03:34.497 | 2023-03-03T19:03:34.497 | 7,449,489 | 7,449,489 | null |
75,630,893 | 1 | 75,630,987 | null | 0 | 9 | I need to decrease the width of each item from a ListView, and It simply won't obey... I know I can do it by adding some padding, but is there any other way?? I've tried BoxConstraints, Container.width, SizedBox,...
```
return ListView.builder(
shrinkWrap: true,
itemCount: snapshot.data!.length,
itemBuilde... | Can't decrease the width of ListView.builder Item | CC BY-SA 4.0 | null | 2023-03-03T18:57:09.023 | 2023-03-03T19:09:00.623 | 2023-03-03T18:57:44.493 | 13,536,950 | 13,536,950 | [
"flutter",
"dart"
] |
75,630,898 | 2 | null | 75,630,523 | 1 | null | You probably need the `message_content` intent.
Add this to your code:
```
intents.message_content = True
```
Also go to the Developer Portal [https://discord.com/developers/applications](https://discord.com/developers/applications) and the bot section and enable `message_content`
| null | CC BY-SA 4.0 | null | 2023-03-03T18:58:28.100 | 2023-03-03T18:58:28.100 | null | null | 17,381,704 | null |
75,630,902 | 2 | null | 56,998,771 | 0 | null |
I have managed to fix the issue, with specifying the `runtime` node version in `firebase.json`. Like this:
```
{
"functions": {
"predeploy": "npm --prefix \"$RESOURCE_DIR\" run build",
"runtime": "nodejs10" // <- In here
}
}
```
| null | CC BY-SA 4.0 | null | 2023-03-03T18:58:40.877 | 2023-03-03T18:58:40.877 | null | null | 15,748,652 | null |
75,630,887 | 2 | null | 75,630,159 | 0 | null | ```
SELECT m1.*,
COALESCE(LAG(volume) OVER (ORDER BY RowNumber),0) as PerviousVolume,
volume * price as TotalPriceForThisLine,
SUM(volume * price) OVER (order by RowNumber) as CumulativeTotalPrice,
SUM(volume) OVER (order by RowNumber) as CumulatieveVolume,
SUM(volume * price) OVER (order by RowNum... | null | CC BY-SA 4.0 | null | 2023-03-03T18:56:23.487 | 2023-03-03T18:56:23.487 | null | null | 724,039 | null |
75,630,901 | 1 | null | null | 0 | 18 | I have two "divs", the first with the "class" name "imgHouse" - the second with the "class" name "houseImg". "background image" of "imgHouse" has an image and "background image" of "houseImg" has no image. Now I need to put the image from "imgHouse" into the "background image" of "houseImg" via javascript. But how?
# ... | In Javascript, one div's "background image" value must be equal to the second div's | CC BY-SA 4.0 | null | 2023-03-03T18:58:36.750 | 2023-03-03T21:00:42.367 | null | null | 19,557,286 | [
"javascript"
] |
75,630,906 | 2 | null | 75,630,477 | 0 | null | It might help to run it like this:
`npm run lint -- --fix`
| null | CC BY-SA 4.0 | null | 2023-03-03T18:59:00.120 | 2023-03-03T18:59:00.120 | null | null | 5,243,983 | null |
75,630,894 | 1 | 75,631,529 | null | 0 | 29 | I have the following function.
from here
[Efficiently replace all accented characters in a string?](https://stackoverflow.com/questions/286921/efficiently-replace-all-accented-characters-in-a-string)
```
function test() {
let aa = 'čǧǩőšűžČǦǨŐŠŰŽ'
const ccc = wontParse(aa)
console.log(ccc)
}
var wontParse = (f... | Generalizing a replace function to accept parameters JavaScript | CC BY-SA 4.0 | null | 2023-03-03T18:57:28.197 | 2023-03-03T20:16:46.617 | 2023-03-03T19:05:06.747 | 9,301,989 | 9,301,989 | [
"javascript",
"google-apps-script"
] |
75,630,908 | 2 | null | 66,951,167 | 0 | null | Run the following maven command (replace 1.20.0 with your version):
```
dependency:get -Dartifact=org.apache.nifi:nifi-standard-services-api-nar:1.20.0
```
This will make sure everything the NAR Mojo needs is in your repository.
| null | CC BY-SA 4.0 | null | 2023-03-03T18:59:10.970 | 2023-03-03T18:59:10.970 | null | null | 20,939,490 | null |
75,630,905 | 2 | null | 75,630,544 | 3 | null | Add greedy quantifier `.*` to the following regex pattern `'.*twitter(?:(?:\.com/)|(?::?\s+@?))([a-z0-9_\.\-]+)'` to skip previous (optional) `twitter` keywords and catch the last one:
```
def get_username(string):
pat = re.compile(r'.*twitter(?:(?:\.com/)|(?::?\s+@?))([a-z0-9_\.\-]+)', re.IGNORECASE)
if (match... | null | CC BY-SA 4.0 | null | 2023-03-03T18:58:58.873 | 2023-03-03T19:00:58.193 | 2023-03-03T19:00:58.193 | 3,185,459 | 3,185,459 | null |
75,630,900 | 1 | null | null | 0 | 12 | My company runs a custom version of Azure AD B2C that provides business-to-customer identity as a service. Recently we added reCaptcha V2 to prevent malicious use of our services and we are still adjusting this implementation to our use case. Our implementation of Azure B2C is hosted as a subdomain of b2clogin.com, for... | Is reCaptcha quota shared across subdomains even when different keys are used and what count as a request? | CC BY-SA 4.0 | null | 2023-03-03T18:58:35.200 | 2023-03-03T18:58:35.200 | null | null | 993,554 | [
"azure-active-directory",
"azure-ad-b2c",
"recaptcha"
] |
75,630,903 | 1 | null | null | 0 | 13 | 'Can anyone please offer any advice to fix this to be accurate.
I think the 90 day "trailing" to get previous financial data rather than the actual previous financials is not ideal and also not sure i have used the in built financial functions correctly to actually calculate an accurate Fscore.' Really struggling to p... | How can I calculate F-score in pine script correct and efficient? | CC BY-SA 4.0 | null | 2023-03-03T18:58:42.277 | 2023-03-03T19:34:22.407 | 2023-03-03T19:34:22.407 | 21,327,817 | 21,327,817 | [
"pine-script-v5"
] |
75,630,904 | 1 | null | null | 0 | 44 | I have an excel document that I loop through a list of IP addresses and pings them. If an IP has an unheathly response, it will .
I would like to be able to temporarily remove that IP from the loop so that the list can continue looping until it becomes heathly again and it can be put back into the list when that condit... | How to temporarily remove a variable from a loop? | CC BY-SA 4.0 | null | 2023-03-03T18:58:44.540 | 2023-03-03T19:05:24.753 | 2023-03-03T19:05:24.753 | 7,400,547 | 7,400,547 | [
"python",
"excel",
"list"
] |
75,630,910 | 1 | null | null | 0 | 31 | I was trying to install [streisand](https://github.com/StreisandEffect/streisand) on my server (Linode) and I tried to execute the command `./util/venv-dependencies.sh ./venv` (from the installation docs) but I get an error:
```
Found a python3 command....
The python3 command invokes Python 3.10.7. Python 3.5 or late... | Python 3.5 or later is required when Python 3.10.7 is used | CC BY-SA 4.0 | null | 2023-03-03T18:59:40.023 | 2023-03-03T18:59:40.023 | null | null | 19,854,338 | [
"python",
"ubuntu",
"python-venv"
] |
75,630,912 | 2 | null | 48,531,276 | 0 | null | Use the classmethod `Poly.from_list`. The terms of the list are the coefficients in descending order of a polynomial of degree equal to `len(list)-1`
```
from sympy import Symbol, Poly
# coefs
num= [1,3]
den= [2,3,4]
# symbol
s = Symbol('s')
# polynomial
n = Poly.from_list(num, x)
d = Poly.from_list(den, x)
# expre... | null | CC BY-SA 4.0 | null | 2023-03-03T18:59:51.987 | 2023-03-03T19:01:11.333 | 2023-03-03T19:01:11.333 | 16,462,878 | 16,462,878 | null |
75,630,915 | 2 | null | 75,630,813 | 1 | null | No need regex, `awk` will better fit here:
```
$ awk 'NF-=2' file
Product Title 1
Product Title 2
Product Title
```
| null | CC BY-SA 4.0 | null | 2023-03-03T19:00:07.090 | 2023-03-03T19:12:39.163 | 2023-03-03T19:12:39.163 | 465,183 | 465,183 | null |
75,630,897 | 1 | null | null | 0 | 7 | I want to remove a message(with the username after a login) when I press the logout button. When I try to press the logout button nothing happens just refreshes the page. I want to remain on the same page and not redirect to a different page. Should I change the logout button type to submit?
html code:
```
<body>
... | How do I remove a connect-flash message? | CC BY-SA 4.0 | null | 2023-03-03T18:58:21.607 | 2023-03-03T18:58:21.607 | null | null | 19,551,233 | [
"javascript",
"html",
"express",
"logout"
] |
75,630,907 | 1 | null | null | -1 | 22 | I am running into a problem trying to rewrite the bearer authentication in Python from Java for the IronSource API. This is the code I am trying to replicate:
```
$authURL = 'https://platform.ironsrc.com/partners/publisher/auth';
$authHeaders = array(
'secretkey: <e83defbasdasd9227a9d2a952b2c5ec8b02e>',
... | Bearer Authentication in Python | CC BY-SA 4.0 | null | 2023-03-03T18:59:03.520 | 2023-03-04T01:22:04.237 | null | null | 21,328,031 | [
"python",
"api",
"authentication"
] |
75,630,913 | 1 | null | null | 0 | 3 | I am using `paged.js` via the `pagedown` R package and am trying to incorporate the `tippy.js` library. However the tooltips are not showing up. It was recommended by one of the `pagedown` package maintainers to find out if these two libraries are compatible with each other.
Any insight would be greatly appreciated.
| Is tippy.js compatible with paged.js? | CC BY-SA 4.0 | null | 2023-03-03T18:59:54.020 | 2023-03-03T18:59:54.020 | null | null | 6,679,490 | [
"tippyjs",
"pagedjs"
] |
75,630,911 | 2 | null | 75,629,387 | -1 | null | First you need to keep an instance of the height constraint don't create new height constraint every time. like this
```
var constraint: NSLayoutConstraint?
```
and inside the viewDidLoad add this
```
constraint = label.heightAnchor.constraint(equalToConstant: 250)
constraint?.isActive = true
```
then inside tapLabel... | null | CC BY-SA 4.0 | null | 2023-03-03T18:59:44.737 | 2023-03-03T19:12:14.150 | 2023-03-03T19:12:14.150 | 10,701,774 | 10,701,774 | null |
75,630,919 | 1 | 75,634,481 | null | 1 | 33 | I have a with the name `people` created inside my database.
But now I want to update it to `population`
How can I do that?
| How to change the graph name in Apache-AGE? | CC BY-SA 4.0 | null | 2023-03-03T19:00:20.613 | 2023-03-04T16:34:46.977 | 2023-03-04T08:20:25.823 | 19,111,495 | 19,111,495 | [
"apache-age"
] |
75,630,914 | 1 | null | null | 0 | 16 | I am working on an app where I need to send an image blob as FormData alongside some other data sent as Json.
For this I'm making an http post request to the api with the following data:
```
const blob = new Blob(['some-image], {type: 'image/jpeg'});
const formData = new FormData();
formData.append("file", blob);
co... | Adding FormData object as value for an object key to be sent as post request | CC BY-SA 4.0 | null | 2023-03-03T19:00:04.740 | 2023-03-03T19:19:08.617 | null | null | 8,870,206 | [
"javascript",
"node.js",
"json",
"multipartform-data"
] |
75,630,920 | 2 | null | 75,630,400 | 0 | null | If you get the keys and combine with the `productName` values, then you can search it and get the key. Then use the key to update `MainProduct`:
```
$array[array_search('Oranges', array_combine(array_keys($array), array_column($array, 'productName')))]['MainProduct'] = 5;
```
If `productName` is unique, then I would ... | null | CC BY-SA 4.0 | null | 2023-03-03T19:00:21.443 | 2023-03-03T19:01:35.443 | 2023-03-03T19:01:35.443 | 2,844,319 | 2,844,319 | null |
75,630,917 | 2 | null | 75,630,916 | 0 | null | The solution that eventually worked for me combined:
- - [changing the order of the elements](https://stackoverflow.com/a/28159766/5802289)
```
.card-read-more {
max-width: 40%;
float: right;
padding: 10px;
border: 1px solid black;
margin-left: 10px;
}
@media only screen and (max-width: 400px) {
.read-more... | null | CC BY-SA 4.0 | null | 2023-03-03T19:00:10.263 | 2023-03-03T19:06:30.210 | 2023-03-03T19:06:30.210 | 5,802,289 | 5,802,289 | null |