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,623,665 | 2 | null | 75,623,402 | 1 | null | To listen to a stream you use tap, it allows you to cause side effects with the data like storing it in session storage without affecting the stream
```
return this.svc.getBook().pipe(
tap(b => { this.setIntoSessStorage("CachedBook", JSON.stringify(b)); })
)
```
| null | CC BY-SA 4.0 | null | 2023-03-03T06:04:18.750 | 2023-03-03T06:04:18.750 | null | null | 1,679,126 | null |
75,623,662 | 1 | null | null | 0 | 17 | how do i do the following dot product preferably using pytorch tensordot()
Let say i have vector A and vector B :
```
[a1,a2] . [b1,b2,b3] =
```
I want to get as a result :
```
[
a1 * b1 + a2 * b1,
a1 * b2 + a2 * b2,
a1 * b3 + a2 * b3
]
```
vector by vector = vector of dot products
| Calculate vector of dot products | CC BY-SA 4.0 | null | 2023-03-03T06:04:04.583 | 2023-03-03T07:06:58.843 | null | null | 1,019,129 | [
"pytorch",
"dot-product",
"tensordot"
] |
75,623,667 | 2 | null | 75,622,789 | 1 | null | Galaxybase supports multi-replica mechanism for data. By setting the number of replicas, data can be backed up across nodes.
The default number of replicas is 1, which means no backup is performed. When the number of replicas is set to 2, a backup copy of the data will be generated, and so on.
| null | CC BY-SA 4.0 | null | 2023-03-03T06:04:47.167 | 2023-03-03T06:04:47.167 | null | null | 19,247,339 | null |
75,623,666 | 1 | null | null | 0 | 11 | curently i am working on videocalling project in flutter. i have ussed livekit for videocalling. but i am facing one issue between android and IOS videocalling if android and IOS user do first call audio will be fine but if they do second call one of the use cant get another user’s audio i have check if that users audi... | Audio Issue in Videocalling with livekit in flutter | CC BY-SA 4.0 | null | 2023-03-03T06:04:21.550 | 2023-03-03T06:04:21.550 | null | null | 17,779,863 | [
"android",
"ios",
"flutter",
"livekit"
] |
75,623,658 | 1 | null | null | -1 | 26 | It took me 2 days now to figure out the issue of why I cannot send messages from mosquitto to rabbitmq. I have a task to do mqtt stuff, as they recommend using rabbitmq as a broker. I have this setup in my docker file
```
version: "3.2"
networks:
rabbitmq_go_net:
services:
rabbitmq:
image: rabbitmq:3-managemen... | How to send message from mosquitto to rabbitmq? | CC BY-SA 4.0 | null | 2023-03-03T06:03:19.573 | 2023-03-03T08:51:04.170 | 2023-03-03T08:51:04.170 | 3,818,576 | 3,818,576 | [
"rabbitmq",
"mqtt",
"mosquitto"
] |
75,623,668 | 1 | null | null | 0 | 31 | I am working with a .dta file in Rstudio. It has over 90000 rows and over 90 columns. I am importing it with the read_dta function from the haven package. When I import it, it reads in the first 60 or so columns correctly, and then for the last 30, replaces the entire column with NA values (but maintains column names).... | R reading in large .dta files and replacing entire columns with NAs? | CC BY-SA 4.0 | null | 2023-03-03T06:04:47.247 | 2023-03-04T17:46:02.577 | 2023-03-04T17:46:02.577 | 21,323,813 | 21,323,813 | [
"r",
"stata",
"dta"
] |
75,623,671 | 1 | null | null | 1 | 27 | How to to import enums that are declared in the same file into the current scope? So it could be used without type specification? [playground](https://pl.kotl.in/MeN5zViui)
```
enum class E1 { a, b }
fun main() {
val e: E1 = a // I want to use just a, not E1.a
println(e)
}
```
| Import enum values declared in same file in Kotlin? | CC BY-SA 4.0 | null | 2023-03-03T06:05:10.633 | 2023-03-03T06:35:05.733 | null | null | 231,624 | [
"kotlin"
] |
75,623,674 | 2 | null | 75,589,439 | 0 | null | I had the same issues. Then I checked the /opt/ros/galactic/include/tf2_geometry_msgs/. It didn't contain tf2_geometry_msgs.hpp, then I download the tf2_geometry_msgs.hpp and put it in the file. The problem was solved. Good luck to you.
| null | CC BY-SA 4.0 | null | 2023-03-03T06:05:17.870 | 2023-03-03T06:05:17.870 | null | null | 21,323,849 | null |
75,623,673 | 1 | null | null | 0 | 9 | I want to edit fasta header
from this
```
>NR_130660.1 Hanseniaspora uvarum CBS 314 ITS region; from TYPE material
AAGGATCATTAGATTGAATTATCATTGTTGCTCGAGTTCTTGTTTAGATCTTTTACAATAATGTGTATCT
>NR_131850.1 Cortinarius timiskamingensis NBM D. Malloch 3-9-81/2 ITS region; from TYPE material
GGAAGTAAAAGTCGTAACAAGGTTTCCGTAGGTGA... | how to edit fasta header? | CC BY-SA 4.0 | null | 2023-03-03T06:05:16.830 | 2023-03-03T15:46:40.927 | 2023-03-03T15:46:40.927 | 967,621 | 21,323,826 | [
"header",
"bioinformatics",
"fasta"
] |
75,623,677 | 2 | null | 45,365,256 | 0 | null | ```
/* First character space not allowed in text field */
$ = jQuery;
$('#billing_house_no').keyup(function(e) {
var strg = this.value;
var firstChar = strg.charAt(0);
if ((firstChar == " ")||(firstChar == " ")||(strg == ""))
{
this.va... | null | CC BY-SA 4.0 | null | 2023-03-03T06:05:27.553 | 2023-03-03T06:05:27.553 | null | null | 18,447,183 | null |
75,623,676 | 1 | null | null | 0 | 19 | I was having a outlook COM add-in. Which I have to migrate into web add-in.
I have following doubts regarding web add-ins.
1. In COM, Add-In was able to be displayed on ribbon of outlook. How can I display web add-in on ribbon of outlook ?
2. In COM, I was able to run my add-in & Display pop-up when outlook is opened/... | Way To Launch Outlook Web Add-In When Outlook Window Opens | CC BY-SA 4.0 | null | 2023-03-03T06:05:22.437 | 2023-03-03T06:47:11.630 | 2023-03-03T06:47:11.630 | 1,603,351 | 20,782,082 | [
"outlook",
"office-js",
"outlook-addin",
"office-addins",
"outlook-web-addins"
] |
75,623,664 | 2 | null | 75,620,544 | 2 | null | [Johnny's comment](https://stackoverflow.com/questions/75620544/what-is-the-difference-between-re-sub-and-string-replace-in-python-3#comment133412370_75620544) nailed it.
Basically, the `re.sub` version makes one pass, processing all combos from front to back. So a substring like `"LRBL"` will match `"LRB"` and replace... | null | CC BY-SA 4.0 | null | 2023-03-03T06:04:18.320 | 2023-03-03T06:11:53.000 | 2023-03-03T06:11:53.000 | 6,243,352 | 6,243,352 | null |
75,623,678 | 1 | null | null | 0 | 15 | I'm trying to use CronR to schedule a script to run monthly on my MacOS on the first of the month. Not quite sure what's wrong with the code.
When I use the following, it runs monthly on the first but ALSO weekly on mondays at the same time
`cron_add(command=cmd, frequency = "monthly", at="07:05", days_of_month = 'firs... | How to schedule an R script on MacOS monthly in CronR | CC BY-SA 4.0 | null | 2023-03-03T06:06:17.263 | 2023-03-03T06:27:40.203 | 2023-03-03T06:08:01.043 | 21,323,781 | 21,323,781 | [
"r",
"schedule"
] |
75,623,680 | 1 | null | null | -2 | 16 | How to manage group created by many users of chat application and make works with Kafka consumer group.
I require complete example in springboot
| Apache kafka, springboot, group chat application, cassandra, redis, mysql, mongodb | CC BY-SA 4.0 | null | 2023-03-03T06:06:23.147 | 2023-03-03T17:12:35.163 | 2023-03-03T17:12:35.163 | 2,308,683 | 19,307,610 | [
"spring-boot"
] |
75,623,675 | 1 | null | null | 0 | 10 | I have a entity which has a unique string value that I would like to use instead of the auto-generated objectId in spring mongodb documents. However, when I save the object it still generates an ObjectId. Here is the document.
```
@Document(collection="products")
class Product {
... | How to use your own id for Document in Spring Data Mongodb | CC BY-SA 4.0 | null | 2023-03-03T06:05:20.350 | 2023-03-03T06:29:00.207 | null | null | 2,117,774 | [
"mongodb",
"spring-data-mongodb"
] |
75,623,679 | 2 | null | 49,129,452 | 0 | null | It looks like you ran into a Crome/chromedriver/selenium version incompatibility issue. Try using known-good combinations.
See the chromedriver release notes for compatible versions here:
[chromedriver.storage.googleapis.com/2.35/notes.txt](https://chromedriver.storage.googleapis.com/2.35/notes.tx)
| null | CC BY-SA 4.0 | null | 2023-03-03T06:06:22.103 | 2023-03-03T06:06:22.103 | null | null | 4,763,752 | null |
75,623,682 | 2 | null | 75,622,795 | 0 | null | in the time appointment time please check whether you are using varchar,text, or timestamp if you are using varchar or text then it will work fine. But if using timestamp maybe that is the problem check it and update.
| null | CC BY-SA 4.0 | null | 2023-03-03T06:06:25.457 | 2023-03-03T06:06:25.457 | null | null | 19,546,649 | null |
75,623,649 | 1 | null | null | 0 | 21 | I have a bottomNavView and when I try to access the parent activity view by using requireActivity().findViewById() in the default/first fragment, it returns null and crashes.
But it works on other fragments of the bottonnavview. Only the initial fragment shows this behaviour. Any Idea?
first fragment
```
override fun o... | Parent activity view returns null | CC BY-SA 4.0 | null | 2023-03-03T06:02:06.883 | 2023-03-03T07:52:18.850 | 2023-03-03T07:52:18.850 | 17,507,271 | 17,507,271 | [
"android",
"android-fragments",
"android-activity",
"null",
"bottomnavigationview"
] |
75,623,686 | 1 | 75,624,295 | null | 0 | 42 | I know I can write a component that would take a single prop to render an icon as follows
```
<template>
<span class="material-symbols-outlined">{{ name }}</span>
</template>
...
```
But I was wondering is it possible to create a VueJS component (doesn't have to be an SFC) that would allow me to say...
```
<Icon navig... | How do I make a vue component that accepts any prop? | CC BY-SA 4.0 | null | 2023-03-03T06:07:35.813 | 2023-03-04T08:26:51.820 | null | null | 242,042 | [
"typescript",
"vue.js"
] |
75,623,683 | 1 | 75,624,206 | null | 1 | 13 | I am using PyCharm tool for Python coding. I have framed a data-frame using pandas. I have provided conditional font color formatting in the python code. But, in the output dataframe, I am not able to see the expected colors. Is it a problem with PyCharm or with my code ?
```
import numpy as np
import pandas as pd
df =... | Unable to see colored cells in Pandas data-frame in PyCharm | CC BY-SA 4.0 | null | 2023-03-03T06:06:40.310 | 2023-03-03T07:23:12.733 | null | null | 10,587,646 | [
"python-3.x",
"pandas",
"numpy",
"pycharm"
] |
75,623,684 | 1 | null | null | 0 | 18 | I have a requirement to pass greater than date in query params for API. The original format is
```
params = {deleteddate="null", updateddate ='gt(2018-01-01)'}
```
The incoming data format is string and i am getting in a parameter and trying to pass it to params like this
```
Watermark = '2023-03-03T05:47:54.4021127Z'... | Convert string to date and pass the query params in API | CC BY-SA 4.0 | null | 2023-03-03T06:06:54.267 | 2023-03-03T06:06:54.267 | null | null | 2,962,438 | [
"api",
"rest",
"pyspark",
"parameters"
] |
75,623,688 | 2 | null | 75,623,602 | 0 | null | The extension runs commands and other extensions directly in WSL so you can edit files located in WSL or the mounted Windows filesystem (for example /mnt/c) without worrying about pathing issues, binary compatibility, or other cross-OS challenges.
this worked for me....
| null | CC BY-SA 4.0 | null | 2023-03-03T06:08:25.473 | 2023-03-03T06:08:25.473 | null | null | 21,323,737 | null |
75,623,672 | 1 | null | null | 0 | 18 | I'm working on a project that requires me to graph the daily Shannon entropy of a very large data set stored in multiple excel workbooks. In total there are about 8 million entries divided into groups of about 40,000. The groups aren't organized in any way; each spreadsheet is just a random collection of samples. I nee... | How do I efficiently access data stored across multiple excel spreadsheets? | CC BY-SA 4.0 | null | 2023-03-03T06:05:14.823 | 2023-03-03T06:05:14.823 | null | null | 21,323,715 | [
"python",
"excel",
"openpyxl"
] |
75,623,689 | 2 | null | 26,437,342 | 0 | null | As per latest Laravel 10 documentation
[here](https://laravel.com/docs/10.x/migrations#foreign-key-constraints)
```
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
Schema::table('posts', function (Blueprint $table) {
$table->unsignedBigInteger('user_id');
$table->foreign('us... | null | CC BY-SA 4.0 | null | 2023-03-03T06:08:34.670 | 2023-03-03T06:08:34.670 | null | null | 9,414,719 | null |
75,623,692 | 2 | null | 75,615,329 | 0 | null | The output is fine. You set your `horizon=3`, to predict three timesteps ahead. According to the [docs](https://arch.readthedocs.io/en/latest/univariate/univariate_volatility_forecasting.html):
> The three main outputs [mean, variance, residual_variance] are all returned in DataFrames with columns of the form h.# where... | null | CC BY-SA 4.0 | null | 2023-03-03T06:08:48.493 | 2023-03-03T06:08:48.493 | null | null | 5,755,604 | null |
75,623,693 | 2 | null | 75,616,051 | 0 | null | ```
I got the solution thanks to my friend @Sean. instead of the callback function I have to replace it with a .then() function
app.get("/posts/:postId", function(req, res) {
const requestedPostId = req.params.postId;
Post.findOne({_id: requestedPostId}).then(post =>{
res.render("post", {
title: ... | null | CC BY-SA 4.0 | null | 2023-03-03T06:08:59.987 | 2023-03-03T07:32:12.360 | 2023-03-03T07:32:12.360 | 21,221,589 | 21,221,589 | null |
75,623,690 | 2 | null | 75,622,033 | 1 | null | The `age_prepare_cypher()` is defined in the `apache/age/src/backend/utils/adt/age_session_info.c` file.
Here's the definition:
```
Datum age_prepare_cypher(PG_FUNCTION_ARGS)
{
char *graph_name_str = NULL;
char *cypher_statement_str = NULL;
/* both arguments must be non-NULL */
if (PG_ARGISNULL(0) || P... | null | CC BY-SA 4.0 | null | 2023-03-03T06:08:37.077 | 2023-03-03T06:08:37.077 | null | null | 19,726,929 | null |
75,623,695 | 1 | null | null | 0 | 27 | I have a short piece of JavaScript code that I'm using as a user script. The action works fine, but I want to add if-statement to it and don't know how to structure it.
In plain language, I want it to do this:
-
or alternately
-
How is this accomplished? I'm fiddling with `document.querySelectorAll` but so far no luc... | Run user script only if page has a password field | CC BY-SA 4.0 | null | 2023-03-03T06:09:19.643 | 2023-03-04T15:09:10.340 | 2023-03-04T15:09:10.340 | 13,376,511 | 8,137,301 | [
"javascript",
"if-statement",
"userscripts"
] |
75,623,685 | 1 | null | null | 0 | 16 | I registered a code that indicates that the user has points on the balance that he can write to Reset. When writing to Reset, the number of points specified by the user is subtracted from the total number and recorded.
Faced with the fact that the specified number of coins is written off without stopping.
Here is my co... | Why does the execution of the expression not stop (FireBase) | CC BY-SA 4.0 | null | 2023-03-03T06:07:07.750 | 2023-03-03T07:33:04.270 | 2023-03-03T07:33:04.270 | 21,096,249 | 21,096,249 | [
"java",
"android",
"firebase"
] |
75,623,687 | 1 | null | null | 0 | 25 | Here is the message i get when i run flutter app on my android mobile and also i see just black screen on my mobile, though the app gets installed i can see icon of that
```
Launching lib\main.dart on SM A217F in debug mode...
Running Gradle task 'assembleDebug'...
Note: C:\Users\RK\AppData\Local\Pub\Cache\hosted\pub.... | Running flutter app on mobile via USB cable but appears black screen only | CC BY-SA 4.0 | null | 2023-03-03T06:07:59.587 | 2023-03-04T02:24:45.597 | null | null | 21,323,799 | [
"flutter",
"firebase",
"firebase-realtime-database",
"mobile-application",
"mobile-app-testing"
] |
75,623,698 | 1 | null | null | 0 | 26 | Currently, I am learning about react and got to know about the term hydration I am not sure How it works, can anyone help please. thanks in advance.
I created react-app and it sometimes gives hydration error to solve this error I am not pretty sure how hydration works so I want clarity on how hydration works.
| What is hydration in react? | CC BY-SA 4.0 | null | 2023-03-03T06:09:56.597 | 2023-03-03T08:40:59.617 | null | null | 13,606,728 | [
"javascript",
"reactjs",
"web",
"next.js",
"hydration"
] |
75,623,694 | 2 | null | 72,984,754 | 0 | null | As of 2023-03-02, Textract does not support multi-orientation text in a document. Textract will do a best bet at detecting the orientation of the document and then detect the text in that orientation.
However there are work-arounds:
- For example you could call textract in a first orientation, then white out the text t... | null | CC BY-SA 4.0 | null | 2023-03-03T06:09:12.140 | 2023-03-03T06:09:12.140 | null | null | 7,018,582 | null |
75,623,696 | 2 | null | 75,620,670 | 0 | null | thanks to you I fixed it!
> Try csv_list = [software['name'], software['version'], software['publisher']] –
inspectorG4dget
and
> You're setting csv_list to a tuple, not a list because you're using () instead of [] –
Barmar
were right! I just changed the tuple to a list and that was it.
Thanks to all that replied so qu... | null | CC BY-SA 4.0 | null | 2023-03-03T06:09:32.883 | 2023-03-03T06:09:32.883 | null | null | 12,676,292 | null |
75,623,701 | 1 | 75,630,547 | null | 1 | 19 | I am working on a website and I would like to display/embed a repository from my GitHub onto my website.
I have tried using Repo.js. However, I’m not sure whether I’m using it correctly or not. The problem I am having with Repo.js is that my repository from GitHub does not load and is not being displayed on my website.... | How to embed GitHub repositories on my website? | CC BY-SA 4.0 | null | 2023-03-03T06:10:25.077 | 2023-03-03T18:13:14.473 | null | null | 19,417,246 | [
"html",
"github",
"web",
"repository",
"github-api"
] |
75,623,681 | 1 | 75,624,237 | null | 1 | 28 | I want to move all four boxes and buttons to the middle to be centered.
I try to enter the correct answer, but when I submit, it shows that the verification fails, so I want to know how to let HTML automatically identify whether the answer is correct or wrong, and give different outputs.
This is the HTML code
```
<html... | How to put them all in the middle? How to make HTML automatically recognize whether the answer is right or wrong? | CC BY-SA 4.0 | null | 2023-03-03T06:06:24.883 | 2023-03-03T08:10:11.070 | null | null | 21,148,186 | [
"javascript",
"html",
"css"
] |
75,623,697 | 2 | null | 75,622,007 | 0 | null | I think the the ApiManager class should be like this.
```
class ApiManager {
static let shared = ApiManager()
func getInformation(completion: @escaping ( Result<ProPlayers, Error>) -> Void) {
let request = ApiType.proPlayers.request
// creating url session
let task = URLSession.sha... | null | CC BY-SA 4.0 | null | 2023-03-03T06:09:46.837 | 2023-03-03T06:09:46.837 | null | null | 19,541,077 | null |
75,623,704 | 1 | null | null | -1 | 15 | [enter image description here](https://i.stack.imgur.com/Ft8jN.png)
When I use table, my table doesn't fit into the column.
| Latex table issue | CC BY-SA 4.0 | null | 2023-03-03T06:10:50.890 | 2023-03-03T06:10:50.890 | null | null | 19,209,021 | [
"latex"
] |
75,623,706 | 1 | null | null | 0 | 19 | Good day. I would like to ask for a help. I want to modify my android billing system. When I open
the application. There's an error appear on the compiler. I am using the old version of android
studio. Version 2.2.3.
Error:
C:\Users\TziH\Desktop\Desktop File\BlueToothDEMO33\app\src\main\res\layout\main.xml
Error:(140, ... | Errors appear on android old version | CC BY-SA 4.0 | null | 2023-03-03T06:11:03.987 | 2023-03-03T07:15:21.667 | null | null | 21,323,805 | [
"android"
] |
75,623,705 | 2 | null | 73,113,068 | 0 | null | It seems that the `Process` class can be used in .NET 6 or above in this manner:
```
Process.Start( new ProcessStartInfo { FileName = @"http://google.com", UseShellExecute = true } );
Process.Start( new ProcessStartInfo { FileName = @"C:\", UseShellExecute = true } );
```
There are some differences between the `Proces... | null | CC BY-SA 4.0 | null | 2023-03-03T06:10:58.497 | 2023-03-03T06:10:58.497 | null | null | 11,507,996 | null |
75,623,708 | 1 | null | null | 0 | 38 | When I try to zoom into the website, the logo moves and I want it to stay in place. I tried to ask ChatGPT about it but got no real good answers.
```
.logo {
width: 80px;
height: 40px;
background-image: url('clarekicon3.svg');
background-size: contain;
background-repeat... | Why does the logo move to the right when zoomed in? I want it to stay in the same position | CC BY-SA 4.0 | null | 2023-03-03T06:11:16.913 | 2023-03-03T09:28:06.363 | null | null | 21,323,845 | [
"javascript",
"html",
"css"
] |
75,623,700 | 2 | null | 8,463,209 | 0 | null | The answer from @dennisobrien is useful, but I couldn't get it to work. I ended up with these modified versions, which do work for me (using `WTForms==2.2.1`):
```
from wtforms.validators import DataRequired, Optional
class RequiredIf:
"""
Validator which makes a field required if another field is set and has... | null | CC BY-SA 4.0 | null | 2023-03-03T06:10:14.153 | 2023-03-03T06:10:14.153 | null | null | 3,761,310 | null |
75,623,711 | 2 | null | 75,623,687 | 0 | null | Please check you firebase database is configured correctly or not.
| null | CC BY-SA 4.0 | null | 2023-03-03T06:11:23.157 | 2023-03-03T06:11:23.157 | null | null | 13,606,728 | null |
75,623,699 | 2 | null | 75,623,296 | -2 | null | The common way I deal with things like this is to inject in the details of the command.
Try this:
```
public DataSet DBConn(Action<SqlCommand> build)
{
string connectString = $"server = {SERVER}; uid={UID}; pwd={PWD}; database={DATABASE};";
DataSet ds = new DataSet();
using (SqlConnection conn = new SqlConn... | null | CC BY-SA 4.0 | null | 2023-03-03T06:10:00.477 | 2023-03-03T06:22:50.053 | 2023-03-03T06:22:50.053 | 259,769 | 259,769 | null |
75,623,703 | 1 | null | null | 0 | 28 | I have made a simple Student Management system using php, JavaScript and CSS.
I want to be able to reload the php pages within my system but keep the php sessions that I have set.
Any Solutions?
Here is a snippet of code from a php page.
I made a button to go back to the previous page.
```
<html>
<button class= "subm... | Reloading but keeping the sessions | CC BY-SA 4.0 | null | 2023-03-03T06:10:39.937 | 2023-03-03T10:21:12.260 | 2023-03-03T10:21:12.260 | 21,323,693 | 21,323,693 | [
"javascript",
"php",
"session",
"onclick",
"reloading"
] |
75,623,713 | 2 | null | 9,813,983 | 0 | null | Updating this for wsl2 as per today state, instead of `~/.zshrc.pre-oh-my-zsh` it should be `~/.shell.pre-oh-my-zsh`, complete list of commands that worked for me is:
```
rm -rf ~/.oh-my-zsh
rm ~/.zshrc
cp ~/.shell.pre-oh-my-zsh ~/.zshrc
source ~/.zshrc
```
| null | CC BY-SA 4.0 | null | 2023-03-03T06:11:40.963 | 2023-03-03T06:11:40.963 | null | null | 6,868,872 | null |
75,623,709 | 2 | null | 75,623,548 | 0 | null | Yes. Same solution provides in this link worked for me
I may made some mistakes.
Here is working query
```
[
{
$lookup:
/**
* from: The target collection.
* localField: The local join field.
* foreignField: The target join field.
* as: The name for the results.
* pipeline:... | null | CC BY-SA 4.0 | null | 2023-03-03T06:11:21.307 | 2023-03-03T06:11:21.307 | null | null | 2,013,280 | null |
75,623,712 | 1 | null | null | 0 | 12 | I am trying to debug a program coded in Rust and python which Rust called a python file. The debuger is codeLLVM. But how can I use a conda virtual evn from Rust main?
I have tried it with a "preLaunchTask":"pythonenv",
the tasks.json like this:
{
"version": "2.0.0",
"tasks": [
{
"label": "pythonenv",
"type": "shell",
... | vscode debug c++/Rust in a conda virtual env | CC BY-SA 4.0 | null | 2023-03-03T06:11:36.813 | 2023-03-03T06:13:47.087 | 2023-03-03T06:13:47.087 | 21,323,807 | 21,323,807 | [
"visual-studio-code"
] |
75,623,717 | 1 | 75,624,257 | null | 0 | 29 | ```
app.post ('/create_contact',function(req,res)
{
contact.create({
name :req.body.name,
phone:req.body.phone
},function(err,newContact)
{
if(err){console.log('error in creating a contact!');
return;}
console.log('********',newContact);
return res.redirect('back');
});
});
```
Errors:
``... | mongoose code showing error of a call ack function | CC BY-SA 4.0 | null | 2023-03-03T06:12:10.257 | 2023-03-03T07:28:18.753 | 2023-03-03T06:21:04.807 | 874,188 | 21,323,844 | [
"node.js",
"mongodb",
"mongoose",
"callback"
] |
75,623,714 | 1 | null | null | 0 | 19 | How can I bypass XSS protection in order to inject an XSS payload in the location header?
The backend code looks something like this:
```
<?php
// Get the value of the "src" parameter from the URL
$src = $_GET['src'];
// URL-encode the "<" and ">" characters in the "src" parameter value
$src = urlencode(str_replace(ar... | How to perform XSS in location header | CC BY-SA 4.0 | null | 2023-03-03T06:11:41.523 | 2023-03-03T06:11:41.523 | null | null | 21,323,824 | [
"php",
"xss",
"penetration-testing"
] |
75,623,718 | 1 | null | null | -2 | 30 | Error message:

can anyone help me, i need to use c# web development on vb.net and i get this error whenever i create a project. please i got many pending work to submit
| can anyone help me with this error? how can i fix it? | CC BY-SA 4.0 | null | 2023-03-03T06:12:10.600 | 2023-03-03T06:13:01.307 | 2023-03-03T06:13:01.307 | 6,886,501 | 18,613,933 | [
"c#",
"visual-studio"
] |
75,623,716 | 1 | null | null | 1 | 64 | I have to copy the values of a 2D `vector` to another 2D `vector` only if the values are within some limits.
For that, I wrote.
```
[[nodiscard]] std::vector<std::vector<double>>
GetDataAfterApplyingLimits(const std::vector<std::vector<double>>& input)
{
std::vector output(
input.size(), std::vecto... | Vector transformation | CC BY-SA 4.0 | null | 2023-03-03T06:11:43.570 | 2023-03-03T16:11:03.307 | 2023-03-03T16:11:03.307 | 9,609,840 | 3,747,770 | [
"c++",
"algorithm",
"multidimensional-array",
"c++17",
"stdvector"
] |
75,623,720 | 1 | null | null | -2 | 51 | I'm using this tutorial to build my first website and my directory setup is identical as shown in the video: [https://www.youtube.com/watch?v=dam0GPOAvVI](https://www.youtube.com/watch?v=dam0GPOAvVI)
`main.py`:
```
from website import create_app
app = create_app()
if __name__ == '__main__':
app.run(debug=True)
```... | Building a website using python for the first time and getting an import error, does anyone know why? | CC BY-SA 4.0 | null | 2023-03-03T06:12:39.390 | 2023-03-03T06:44:57.417 | 2023-03-03T06:35:35.333 | 874,188 | 20,439,565 | [
"python",
"flask"
] |
75,623,710 | 2 | null | 75,619,513 | 1 | null | Use `rename` by first level of `MultiIndex` with `dict.get` - if no match return original value (second parameter `x`):
```
#same key values should be omitted
d = {'AB30566': 'EX00000', 'ZT52556': 'EX00002', 'ZZ00001': 'EX00004'}
df = df.rename(columns=lambda x: d.get(x,x), level=0)
print (df)
EX00000 ... | null | CC BY-SA 4.0 | null | 2023-03-03T06:11:22.940 | 2023-03-03T06:16:47.523 | 2023-03-03T06:16:47.523 | 2,901,002 | 2,901,002 | null |
75,623,727 | 2 | null | 68,016,905 | 0 | null | try adding this
services.AddMediatR(Assembly.GetExecutingAssembly());
services.AddMediatR(mediatRServiceConfiguration => mediatRServiceConfiguration.AsSingleton(), Assembly.GetExecutingAssembly());
| null | CC BY-SA 4.0 | null | 2023-03-03T06:13:31.047 | 2023-03-03T06:13:31.047 | null | null | 12,615,653 | null |
75,623,724 | 2 | null | 75,616,134 | 0 | null | Found out that Xcode xibs and storyboards ignore horizontal safe area but apply it later.
The problem of my concrete case is I used `SOPullUpControl` and wanted to customise its container before presenting. The problem is `SOPullUpControl` involves view frames but safe area insets appear after view controller presentat... | null | CC BY-SA 4.0 | null | 2023-03-03T06:13:21.003 | 2023-03-03T06:13:21.003 | null | null | 805,701 | null |
75,623,719 | 1 | null | null | 0 | 13 | We've been using Mono for years to run our .NET app. We've recently started building using .NET 6, which allows it to run directly without Mono. NUnit.ConsoleRunner.3.15.2 supports .NET 6. I'm wondering if that means I can run nunit3-console without Mono too or does it just mean that it supports running my .NET 6 test ... | Can I run nunit3-console directly on Linux as a .NET 6 app or is it just compatible with .NET 6 test assemblies? | CC BY-SA 4.0 | null | 2023-03-03T06:12:12.083 | 2023-03-03T06:12:12.083 | null | null | 13,820,507 | [
".net",
"linux",
"nunit-console"
] |
75,623,722 | 2 | null | 12,578,499 | 0 | null | I was looking for any small guides - how to install boost latest release in Rocky Linux, however the same guide applies for any Generic Linux (CentOS, Ubuntu, Debian, Rocky, Fedora)
1. Download and extract the latest Boost release, inside the folder
```
sudo ./bootstrap.sh
sudo ./b2 install --with=all
```
Check Bo... | null | CC BY-SA 4.0 | null | 2023-03-03T06:12:52.997 | 2023-03-03T06:12:52.997 | null | null | 15,342,125 | null |
75,623,729 | 1 | null | null | 0 | 22 | My laptop computer cannot enable android emulator because It doesn't have Hyper-v (please I need help on how to install Hyper-v on windows 10). I connected my android device to my laptop computer and I started debugging and this Is the error I got
Exception in thread "main" java.net.socketexception: software caused con... | I have errors in debugging my application project in flutter | CC BY-SA 4.0 | null | 2023-03-03T06:13:39.533 | 2023-03-03T06:38:21.073 | null | null | 21,323,775 | [
"flutter",
"debugging",
"dart-pub"
] |
75,623,730 | 1 | null | null | -1 | 13 | is there any hardware available which can connect ram to existing computer which can act portable ram (like 1Tb hard-disks) we can connect with any pc and ram get expanded?? or something related to it?
information related to it or any idea regarding the same.
| portable ram which can be used like external ssd | CC BY-SA 4.0 | null | 2023-03-03T06:13:43.473 | 2023-03-03T06:13:43.473 | null | null | 20,644,385 | [
"computer-science",
"device",
"hardware",
"ram",
"portability"
] |
75,623,721 | 1 | null | null | 1 | 29 | I have the table below:

My formulas from D2 to G999 is:
=IFERROR(IF(OR(INDEX('Client List'!$1:$1048576, MATCH(A2,'Client List'!$A:$A, 0), MATCH($D$1,'Client List'!$1:$1, 0))="Complete - Late",INDEX('Client List'!$1:$1048576, MATCH(A2,'Client List'!$A:$A, 0), MATCH($D$1,'Client ... | Table won't sort cells without formulas | CC BY-SA 4.0 | null | 2023-03-03T06:12:47.830 | 2023-03-04T14:23:09.537 | 2023-03-04T14:23:09.537 | 2,395,282 | 21,323,834 | [
"excel",
"sorting",
"excel-formula"
] |
75,623,732 | 2 | null | 75,623,695 | 0 | null | You can use [document.querySelector](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector) to check for the existence.
```
if (!document.querySelector('input[type=password]')) {
// your code here
}
```
| null | CC BY-SA 4.0 | null | 2023-03-03T06:14:16.233 | 2023-03-03T06:14:16.233 | null | null | 9,513,184 | null |
75,623,731 | 1 | null | null | -1 | 22 | [](https://i.stack.imgur.com/vAHqZ.png)
Animation should be like water is dropping from top to funnel and it is filling the pipe one after another. once first pipe is filled then it goes to second pipe and so on
| I have created a digram for my question here, I am willing to achieve water flow effect using Flutter? Any Hints? | CC BY-SA 4.0 | null | 2023-03-03T06:14:05.853 | 2023-03-03T06:32:54.537 | 2023-03-03T06:32:54.537 | 1,502,140 | 1,502,140 | [
"flutter",
"flutter-animation"
] |
75,623,736 | 1 | null | null | 0 | 7 | I want to know exactly at which point or call my app went down.
This call may be an API call or some event but I want to know so I can debug that point.
| How may I debug the Heroku down cause? | CC BY-SA 4.0 | null | 2023-03-03T06:15:16.810 | 2023-03-03T06:15:16.810 | null | null | 4,836,660 | [
"heroku"
] |
75,623,702 | 1 | null | null | 0 | 20 | I wrote my own hook to handle inputs in forms
```
const useForm = (fields) => {
let initialState = {};
fields.forEach((field) => {
initialState[field.name] = field.value ? field.value : "";
});
const [form, setForm] = useState(initialState);
const [formErrors, setFormErrors] = useState({});
...........
... | Creating a new instance of a custom hook when importing into a component | CC BY-SA 4.0 | null | 2023-03-03T06:10:29.343 | 2023-03-03T06:10:29.343 | null | null | 21,220,548 | [
"javascript",
"reactjs",
"material-ui"
] |
75,623,739 | 2 | null | 72,732,109 | 1 | null | You should check whether the placeholder you've got is 'ChartPlaceholder' or not!
| null | CC BY-SA 4.0 | null | 2023-03-03T06:16:11.583 | 2023-03-03T06:16:11.583 | null | null | 21,323,883 | null |
75,623,733 | 2 | null | 75,623,695 | 0 | null | Try using this query with `document.querySelector()`: `input[type="password"]`. If you don't get a result, it will return `null` and you know it doesn't exist on the page.
You can then use this to end the userscript by returning.
Here's two examples (same JS, first has a password, second doesn't):
```
(function(){
if... | null | CC BY-SA 4.0 | null | 2023-03-03T06:14:26.777 | 2023-03-03T06:14:26.777 | null | null | 13,376,511 | null |
75,623,735 | 2 | null | 70,721,445 | 0 | null | Amazon Textract is an API that is built and tailored for document images, like scanned forms, bank statements, invoices, receipts. This is why you are getting sub-par results on your image.
For the type of documents you are trying to extract text from (post-it notes), the recommended API to use is [Amazon Rekognition D... | null | CC BY-SA 4.0 | null | 2023-03-03T06:15:13.647 | 2023-03-03T06:15:13.647 | null | null | 7,018,582 | null |
75,623,740 | 2 | null | 75,623,235 | 1 | null | This problem is because of those header row of CSV file as @Noah points out. Here's other solution to solve this problem:
```
with open(filename) as file:
next(file)
for line in file:
year, temp = line.split(",")
list_temp.append(float(temp))
```
Skipping the first line by doing [next(file)](h... | null | CC BY-SA 4.0 | null | 2023-03-03T06:16:19.457 | 2023-03-03T06:16:19.457 | null | null | 12,446,721 | null |
75,623,744 | 2 | null | 60,795,327 | 0 | null | still having this issue today in 2023! with every vscode update they break something .. it is annoying.
try saving the workspace and run the tasks while ensuring a workspace is loaded
| null | CC BY-SA 4.0 | null | 2023-03-03T06:17:40.823 | 2023-03-03T06:17:40.823 | null | null | 10,947,812 | null |
75,623,734 | 2 | null | 75,621,922 | 1 | null | I'm no expert, but here's one way to do it.
```
import pandas as pd
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.metrics.pairwise import cosine_similarity
pd.set_option('display.float_format', '{:.4f}'.format)
df = pd.DataFrame({'text1': ['The quick brown fox jumps over ... | null | CC BY-SA 4.0 | null | 2023-03-03T06:14:33.723 | 2023-03-03T06:14:33.723 | null | null | 1,409,374 | null |
75,623,742 | 2 | null | 75,622,634 | 0 | null | 1.Check for errors in the AndroidManifest.xml file: Open the AndroidManifest.xml file in Android Studio and make sure there are no syntax errors or missing required elements.
1. Clean and rebuild your project: Sometimes, build errors can be resolved by simply cleaning and rebuilding your project. To do this, go to "Bu... | null | CC BY-SA 4.0 | null | 2023-03-03T06:16:56.840 | 2023-03-03T06:16:56.840 | null | null | 17,673,664 | null |
75,623,745 | 2 | null | 42,554,221 | 0 | null | In many cases the problem is the Java version. If you very had old PKCS12 .p12 file (like mine) you would need Java 6 to read it. The old keys use weaker encryption 1024 bit encryption I think.
So just use the keytool command line like this (I needed to get the SHA1 key):
```
"C:\Program Files\Java\jdk1.6.0_45\bin\keyt... | null | CC BY-SA 4.0 | null | 2023-03-03T06:18:13.453 | 2023-03-03T06:18:13.453 | null | null | 615,994 | null |
75,623,747 | 1 | null | null | -3 | 66 | what is php regex for check if upload file name have german umlauts?
file name : Screenshot_Erdös.png
i tried below but not working
```
if ( preg_match('(?<![äöüÄÖÜß\w])([äöüÄÖÜß\w]+)(?![äöüÄÖÜß\w])', $file_name )){
$file['error'] = __( "WARNING: Invalid file name. German umlauts are not allowed.", 'wp-file' )... | what is php regex for check if upload file name have german umlauts? | CC BY-SA 4.0 | null | 2023-03-03T06:18:32.117 | 2023-03-04T09:23:25.993 | 2023-03-03T06:28:05.643 | 9,776,626 | 9,776,626 | [
"php",
"regex"
] |
75,623,737 | 1 | null | null | -1 | 19 | I tried the CART algorithm on a few sample (4) sentences for binary classification using bag of words vector representation. The result using Python and sklearn generated a decision Tree.
[](https://i.stack.imgur.com/Tolmv.png)
But I have some confusions which I am not able to clear.
The nodes of the Tree generated con... | How the threshold value of a feature and gini value using CART decision tree are calculated for text classification? | CC BY-SA 4.0 | null | 2023-03-03T06:15:31.053 | 2023-03-03T06:15:31.053 | null | null | 7,084,804 | [
"python",
"machine-learning",
"scikit-learn",
"decision-tree",
"gini"
] |
75,623,748 | 1 | null | null | 0 | 49 | I need to match package-names of 2 different directories together.
e.g. for strings that match
```
xserver - xorg-xserver6
gcc_3.4 - comp_gcc_bin_3r4
systemd - systemd
nano_9.0 - nano9
...
```
e.g. for strings that must not match
```
vlc - clamavlcompare
kernel_drivers - alsa_sound_di... | String-compare with approximation | CC BY-SA 4.0 | null | 2023-03-03T06:18:50.643 | 2023-03-03T14:11:23.077 | 2023-03-03T14:11:23.077 | 3,080,723 | 307,297 | [
"java",
"c++",
"linux",
"string",
"algorithm"
] |
75,623,750 | 1 | null | null | 0 | 25 | ViewPropTypes will be removed from React Native, along with all other PropTypes. We recommend that you migrate away from PropTypes and switch to a type system like TypeScript. If you need to continue using ViewPropTypes, migrate to the 'deprecated-react-native-prop-types' package.
```
.
```
| ViewPropTypes will be removed from React Native | CC BY-SA 4.0 | null | 2023-03-03T06:19:10.813 | 2023-03-03T06:19:10.813 | null | null | 21,323,873 | [
"reactjs",
"react-native"
] |
75,623,741 | 2 | null | 75,555,151 | 0 | null | Hi i hope below answer will help you. you should use `GetBuilder` instead of Obx and you must initialize controller call Api using load controller.
in this example, i am ignoring your predefined decoration variable and colors,
```
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:mu... | null | CC BY-SA 4.0 | null | 2023-03-03T06:16:33.403 | 2023-03-03T06:16:33.403 | null | null | 12,216,383 | null |
75,623,754 | 1 | null | null | 0 | 14 | i want to write all google ads code in a single class to prevent code repetation in every class in flutter
i have try to implement App open ad in a seprate class and call it where i wanted to show. but i want to show all my ads on different screens with single ads containing class.
| Global class for all google ads in flutter | CC BY-SA 4.0 | null | 2023-03-03T06:19:51.830 | 2023-03-03T08:53:13.847 | null | null | 13,849,671 | [
"flutter",
"dart",
"global-variables",
"google-mobile-ads"
] |
75,623,749 | 1 | null | null | 0 | 20 | I can't use the typescript operator `as` in my `.vue` files, When I commit code use `lint-staged`, it show erros as below:
```
const collapse = inject('collapse') as Ref<boolean>
// 14:36 error Parsing error: Unexpected token as
```
```
// eslintrc.js
module.exports = {
extends: [
'eslint:recommended',
'pl... | Eslint Parsing error: Unexpected token as when using operator 'as" | CC BY-SA 4.0 | null | 2023-03-03T06:19:03.987 | 2023-03-04T06:42:38.930 | null | null | 16,601,347 | [
"typescript",
"vuejs3",
"eslint"
] |
75,623,751 | 1 | null | null | 0 | 26 | There is a JavaScript function on a webpage I am creating. The $.ajax() function is called inside the previously mentioned function. When the so called function is invoked, every line of the function gets executed except the ajax part. Only after every possible code line of the entire file is executed, the ajax part ge... | The $.ajax() function inside a function is not invoked while the function is invoked | CC BY-SA 4.0 | null | 2023-03-03T06:19:30.167 | 2023-03-03T06:58:53.507 | null | null | 17,778,764 | [
"javascript",
"jquery"
] |
75,623,752 | 1 | null | null | 0 | 34 | I am trying to deploy NestJS project on a digital ocean droplet. It has a configuration of 25GB SSD and 2GB RAM but I am still facing issues like timeout even just on `npm i` with SSH and if I run `npm run build` command with SSH digital ocean server it crashed due to NodeJS out of memory. I am not sure is something wr... | How to optimize this github action workflow to remove timeout and failures | CC BY-SA 4.0 | null | 2023-03-03T06:19:45.013 | 2023-03-03T09:22:10.023 | 2023-03-03T09:22:10.023 | 11,626,178 | 11,626,178 | [
"deployment",
"nestjs",
"github-actions",
"digital-ocean"
] |
75,623,746 | 1 | 75,624,182 | null | 0 | 16 | I have the following XAML code:
```
<ListView x:Name="filterListView">
<ListView.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="35" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefini... | With WinUI 3 and C#, how do I make ListView items not selectable (IsHitTestVisible="False") but still make CheckBox controls checkable? | CC BY-SA 4.0 | null | 2023-03-03T06:18:29.767 | 2023-03-03T07:19:40.567 | null | null | 546,509 | [
"c#",
"windows",
"xaml",
"winui-3",
"winui"
] |
75,623,758 | 1 | null | null | 0 | 16 | So I spent hours the other day getting Docker Desktop to finally install properly on my Windows 10 computer. I wanted so I could run a program called Audiobookshelf. It was a massive headache to get Docker installed with lots of just plain freezing and nothing happening, no errors just not working. But finally I got it... | Why won't Docker Desktop start after reboot | CC BY-SA 4.0 | null | 2023-03-03T06:20:16.103 | 2023-03-03T06:20:16.103 | null | null | 430,264 | [
"docker",
"windows-10",
"wsl-2",
"docker-desktop"
] |
75,623,757 | 2 | null | 75,617,245 | 0 | null | wcf has some formatting requirements for http content-type headers such as this :
```
Content-Type: Multipart/Related; type="application/xop+xml";start-info="text/xml";boundary="uuid:0ca0e16e-feb1-426c-97d8-c4508ada5e82+id=1"
```
The format of the header output you added might be a little different from this. You can ... | null | CC BY-SA 4.0 | null | 2023-03-03T06:20:13.100 | 2023-03-03T06:20:13.100 | null | null | 16,430,068 | null |
75,623,755 | 2 | null | 58,277,097 | 0 | null | I might be late to the discussion-
So, what you are asking is possible, you can do it like this -
Create a service interface -
```
public interface SayHelloService {
String sayHello();
}
```
Create multiple implementations of this interface -
```
@Service("ENG")
public class SayHelloInEnglish implements SayHelloSe... | null | CC BY-SA 4.0 | null | 2023-03-03T06:20:02.557 | 2023-03-03T06:20:02.557 | null | null | 5,345,105 | null |
75,623,759 | 2 | null | 22,345,081 | 0 | null | For me return type of Page with Pageable was not working, but on changing the return type to List or Optional<?> was working fine.
```
public interface UrnMappingRepository extends JpaRepository<UrnMapping, Long> {
@Query(value = "select * from internal_uddi where urn like %?1% or contact like %?1%",
n... | null | CC BY-SA 4.0 | null | 2023-03-03T06:20:16.437 | 2023-03-03T06:20:16.437 | null | null | 16,769,477 | null |
75,623,760 | 2 | null | 65,987,405 | 0 | null | If ScrollView working fine on Android and creating issue on IOS, then simply use scroll view property automaticallyAdjustKeyboardInsets= {true}
| null | CC BY-SA 4.0 | null | 2023-03-03T06:20:27.687 | 2023-03-03T06:20:27.687 | null | null | 19,401,792 | null |
75,623,761 | 2 | null | 75,623,542 | 0 | null | Check this to ensure npm npx installed:
```
npm --v
npx --v
```
Try this: (uninstall the create-react-app package)
```
npm uninstall create-react-app
npm uninstall -g create-react-app
npm cache clean --force
```
And then: (install create-react-app globally)
```
npm install -g create-react-app
```
So then try again:
... | null | CC BY-SA 4.0 | null | 2023-03-03T06:20:38.017 | 2023-03-03T12:02:45.260 | 2023-03-03T12:02:45.260 | 20,983,056 | 20,983,056 | null |
75,623,762 | 1 | 75,623,868 | null | 3 | 63 | Suppose I have
```
class A {};
template<typename T, typename U> class Wrapper {};
```
I'm trying to check if the wrapper's first inner type is `A`.
```
typeCheck(new A(), new Wrapper<A,B>); // expect true
typeCheck(new A(), new Wrapper<C,B>); // expect false
```
What's the best approach to do it?
---
I've tried... | How to check type equality between non-template class and template class? | CC BY-SA 4.0 | null | 2023-03-03T06:20:38.273 | 2023-03-03T09:28:49.943 | 2023-03-03T09:28:49.943 | 9,609,840 | 5,265,472 | [
"c++",
"templates",
"typetraits",
"typechecking",
"specialization"
] |
75,623,763 | 1 | null | null | -1 | 14 | I have a react app which gets some information from JSON API and display it on web page. But information may contain like ` `. Browser is failing to convert it and display it in proper way. How can i handle this ?
EX: Chain ` `(final drive) // this waht i am getting from JSON API.
As shown above, Browser fa... | Institute proper encoding in messages for special characters | CC BY-SA 4.0 | null | 2023-03-03T06:20:49.290 | 2023-03-03T06:33:33.817 | 2023-03-03T06:33:33.817 | 13,071,662 | 13,071,662 | [
"javascript",
"reactjs",
"react-hooks",
"react-redux",
"regression"
] |
75,623,764 | 1 | 75,624,324 | null | 0 | 30 | My HTML:
```
<div id="preview" style="overflow:auto;">
<div style="position: sticky;">
<i class="far fa-frown"></i>
<span id="message">This should be sticky</span>
</div>
<table style="overflow:auto;">
<tr style="position:sticky; top:0;">
<th>Company</th>
<th>Co... | How do I make the first child div sticky while I scroll the second child div? | CC BY-SA 4.0 | null | 2023-03-03T06:20:49.313 | 2023-03-03T07:35:59.987 | null | null | null | [
"html",
"css"
] |
75,623,765 | 2 | null | 71,091,537 | 0 | null |
```
email_user_part_regex = re.compile(
r"^(?=.{4,30}$)[\w\u0080-\uffff]+(?:[\.\-+][\w\u0080-\uffff]+)*$",
re.IGNORECASE | re.UNICODE,
)
```
class ForgetPasswordEmailForm(forms.Form):
```
email = forms.EmailField(label='email', max_length=200)
def __init__(self, *args, **kwargs):
super().__init__(*args, ... | null | CC BY-SA 4.0 | null | 2023-03-03T06:20:54.617 | 2023-03-03T06:20:54.617 | null | null | 21,323,914 | null |
75,623,768 | 1 | null | null | 0 | 5 | I am using Azure B2C to get the claims from Linkedin login. When i looked at claims, it only sending primary email associated with the account. How to get the all the emails associated with the profile? Which flag should i set to get that.
| Get all the emails associated with linkedin via B2C login | CC BY-SA 4.0 | null | 2023-03-03T06:21:12.650 | 2023-03-03T06:21:12.650 | null | null | 17,069,937 | [
"azure-ad-b2c",
"azure-ad-b2c-custom-policy",
"azure-b2c"
] |
75,623,753 | 1 | null | null | 0 | 24 | This is the error I get from the next.js browser and in my terminal
```
SyntaxError: Cannot use import statement outside a module
```
```
import Provider from './components/Provider';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:... | <Provider/> react-redux giving an import module error in next.js | CC BY-SA 4.0 | null | 2023-03-03T06:19:47.773 | 2023-03-03T06:31:48.403 | 2023-03-03T06:31:48.403 | 21,115,998 | 21,115,998 | [
"javascript",
"reactjs",
"next.js"
] |
75,623,767 | 2 | null | 75,622,064 | 1 | null | use the pseudocolumn 0 for the x-values (check `help pseudocolumns`)
For example like this:
```
### bars and pseudocolumn
reset session
$Data <<EOD
amount cost profit
64 22.915949 48.15697753
128 15.424979 56.41929322
256 9.473054 49.80545598
512 6.685107 96.8453052
1024 4.897494 ... | null | CC BY-SA 4.0 | null | 2023-03-03T06:21:11.037 | 2023-03-03T06:21:11.037 | null | null | 7,295,599 | null |
75,623,771 | 2 | null | 75,623,585 | 0 | null | Using List Comprehension
```
temp = [22, 4, 45, 50, 3, 69, 4, 44, 1]
[x**2 if x >= 5 else x**3 for x in temp]
```
Output:
```
[484, 64, 2025, 2500, 27, 4761, 64, 1936, 1]
```
| null | CC BY-SA 4.0 | null | 2023-03-03T06:22:04.413 | 2023-03-04T12:19:52.790 | 2023-03-04T12:19:52.790 | 20,172,954 | 12,171,714 | null |
75,623,772 | 1 | null | null | 0 | 11 | I need to send a push notification automatically using cloud function in flutter,
consider an example: There is a user he got an order from customer and he didn't accept it, that order is in order queue, now I need to check whether any item is in order queue and send a scheduled push notification(10 min) to the user ti... | How can I send push notification if there is an item in a firebase collection automatically using cloud function in flutter? | CC BY-SA 4.0 | null | 2023-03-03T06:22:05.127 | 2023-03-03T06:22:05.127 | null | null | 19,494,590 | [
"flutter",
"firebase",
"dart"
] |
75,623,769 | 1 | null | null | -1 | 28 | I'm trying to receive a file to my node js app, From postman I'm sending the file as binary and content-type as text/csv. used traditional multer, but couldn't able to get the file
Note: I need to receive file only as binary and content-type only as text/csv, as this is the requirement
Tried using multer and in the req... | How to receive the file in node js using express when the file is sent from postman as binary and content-type as text/csv | CC BY-SA 4.0 | null | 2023-03-03T06:21:23.947 | 2023-03-03T08:09:16.887 | 2023-03-03T08:09:16.887 | 15,585,380 | 15,585,380 | [
"javascript",
"node.js",
"binary",
"postman",
"multer"
] |
75,623,775 | 2 | null | 75,623,716 | 1 | null | You can create an empty vector in each iteration and add into the output vector in each iteration.
Something like
```
[[nodiscard]] std::vector<std::vector<double>>
GetDataAfterApplyingLimits(const std::vector<std::vector<double>>& input)
{
std::vector<std::vector<double>> output;
output.reserve(input.size()); ... | null | CC BY-SA 4.0 | null | 2023-03-03T06:22:21.337 | 2023-03-03T06:22:21.337 | null | null | 9,609,840 | null |
75,623,774 | 1 | null | null | 2 | 27 | I am quite new to Angular. In my project, I load different local .json files using http-requests. It works but I am asking myself, if there is a more elegant solution.
I load the local files like this:
```
// load data from file1
this.http.get("./assets/file1.json").subscribe(data => {
this.file1 = data
})
// load d... | Angular - multiple http requests elegant solution | CC BY-SA 4.0 | null | 2023-03-03T06:22:19.433 | 2023-03-04T19:56:05.067 | 2023-03-04T19:56:05.067 | 15,210,304 | 11,604,383 | [
"angular",
"typescript",
"rxjs",
"observable",
"httprequest"
] |