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,616,292 | 2 | null | 75,605,529 | 0 | null | I found a non-official way (workaround) to get a shareable link which is .
The shareable link must follow the format:
[https://play.google.com/apps/test/{app_package_name}/{version_code}](https://play.google.com/apps/test/%7Bapp_package_name%7D/%7Bversion_code%7D)
: The package name of the uploaded bundle / apk
: The v... | null | CC BY-SA 4.0 | null | 2023-03-02T13:46:14.753 | 2023-03-02T14:11:37.330 | 2023-03-02T14:11:37.330 | 4,813,946 | 4,813,946 | null |
75,616,281 | 1 | null | null | 1 | 32 | I have trouble on running my code on my GPU instead of my CPU.
I am trying to run a FinBert code which classifies each sentence of a text as positive, negative or neutral. However, this code takes an eternity to run on my CPU. Because of that I am trying to run it on my GPU, but so far I was not able to figure out how ... | How can I run BERT/ FinBert on my GPU instead of my CPU in Spyder or Jupyter Notebook? | CC BY-SA 4.0 | null | 2023-03-02T13:45:34.307 | 2023-03-03T04:56:42.207 | null | null | 15,788,507 | [
"python",
"jupyter-notebook",
"gpu",
"spyder",
"bert-language-model"
] |
75,616,298 | 2 | null | 75,615,194 | 0 | null | The code definitely is not using the subnet resource ID as a key in the data objects, and so the error message is expected. You would need to couple the subnet data to the EBS volumes. This could be awkward and cumbersome (especially given the different enumerables for iteration), and so it would be easier to use the `... | null | CC BY-SA 4.0 | null | 2023-03-02T13:46:37.583 | 2023-03-02T13:46:37.583 | null | null | 5,343,387 | null |
75,616,301 | 2 | null | 75,615,429 | 1 | null | By using the `ACTION_OPEN_DOCUMENT_TREE` think so it's not possible, because this is determined the default android system which can't be modified. For this you need to use the third-party library files like `Material Components`,`DarkModeKit`,`Carbon` and so on.
| null | CC BY-SA 4.0 | null | 2023-03-02T13:46:49.310 | 2023-03-02T13:46:49.310 | null | null | 21,301,929 | null |
75,616,299 | 1 | 75,616,555 | null | 0 | 21 | I have a base64 of a .txt file and I want to display it in React. The file looks like this:
```
ID:948201
name:"someText"
description:".txt"
base64File:"QU5URSBQVVBBQ0lDIEtSQUFBQUFBQUFBQUFMSg=="
```
Can I display the text of the document, which is "ANTE PUPACIC KRAAAAAAAAAAALJ", somehow on the browser?
| Display a view of a base64 text file in React | CC BY-SA 4.0 | null | 2023-03-02T13:46:39.250 | 2023-03-02T14:07:13.647 | null | null | 15,011,705 | [
"javascript",
"html",
"reactjs",
"base64"
] |
75,616,305 | 2 | null | 75,597,699 | 0 | null | Nuget pack command is now depreciated. This is working in Nuget version 6.4 but on version 6.5+ an error will be raise when using nuget.exe to pack an SDK.
Nuget Release Notes : [Here](https://learn.microsoft.com/en-us/nuget/release-notes/nuget-6.5Merge)
Merge ticket: [Here](https://github.com/NuGet/Home/issues/7778)... | null | CC BY-SA 4.0 | null | 2023-03-02T13:47:34.377 | 2023-03-02T13:47:34.377 | null | null | 3,649,914 | null |
75,616,304 | 2 | null | 75,614,975 | 0 | null | found the answer in the meanwhile (was looking to it in a wrong way).
For info:
All lookup values where already in partitioned path `blabla/blabla/contextType=*/year=*/month=*/day=*` (referenced as `rootInputPath` here under.)
So it just required to d-do the following using the `indexdf` already containing the source e... | null | CC BY-SA 4.0 | null | 2023-03-02T13:47:12.083 | 2023-03-02T13:47:12.083 | null | null | 2,126,819 | null |
75,616,307 | 1 | null | null | -1 | 35 | [CMake - Configure - Warning](https://i.stack.imgur.com/bGkua.png)
i started fresh with qr creator and cmake and do not understand how to solve the problem.
I will run a Open-Source project published in GitHub. When i try to run the program, this warning appears.
The CMake files are included in the project from GitHub... | How I can fix 'No CMake configuration found!' in Qt Creator | CC BY-SA 4.0 | null | 2023-03-02T13:47:35.463 | 2023-03-02T13:47:35.463 | null | null | 19,938,162 | [
"qt",
"cmake"
] |
75,616,306 | 1 | 75,616,909 | null | 0 | 30 | I have a client shop with lots of customizations. A primary one is uses the PDF Invoices & Packing Slips for WooCommerce plugin to generate an internal, admin order print out (they are a manufacturing company). The print out has been heavily customized and isn't used as an "Invoice" at all and has many custom functions... | WooCommerce get date of last order with offset | CC BY-SA 4.0 | null | 2023-03-02T13:47:35.383 | 2023-03-03T08:44:20.227 | null | null | 9,073,832 | [
"php",
"wordpress",
"woocommerce"
] |
75,616,309 | 1 | null | null | 0 | 13 | I am trying to determine if it is possible to use digest authentication to get a JPEG image from an Onvif url in flutter. I can get the RTSP stream working by adding the username/password as part of the URL (rtsp://username:password@thecameraurl).
However, in Postman getting the snapshot JPEG requires Digest Authentica... | Is it possible to use Digest Authentication for network images in flutter? | CC BY-SA 4.0 | null | 2023-03-02T13:47:38.977 | 2023-03-02T13:47:38.977 | null | null | 19,384,768 | [
"flutter",
"authentication",
"hash",
"snapshot",
"onvif"
] |
75,616,300 | 2 | null | 75,592,408 | 0 | null | The answer to my question was that I had to rescale the according to the . Befor doing the clustering.
See: `# rescale seconddata --------`
```
# library -----------------------------------------------------------------
library(tidyverse)
library(ggplot2)
library(scatterplot3d)
library(hopkins)
library(factoextra)
lib... | null | CC BY-SA 4.0 | null | 2023-03-02T13:46:41.273 | 2023-03-02T13:46:41.273 | null | null | 13,196,127 | null |
75,616,314 | 2 | null | 22,573,428 | 0 | null | In my case adding `IgnoreCase` work like this. i would prefer to use `list` instead of `iterator`
```
public List<ContactEntity> findByNameIgnoreCaseContainingAndUserEntity(String name, UserEntity userEntity);
```
| null | CC BY-SA 4.0 | null | 2023-03-02T13:48:04.387 | 2023-03-02T13:48:04.387 | null | null | 20,148,955 | null |
75,616,310 | 2 | null | 75,605,534 | 0 | null | In your `RoundedButton` you're passing the `onPress` prop to the actual `Pressable` component. You can fix your issue by doing so.
```
import { Pressable, Text, TouchableOpacity, StyleSheet } from "react-native";
export const RoundedButton = ({
style = {},
textStyle = {},
size = 125,
onPress, // destructure i... | null | CC BY-SA 4.0 | null | 2023-03-02T13:47:41.670 | 2023-03-02T13:47:41.670 | null | null | 20,088,324 | null |
75,616,313 | 1 | null | null | 0 | 15 | ```
Unhandled Runtime Error
ReferenceError: doc is not defined
Source
components\Modal.js (42:18) @ updateDoc
40 | await uploadString(imageRef, selectedFile, "data_url").then(async (snapshot) => {
41 | const downloadURL = await getDownloadURL(imageRef);
> 42 | await updateDoc(doc(db, 'posts', docRef.id), ... | Unhandled Runtime Error ReferenceError: doc is not defined | CC BY-SA 4.0 | null | 2023-03-02T13:47:55.820 | 2023-03-02T14:34:20.990 | 2023-03-02T14:34:10.207 | 209,103 | 21,319,437 | [
"javascript",
"reactjs",
"google-cloud-firestore",
"next.js"
] |
75,616,308 | 1 | null | null | 0 | 28 | I´ve developped a C# program and I have a problem with configuration file.
I use Visual Studio 2022 and Windows 10. The DB is SQL Server.
To start, the program acesses the configuration file to read some information, then, after the user enters username and password the program grants (or not) use and opens main screen... | Program stopped accessing Config file | CC BY-SA 4.0 | null | 2023-03-02T13:47:36.910 | 2023-03-02T13:47:36.910 | null | null | 6,949,817 | [
"c#",
"configuration-files",
"dbaccess"
] |
75,616,315 | 2 | null | 75,616,146 | 1 | null | You have to specify the right method for the numpy.quantile i.e. in your case higher would work:
```
import matplotlib.pyplot as plt
import numpy as np
values = [13, 21, 21, 40, 42, 48, 55, 72]
print(len(values))
x = np.quantile(values, [0, 0.25, 0.5, 0.75, 1], method='higher')
print(x)
```
Documentation at: [https:/... | null | CC BY-SA 4.0 | null | 2023-03-02T13:48:05.800 | 2023-03-02T13:48:05.800 | null | null | 21,281,213 | null |
75,616,320 | 2 | null | 60,951,666 | 0 | null | for this to work you must export the module so add module.exports = app in your app.js file
| null | CC BY-SA 4.0 | null | 2023-03-02T13:48:30.673 | 2023-03-02T13:48:30.673 | null | null | 10,214,875 | null |
75,616,302 | 1 | null | null | 1 | 16 | I cloned a repository with git clone and it downloaded to my computer, I used the npm install command and it installs some things but with the message
```
npm WARN deprecated" and at the end it says "55 vulnerabilities (3 low, 12 moderate, 36 high, 4 critical)
To address issues that do not require attention, run: npm ... | Error when trying to run a project with ionic | CC BY-SA 4.0 | null | 2023-03-02T13:46:51.980 | 2023-03-02T14:11:40.210 | 2023-03-02T13:48:14.357 | 19,953,399 | 19,953,399 | [
"node.js",
"angular",
"ionic-framework"
] |
75,616,318 | 1 | null | null | -3 | 24 | The website i have built doesn't work properly when on a phone - it appears to be non responsible to the viewport size yet i have written that in the code
responsive website on phone/tablet etc
[www.dermotnolan.com](http://www.dermotnolan.com) - is the website
```
<!DOCTYPE html>
<html lang="en">
<head>
<script src... | I don't know whtat ive done wrong - Website doesn't look right on a mobile phone | CC BY-SA 4.0 | null | 2023-03-02T13:48:22.307 | 2023-03-02T13:59:28.373 | 2023-03-02T13:59:28.373 | 21,319,358 | 21,319,358 | [
"html"
] |
75,616,312 | 2 | null | 75,615,461 | 0 | null | As @TheMonarch said, if you want all arguments to be keyword only arguments, simply put an asterisk first. You can make them optional or required, depending on the requirements.
For a more thorough understanding, you need to understand some concepts of python arguments:
Arguments can be specified according to position... | null | CC BY-SA 4.0 | null | 2023-03-02T13:47:55.480 | 2023-03-02T13:47:55.480 | null | null | 20,378,170 | null |
75,616,322 | 2 | null | 1,416,059 | 0 | null | For example count words of "War and peace" in file:
```
acc = 0
File.readlines('war_and_peace.txt').each { |line| acc += line.split.size }
acc
=> 238610
```
| null | CC BY-SA 4.0 | null | 2023-03-02T13:48:38.690 | 2023-03-02T13:48:38.690 | null | null | 3,563,993 | null |
75,616,311 | 1 | null | null | 1 | 27 | i am doing a graph with Plotly library and I would like to add the name of the legend inside the hovertemplate. How can I do ?
```
data = [go.Bar(name=col,
x=aum_annuel_classe.index.year,
y=aum_annuel_classe[col],
xhoverformat="%Y",
xperiodal... | Plotly add legend in hover graph | CC BY-SA 4.0 | null | 2023-03-02T13:47:55.157 | 2023-03-03T03:39:32.540 | null | null | 12,945,785 | [
"python",
"plotly"
] |
75,616,317 | 2 | null | 75,614,537 | 0 | null | In order to avoid having to deal with the cache of the require/import function, I think you should prefer the use of the `fs.readFile` function:
```
import fs from 'fs';
const PATH_OF_JSON = 'data/my_json.json';
app.get('/data', async (req, res) => {
res.send(JSON.parse(await fs.promises.readFile(PATH_OF_JSON, 'utf... | null | CC BY-SA 4.0 | null | 2023-03-02T13:48:14.300 | 2023-03-02T13:48:14.300 | null | null | 1,829,692 | null |
75,616,327 | 2 | null | 51,114,767 | 0 | null | try set MONO_THREADS_PER_CPU variable to 200 before run mono
```
MONO_THREADS_PER_CPU=200 mono MyApp.exe
```
By default mono has 2 working threads in ThreadPool
| null | CC BY-SA 4.0 | null | 2023-03-02T13:48:54.910 | 2023-03-02T13:48:54.910 | null | null | 1,790,613 | null |
75,616,321 | 1 | null | null | 0 | 22 | First of all this is my first question and I am a junior so please bare with me if I say anything stupid.
I'm encountering a strange issue in my C# code which behaves like this:
I have a simple database query inside a foreach statement which returns NullExpression though there is always something to return (I will have... | C# - Entity Framework Query returns NullExpression when not supposed to | CC BY-SA 4.0 | null | 2023-03-02T13:48:32.987 | 2023-03-02T14:05:14.980 | null | null | 21,298,308 | [
"c#",
"postgresql",
"entity-framework"
] |
75,616,328 | 1 | null | null | 0 | 36 | I am following the WSO2 Identity Server documentation to set up a sample scenario. However, when I try to log in to the interface, I am immediately prompted with an error message stating 'SAML 2.0-based single sign-on: Error processing the authentication request. Please try to login again.' This occurs even before I en... | Error processing authentication request in WSO2 Identity Server sample scenario - SAML 2.0-based single sign-on | CC BY-SA 4.0 | null | 2023-03-02T13:48:57.840 | 2023-03-02T13:48:57.840 | null | null | 21,296,499 | [
"wso2",
"wso2-identity-server"
] |
75,616,333 | 2 | null | 54,232,528 | 0 | null | I cleared the cache on Chrome and it loaded fine after.
| null | CC BY-SA 4.0 | null | 2023-03-02T13:49:30.683 | 2023-03-02T13:49:30.683 | null | null | 14,766,449 | null |
75,616,323 | 1 | null | null | 0 | 41 | I have an HTML file that contains some text in English, and I want to translate it into another language. I'm using the google-cloud-translate library in Python, and I have already set up my authentication credentials using the os.environ variable.
Here's the code I'm using to read the HTML file, translate the text, an... | How to translate HTML file locally | CC BY-SA 4.0 | null | 2023-03-02T13:48:44.593 | 2023-03-02T16:50:54.980 | null | null | 21,089,168 | [
"python",
"google-cloud-platform",
"google-cloud-translate"
] |
75,616,324 | 1 | null | null | 0 | 20 | I have downloaded django-timescaledb but when i run server, the following error is displayed in terminal:
`ModuleNotFoundError: No module named 'timescale.fields'`
```
from django.db import models
from django.contrib.auth import get_user_model
import uuid
from datetime import datetime
from django.utils import timezone
... | ModuleNotFoundError: No module named 'timescale.fields' | CC BY-SA 4.0 | null | 2023-03-02T13:48:46.767 | 2023-03-02T14:59:21.697 | null | null | 2,451,455 | [
"python",
"django",
"timescaledb",
"modulenotfounderror"
] |
75,616,331 | 1 | null | null | 0 | 16 | I'm using the following code in order to connect to a FTP Server
```
public void sendData(BepReport bpReport) {
FtpSession ftpSession = defaultFtpSessionFactory.getSession();
StringBuilder buffer = new StringBuilder();
buffer.append(bpReport.getReportName());
buffer.append(bpReport.getContent());
InputStream is = ne... | Using Spring integration ftp client hangs after transfering the file in docker | CC BY-SA 4.0 | null | 2023-03-02T13:49:06.360 | 2023-03-03T19:56:23.047 | null | null | 3,601,527 | [
"spring",
"docker",
"spring-integration",
"spring-integration-sftp"
] |
75,616,334 | 2 | null | 75,604,275 | 0 | null | There is a child tag `<scrollable />` that should be used:
```
<kendo-tabstrip name="tabstrip" tab-position="top">
<scrollable enabled="false" />
<popup-animation>
<open effects="fade:in" />
</popup-animation>
<items>
<tabstrip-item text="First Tab">
<content>
</content>
</tabstrip-i... | null | CC BY-SA 4.0 | null | 2023-03-02T13:49:37.240 | 2023-03-02T13:49:37.240 | null | null | 11,071,504 | null |
75,616,335 | 1 | 75,616,472 | null | 0 | 14 | I would like to fill text and then enter to search some keywords in this website.
i tried myself some ways but did not run,
so please help me!
Thanks you so much!
[https://shopee.vn/](https://shopee.vn/)
[](https://i.stack.imgur.com/EQORT.png)
| fill text and search on web by selenium | CC BY-SA 4.0 | null | 2023-03-02T13:49:44.950 | 2023-03-02T14:00:03.943 | null | null | 18,783,692 | [
"selenium-webdriver",
"web",
"webdriver",
"web-crawler",
"autofill"
] |
75,616,329 | 1 | 75,616,527 | null | 1 | 43 | I imitated the online tutorial on closures and wrote the following code.
```
func foo1() func() {
xValue := 1
x := &xValue
defer func() {
xValue = 2
}()
return func() {
*x = *x + 1
fmt.Printf("foo1 val = %d\n", *x)
}
}
func main() {
f1 := foo1()
f1()
f1()
... | What is the scope of the environment that the closure holds? | CC BY-SA 4.0 | null | 2023-03-02T13:49:01.890 | 2023-03-02T21:28:54.470 | 2023-03-02T16:57:15.827 | 13,860 | 12,827,198 | [
"go",
"garbage-collection",
"closures"
] |
75,616,287 | 1 | null | null | 0 | 17 | I am using spark with JDBC and postgres.
I create all the prerequisites:
```
val conf: SparkConf = new SparkConf()
conf.setAppName("app")
.set("spark.scheduler.mode", "FAIR")
.set("spark.serializer", classOf[KryoSerializer].getName)
.set("spark.kryo.referenceTracking", "true")
.set("hive.exec.dynamic.partition.... | org.postgresql.util.PSQLException: FATAL: no PostgreSQL user name specified in startup packet in spark? | CC BY-SA 4.0 | null | 2023-03-02T13:45:58.803 | 2023-03-02T13:45:58.803 | null | null | 10,681,828 | [
"postgresql",
"apache-spark"
] |
75,616,339 | 2 | null | 71,251,003 | 0 | null | To secure private traffic in a virtual hub connection you can use the following configuration:
```
resource "azurerm_virtual_hub_connection" "main" {
name = "connection-name"
remote_virtual_network_id = <network id>
virtual_hub_id = <virtual hub id>
routing {
propagated_route_table {
rout... | null | CC BY-SA 4.0 | null | 2023-03-02T13:50:20.327 | 2023-03-02T13:50:20.327 | null | null | 21,319,484 | null |
75,616,340 | 1 | 75,616,569 | null | 0 | 26 | I have an HttpClient.PostAsync method and i want to convert the error response into a custom ErrorResponse class.
The response from the call:
```
{
"ResponseStatus": {
"ErrorCode": "NotFound",
"Message": "Product does not exist in the system.",
"Errors": []
}
}
```
Custom Error class:
`... | Take the error result and transform it to custom error class | CC BY-SA 4.0 | null | 2023-03-02T13:50:22.647 | 2023-03-02T14:08:15.187 | null | null | 672,305 | [
"c#",
"asp.net-core",
"asp.net-core-mvc",
"json.net"
] |
75,616,344 | 2 | null | 75,611,524 | 0 | null | The reason for downloading failure was screen size on cloud! I was able to resolve it by:
1. For java instead of --window-size=1920,1080 I did:
driver.manage().window().setSize(new Dimension(1920, 1080));
1. Now I'm running selenium with xvfb!
UPDATE: Above solution works with sequential execution but not with pa... | null | CC BY-SA 4.0 | null | 2023-03-02T13:50:36.990 | 2023-03-03T06:27:32.090 | 2023-03-03T06:27:32.090 | 14,028,685 | 14,028,685 | null |
75,616,325 | 1 | 75,616,361 | null | 2 | 37 | I have the following df, illustrated as the matrix in the image, and I would like to count the number of 'correlated' squares which are equal to 1, and 'non correlated' which are equal to 0.
I have tried to use the df.count() function but it doesn't return the result I want, as in the totals of 1s and 0s.
Any help woul... | Calculating the number of '1's in a df | CC BY-SA 4.0 | null | 2023-03-02T13:48:51.410 | 2023-03-02T14:14:34.400 | 2023-03-02T13:52:18.720 | 12,913,047 | 12,913,047 | [
"python",
"pandas"
] |
75,616,346 | 2 | null | 46,731,303 | 0 | null | I created a ticket for that [https://issues.jenkins.io/browse/JENKINS-70717](https://issues.jenkins.io/browse/JENKINS-70717) . Thanks for the workaround, I added that there.
| null | CC BY-SA 4.0 | null | 2023-03-02T13:50:46.787 | 2023-03-02T13:50:46.787 | null | null | 12,112,082 | null |
75,616,342 | 2 | null | 75,608,197 | 0 | null | So I got this piece figured out at least. Whatever Visual Studio code does to connect to a WSL2 instance it looks like you have to install all your extensions separately (workspaces). I wasn't aware of this. Here is the C# extension
> This extension is disabled in this workspace because it is defined to
run in Remote ... | null | CC BY-SA 4.0 | null | 2023-03-02T13:50:26.667 | 2023-03-02T13:50:26.667 | null | null | 127,954 | null |
75,616,345 | 2 | null | 75,608,138 | 2 | null | Don't you have any information about how the archive was originally stored? Normally you will have to apply the read (>>) operators in the same order.
The relevant source-code files are arccore.cpp, timecore.cpp and afx.inl.
In your case my take is that the archive contains 12 bytes for the object, and this because MFC... | null | CC BY-SA 4.0 | null | 2023-03-02T13:50:44.973 | 2023-03-02T13:50:44.973 | null | null | 1,372,577 | null |
75,616,348 | 1 | null | null | -3 | 16 | I am trying to create a dynamic table using HTML and JS. But I am able to do it. Please suggest me how to create the update the table and how to update it using JavaScript?
I am trying to make an object in JS and the object creation is dynamic. I have to show the details in table format and if the user again enters any... | Creating dynamic table using HTML and JavaScript | CC BY-SA 4.0 | null | 2023-03-02T13:50:57.020 | 2023-03-02T13:50:57.020 | null | null | 20,984,273 | [
"javascript",
"html",
"dom"
] |
75,616,351 | 2 | null | 75,611,289 | 0 | null | ```
public class VisibilityConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
EffectsView effectsView = (EffectsView)parameter;
return effectsView.ScaleFactor == 1;
}
public object Conve... | null | CC BY-SA 4.0 | null | 2023-03-02T13:51:09.310 | 2023-03-02T13:51:09.310 | null | null | 5,872,171 | null |
75,616,341 | 2 | null | 75,616,173 | 2 | null | You should create a [new logger instance yourself](https://www.machinelearningplus.com/python/python-logging-guide/#7howtocreateanewlogger) and not use the root logger as that gets confusing fast.
An example:
```
# Import the logging package and a file handler that can rotate your logs automatically
import logging
from... | null | CC BY-SA 4.0 | null | 2023-03-02T13:50:23.520 | 2023-03-02T13:56:33.697 | 2023-03-02T13:56:33.697 | 1,256,347 | 1,256,347 | null |
75,616,353 | 2 | null | 75,616,218 | 0 | null | The problem with your current code is that you iterate but never use `i`.
To do what you want, you can use the `sum` method directly:
```
import numpy as np
array_1d = np.array([1,2,3,4,5])
array_2d = np.array([[1,3,4,5],[1,4,5,7]])
array_3d = np.array([[[1,3,4,5],[1,4,5,7]],[[6,7,8,9],[7,8,7,6]]])
for array in (arr... | null | CC BY-SA 4.0 | null | 2023-03-02T13:51:11.107 | 2023-03-02T13:51:11.107 | null | null | 9,282,844 | null |
75,616,349 | 1 | null | null | 0 | 13 | Is it possible to tell the browser not to translate the expo web app, as shown below?
[](https://i.stack.imgur.com/21vj7.png)
There is a HTML5 attribute ([translate: MDN web docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/translate)) which allows this, but I can't get expo to apply it to the r... | Disable browser translation dialog in Expo web app | CC BY-SA 4.0 | null | 2023-03-02T13:51:03.097 | 2023-03-02T13:51:03.097 | null | null | 9,295,408 | [
"react-native",
"expo",
"expo-web"
] |
75,616,352 | 1 | null | null | 0 | 11 | I know there's been a few solutions posited on this error, but nothing I've tried seems to resolve it.
E.g.
```
const isCancelled = useRef(false);
```
then including a cleanup in the useEffect()
```
return () => {
isCancelled.current = true;
};
```
Then only doing a set if set not cancelled.
```
if (!isCanc... | React: Can't perform a React state update on an unmounted component warning | CC BY-SA 4.0 | null | 2023-03-02T13:51:10.953 | 2023-03-02T13:51:10.953 | null | null | 6,144,451 | [
"reactjs"
] |
75,616,355 | 1 | null | null | -1 | 16 | I am trying to contribute to an open source repository. that took me deep in those concepts, i discovered a lot of things like AST,Element,Declaration and Visitors in Dart. But i can't figure out what are they and what is the relation between them
Can anyone help me understand those concepts? What are they used for and... | Relation between Element, Declaration and Visitor in Dart | CC BY-SA 4.0 | null | 2023-03-02T13:51:19.517 | 2023-03-02T14:00:57.610 | 2023-03-02T14:00:57.610 | 20,903,485 | 20,903,485 | [
"dart"
] |
75,616,358 | 2 | null | 72,988,339 | 0 | null | I replace py2neo 4.3.0 with 2021.1.1.
It works.
| null | CC BY-SA 4.0 | null | 2023-03-02T13:51:36.077 | 2023-03-02T13:51:36.077 | null | null | 21,319,476 | null |
75,616,359 | 2 | null | 75,559,064 | 0 | null | thanks for the hint :)
the answer is to use this :
```
$dataGrid.add_click({$val = $dataGrid.CurrentRow.Cells["email"].Value})
```
so everytime i click on a row i get the associated email !!
Thanks all .
| null | CC BY-SA 4.0 | null | 2023-03-02T13:51:38.573 | 2023-03-02T13:52:15.417 | 2023-03-02T13:52:15.417 | 19,909,675 | 19,909,675 | null |
75,616,343 | 1 | 75,617,543 | null | -2 | 50 | I am solving the SQL problem from [Leetcode: 178. Rank Scores.](https://leetcode.com/problems/rank-scores/description/).
The question of the leetcode is this:
Write an SQL query to . The ranking should be calculated according to the following rules:
- The scores should be ranked from the highest to the lowest.- If ther... | "Subquery returns more than 1 row" in SQL (From Leetcode 178. Rank Scores) | CC BY-SA 4.0 | null | 2023-03-02T13:50:36.527 | 2023-03-04T12:32:54.363 | 2023-03-02T14:22:26.807 | 389,985 | 5,481,941 | [
"mysql",
"sql"
] |
75,616,360 | 1 | null | null | -2 | 27 | I have a folder full of csv files.
I need to seperate the csv files from each other based on,
if a specific word that occurs in the file or not.
EDIT: original code was removed, as it was not working anyways.
| Within a folder search all CSV files for a word and only move the files where the word was found | CC BY-SA 4.0 | null | 2023-03-02T13:51:38.647 | 2023-03-04T00:53:10.133 | 2023-03-04T00:53:10.133 | 21,052,609 | 21,052,609 | [
"string",
"csv",
"file",
"search",
"move"
] |
75,616,347 | 1 | null | null | 0 | 12 | This is my data about insurance claim
| claim | frequency |
| ----- | --------- |
| 0 | 370412 |
| 1 | 46545 |
| 2 | 3935 |
| 3 | 317 |
| 4 | 28 |
| 5 | 3 |
I want to get the estimate value and also the parameters value using MLE
This is the loglikelihood function that I used
ll=((-t)(theta^x)))/(1-(alpha*(t... | how to do maximum likelihood estimation using optim in r? | CC BY-SA 4.0 | null | 2023-03-02T13:50:50.527 | 2023-03-02T13:54:39.240 | 2023-03-02T13:54:39.240 | 21,185,862 | 21,185,862 | [
"mle",
"optim"
] |
75,616,354 | 1 | null | null | 0 | 26 | I have been working on this for over 3 hours and cannot figure it out.
I am wanting to save a worksheet to a new workbook. All works great unless the "cancel" button is chosen in the dialog box. The message "Want to save your changes" displays and then need to choose the "Don't Save". I do no want for this dialog box t... | Saving Worksheet to New Workbook and End Macro if Canceled | CC BY-SA 4.0 | null | 2023-03-02T13:51:12.020 | 2023-03-02T14:08:11.640 | 2023-03-02T13:52:25.577 | 8,422,953 | 20,192,340 | [
"excel",
"vba"
] |
75,616,361 | 2 | null | 75,616,325 | 3 | null | You can reshape to Series and [value_counts](https://pandas.pydata.org/docs/reference/api/pandas.Series.value_counts.html):
```
df.melt('Indicators')['value'].value_counts()
```
Or:
```
df.drop(columns='Indicators').stack().value_counts()
```
Output:
```
1 208
0 160
Name: value, dtype: int64
```
| null | CC BY-SA 4.0 | null | 2023-03-02T13:51:40.007 | 2023-03-02T13:51:40.007 | null | null | 16,343,464 | null |
75,616,363 | 2 | null | 75,616,185 | 2 | null | Rather than trying to import the variable from `component.js` to `Utils.js` you should do it the other way around: import the `Util.js` function into `component.js` then call it.
```
import { filterByDistance } from './Util.js';
const [distance, setDistance] = useState();
function handleChange(value){
setDistance... | null | CC BY-SA 4.0 | null | 2023-03-02T13:51:49.070 | 2023-03-02T13:51:49.070 | null | null | 995,579 | null |
75,616,366 | 1 | null | null | -1 | 14 | I want to download files from SharePoint using bash but the folder requires client ID . please help
I tried curl and wget but it doesn't work
I tried configuring rclone but doesn't work
| How to download files from SharePoint to linux using bash with client keys | CC BY-SA 4.0 | null | 2023-03-02T13:52:22.683 | 2023-03-02T14:16:21.057 | 2023-03-02T14:16:21.057 | 21,319,481 | 21,319,481 | [
"linux",
"bash",
"shell",
"sharepoint",
"client"
] |
75,616,330 | 2 | null | 75,606,584 | 0 | null | You've already found the problematic code:
```
function pushQuote(quoteText, attribution) {
quotes.push({ quote: quoteText, person: attribution });
}
pushQuote({ quote, person });
```
In the `pushQuote({ quote, person })` call, `{ quote, person }` uses a [property definition shorthand](https://developer.mozilla.o... | null | CC BY-SA 4.0 | null | 2023-03-02T13:49:02.737 | 2023-03-02T14:35:14.513 | 2023-03-02T14:35:14.513 | 3,982,562 | 3,982,562 | null |
75,616,367 | 2 | null | 75,613,379 | 0 | null | You may add a filter. Refer the [documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ce/client/get_cost_and_usage.html).
```
Filter={
'Not': {
'Dimensions': {
'Key': 'PAYMENT_OPTION',
'Values': [
'Credit',
],
... | null | CC BY-SA 4.0 | null | 2023-03-02T13:52:23.310 | 2023-03-02T13:52:23.310 | null | null | 11,841,571 | null |
75,616,365 | 2 | null | 75,593,860 | 0 | null | I worked it out! I used vite-static-copy plugin to create a copy of the files the wasm module needed and placed them at the destination it was looking for them.
Feels kinda hacky but works for me!
```
// vite.config.ts
import { viteStaticCopy } from "vite-plugin-static-copy";
export default defineConfig({
plugins: [... | null | CC BY-SA 4.0 | null | 2023-03-02T13:52:06.120 | 2023-03-02T13:52:06.120 | null | null | 14,655,253 | null |
75,616,338 | 1 | null | null | -2 | 32 | I am writing software for a platform that has both 64-bit and 32-bit cores and I want to write unit tests for both sets of software using googletest. I want to build the tests so that the tests for the 64-bit software are also built 64-bit and similarly 32-bit tests should be built 32-bit. This means that googletest ha... | Building googletest both 32 & 64 bit with CMake | CC BY-SA 4.0 | null | 2023-03-02T13:50:13.583 | 2023-03-04T14:40:05.487 | 2023-03-02T14:53:30.920 | 6,752,050 | 3,434,064 | [
"c++",
"cmake"
] |
75,616,370 | 1 | null | null | -1 | 7 | I'd like to setup a binding between two Matter devices (accessories) on iOS.
Do I have to use the Matter framework to do so or is there an easier way?
If Matter framework: which API is suitable to do so? I'd appreciate an example/ some snippets.
Thank you.
| iOS: How to setup a Matter device binding | CC BY-SA 4.0 | null | 2023-03-02T13:52:44.257 | 2023-03-02T13:52:44.257 | null | null | 2,451,537 | [
"ios"
] |
75,616,357 | 1 | null | null | 2 | 44 | I'm trying to fail my Gradle build in case of critical or blocker warning reported by Sonar.
I have a buildscript section with sonar gradle plugin :
```
buildscript {
dependencies {
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.3'
}
}
```
I apply the sonarqube plugin among the oth... | Issue running Gradle build with SonarQube plugin | CC BY-SA 4.0 | null | 2023-03-02T13:51:33.250 | 2023-03-04T17:26:11.913 | 2023-03-04T16:59:13.157 | 8,315,843 | 8,315,843 | [
"gradle",
"sonarqube"
] |
75,616,368 | 2 | null | 75,605,422 | 0 | null | I was able to get the correct schema to output the JSON representation correctly. I had to create 2 temp tables; along the way ran into some aggregation issues which was resolved by using the 2 tables and then join on temp. Here's my approach:
Step 1: Create temp table to prevent aggregation error
```
CREATE OR REPLACE... | null | CC BY-SA 4.0 | null | 2023-03-02T13:52:27.133 | 2023-03-02T13:54:38.460 | 2023-03-02T13:54:38.460 | 19,039,920 | 7,120,529 | null |
75,616,362 | 1 | null | null | 0 | 24 | I'm working on a Blazor web app, and I would like to blur a specific element (background) when the user scrolls.
To achieve this, I called a JS function:
```
function backgroundBlurry() {
var distanceScrolled = document.scrollingElement.scrollTop;
$('.pageBackground').css({
filter: "blur(" + (distanceScrolled/1... | Blazor blur an element on scroll with js and css | CC BY-SA 4.0 | null | 2023-03-02T13:51:43.133 | 2023-03-03T08:03:42.207 | null | null | 7,991,864 | [
"javascript",
"css",
"blazor",
"blur",
"onscroll"
] |
75,616,374 | 2 | null | 75,616,299 | 0 | null | I have no idea in which format you may want to convert your file, I hope following link may help you :
[https://forums.meteor.com/t/base64-convert-back-to-file/34188](https://forums.meteor.com/t/base64-convert-back-to-file/34188)
| null | CC BY-SA 4.0 | null | 2023-03-02T13:52:56.073 | 2023-03-02T13:52:56.073 | null | null | 21,303,295 | null |
75,616,376 | 2 | null | 53,440,518 | 0 | null | First
`turtle.addshape("tenor.gif")`, then `pen.shape("tenor.gif")`
| null | CC BY-SA 4.0 | null | 2023-03-02T13:53:12.503 | 2023-03-02T14:03:41.670 | 2023-03-02T14:03:41.670 | 5,211,833 | 21,319,508 | null |
75,616,364 | 1 | null | null | -2 | 35 | From the following URL: [https://ownr.dk/companies/public-profile/34883793](https://ownr.dk/companies/public-profile/34883793)
I would like to web scrape 3 specific things:
- - -
At the moment i have the following code:
---
```
import requests
from bs4 import BeautifulSoup
url = 'https://ownr.dk/companies/public-... | Beautifulsoup in python | CC BY-SA 4.0 | null | 2023-03-02T13:51:54.163 | 2023-03-04T13:56:13.533 | 2023-03-02T13:55:38.927 | 21,318,884 | 21,318,884 | [
"python",
"beautifulsoup"
] |
75,616,372 | 1 | null | null | -1 | 28 | I have an html form. There are more than 200 product codes in the datalist, it is not fixed. it depends on a JSON file and can increment or decrement. Users enter one of them as input text, the list appears at the bottom. The HTML code is as follows;
```
<input list="lists" class="form-control form-control-sm" maxlengt... | disable value input outside of html datalist | CC BY-SA 4.0 | null | 2023-03-02T13:52:48.740 | 2023-03-02T14:23:29.557 | 2023-03-02T14:23:29.557 | 125,981 | 20,572,416 | [
"javascript",
"html",
"css",
"web",
"html-datalist"
] |
75,616,377 | 1 | null | null | 0 | 20 | I have ~800 CSV files, the problem is that the Delimiter in each of them is '$'.
Is there a way to add the line 'sep=$' to each file, or change the delimiter on these without having to go through each individually?
Thanks a lot!
| Adding 'sep=$' to multiple CSV files | CC BY-SA 4.0 | null | 2023-03-02T13:53:13.113 | 2023-03-02T16:47:23.180 | 2023-03-02T14:00:12.463 | 7,422,068 | 7,422,068 | [
"python",
"csv",
"export-to-csv",
"delimiter"
] |
75,616,380 | 2 | null | 68,600,460 | 0 | null | Update from SvelteKit 1.0: `+layout.svelte`.
| null | CC BY-SA 4.0 | null | 2023-03-02T13:53:49.207 | 2023-03-02T13:53:49.207 | null | null | 21,319,438 | null |
75,616,369 | 2 | null | 75,613,632 | 1 | null | Judging from your ssh version string, it looks like you're not using the standard copy of `ssh` that comes with MacOS.
The "usekeychain" option isn't a standard [ssh configuration option](https://man.openbsd.org/ssh_config). It's specific to the version of `ssh` included with MacOS. A copy of ssh from some other source... | null | CC BY-SA 4.0 | null | 2023-03-02T13:52:28.527 | 2023-03-02T13:52:28.527 | null | null | 13,317 | null |
75,616,371 | 1 | null | null | 0 | 77 | └─$ sudo pip install cryptography
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
```
If you wish to install a non-Debian-packaged Python package,
create a virtual ... | sudo pip install cryptography error: externally-managed-environment | CC BY-SA 4.0 | null | 2023-03-02T13:52:45.727 | 2023-03-02T14:30:41.843 | null | null | 21,296,928 | [
"python",
"pip",
"cryptography",
"pynput"
] |
75,616,378 | 2 | null | 75,616,218 | 2 | null | The issue is that you are not looping over all values. You only sum one particular value as many times as you have combinations of dimensions (`5*1`, `3*4`, `5*4`). You would need nested loops (1 loop for 1 dimension, 2 loops for 2 dimensions, 3 for 3 dimensions, etc.).
What about using a recursive function to sum up o... | null | CC BY-SA 4.0 | null | 2023-03-02T13:53:42.620 | 2023-03-02T13:58:57.720 | 2023-03-02T13:58:57.720 | 16,343,464 | 16,343,464 | null |
75,616,382 | 1 | null | null | 0 | 22 | I downloaded the Atom program from GitHub and when I tried to install the package, I encountered the following error.
[error:](https://i.stack.imgur.com/1LmRa.png)
But it should bring me options.
| The problem of installing packages in Atom in Ubuntu | CC BY-SA 4.0 | null | 2023-03-02T13:54:00.073 | 2023-03-02T14:04:53.703 | null | null | 21,185,168 | [
"python",
"ubuntu",
"atom-editor"
] |
75,616,373 | 1 | 75,616,529 | null | 1 | 26 | I have two tables: first one with records of routes (from->to), the 2nd one with details about each route point (code, name, id)
1st table:
| from_code | to_code |
| --------- | ------- |
| codeA | codeC |
| codeB | codeD |
2nd table:
| code | name | id |
| ---- | ---- | -- |
| codeA | A | 1 |
| codeB | B | ... | Join 1st table with list table in SQL | CC BY-SA 4.0 | null | 2023-03-02T13:52:51.613 | 2023-03-02T14:09:54.040 | 2023-03-02T13:56:10.263 | 3,706,016 | 21,113,637 | [
"sql"
] |
75,616,375 | 2 | null | 74,689,457 | 1 | null | My case involved an HTTP client wrapper, instead of a DB. I think it could be applied to your case as well.
Context: I want to inject values for a FastAPI handler's dependency to test various scenarios.
We have a handler with its dependencies
```
@router.get("/{foo}")
async def get(foo, client = Depends(get_client)): #... | null | CC BY-SA 4.0 | null | 2023-03-02T13:53:06.573 | 2023-03-03T17:20:40.590 | 2023-03-03T17:20:40.590 | 1,857,166 | 1,857,166 | null |
75,616,384 | 1 | null | null | -2 | 6 | i wrote a recursion functoin to compute the determinant of a given matrix but the computed determinant is wrong
`
```
def determinant(b):
n=len(b)
det=0
if n==2 :
for i in range(n):
for j in range (n):
det=b[0][0]*b[1][1]-b[1][0]*b[0][1]
return det
else:
ans... | this determinant function gives wrong answers | CC BY-SA 4.0 | null | 2023-03-02T13:54:05.800 | 2023-03-02T13:54:05.800 | null | null | 13,342,529 | [
"recursion",
"determinants"
] |
75,616,381 | 1 | null | null | 0 | 24 | So, I'm mostly a C#/.Net developer, but recently got a Java/Spring Boot 3 project on my hands
I'm trying to build a Unit of Work pattern on Java that accepts any type of function to be executed. I would like the usage to be something like this:
```
public class ExampleService {
public void foo() {
new Trans... | How to write a Unit of Work pattern on Java that accepts any type of functions for later execution | CC BY-SA 4.0 | null | 2023-03-02T13:53:59.580 | 2023-03-03T13:20:59.213 | 2023-03-03T13:20:59.213 | 20,544,416 | 20,544,416 | [
"java",
"generics",
"unit-of-work"
] |
75,616,391 | 2 | null | 75,616,036 | 1 | null | Package.json file is just a list of everything that you installed and that your project needs in order to be launched.
When you execute the command it will read the content of package.json and install it inside a node_module folder.
Your command will do two actions:
1. Install the new package in your node_modules ... | null | CC BY-SA 4.0 | null | 2023-03-02T13:54:31.093 | 2023-03-02T13:54:31.093 | null | null | 17,334,667 | null |
75,616,385 | 1 | null | null | 0 | 22 | I need help with installing home-manager on my MacOs (x86_64 architecture). I successfully installed nix (verified by running `nix-shell -p nix-info --run "nix-info -m"`)
[nix installation](https://i.stack.imgur.com/ki1Fn.png)
Then, I follow the instructions to install home-manager (standalone installation). I have thi... | Cannot correctly install home-manager on MacOs | CC BY-SA 4.0 | null | 2023-03-02T13:54:10.563 | 2023-03-02T13:54:10.563 | null | null | 10,815,180 | [
"macos",
"nix"
] |
75,616,386 | 1 | null | null | 0 | 7 | I'd like to use the latest Airflow (2.5) and the latest Tensorflow Extended (TFX 1.12) but their python dependencies are conflicting. I built my pipeline with components of TFX and I'd like to reuse them in Airflow. How can I build the TFX pipeline in Airflow if there are dependency conflicts?
I know I can run Airflow ... | How to run TFX DAG on Airflow if dependencies are conflicting | CC BY-SA 4.0 | null | 2023-03-02T13:54:15.217 | 2023-03-02T13:54:15.217 | null | null | 1,853,411 | [
"python-3.x",
"airflow",
"conflicting-libraries",
"tensorflow-extended"
] |
75,616,392 | 2 | null | 75,616,329 | 3 | null | [Spec: Function literals:](https://go.dev/ref/spec#Function_literals)
> Function literals are : they may refer to variables defined in a surrounding function. Those variables are then shared between the surrounding function and the function literal, and they survive as long as they are accessible.
The `x` and `xValue` ... | null | CC BY-SA 4.0 | null | 2023-03-02T13:54:35.143 | 2023-03-02T21:28:54.470 | 2023-03-02T21:28:54.470 | 1,705,598 | 1,705,598 | null |
75,616,397 | 2 | null | 75,604,887 | 0 | null | The answer is use easyocr. Tesseract doesn't seem to have text recognition or at least not to the degree that easyocr does.
| null | CC BY-SA 4.0 | null | 2023-03-02T13:54:57.807 | 2023-03-02T13:54:57.807 | null | null | 14,042,820 | null |
75,616,389 | 2 | null | 75,616,122 | 1 | null | You're not yield or return any promise, that generator should wait for. Refactor your function to a saga, and use the `delay` saga effect to wait for the next tick:
```
const postApiMessage = params =>
axios.post("http://127.0.0.1:3000/send", null, { params });
function* setTimeoutMessage(messageInfo) {
let index ... | null | CC BY-SA 4.0 | null | 2023-03-02T13:54:25.063 | 2023-03-02T13:54:25.063 | null | null | 5,157,454 | null |
75,616,383 | 2 | null | 13,838,278 | 0 | null | You can use `String.prototype.padStart()`, see [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart).
I would structure your code in a different way, but the easiest way of usin... | null | CC BY-SA 4.0 | null | 2023-03-02T13:54:04.873 | 2023-03-02T13:54:04.873 | null | null | 2,342,537 | null |
75,616,394 | 1 | null | null | 0 | 4 | How can I remove the filter in Azure Storage Explorer from automatically displaying? Every time I right click on a blob and open a new tab to display my folders and files, the filter takes up half the screen space. I find it much easier to type in the address bar than to navigate with the filter. I know I can hide it... | Remove the Filter in Azure Storage Explorer | CC BY-SA 4.0 | null | 2023-03-02T13:54:47.640 | 2023-03-02T13:54:47.640 | null | null | 10,847,245 | [
"azure-storage-explorer"
] |
75,616,396 | 1 | null | null | -4 | 20 | how to decrypt LuaT?
can u help me decrypt this script?
[script](https://www.mediafire.com/file/3btfh8asyb48rwx/CpsHelperV4.lua+(1).txt/file)
| How to Decrypt LuaT Zcus | CC BY-SA 4.0 | null | 2023-03-02T13:54:50.647 | 2023-03-02T13:54:50.647 | null | null | 21,319,226 | [
"encryption",
"lua"
] |
75,616,404 | 2 | null | 71,656,637 | 0 | null | You can extend the wagtail's draftail editor. See [Creating new blocks](https://docs.wagtail.org/en/stable/extending/extending_draftail.html#creating-new-blocks)
| null | CC BY-SA 4.0 | null | 2023-03-02T13:55:37.160 | 2023-03-02T13:55:37.160 | null | null | 254,762 | null |
75,616,399 | 2 | null | 51,468,966 | 0 | null | This is how I did to get it work:
```
<ArrayInput source="backlinks">
<SimpleFormIterator inline>
<TextInput source="." />
</SimpleFormIterator>
</ArrayInput>
```
| null | CC BY-SA 4.0 | null | 2023-03-02T13:55:03.850 | 2023-03-02T13:55:03.850 | null | null | 1,879,605 | null |
75,616,400 | 2 | null | 75,616,000 | 1 | null | In your library project csproj file include this
```
<PropertyGroup>
<UseMauiEssentials>true</UseMauiEssentials>
</PropertyGroup>
```
That will bring in just the .NET MAUI Essentials APIs without the rest of .NET MAUI
| null | CC BY-SA 4.0 | null | 2023-03-02T13:55:14.707 | 2023-03-02T13:55:14.707 | null | null | 1,506,387 | null |
75,616,387 | 2 | null | 75,614,792 | 0 | null | Use this class to manage your notification service with firebase messaging
```
import 'dart:io';
import 'package:firebase_messaging/firebase_messaging.dart';
import 'package:flutter/cupertino.dart';
class NotificationService {
static Future<void> init() async {
if (Platform.isIOS) {
FirebaseMessaging mess... | null | CC BY-SA 4.0 | null | 2023-03-02T13:54:15.423 | 2023-03-02T13:54:48.920 | 2023-03-02T13:54:48.920 | 18,707,657 | 18,707,657 | null |
75,616,405 | 2 | null | 75,616,196 | 0 | null | Okay guys, I managed to solve the problem, I just changed the 'href' attribute like this:
```
<a class="download_file" download href="{{ url_for('static',filename='docs/CV.pdf') }}">Download CV</a>
```
Anyway, thanks to everyone who replied
| null | CC BY-SA 4.0 | null | 2023-03-02T13:55:44.167 | 2023-03-02T13:55:44.167 | null | null | 13,716,820 | null |
75,616,388 | 1 | 75,616,547 | null | 0 | 22 | I made a sidebar with bootstrap classes and when i need to expand the height of sidebar full the height of screen it doesn't work with height:"100%" css property but when i added one more property position:"fixed" and it started working and my sidebar take full height now. What is the relation between position and heig... | Why I cannot give height to 100% when postion fixed is not written? | CC BY-SA 4.0 | null | 2023-03-02T13:54:19.063 | 2023-03-02T14:05:42.030 | null | null | 21,309,960 | [
"html",
"css",
"twitter-bootstrap",
"bootstrap-4"
] |
75,616,402 | 2 | null | 75,613,721 | 0 | null | As @amir_a14 suggests u should use shared preferences where you save a key that indicate that the user took this survey once he complete it. Then before you call show survey check this key in the SharedPref and if this value is settled to the right value or exist at all
which will be in general like this:
```
final pre... | null | CC BY-SA 4.0 | null | 2023-03-02T13:55:16.250 | 2023-03-02T13:55:16.250 | null | null | 13,058,371 | null |
75,616,406 | 1 | null | null | 0 | 14 | I wanna call this query
```
searchMulti: builder.query<any, ISearchMotion>({
query: ({query, motionType}: ISearchMotion) =>
`/search/${motionType}?query=${query}`,
transformErrorResponse: e => console.log({e}),
transformResponse: (response: any) => response,
}),
```
after the user stops typing in text input,... | wait between request in rtk query | CC BY-SA 4.0 | null | 2023-03-02T13:55:45.853 | 2023-03-04T00:37:06.213 | null | null | 7,639,102 | [
"react-native",
"redux",
"rtk-query"
] |
75,616,407 | 2 | null | 75,613,721 | 0 | null | [Use SharedPrefrence library](https://pub.dev/packages/shared_preferences)
```
import 'package:shared_preferences/shared_preferences.dart';
//showGenexPopup
void showGenexPopup() async {
final prefs = await SharedPreferences.getInstance();
bool isSeen=await prefs.setBool('isSeen')??false;
if(isSeen)
{
Wi... | null | CC BY-SA 4.0 | null | 2023-03-02T13:55:48.740 | 2023-03-02T13:55:48.740 | null | null | 11,217,742 | null |
75,616,408 | 2 | null | 75,451,809 | 0 | null | Sounds like we have a bug in the current Backpack Generators + Laravel 8. That's because `Stringable::value()` [was added in Laravel 9](https://github.com/laravel/framework/commit/d7cf744ca1601c27410dd6b8b4d1cb7389bd3039), not L8.
I've created and merged a PR that fixes this - [https://github.com/Laravel-Backpack/Gener... | null | CC BY-SA 4.0 | null | 2023-03-02T13:55:53.927 | 2023-03-02T13:55:53.927 | null | null | 603,036 | null |
75,616,409 | 2 | null | 53,297,300 | 0 | null | [](https://i.stack.imgur.com/WGinb.png)
```
import * as React from 'react';
import { Text, View, StyleSheet } from 'react-native';
import Constants from 'expo-constants';
import { WebView } from 'react-native-webview'
export default function App() {
const html = `
<html>
<head></head>
<body>
<script>... | null | CC BY-SA 4.0 | null | 2023-03-02T13:55:54.300 | 2023-03-02T13:55:54.300 | null | null | 14,779,676 | null |
75,616,398 | 1 | null | null | 0 | 13 | I'm using hyperledger fabric V2.4 and I'm trying to enforce that a transaction in a private data collection should be endorsed by at least N peers in order to be accepted.
I've seen many answers like "Use `AND('Org1MSP.member', 'Org1MSP.member')` or `OutOf(2, 'Org1MSP.member', 'Org1MSP.member')` but the result is alway... | Get endorsement from multiple peer of the same Org in Hyperledger Fabric | CC BY-SA 4.0 | null | 2023-03-02T13:54:59.923 | 2023-03-02T13:54:59.923 | null | null | 5,041,636 | [
"hyperledger-fabric"
] |