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,638,899
2
null
75,634,809
0
null
I got the mutation working in Postman, BUT the PHP cURL code snippet generated failed to receive any response or errors. I installed HTTP_Request2 and the Postman code snippet for that did work. I guess the failure of the PHP cURL snippet is another question...
null
CC BY-SA 4.0
null
2023-03-04T21:53:26.657
2023-03-04T21:53:26.657
null
null
5,137,457
null
75,638,892
1
null
null
-2
20
I have this ``` Data = [ {id: 1, name: "Dummy1", date:"2023-03-01"}, {id: 2, name: "Dummy2", date:"2023-03-04"}, {id: 3, name: "Dummy3", date:"2023-03-02"}, {id: 4, name: "Dummy4", date:"2023-03-01"}] ``` How do I get ``` [ { 2023-03-01: [{id:1, name: "Dummy1"},{id:4, name: "Dummy4"}] }, { 2023-03-02: [{id:2, name: "D...
Create a new Object based on a property and group by that property Javascript
CC BY-SA 4.0
null
2023-03-04T21:52:10.227
2023-03-05T00:12:49.447
null
null
4,867,472
[ "javascript" ]
75,638,898
1
75,639,441
null
0
15
I have an array called "fields" it is list of maps that contains map and strings I wanna query for "عنوان" or "خانه فروشی" but it returning empty result it tried this but no result ``` StreamBuilder<QuerySnapshot<Map<String, dynamic>>>( stream: FirebaseFirestore.instance .collection('items') .where('category'...
how to query data in nested map and array in firestore?
CC BY-SA 4.0
null
2023-03-04T21:53:19.713
2023-03-05T00:01:30.817
2023-03-04T23:58:08.090
209,103
17,946,619
[ "flutter", "firebase", "google-cloud-firestore" ]
75,638,891
1
null
null
0
8
I'm writing some Firestore rules and I'm seeing an error message when I try to read the data from a chat in my chats collection. I've seen other posts about this error, but none of them match my situation and I can't seem to figure out what the problem is. Here are my security rules: ``` rules_version = '2'; service cl...
Firestore Property is Undefined On Object. for 'list' @ L41
CC BY-SA 4.0
null
2023-03-04T21:51:45.017
2023-03-04T21:51:45.017
null
null
17,387,328
[ "ios", "swift", "firebase", "google-cloud-firestore", "firebase-security" ]
75,638,894
1
null
null
0
5
I'd like to add socket.io support to my Nuxt.js app. It's running using nginx. Hosted on Heroku. Actually here is the front code : ``` import express from 'express' import fs from 'fs' const { Nuxt, Builder } = require('nuxt') export default function () { const app = express() const config = require('../nuxt.con...
Setup Socket.IO on Nuxt.js app running using NGINX on Heroku
CC BY-SA 4.0
null
2023-03-04T21:52:26.400
2023-03-04T21:52:26.400
null
null
20,814,712
[ "heroku", "socket.io", "nuxt.js" ]
75,638,903
2
null
75,098,860
0
null
You should use `@validates_schema` to define a validator that works on several fields. It takes the whole input payload as argument so you can find pid in there.
null
CC BY-SA 4.0
null
2023-03-04T21:54:05.427
2023-03-04T21:54:05.427
null
null
4,653,485
null
75,638,901
1
null
null
0
5
I am using LibreOffice 7.5.0.3 (x86_64) / LibreOffice Community in Portuguese. I am trying to make information from a web page and for that I am using the following formula: ``` =FILTROXML(SERVIÇOWEB("http://www.scielo.br/scielo.php?script=sci_arttext&pid=S1982-88372022000300013&lang=pt ");"//div[@class='articleSection...
Why libreoffice's =FILTROXML only returns #VALOR?
CC BY-SA 4.0
null
2023-03-04T21:53:34.867
2023-03-04T21:53:34.867
null
null
8,412,561
[ "xml", "web-scraping", "libreoffice", "libreoffice-calc" ]
75,638,879
1
null
null
0
16
I am trying to update an entity called student with patchmapping. I have one pathvariable (id) and two @Requestparams the first one works fine but the second one is always set null even though I have tried to set it manually this is how my method looks: ``` @PatchMapping(value = "/students/{id}", consumes = { "applicat...
How to save second requestparameter in springboot
CC BY-SA 4.0
null
2023-03-04T21:48:28.850
2023-03-04T22:30:31.860
2023-03-04T22:30:31.860
11,701,675
11,701,675
[ "angular", "spring", "spring-boot" ]
75,638,900
1
null
null
0
24
I am trying to dynamically create an accordion info section, where one item is open at a time, and another one being clicked will close the already open item to open the new one. Each item consists of a title (always visible), and text (the part that collapses/expands). I do not want the `handleExpand` function to be r...
Why does addEventListener work with dynamically created element before it is added to the DOM, but not with its child in JavaScript?
CC BY-SA 4.0
null
2023-03-04T21:53:31.277
2023-03-04T22:11:53.943
null
null
19,737,835
[ "javascript", "dom-events", "addeventlistener", "event-delegation" ]
75,638,904
2
null
75,638,381
0
null
This is probably gonna be the least of your worries, but you can move all keystrokes to one Update and event it out on your own. Otherwise, the new [InputSystem](https://docs.unity3d.com/Packages/com.unity.inputsystem@1.5/manual/Workflows.html) does allow for events (at least on your side, because on their own it's mos...
null
CC BY-SA 4.0
null
2023-03-04T21:54:07.787
2023-03-04T22:01:56.967
2023-03-04T22:01:56.967
4,195,783
4,195,783
null
75,638,907
1
null
null
0
10
Unfortunetly, mobo of quite old Hp ML110 burned, now I need to recover recent backup on VM made from working server couple of months ago. I got backup of c:\oraclexe based on Win7Pro. What steps I need to perform to revert recent backup of oracle db on VM? I don't have any knowledge of Oracle db... so cannot move furth...
How to recover broken server with oracle express db on working Virtualbox machine backup?
CC BY-SA 4.0
null
2023-03-04T21:54:38.817
2023-03-04T21:54:38.817
null
null
10,905,837
[ "oracle", "oracle-apex", "recovery" ]
75,638,877
1
null
null
0
19
When I'm registering on my site, there's no message that email is taken. It only says username taken. I would like to split usernameExists in two pieces, but keeping being able to log in using username or email. I tried spliting it on my own but with no success. start of functions.inc.php file ``` <?php function empty...
How to split this function on two, that one is checking username exists and the other one email exists, but with keeping user/email logging in
CC BY-SA 4.0
null
2023-03-04T21:48:15.163
2023-03-04T21:48:15.163
null
null
21,311,111
[ "php", "mysql" ]
75,638,910
2
null
75,638,892
0
null
You can use [Array#reduce](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce) with an object to store the values for each date. ``` let data = [{id: 1, name: "Dummy1", date:"2023-03-01"},{id: 2, name: "Dummy2", date:"2023-03-04"},{id: 3, name: "Dummy3", date:"2023-03-02"},{id...
null
CC BY-SA 4.0
null
2023-03-04T21:55:01.693
2023-03-04T21:55:01.693
null
null
9,513,184
null
75,638,913
1
null
null
0
20
At first i would get an error message saying the program could not locate the directory and now i am getting an error message that is saying "Unable to start program 'C\Users\myname\source\repos\1-5assignment\x64\debug\1-5 assignment.exe'. This program is blocked by group policy. for more information, contact your syst...
Im trying to run a program in Visual Studio I keep getting an error message every time I try and debug
CC BY-SA 4.0
null
2023-03-04T21:55:17.533
2023-03-04T22:00:42.807
null
null
20,361,709
[ "c++", "debugging" ]
75,638,914
2
null
75,638,570
1
null
In your settings.py file make sure that you have the correct configuration for serving static files in your Django project. You should have something like this in your settings.py file: ``` STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') ``` You also need to make sure that you have collecte...
null
CC BY-SA 4.0
null
2023-03-04T21:55:40.310
2023-03-04T21:55:40.310
null
null
3,443,037
null
75,638,916
2
null
13,355,852
0
null
This is an update to Rag Sagar's answer. The location of `get_model` is different on the current django version (4.1, as of writing). ``` >>> from django.apps import apps >>> model = apps.get_model("app_label", "ModelName") >>> model <class 'app_label.models.ModelName'> ``` Or with alternative syntax: ``` >>> model = ...
null
CC BY-SA 4.0
null
2023-03-04T21:55:59.157
2023-03-04T21:55:59.157
null
null
16,932,552
null
75,638,918
1
null
null
-1
24
I am using React-Data-Table-Component. When i try to update its CSS for a specific page, All pages can able to access that CSS. [I want that CSS only for a This Page](https://i.stack.imgur.com/0XlYk.png)` Updated CSS - [Css Overriding in this Page](https://i.stack.imgur.com/efOur.png) I want to implement CSS for a spec...
CSS is getting overridden, is there any solution?
CC BY-SA 4.0
null
2023-03-04T21:56:17.833
2023-03-04T21:56:17.833
null
null
19,313,020
[ "css", "reactjs" ]
75,638,919
1
null
null
0
10
I'm trying to enable SQL full text search or a asp.net site. Currently it's using simple LIKE functionality, so it will handle any kind of search term a user tries, just by wrapping it with '%' characters. When using "contains" the syntax is a lot more important. For example, it can automatically handle these kind of s...
Parse search term for full text "contains" search in SQL Server
CC BY-SA 4.0
null
2023-03-04T21:56:22.100
2023-03-05T00:27:02.977
2023-03-05T00:27:02.977
14,868,997
1,751,825
[ "c#", "sql-server", "asp.net-mvc", "tsql", "full-text-search" ]
75,638,920
2
null
75,635,345
0
null
C-style strings are , meaning they end with a `'\0'` character. But you are not terminating any of your `char[]` strings with `'\0'` at all. Try this: ``` #include <iostream> #include <cstring> char* add_char(char* p, char ch) { size_t len = std::strlen(p); char* pc = new char[len + 2]; // +1 for ch, +1 for t...
null
CC BY-SA 4.0
null
2023-03-04T21:56:28.827
2023-03-04T21:56:28.827
null
null
65,863
null
75,638,906
1
null
null
0
10
Im a noob at firebase. I have a function which works.. However, its extremely slow to run + it often end in "4 deADLINE_EXCEEDED: Deadline exceeded". Deadline is set to 9 minutes What the function is doing -Reading 200ish documents from firestore -Checking each value against an external API -Updating each document with...
"4 deADLINE_EXCEEDED: Deadline exceeded" error in Cloud Function that accesses Firestore
CC BY-SA 4.0
null
2023-03-04T21:54:18.090
2023-03-04T23:55:59.190
2023-03-04T23:55:59.190
209,103
17,526,132
[ "javascript", "firebase", "google-cloud-firestore", "google-cloud-functions" ]
75,638,902
1
null
null
-1
15
I'm currently developing a simple application similar to IMDb, and my goal is to display both the movie posters and titles retrieved from the API. Although I have successfully managed to showcase this information at the bottom of the page, I am encountering difficulties displaying the same data in the header. Nothing a...
UICollectionView Header not showing content
CC BY-SA 4.0
null
2023-03-04T21:53:48.540
2023-03-04T23:58:59.133
2023-03-04T23:58:59.133
20,287,183
20,052,590
[ "ios", "swift", "uicollectionview", "uikit" ]
75,638,924
2
null
75,638,745
1
null
Your HTML and CSS seems incomplete. I assume your icons are wrapped in a parent element, so I wrapped your icons in a `.my-element` div. Using background-image to position elements and their backgrounds relative to a parent is very tricky. I would suggest using CSS Grid to position icons. Here's an example using `displ...
null
CC BY-SA 4.0
null
2023-03-04T21:57:07.217
2023-03-04T21:57:07.217
null
null
14,148,586
null
75,638,925
1
null
null
-2
14
ı want to convert my program from py to apk but i dont have any idea ``` import tkinter as tk from tkinter import* root=tk.Tk() def b1(): b1.configure(bg='green' b1=tk.Button(root,text='print') root.mainloop() ```
It has an error while converting it to apk
CC BY-SA 4.0
null
2023-03-04T21:57:31.303
2023-03-05T02:04:06.687
null
null
20,873,882
[ "python", "tkinter", "apk" ]
75,638,921
1
null
null
0
19
In a .bat script, I have a variable that contains `&` and needs to be passed to multiple commands, one of which is a pipe. Concept code which doesn't work: ``` set foo="1 & 2" command1 --foo %foo% --bar echo %foo% | command2 --stdin ``` After trying various solutions from [here](https://stackoverflow.com/questions/132...
Windows batch delayed expansion breaks running a pipe
CC BY-SA 4.0
null
2023-03-04T21:56:34.027
2023-03-05T04:10:36.943
2023-03-05T04:10:36.943
2,245,910
2,245,910
[ "windows", "batch-file", "cmd" ]
75,638,927
2
null
75,627,028
0
null
A type 1 hypervisor runs directly on the machine without a "host" operating system, such as Linux, running underneath. Thus, since there is no "host" operating system consuming resources, such as compute, memory, and I/O bandwidth, the hypervisor can provide more resources to the virtual machines. On the other hand, a ...
null
CC BY-SA 4.0
null
2023-03-04T21:58:27.813
2023-03-04T22:12:56.503
2023-03-04T22:12:56.503
775,624
775,624
null
75,638,905
1
null
null
-3
32
# I got an output: ``` "Do you want to be X or O? o ``` --- ## | | | | ## | | | | ## | | | | ## AI's move: ## | X | | | ## | | | | ## | | | | ## AI's move: ## | X | | | ## | | X | | ## | | | | ## AI's move: ## | X | X | | ## | | X | | ## | | | | ## AI's move: ## |...
I made an ai tic tac tow game and it dont make me play
CC BY-SA 4.0
null
2023-03-04T21:54:11.127
2023-03-04T22:13:26.303
2023-03-04T21:58:49.797
20,521,458
20,521,458
[ "python", "game-development" ]
75,638,930
2
null
75,633,662
0
null
I am guessing that the index in `CUDA_AVAILABLE_DEVICES` and the pytorch indexing don't actually correspond to each other i.e. `cuda:0` is the 1st gpu from the available devices in the list `CUDA_AVAILABLE_DEVICES`.
null
CC BY-SA 4.0
null
2023-03-04T21:59:07.760
2023-03-04T21:59:07.760
null
null
1,601,580
null
75,638,909
2
null
68,522,152
0
null
While I do like Barry's approach, I don't like that the solution imposes to be more generic than it actually is (it can't support templates that take any number of template parameters as well as non-type template parameters). Though, one easy way to prevent this is to make the concept customized to just vectors (e.g. `...
null
CC BY-SA 4.0
null
2023-03-04T21:54:50.113
2023-03-04T22:00:20.490
2023-03-04T22:00:20.490
7,107,236
7,107,236
null
75,638,926
2
null
75,626,653
0
null
A few lines above the line ``` df['hitMinValue'] = (df['availableItems'] == df['minItemsRequired']) & (df['filteredItems'] > 0) ``` I had a line the following line: ``` df = another_df.dropna() ... df['hitMinValue'] = (df['availableItems'] == df['minItemsRequired']) & (df['filteredItems'] > 0) ``` It seems that was t...
null
CC BY-SA 4.0
null
2023-03-04T21:57:32.463
2023-03-04T21:57:32.463
null
null
13,005,306
null
75,638,928
1
null
null
0
4
How to enable Pytorch to use GPUs on [GKE Autopilot cluster](https://cloud.google.com/kubernetes-engine/docs/how-to/autopilot-gpus)? I am using the `nvcr.io/nvidia/pytorch:21.10-py3` ([docs](https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel_21-10.html)) image to run a container in a kubernetes p...
Pytorch cannot detect CUDA GPUs on GKE Autopilot Cluster with nvidia-tesla-t4 gpus
CC BY-SA 4.0
null
2023-03-04T21:58:44.903
2023-03-04T21:58:44.903
null
null
20,828,520
[ "installation", "pytorch", "google-kubernetes-engine", "autopilot" ]
75,638,932
1
null
null
-1
10
: [https://app.screencast.com/BxoeHeFjxkNK3](https://app.screencast.com/BxoeHeFjxkNK3) [](https://i.stack.imgur.com/qDS32.png) [MP4 video of the issue occuring](https://hostinger-a9bb9d9276c9.intercom-attachments-3.com/i/o/684295772/1bb81c01edcf5513a28a427d/2032.mp4?expires=1677968580&signature=737e743feef05130595f4a50...
"Security issue found! Please try again later." Wordpress
CC BY-SA 4.0
null
2023-03-04T21:59:49.357
2023-03-04T22:10:02.087
2023-03-04T22:10:02.087
3,536,236
21,333,602
[ "wordpress", "elementor" ]
75,638,935
1
null
null
-4
31
Please I would like to get an idea about how can I save data to a database using c# application using Visual Studio 2022 but I need when I will install this application into another pc both c# and database will be installed I don’t want to use an external data base framework like MySQL or sqlserver because the other pc...
C# application with database
CC BY-SA 4.0
null
2023-03-04T22:00:02.297
2023-03-04T22:00:02.297
null
null
7,087,305
[ "c#" ]
75,638,923
1
75,639,092
null
3
51
I have an overloaded `<<` for an aliased `std::variant` (`A::Var`). I also have a templated function defined in a class in a different namespace `C::Wrapper` which just forwards its argument to an `std::ostream`. I am trying to invoke it from another function defined within a class in `A`, `A::Foo`, but this is giving ...
Trouble with using overloaded << for std::variant
CC BY-SA 4.0
null
2023-03-04T21:57:01.293
2023-03-04T22:42:16.177
2023-03-04T22:42:16.177
65,863
6,222,930
[ "c++", "c++17", "perfect-forwarding", "argument-dependent-lookup" ]
75,638,937
1
null
null
0
16
I am using Mampp and already updated `php.ini` files of Mampp server and PHP versions I have installed on my computer (Mac). Tried with: ``` max_execution_time = 0; ``` or giving a high amount of time: ``` max_execution_time = 3000000; ``` And restarted Apache. I also changed `config.default.php` file from Xampp, and...
Maximum execution time of 300 seconds exceeded when importing a database to phpmyadmin
CC BY-SA 4.0
null
2023-03-04T22:00:37.667
2023-03-04T22:00:37.667
null
null
7,625,837
[ "php", "apache", "phpmyadmin", "xampp" ]
75,638,908
2
null
75,638,370
1
null
With a limited test in ipython using `%%timeit` and sample data only 1000 lines long, #1 does indeed seem to be the fastest, but it is extremely negligible. Using 1,000,000 blank lines, a bigger difference can be seen, with an approach that you did not consider earlier pulling ahead. To determine the relative performa...
null
CC BY-SA 4.0
null
2023-03-04T21:54:39.580
2023-03-04T22:58:04.547
2023-03-04T22:58:04.547
19,070,573
19,070,573
null
75,638,938
2
null
75,638,913
1
null
Your system admin has [blocked executing arbitrary executables](https://www.thewindowsclub.com/how-to-block-exe-files-from-running-using-group-policy-in-windows-11-10). Contact them and explain and they'll either tell you why you cannot execute them, or will add exclusions for you. You can try building it in a differen...
null
CC BY-SA 4.0
null
2023-03-04T22:00:42.807
2023-03-04T22:00:42.807
null
null
13,744
null
75,638,936
2
null
75,636,203
0
null
This is actually a pretty complex page and your attempt is a good one. As a general point, [avoid timeouts](https://stackoverflow.com/a/73676564/6243352). Stick to event-driven code for speed and accuracy. Prefer `waitForSelector`, `waitForXPath` and `waitForFunction`. [Avoid browser-generated paths](https://serpapi.co...
null
CC BY-SA 4.0
null
2023-03-04T22:00:25.900
2023-03-04T22:07:47.700
2023-03-04T22:07:47.700
6,243,352
6,243,352
null
75,638,941
1
null
null
1
13
I have been trying to workout how to access and set/clear IA32_MISC_ENABLE Register bits and in particular Turbo Boost ie: I believe toggling bit 38 of the IA32_MISC_ENABLE Register will turn Turbo Boost off or on. What I can't seem to find is how to access the Register from C#. Sorry I have no Code to post as I don't ...
IA32_MISC_ENABLE Register in C#. How to access
CC BY-SA 4.0
null
2023-03-04T22:01:44.030
2023-03-04T22:01:44.030
null
null
2,747,106
[ "c#", "windows", "cpu-registers" ]
75,638,933
2
null
75,635,991
0
null
You need to consider a couple of things: - There is no need to wait for the [visibility_of_element_located()](https://stackoverflow.com/a/50474905/7429447) in one line and invoke click in the next line.- Generally `<div>` tags aren't clickable, so ideally you should target the decendent `<img>`.- If your usecase is to ...
null
CC BY-SA 4.0
null
2023-03-04T21:59:52.320
2023-03-04T21:59:52.320
null
null
7,429,447
null
75,638,939
2
null
75,607,765
0
null
Alternatively, if you are looking to use the value in mod as the fill color, you can do so by setting the fill value to the column outside of the aes(). In this case you don't get a legend. ``` geneplot <- ggraph(hub_plot1, layout = 'fr') + geom_edge_link(color="darkgrey", aes(alpha = weight), show.legend = F) + ...
null
CC BY-SA 4.0
null
2023-03-04T22:01:26.513
2023-03-04T22:01:26.513
null
null
9,227,264
null
75,638,929
1
null
null
-1
10
When trying to open the swift files of a Flutter plugin project, XCode is claiming I do not have permission to view them: [](https://i.stack.imgur.com/AuH6l.png) > "The file “[YourFile].swift” couldn’t be opened because you don’t have permission to view it. To view or change permissions, select the item in the Finder ...
XCode 14.2 claims "The file “[YourPluginFileName].swift” couldn’t be opened because you don’t have permission to view it
CC BY-SA 4.0
null
2023-03-04T21:58:45.127
2023-03-04T22:15:55.153
2023-03-04T22:15:55.153
5,717,640
5,717,640
[ "xcode", "flutter", "macos", "file-permissions", "flutter-plugin" ]
75,638,944
1
null
null
0
22
I am trying to make a button inside my Login-Page with an IF-Condition when username and password are true it should switch from login view() to ContentView(). But it does not open ContentView(). ``` NavigationStack { NavigationLink(destination: ContentView()) { Button(action: { if name == "U...
NavigationLink with if-condition
CC BY-SA 4.0
null
2023-03-04T22:01:50.113
2023-03-04T22:12:18.333
2023-03-04T22:12:18.333
9,223,839
21,285,777
[ "swift", "swiftui", "conditional-statements", "swiftui-navigationlink" ]
75,638,931
1
null
null
0
23
I'm using Next-auth for sign-in with Google functionality on my Next.js 13 app. I'm using the `signIn()` function [documented here](https://next-auth.js.org/getting-started/client#signin). However when the `signIn()` function is called I'm redirected to http://localhost:3000/api/auth/error which displays a `404` error....
Next Auth: Sign-in function redirects to /api/auth/error
CC BY-SA 4.0
null
2023-03-04T21:59:46.993
2023-03-04T23:38:47.587
null
null
19,019,306
[ "reactjs", "typescript", "next.js", "next-auth" ]
75,638,943
2
null
75,638,900
0
null
By doing `item.innerHTML += string;`, you are recreating all the elements inside `item`, then adding the specified HTML string at the end. Thus `title` does not refer to the `<div>` element in the DOM anymore; that element was essentially destroyed. If you use `append` or `appendChild` instead, this issue will not aris...
null
CC BY-SA 4.0
null
2023-03-04T22:01:49.807
2023-03-04T22:01:49.807
null
null
9,513,184
null
75,638,947
1
null
null
0
7
I have a problem on set query on mongoose schema. Here I have 4 Schemas . 1.Shop Schema. 2.Product Schema. 3.Province Schema. 4.City Schema. Every Shop is related to Province and City. Every shop has some products. Now I want to set query on products. I want to return all products with shop. and shop should contain it'...
How to add Query for mongoose Schema in nested populate?
CC BY-SA 4.0
null
2023-03-04T22:03:08.807
2023-03-05T00:27:27.290
2023-03-04T22:08:21.843
10,844,964
10,844,964
[ "node.js", "express", "mongoose" ]
75,638,949
1
null
null
0
15
I am trying to make a picker and I am trying to format it using the label argument. But no matter what I do it doesn't seem to work. There are no errors. The picker works well but there is no formatting done. I tried using different picker styles but none of them seem to work. I used all of the pickerstyles there are b...
Label argument in PickerStyle not working
CC BY-SA 4.0
null
2023-03-04T22:03:29.963
2023-03-04T22:10:01.657
2023-03-04T22:10:01.657
20,287,183
14,965,459
[ "swiftui", "label" ]
75,638,945
2
null
73,182,474
0
null
Unfortunately this issue is present in UIKit as well. I've managed to find a solution here: [Top Safe Area Constraint Animation](https://stackoverflow.com/questions/51860398/top-safe-area-constraint-animation) The [accepted answer](https://stackoverflow.com/a/51860725) can be applied by setting an instance of UIViewCon...
null
CC BY-SA 4.0
null
2023-03-04T22:02:56.873
2023-03-04T22:02:56.873
null
null
1,608,577
null
75,638,946
1
null
null
0
2
I have a dataset from amazon reviews dataset: meta_Electronics.json.gz The below code is given by instructor: ``` def read_product_description(fname): ''' Load all product descriptions Args: fname: dataset file path Returns: dict: key is asin, value is description content ''' re...
Runtime Error in doc2vec model for a preprocessed dataset
CC BY-SA 4.0
null
2023-03-04T22:03:03.473
2023-03-04T22:03:03.473
null
null
13,107,104
[ "nlp", "word2vec", "doc2vec", "vocabulary" ]
75,638,952
2
null
75,605,231
0
null
Normally x - y = x + (-y) = x + ~y + 1 Documentation says the carry bit is a not borrow, and to set to 1 for a normal subtract, so the carry in is not inverted on this architecture (some architectures the carry bit is a borrow if 1 and is inverted on the way into an sbc). so 0 - 1 = 0 + 0xFE + 1 ``` 1 00000000 + 1111...
null
CC BY-SA 4.0
null
2023-03-04T22:04:15.400
2023-03-04T22:04:15.400
null
null
16,007
null
75,638,950
2
null
75,638,784
0
null
`%file_name%` is a `cmd` variable. You need to use the python variable. You can access the python variable via `f'cmd /c "tshark -i - < {file_name} > {txt_file}"'` (An f string `f"string"`, works like `.format`.) The `system` call does not run in python. It forks (well creates) a new process. After creation, the proces...
null
CC BY-SA 4.0
null
2023-03-04T22:03:47.307
2023-03-04T22:21:33.643
2023-03-04T22:21:33.643
537,980
537,980
null
75,638,956
2
null
75,541,966
-1
null
You want it to be processed immediately when the condition occurs, right? I am having the same problem. Unfortunately, the strategies are waiting for the candle to close.
null
CC BY-SA 4.0
null
2023-03-04T22:05:11.393
2023-03-04T22:05:11.393
null
null
21,314,649
null
75,638,953
1
null
null
0
4
I have a tomcat application with a number of servlets. Each of the general servlets checks whether the application has been setup and if not it does a redirect to contextpath/admin/setup. This works fine when accessing the tomcat instance directly but when its behind apache using proxy pass the redirect goes to /contex...
Tomcat redirect problem with url pattern with sub folder
CC BY-SA 4.0
null
2023-03-04T22:04:47.643
2023-03-04T22:04:47.643
null
null
667,522
[ "apache", "tomcat", "redirect", "proxypass" ]
75,638,954
2
null
45,481,698
0
null
I had a similar issue. Those are the options i tried so far. i personally tend to option 1 and 3. my-constants-file.ts option 1: ``` export const MyConstants = { NEW_VERSION: "2.0.0", OLD_VERSION: "1.1.0" } as const; // makes fields readonly! ``` my-constants-file.ts option 2: ``` export class MyConstants { stat...
null
CC BY-SA 4.0
null
2023-03-04T22:04:49.477
2023-03-04T22:04:49.477
null
null
4,394,435
null
75,638,959
2
null
66,640,158
0
null
If you don't want to use incognito mode, simply allow 3rd party cookies for the site and reload the page.
null
CC BY-SA 4.0
null
2023-03-04T22:05:56.000
2023-03-04T22:05:56.000
null
null
14,897,154
null
75,638,958
2
null
33,535,879
0
null
For someone who’s having issue with ESM & CJS compatibility issue, `tsx` is a great fit. More details about [why](https://blog.liallen.me/run-ts-from-cli).
null
CC BY-SA 4.0
null
2023-03-04T22:05:42.147
2023-03-04T22:05:42.147
null
null
4,360,949
null
75,638,960
2
null
75,634,930
0
null
Consider the following:- ``` db.register(username, email, password) ``` And the actual register function:- ``` fun register(username: String, password: String, email: String) ``` When registering you are storing the email as the password and the password as the email. So So change `db.register(username, email, passwo...
null
CC BY-SA 4.0
null
2023-03-04T22:06:03.623
2023-03-04T22:06:03.623
null
null
4,744,514
null
75,638,955
1
null
null
0
22
I have an excel file from a webbased database that stores bills of materials and it indentures it by an id and a nhaid. Ideally, it would export the data as it's seen in the database, but that's not always the case. I am writing some macros to help with the restructuring of these boms. There's no indenture on these exp...
Restructuring/Sorting Data from Database output
CC BY-SA 4.0
null
2023-03-04T22:05:00.653
2023-03-04T22:05:25.177
2023-03-04T22:05:25.177
8,422,953
8,055,708
[ "excel", "vba" ]
75,638,961
1
null
null
0
3
I need some help and Im tryring to create a Data Entry form inside Google Sheet. I used the sample Data Entry Sidebar available online. I got the option for Document ID, however, Im trying to gather the time and date of the data submitted and whom submitted it. Here's the sample document - [https://docs.google.com/spre...
Data Entry Form Side Bar in Google Sheet - Appscript
CC BY-SA 4.0
null
2023-03-04T22:06:10.737
2023-03-04T22:06:10.737
null
null
21,333,659
[ "forms", "timestamp" ]
75,638,963
2
null
74,554,210
0
null
What you're asking for is called polymorphism (what you expect in attr5 can be of either Foo or Bar type). There is no such feature in marshmallow. You may use [marshmallow-oneofschema](https://pypi.org/project/marshmallow-oneofschema/) for this. ``` class MyUberSchema(OneOfSchema): type_schemas = {"foo": Foo, "bar...
null
CC BY-SA 4.0
null
2023-03-04T22:06:33.827
2023-03-04T22:11:36.327
2023-03-04T22:11:36.327
4,653,485
4,653,485
null
75,638,957
2
null
75,638,900
0
null
Modifying innerHTML causes the content to be re-parsed and DOM nodes to be recreated, losing the handlers you have attached. You should in general avoid working with `.innerHTML` because it's considered dangerous. Here is a [short video](https://www.youtube.com/watch?v=06u4AtF-M04) that shows its dangers. Instead you s...
null
CC BY-SA 4.0
null
2023-03-04T22:05:18.653
2023-03-04T22:11:53.943
2023-03-04T22:11:53.943
6,598,814
6,598,814
null
75,638,962
1
null
null
0
29
I am currently trying to read an HTTP response from a socket in C++, but I lack the problem-solving skills to read the whole response. Think of a socket like a hole in the sky. Occasionally, a few bytes might drop in here and there, but there is nothing we can guarantee with those bytes. To read from the socket, we spe...
How should an HTTP response be parsed by a socket?
CC BY-SA 4.0
null
2023-03-04T22:06:29.733
2023-03-04T22:20:44.970
2023-03-04T22:11:54.883
65,863
11,302,482
[ "c++", "http", "sockets" ]
75,638,951
1
75,639,324
null
0
84
I am currently learning about reading and writing files in C++, I use Visual Studio Code, and I have my set: `"cppStandard": "c++23"`. This program is about reading a file named and the user types a word to see if it appears in the file, counting the number of appearances. ``` #include <iostream> #include <iomanip> ...
Why is my std::string.contains() not working?
CC BY-SA 4.0
null
2023-03-04T22:03:54.897
2023-03-05T01:14:51.773
2023-03-05T01:14:51.773
21,333,618
21,333,618
[ "c++", "c++23" ]
75,638,966
1
null
null
0
5
When I collapse the folders - it's a nice purple, like everything else. [](https://i.stack.imgur.com/93KKB.png) But with files visible, it's like this... [](https://i.stack.imgur.com/U2N0E.png) I tried to find the setting myself, but to no avail:'
Does anybody know how to change this color in the Pycharm theme?
CC BY-SA 4.0
null
2023-03-04T22:07:25.607
2023-03-04T22:07:25.607
null
null
18,165,859
[ "pycharm", "themes", "color-scheme" ]
75,638,964
1
null
null
-2
7
Complete newbie here. Trying to create a react project that uses a json file. I have the file linking and can pull information and load it to my page which is great. The JSON file contains longitude and latitude coordinates. I would like to generate a google maps link using this information if possible. {item.location...
JSON file with longitude latitude in React. Create a map link?
CC BY-SA 4.0
null
2023-03-04T22:06:34.313
2023-03-04T22:06:34.313
null
null
21,333,640
[ "reactjs", "json", "url", "maps" ]
75,638,971
1
null
null
0
10
I have a coordinate (x,y) and a React View, I want to get the RGB/Hex/whatever value at that specific (x,y) is there any way I can do this? I have been doing research but did not find a good way to do this.
React Native get colors at a specific coordinate
CC BY-SA 4.0
null
2023-03-04T22:08:48.443
2023-03-04T22:08:48.443
null
null
20,950,427
[ "react-native" ]
75,638,970
2
null
75,631,138
0
null
No, sadly currently there no such thing. There same issue with tasks, which is discussed [here](https://github.com/dotnet/csharplang/discussions/2793) (or [this one](https://github.com/dotnet/roslyn/issues/45228)), but based on comments it seems that at the moment only task-specific and `async`-`await` case is taken i...
null
CC BY-SA 4.0
null
2023-03-04T22:08:35.427
2023-03-05T02:07:35.160
2023-03-05T02:07:35.160
64,348
2,501,279
null
75,638,973
2
null
71,129,505
0
null
I can't comment, so have to answer to [JeffreyShran](https://stackoverflow.com/users/4373967/jeffreyshran) about how we can be sure about `take` and `skip` taking the same pictures in that block. Here is the check code: ``` dataset = tf.data.Dataset.range(10) take = int(len(dataset)/2) test = dataset.take(take) print(...
null
CC BY-SA 4.0
null
2023-03-04T22:09:20.517
2023-03-04T22:10:04.487
2023-03-04T22:10:04.487
20,059,329
20,059,329
null
75,638,969
2
null
75,638,905
0
null
As you are writing `'o'`, and `'o' != 'O'`, you are not executing the if statement, so it loops until the AI has filled the board. Two suggestions: 1. Inside play_game: if player_symbol == 'O': ... Transform player_symbol to uppercase, or compare with both 'O' and 'o'. (I strongly recommend you transform the character...
null
CC BY-SA 4.0
null
2023-03-04T22:08:10.923
2023-03-04T22:13:26.303
2023-03-04T22:13:26.303
18,475,298
18,475,298
null
75,638,972
1
null
null
0
16
I have this flask code: ``` mytext = """Here's some text and a table. | Name | Age | | --- | --- | | Max | 26 | | Amy | 29 | And here's some more text. """ import markdown mytext = markdown.markdown(mytext) return render_template('my_template.html', mytext=mytext) ``` my_template.html content: ``` <div>{{ chat_respo...
Convert textual table to html table using flask/jinja2/javascript
CC BY-SA 4.0
null
2023-03-04T22:09:00.447
2023-03-04T22:12:08.970
2023-03-04T22:12:08.970
400,617
6,029,757
[ "python", "jinja2", "markdown" ]
75,638,975
1
null
null
-1
12
reference: [https://flet.dev/docs/guides/python/pubsub/](https://flet.dev/docs/guides/python/pubsub/) quote from reference: 1. Flet provides a simple built-in PubSub mechanism for asynchronous communication between page sessions. 2. Flet PubSub allows broadcasting messages to all app sessions or sending only to specif...
How to publish message from server to flet app client?
CC BY-SA 4.0
null
2023-03-04T22:09:43.423
2023-03-04T22:15:45.467
2023-03-04T22:15:45.467
286,934
21,333,633
[ "python", "publish-subscribe", "flet" ]
75,638,977
1
null
null
0
14
I am trying to achieve something as follows: ``` macro(OVERLOAD_TEST par1 par2) message ("Macro with two arguments") endmacro() macro(OVERLOAD_TEST par1 par2 par3) message ("Macro with three arguments") endmacro() ``` And, called the macro like this: ``` OVERLOAD_TEST("A" "B" "C") OVERLOAD_TEST("A" "B") ``` But ...
Does CMake support macro or function overloading?
CC BY-SA 4.0
null
2023-03-04T22:09:48.460
2023-03-04T23:40:32.067
2023-03-04T22:18:47.133
11,107,541
13,863,583
[ "cmake", "macros", "overloading" ]
75,638,948
1
null
null
-5
40
How to automatically go to the second input grid after solving the answer of the first equation, and the equation can be automatically refreshed? The user needs to enter four correct answers to the equation to be verified successfully. If the user cannot solve the answer of any equation, they can click can't solve it, ...
How to make equation can be automatically refreshed?
CC BY-SA 4.0
null
2023-03-04T22:03:21.003
2023-03-04T22:20:20.757
2023-03-04T22:20:20.757
21,148,186
21,148,186
[ "javascript", "html", "css" ]
75,638,974
1
null
null
0
15
I am trying to create a regular expression in Vuelidate and add it to a form with several rules. The documentation does not say exactly how to use some custom rules, and I am using Composition API. I have a field that I need to validate with a regex. `'^([A-ZÑ\x26]{3,4}([0-9]{2})(0[1-9]|1[0-2])(0[1-9]|1[0-9]|2[0-9]|3[0...
Use vuelidate with a regex inside a rule form
CC BY-SA 4.0
null
2023-03-04T22:09:41.920
2023-03-04T22:09:41.920
null
null
13,984,985
[ "javascript", "regex", "vue.js", "vue-component", "vuelidate" ]
75,638,979
1
null
null
0
14
I am creating a CustomThread class, and I am trying to use the attribute "value". But apparently it seems like "value" attribute no longer exists. Any pointers here to solve? [](https://i.stack.imgur.com/tpzUV.png)
'Thread' object has no attribute 'value'
CC BY-SA 4.0
null
2023-03-04T22:10:26.090
2023-03-04T22:18:29.913
null
null
3,603,523
[ "multithreading", "python-multithreading" ]
75,638,981
2
null
75,637,090
0
null
I believe the placeholder for the initial empty selection field was being passed to the "ToStringFunc", so using "user => user.DisplayName" would not work as the first user would be null. To fix this I removed "user => user.DisplayName" and replaced it with a function that checks for null. ``` <MudGrid> <MudIte...
null
CC BY-SA 4.0
null
2023-03-04T22:10:38.910
2023-03-04T22:10:38.910
null
null
6,032,164
null
75,638,982
2
null
75,255,652
0
null
There are some implementations in existing packages that could be inspiring or you could use: - [https://www.npmjs.com/package/@decorators/socket](https://www.npmjs.com/package/@decorators/socket)- [https://github.com/typestack/socket-controllers](https://github.com/typestack/socket-controllers) In you’re implementatio...
null
CC BY-SA 4.0
null
2023-03-04T22:10:44.660
2023-03-04T22:10:44.660
null
null
1,060,921
null
75,638,985
2
null
75,638,855
0
null
First of all it looks you are doing it the wrong way around. From the signature I would expect that the first argument is the document (the haystack) and the second argument is the list of substrings you want to find (the needles). If my assumption is correct, everything simplifies to just filtering the input list via ...
null
CC BY-SA 4.0
null
2023-03-04T22:11:47.670
2023-03-04T22:11:47.670
null
null
2,534,472
null
75,638,983
1
null
null
0
4
.net Framework 4.8 I have an object X whose runtime type is: ``` {Name = "ValueTuple`2" FullName = "System.ValueTuple`2[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]"} ``` In o...
can't cast object to ValueTuple
CC BY-SA 4.0
null
2023-03-04T22:10:45.670
2023-03-04T22:10:45.670
null
null
607,470
[ "casting", ".net-4.8", "valuetuple" ]
75,638,978
2
null
75,637,029
0
null
Here's a regex that will capture the first date in the list of dates (so gives July 26, 2018) for your sample data. It captures the month, date and year in groups 1, 2 and 3 respectively: ``` Published\s+in\s+(?:the\s+)?(January|February|March|April|May|June|July|August|September|October|November|December)\s+(\d{1,2}),...
null
CC BY-SA 4.0
null
2023-03-04T22:10:24.430
2023-03-04T22:10:24.430
null
null
9,473,764
null
75,638,984
2
null
75,634,600
0
null
first you create i `vec` in you `main` method. It will have the lifetime of the brackets surrounding the `main function. ``` fn main { // accounting has a lifetime between these 2 brackets. let mut accounting = vec!["Alice", "Ben"]; } ``` Later you create a new `vec` containing references inside the `loop`. ``...
null
CC BY-SA 4.0
null
2023-03-04T22:11:09.740
2023-03-04T22:11:09.740
null
null
1,840,146
null
75,638,988
2
null
75,638,481
0
null
I tested, it works. The only problem is that you have 2 fields (from 2 separate files) named 'WORD'. How do you want to handle that? Iteration stops when shortest file ends, if files have different length gotta use zip longest and come up with fill in value. ``` """ ASSUMING FILES HAVE THE SAME LENGTH IF NOT THE SAME L...
null
CC BY-SA 4.0
null
2023-03-04T22:11:58.700
2023-03-04T22:26:11.277
2023-03-04T22:26:11.277
19,644,469
19,644,469
null
75,638,990
1
null
null
0
14
I have this implementation of a linked list ``` struct ListNode { value: i32, next: Option<Box<ListNode>>, } struct LinkedList { head: Option<ListNode>, tail: Option<ListNode>, } impl LinkedList { pub fn new() -> Self { LinkedList { head: None, tail: None, } ...
how to resolve mismatched types error for linked list implementation in rust
CC BY-SA 4.0
null
2023-03-04T22:12:25.610
2023-03-04T22:21:39.863
null
null
11,086,815
[ "rust" ]
75,638,967
2
null
32,375,797
0
null
## Short Answer: - `UTF-16`- `UFT-16` ## Long Answer: (Jump to code section directly if you want to bypass this explanation). If we consider `UTF-16` , the [code points](https://www.unicode.org/glossary/#code_point) range from `0x0000` to `0xFFFF` which means a number of code points. The ones supported by `Char`...
null
CC BY-SA 4.0
null
2023-03-04T22:07:39.217
2023-03-05T00:31:33.067
2023-03-05T00:31:33.067
2,002,048
2,002,048
null
75,638,993
1
null
null
0
10
I was wondering if it would be possible to run my Django rest API along side my react app on a custom domain HTTPS server. Currently I have my website on a google cloud VM with a custom domain attached to it via the CloudFlare service. The issue that I am currently facing is that I cannot set the csrftoken cookie on my...
How can I make my Django rest API run along side my react app on a custom domain HTTPS server?
CC BY-SA 4.0
null
2023-03-04T22:13:10.747
2023-03-04T22:13:10.747
null
null
21,333,653
[ "reactjs", "django", "django-rest-framework", "django-csrf", "csrf-token" ]
75,638,986
2
null
32,670,902
0
null
I figured I would show another option just for anyone looking at this. The difference from other options is making use of map(),cloneNode(), textContent (instead of innerHTML), and the spread operator to append the array of nodes to the block div. ``` const div = document.createElement("div"); const blockData = [ ...
null
CC BY-SA 4.0
null
2023-03-04T22:11:52.990
2023-03-04T23:34:39.087
2023-03-04T23:34:39.087
967,786
967,786
null
75,638,996
1
null
null
-1
16
I'm currently exploring Vueuse and its "createGlobalState" function caught my attention. However, I'm unsure of how it compares to Pinia and whether I can use it as a substitute. Has anyone used both Pinia and Vueuse's "createGlobalState" and can provide some insights into the similarities and differences between the t...
How does Vueuse's "createGlobalState" compare to Pinia and can it be used as a substitute?
CC BY-SA 4.0
null
2023-03-04T22:13:35.467
2023-03-04T22:13:35.467
null
null
21,333,649
[ "vue.js", "vuejs3", "pinia", "vueuse" ]
75,638,992
1
null
null
0
15
Trying to set up a google form that will automatically make a calendar entry for a community calendar. Google form questions and how they appear in the related google sheet are 1. Email (column B) 2. eventName (column C) 3. eventDate (column D) 4. startTime (column E) 5. enfTime (column F) 6. eventLocation (column G) ...
Creating a google calendar entry from a google form submission
CC BY-SA 4.0
null
2023-03-04T22:13:01.710
2023-03-05T01:56:42.073
null
null
21,333,515
[ "google-apps-script", "google-sheets", "google-calendar-api", "google-forms" ]
75,638,942
1
null
null
-1
8
When I try to run pip3 install apriltag, my cmd throws an error. I am able to install other py packages, so I'm not sure why this one isn't working. This is the error I get when running the commands: C:\WINDOWS\system32>pip3 install apriltag Collecting apriltag Using cached apriltag-0.0.16.tar.gz (201 kB) Preparing met...
Legacy-Install-Error when installing apriltag
CC BY-SA 4.0
null
2023-03-04T22:01:45.333
2023-03-04T22:01:45.333
null
null
21,333,646
[ "python", "pip", "apriltags" ]
75,638,991
2
null
38,298,645
0
null
As stated in official [documentation](https://docs.docker.com/storage/volumes/#back-up-restore-or-migrate-data-volumes) there is no out of the box single command to backup/restore volume(s). The one should do it on it's own by mounting a volume to some container and packing the content in some suitable way as given by ...
null
CC BY-SA 4.0
null
2023-03-04T22:12:44.357
2023-03-04T22:30:07.240
2023-03-04T22:30:07.240
2,061,081
2,061,081
null
75,638,995
2
null
75,636,898
1
null
The client provided by [https://github.com/hasura/go-graphql-client](https://github.com/hasura/go-graphql-client) has a `WithRequestModifier` method. You could add a request header like so: ``` import ( "net/http" graphql "github.com/hasura/go-graphql-client" ) func gqlInit() { client := graphql.NewClient(...
null
CC BY-SA 4.0
null
2023-03-04T22:13:23.700
2023-03-04T22:13:23.700
null
null
1,333,724
null
75,638,994
1
null
null
0
11
Using OpenCvs Python library I processed a disparity map from [two rectified stereo images](https://cloudstore.zih.tu-dresden.de/index.php/s/zogn55AazXrFRG7). Afterwards I converted that map to 3D points using `cv2.reprojectImageTo3D()` and saved it as .ply. When I'm trying to open the point cloud in e.g. CloudCompare ...
How to fix inf coordinate system of point cloud?
CC BY-SA 4.0
null
2023-03-04T22:13:21.213
2023-03-04T22:13:21.213
null
null
7,435,045
[ "python", "opencv", "point-clouds", "cloudcompare" ]
75,639,002
2
null
75,544,980
0
null
Had the exact same problem recently. You can resolve this by adding `@types/react-native` to your project. Specifically doing `yarn add -D @types/react-native` if you're using Yarn. If you're using `npm install --save @types/react-native` This should address the bummed imports intelligence is recommending.
null
CC BY-SA 4.0
null
2023-03-04T22:14:32.973
2023-03-04T22:14:32.973
null
null
3,866,803
null
75,639,003
2
null
75,638,931
0
null
You should specify the url you want to use in your environment file with `NEXTAUTH_URL` otherwise it will go to your `localhost` by default. Basically it refers to your website's canonical URL
null
CC BY-SA 4.0
null
2023-03-04T22:14:37.343
2023-03-04T22:14:37.343
null
null
13,544,849
null
75,638,998
1
null
null
0
4
I am using a single LSTM model to predict the volume or demand of more than 50 product categories. I have the relevant data and architecture all figured out (although is there are useful references to architecture of similar problems would be great to see - I couldn't find much). The problem I am having is to figure ou...
LSTM to predict volume of 50 product categories - input data question
CC BY-SA 4.0
null
2023-03-04T22:14:05.083
2023-03-04T22:14:05.083
null
null
7,799,908
[ "machine-learning", "deep-learning", "time-series", "lstm" ]
75,639,000
2
null
75,638,495
0
null
If the container is an array, the following will work. ``` // Sort myArray.sort((a, b) => a - b); // To see the output console.log(JSON.stringify(myArray, null, 4)); ``` This assumes that a function is defined to be able to perform the operation `a - b`. The `valueOf` function will perform coersion to type `Number`. ...
null
CC BY-SA 4.0
null
2023-03-04T22:14:13.897
2023-03-04T22:14:13.897
null
null
893,254
null
75,638,997
1
null
null
-2
23
I have a set of dictionaries and trying to create a function, that will add a new column, which will add a new column in each dictionary and calculate an order_delivery_cost weighted by price of the product_id. ``` q = [ {"order_id": 987, "product_id": 4718, "price": 321, "order_delivery_cost": 600}, {"order_id...
Python function that calculates the weighted average amount between the dictionaries
CC BY-SA 4.0
null
2023-03-04T22:13:51.753
2023-03-04T22:57:50.433
2023-03-04T22:43:57.580
19,290,081
21,333,522
[ "python", "pandas", "dataframe" ]
75,638,987
1
null
null
-1
31
I have 2 MySQL tables, namely `posts` and `votes` The table contains articles published by authors (users). The table contains votes against the particular by users. I'd like to get that or been on by the . What MySQL statement should I write to achieve the desired result? contains 4 columns.`post_id` is the p...
SQL - Get all posts which are not voted by current user
CC BY-SA 4.0
null
2023-03-04T22:11:53.723
2023-03-04T23:05:20.120
2023-03-04T23:05:20.120
3,404,097
14,193,006
[ "mysql", "sql", "left-join" ]
75,639,001
1
null
null
0
14
I am running ubuntu 22.04. I have done this: ``` sudo apt-get install libglfw3-dev Reading package lists... Done Building dependency tree... Done Reading state information... Done libglfw3-dev is already the newest version (3.3.6-1). 0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded. ``` In my main CMakeL...
Cmake - cant link library glfw3
CC BY-SA 4.0
null
2023-03-04T22:14:22.437
2023-03-04T22:14:22.437
null
null
2,661,419
[ "c++", "cmake" ]
75,639,007
1
null
null
-1
17
I have an array/list from which I want to randomly form pairs. I found [this question](https://stackoverflow.com/questions/32296266/randomly-pair-items-in-a-list-using-python) that is perfect, except that if there's an odd number in the array, it matches the oddball to "None." Is there a way to form a group of three in...
Random Pairing with Odd Array Size
CC BY-SA 4.0
null
2023-03-04T22:16:00.040
2023-03-05T02:51:30.557
null
null
8,359,914
[ "arrays", "python-3.x" ]
75,639,010
2
null
48,489,285
0
null
I had the same problem,and I discovered was sending a json body from postman while a text option was selected instead of a json.[](https://i.stack.imgur.com/KV8Pw.png)
null
CC BY-SA 4.0
null
2023-03-04T22:16:36.597
2023-03-04T22:16:36.597
null
null
8,966,606
null