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,633,538
1
null
null
0
14
I am using ffmpeg to downsize videos on a website but after downsizing the videos have sound but no video. If I download them to my desktop and play them in VLC Media Player they are fine and have both sound and video. The command I'm using to make the conversion is: ``` ffmpeg -i [path to source video] -vf "scale=-1:1...
Video Converted with ffmpeg is blank in a browser but fine when played on my desktop
CC BY-SA 4.0
null
2023-03-04T03:52:25.950
2023-03-04T03:52:25.950
null
null
7,102,134
[ "ffmpeg" ]
75,633,531
1
null
null
0
19
Using a new machine I setup my environment and code that used to work no longer seems to work. I can't seem to `open()` a connection to my database. ``` Public Shared Function GetDataSet(ByVal CmndText As String, Optional ByVal NoWrite As Boolean = True, ...
ServerVersion threw an exception of type System.InvalidOperationException (vb.net)
CC BY-SA 4.0
null
2023-03-04T03:50:42.377
2023-03-04T03:50:42.377
null
null
14,745,389
[ "asp.net", "vb.net" ]
75,633,543
2
null
74,948,523
0
null
As of lightbulb v2 plugins are no longer classes, so you define them in a more functional manner. Check out the lightbulb [Plugins guide](https://hikari-lightbulb.readthedocs.io/en/latest/guides/plugins.html).
null
CC BY-SA 4.0
null
2023-03-04T03:54:53.647
2023-03-04T03:54:53.647
null
null
11,517,742
null
75,633,540
2
null
16,100,315
0
null
Best way to solve this dependency issue while using enforcer in project, One should add error causing dependency in dependency management i.e pom.xml like in this junit is causing the problem, so picking the higher version and add as dependency in pom.xml ``` <dependency><groupId>junit_or_group_id_error_causing_depende...
null
CC BY-SA 4.0
null
2023-03-04T03:53:28.307
2023-03-04T03:53:28.307
null
null
4,976,790
null
75,633,541
1
75,633,805
null
2
78
I'm a new hand of C++. When I read source code of node.js, I saw these code: ``` struct StartExecutionCallbackInfo { v8::Local<v8::Object> process_object; v8::Local<v8::Function> native_require; }; using StartExecutionCallback = std::function<v8::MaybeLocal<v8::Value>(const StartExecutionCallbackInfo&)>; Load...
what's the meaning of "std::function<void(int)>{}"
CC BY-SA 4.0
null
2023-03-04T03:53:54.643
2023-03-04T05:50:58.437
2023-03-04T05:23:05.417
18,519,921
1,209,347
[ "c++", "std-function" ]
75,633,546
2
null
74,748,452
0
null
After `npm install glob-parent@6.0.1`, if `"glob-parent": "^6.0.1"` is in your projects `package.json`; you can add a section below the dependency sections that contain the plugin depending on the lower version in `npm audit` called "overrides" like such: ``` "dependencies": { ... }, "devDependencies": { "@babel/...
null
CC BY-SA 4.0
null
2023-03-04T03:56:31.613
2023-03-04T03:56:31.613
null
null
16,466,281
null
75,633,548
2
null
20,086,849
0
null
New answer to old question. Since Node 10 (April 2018) ReadableStreams such as process.stdin support for-await-of loops thanks to the addition of a `Symbol.asyncIterator` method ([ReadableStream documentation](https://nodejs.org/api/stream.html#readablesymbolasynciterator), [Symbol.asyncIterator documentation](https://...
null
CC BY-SA 4.0
null
2023-03-04T03:58:07.933
2023-03-04T04:03:35.997
2023-03-04T04:03:35.997
4,992,717
4,992,717
null
75,633,547
2
null
75,633,111
1
null
Your code relies on the file assets/log.ass which you did not supply. This means I cannot test it but this compiles without warning with `gcc 1.c -lcurses`. It checks the return value for `fopen()`, and more importantly changes the type of the variable for the return value of `fgetc()` to an `int` and checks it for E...
null
CC BY-SA 4.0
null
2023-03-04T03:57:45.650
2023-03-04T19:25:24.950
2023-03-04T19:25:24.950
9,706
9,706
null
75,633,533
1
null
null
1
25
I have a YAML file as ``` # This is the group manages the permissions group: - state: present group: name: "Developers" description: "The development team" userNames: - userl1 # <user1Name> - <User1email> - userd2 # <user2Name> - <User2email> - userr1 # <user3Name> - <User3email> ...
How to add a new element to a sequence with a EOL comment
CC BY-SA 4.0
null
2023-03-04T03:50:46.963
2023-03-04T15:14:48.277
2023-03-04T12:27:39.423
17,434,248
17,434,248
[ "python", "yaml", "pyyaml", "ordereddictionary", "ruamel.yaml" ]
75,633,550
1
null
null
1
41
I have a path, such as `D:\repos\my-repo\some\script\path.ps1`, and I want to get the path just up to the repo name: `D:\repos\my-repo`. What's the best way to accomplish this? Here's what I've got right now: ``` $fullPath = $MyInvocation.MyCommand.Path # D:\repos\my-repo\some\script\path.ps1 "{0}my-repo" -f [regex]::S...
How to get the full file path up to a specific directory in the path?
CC BY-SA 4.0
null
2023-03-04T03:58:18.607
2023-03-04T06:36:13.263
null
null
7,771,746
[ "powershell" ]
75,633,549
2
null
75,633,456
1
null
I dont have the images so i am just giving an abbreviation. From the question i got to know that you want to center the logo in the navbar. for this you can use a css property called flexbox. add css property to the parent class like- ``` .container-fluid{ display:flex; //css property for alignments justify-content:spa...
null
CC BY-SA 4.0
null
2023-03-04T03:58:16.100
2023-03-04T09:44:01.763
2023-03-04T09:44:01.763
17,085,751
17,085,751
null
75,633,552
1
null
null
0
9
Here is my logic: Given a project and a list of recommendations. Rule1: For each recommendation, if it will incur any cost, add the recommendation into the project costList. Rule2: If the project costList is not empty, do X ``` rule "Rule 1" salience -1 when $rec: Recommendation() $project: Project($costList: c...
Drools how to update object while avoiding infinite loop
CC BY-SA 4.0
null
2023-03-04T03:58:19.563
2023-03-04T22:55:58.567
null
null
5,777,189
[ "drools" ]
75,633,556
1
null
null
0
18
I am constantly getting a runtime error when trying to bind this database to my app. I have tried different ways to solve this error but I am constantly getting the same runtime error. ``` from datetime import date from flask import Flask, render_template, url_for from flask_sqlalchemy import SQLAlchemy from flask_log...
RuntimeError: Either 'SQLALCHEMY_DATABASE_URI' or 'SQLALCHEMY_BINDS' must be set
CC BY-SA 4.0
null
2023-03-04T03:58:35.950
2023-03-04T07:09:38.640
null
null
21,329,557
[ "python", "database", "sqlite" ]
75,633,553
2
null
75,633,480
1
null
> Will Box a and b get dropped after this `drop`? Does my drop implementation overwrites the default impl for drop? Rust's drop glue will ensure that the fields of `Foo` are dropped in the order they are declared, your custom drop implementation. So, in this case, when a `Foo` gets dropped: - `<Foo as Drop>::drop()``...
null
CC BY-SA 4.0
null
2023-03-04T03:58:19.903
2023-03-04T19:01:28.710
2023-03-04T19:01:28.710
501,250
501,250
null
75,633,557
1
null
null
-4
17
[9:10 am, 04/03/2023] Shajid: i am facing an issue related to mongodb please can you help me [9:11 am, 04/03/2023] Shajid: i am fetchting data from find method [9:12 am, 04/03/2023] Shajid: i got data but also my nodemon crashes with this error please kindly see images[controller](https://i.stack.imgur.com/0uK6Y.png) [...
mongodb error: i am fetchting data from find method: i got data but also my nodemon crashes with eroor
CC BY-SA 4.0
null
2023-03-04T03:58:48.480
2023-03-04T03:58:48.480
null
null
13,407,609
[ "node.js", "mongodb", "mongoose", "mongodb-query", "mongoose-schema" ]
75,633,560
1
null
null
0
11
we have a ghost program Dell Command Update that is not uninstalling properly with WMI it keeps returning the result code of --> I try to run PowerShell and cmd as admin by right-clicking the program and entering my admin credentials. the program does not exist under the control panel and looks to be an older version ...
unable to uninstall ghost program via wmi on powershell or cmd
CC BY-SA 4.0
null
2023-03-04T03:59:12.920
2023-03-04T03:59:12.920
null
null
5,425,457
[ "windows", "powershell", "wmi", "wmic" ]
75,633,554
2
null
75,632,819
0
null
`MS Graph API` uses the endpoint `https://graph.microsoft.com`. The `azure.graphrbac` package uses the legacy (soon to be deprecated) `Azure AD Graph API`, which uses the endpoint `https://graph.windows.net`. This package doesn't support the use of `MS Graph API`. If you want to continue using this package: - `resource...
null
CC BY-SA 4.0
null
2023-03-04T03:58:25.060
2023-03-04T07:23:34.497
2023-03-04T07:23:34.497
18,748,575
18,748,575
null
75,633,555
1
null
null
0
11
When user Login it will check the user roles. User has assigned specific role for each dashboard. if he assigned the roles only then he can access otherwise he can't. Help me to find the solutions. Thanks Example: he can redirect on Admin Dashboard or User Dashboard, or Client Dashboard, AppRouting.component.ts ``` con...
How to restricted component based on user roles? Angular
CC BY-SA 4.0
null
2023-03-04T03:58:29.967
2023-03-04T07:02:42.320
null
null
9,586,296
[ "angular", "authentication" ]
75,633,562
1
null
null
0
13
Here's a route configuration file route.gen.tsx: ``` import app from "./pages/_app"; export const routes = [ { element: <App />, children: [...config, { path: "*", element: <NoMatch /> }], }, ]; export const { Link, Navigate } = components<Path, Params>(); export const { useNavigate, useParams } = hooks<Path, Params>(...
How to solve circular dependencies in a routing scenario?
CC BY-SA 4.0
null
2023-03-04T03:59:48.157
2023-03-04T03:59:48.157
null
null
7,955,096
[ "reactjs", "module", "react-router" ]
75,633,566
2
null
29,303,783
0
null
I run this command in terminal ``` php artisan make:auth ``` Then it's solved
null
CC BY-SA 4.0
null
2023-03-04T04:00:36.870
2023-03-04T04:00:36.870
null
null
6,713,865
null
75,633,567
1
null
null
-1
8
I have installed latest version of duckduckgo on my samsung s20 device. Almost things work fine. But it did not remember my visited sites. For example I open a tab then go to `abcxyz.com`, then I open another tab and try to type `abc`, I expect it recommend my visited site, but it didn't. Also tried `google.com`, `face...
duckduckgo on android didn't remember visited urls
CC BY-SA 4.0
null
2023-03-04T04:00:51.520
2023-03-04T04:00:51.520
null
null
10,870,817
[ "duckduckgo" ]
75,633,558
2
null
75,622,630
0
null
Potentially the core problem is that you create an `<svg>` in `tooltip_template` but then you never assign any dimensions to it (e.g. `height` and `width`). There are some additional adjustments you can make: - `<div>`- `<template>`[here](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template)`<tr>`- `<tr>`...
null
CC BY-SA 4.0
null
2023-03-04T03:59:00.347
2023-03-04T04:04:11.240
2023-03-04T04:04:11.240
765,395
765,395
null
75,633,569
1
null
null
0
23
I have to write an algorithm that will compute the sum of `a + a r + a r**2 + ... + a r**(n-1)` recursively. I am very new to recursion and am having trouble wrapping my head around using three different variables while only using one recursively. Any help is greatly appreciated. wrote this but computes a wrong answer....
Geometric series sum recursively in Python
CC BY-SA 4.0
null
2023-03-04T04:01:06.730
2023-03-04T13:10:37.140
2023-03-04T09:18:52.960
3,080,723
21,329,649
[ "python", "recursion" ]
75,633,536
1
null
null
0
8
Situation: I am trying to reload to the same screen screen with some selected values that I have selected first time and the second time some values would be fetched from database using previously selected values. I am using Stack Navigator as my Apps navigator. My problem is when my code works perfectly for the first ...
Is there any way to not push React Component into the stack when using Stack Navigator?
CC BY-SA 4.0
null
2023-03-04T03:52:10.963
2023-03-04T03:52:10.963
null
null
10,632,196
[ "reactjs", "react-native" ]
75,633,564
1
75,633,653
null
0
29
Say I have: [](https://i.stack.imgur.com/S7IlK.png) But on a separate worksheet I would like to generate a new table of the following data of totals: [](https://i.stack.imgur.com/KPFms.png) I am stumped as to how to have this using as few formulas as possible - I don't want to copy paste the same formula among the rows...
Google sheets dynamically build an array from another
CC BY-SA 4.0
null
2023-03-04T04:00:03.170
2023-03-04T13:39:23.393
2023-03-04T13:12:59.883
1,527,780
2,122,995
[ "google-sheets", "google-sheets-formula" ]
75,633,570
1
null
null
0
20
How can I check to see if user input is equal to a particular value in of a row in Pandas? The dataframe is from a CSV file. pyquiz.csv : ``` variables,statements,true or false f1,f_state1, F t4, t_state4,T f3, f_state2, F f20, f_state20, F t3, t_state3, T ``` I'm trying to accomplish something like this: ``` df = pd....
check if input is equal to a value in a pandas column
CC BY-SA 4.0
null
2023-03-04T04:01:09.907
2023-03-04T06:16:01.873
null
null
18,956,922
[ "python", "pandas", "dataframe" ]
75,633,571
1
null
null
0
29
This is what I have so far. I don't know what the error means or what I should do to fix it. ``` module gen_alu #( parameter N = 8 ) ( input logic [N-1:0] a, b, input logic [1:0] f, output logic [N-1:0] s, output logic co ); logic [N:0] c; assign c[0] = f[0]; assign co ...
Is there something wrong with my verilog code?
CC BY-SA 4.0
null
2023-03-04T04:01:34.623
2023-03-04T04:23:49.697
null
null
21,329,662
[ "verilog" ]
75,633,559
1
null
null
0
20
I have data in the format below. ``` let T = datatable(OperationName:string, Result:string) [ "Method1" , "success", "Method1" , "failure", "Method1" , "success", "Method1" , "success", "Method1" , "success", "Method1" , "failure", "Method2" , "success", "Method2" , "failure", "Method2" , "fa...
How to transform results (rows to columns) in KQL
CC BY-SA 4.0
null
2023-03-04T03:59:00.973
2023-03-04T11:48:19.460
2023-03-04T11:45:32.817
6,336,479
6,150,564
[ "azure-data-explorer", "kql" ]
75,633,574
1
null
null
0
16
I can't find this answer anywhere on the internet....can you help? Trying to edit files with vi on Ubuntu. vi mapped to vim, apprently. I type: vi vim opens the help. I close help with: :q vim opens help again on it's own, 3 second later the pattern repeats to infinity. How do I stop this help from opening automagical...
how to stop the vim editor from repeatedly opening the Help window?
CC BY-SA 4.0
null
2023-03-04T04:02:42.763
2023-03-04T04:02:42.763
null
null
21,329,671
[ "vim" ]
75,633,573
1
null
null
0
40
I have a list of 1,500+ terms that can be multiple words long `"apple", "apple banana"`. I want to search an input text of moderate length string (~500-1000) words for the indices of these words. This is my current approach: ``` TERMS = ['apple', 'apple banana'] def find_indices(description): pattern = re.compile...
Searching a string for a large list of terms
CC BY-SA 4.0
null
2023-03-04T04:02:34.820
2023-03-04T08:17:47.993
2023-03-04T04:04:41.593
21,038,877
21,038,877
[ "python", "regex", "string" ]
75,633,572
1
75,633,659
null
0
87
I have two questions about the following program: 1. In function, is it bad practice to initialize a pointer to nullptr (MyClass* mcPtr = nullptr;) and then allocate memory to it later in an if-else branch like this? Am I re-allocating in this case? 2. The syntax of the new during dynamic memory allocation: where is t...
Is it bad practice to initialize a pointer to nullptr, and then allocate memory to it later based on if conditions?
CC BY-SA 4.0
null
2023-03-04T04:02:13.147
2023-03-04T14:33:50.800
2023-03-04T05:09:23.683
65,863
1,008,636
[ "c++" ]
75,633,563
1
null
null
3
31
I have a program that streams large amounts of data I need to save for later processing. This program is highly time sensitive, and as such I need to save the data as quickly as possible. To handle large volumes of data, I use `h5py` and do not use compression to ensure we take as little time as possible to save the da...
How to compress existing h5py file efficiently using multiprocessing
CC BY-SA 4.0
null
2023-03-04T03:59:53.007
2023-03-04T17:40:28.490
2023-03-04T17:40:28.490
10,462,884
9,957,175
[ "python", "multiprocessing", "hdf5", "h5py" ]
75,633,561
1
null
null
0
9
Note that I am trying to build this locally with docker desktop and not in Azure CI/CD pipeline. I have started this process using [https://github.com/microsoft/artifacts-credprovider](https://github.com/microsoft/artifacts-credprovider) which also didn't work and later found out new dotnet restore can do it's job. So,...
.Net 6 docker build fails with "error NU1301: Unable to load the service index for source" when trying to access azure artifacts
CC BY-SA 4.0
null
2023-03-04T03:59:44.913
2023-03-04T03:59:44.913
null
null
2,058,413
[ ".net-6.0", "docker-build" ]
75,633,577
2
null
68,318,789
0
null
``` Minor changes to Promised based dynamic routes can resolve the issue. ``` Webpack Module Federation Reference: [https://webpack.js.org/concepts/module-federation/#promise-based-dynamic-remotes](https://webpack.js.org/concepts/module-federation/#promise-based-dynamic-remotes) ``` 1. Add a reject to the promise call...
null
CC BY-SA 4.0
null
2023-03-04T04:03:59.913
2023-03-04T04:42:53.053
2023-03-04T04:42:53.053
21,329,651
21,329,651
null
75,633,579
1
null
null
0
10
I am running my k8s cluster on Azure Kubernetes Service. Recently I faced an Issue where one of my Pods was killed by Kubernetes because it breached memory (my assumption). I am trying to find an entry in AzureDiagnostics or in any other table to what caused the Pod killing/crash. I have tried many KQL queries, but do ...
Azure Kubernetes Service - Find Logs for Pods Killed for OOM
CC BY-SA 4.0
null
2023-03-04T04:05:31.613
2023-03-04T04:05:31.613
null
null
1,315,772
[ "azure", "kubernetes", "azure-aks", "azure-diagnostics", "oom" ]
75,633,580
2
null
68,626,017
0
null
If you're using 'docker volumes', you are likely using the same volume in another project (at least I was), and the database already exists. Renaming the volume fixed the issue for me: ``` volumes: volume_name: # <- Rename "volume_name" name: volume_name # ...
null
CC BY-SA 4.0
null
2023-03-04T04:05:41.540
2023-03-04T04:05:41.540
null
null
17,461,445
null
75,633,582
2
null
75,633,453
0
null
Remove the "name" attribute from your Submit button. Elements with a name will be included when submitting a form. See here: [https://www.w3schools.com/tags/att_input_name.asp](https://www.w3schools.com/tags/att_input_name.asp) Adding additional information based on comments. Typically, you would use POST if you need t...
null
CC BY-SA 4.0
null
2023-03-04T04:05:55.780
2023-03-04T04:36:28.217
2023-03-04T04:36:28.217
1,318,162
1,318,162
null
75,633,576
1
null
null
0
16
I have learned how make it so with REACT Router you can click a button and go to a different page. I also just learned how to implement React-scroll where you can scroll down page to page. Is there any way to make it so when you have React-scroll you can still click on a button that will send you to that section of the...
Having trouble getting react-scroll to work while simultaneously having links that go to each section of the page
CC BY-SA 4.0
null
2023-03-04T04:03:42.457
2023-03-04T04:59:46.320
2023-03-04T04:59:46.320
8,690,857
20,451,674
[ "reactjs", "react-scroll" ]
75,633,583
2
null
75,633,381
3
null
from `?pmap` > `pmap(.l, .f, ..., .progress = FALSE)` > `.l` => A list of vectors. The length of .l determines the number of arguments that .f will be called with. Arguments will be supplied by position if unnamed, and by name, if named. Either use an anonymous function to supply arguments to `make_chart` by name from ...
null
CC BY-SA 4.0
null
2023-03-04T04:06:16.663
2023-03-04T04:18:01.750
2023-03-04T04:18:01.750
10,858,321
10,858,321
null
75,633,584
1
null
null
-1
12
I am trying to fill a form from an external program using VBA code and microsoft spy++ tool and WinAPI, however I reach a point where I can't identify the correct texbox to send the text I need, since the texboxes have the same name class. I have this code which sends the text string but I can't get it to send the foll...
VBA Send WM_SETTEXT no subwin but same class name
CC BY-SA 4.0
null
2023-03-04T04:06:36.880
2023-03-04T11:22:48.123
2023-03-04T11:22:48.123
286,934
8,402,388
[ "vba", "vba7" ]
75,633,585
1
null
null
0
16
I have python 3.9.6. `Pip install, python3 pip install` none of these is able to install forexconnect([https://github.com/gehtsoft/forex-connect](https://github.com/gehtsoft/forex-connect)) package ``` $ python3 -m pip install forexconnect ERROR: Could not find a version that satisfies the requirement forexconnect (fr...
unable to install forexconnect python package
CC BY-SA 4.0
null
2023-03-04T04:06:55.127
2023-03-04T04:16:42.760
null
null
5,366,075
[ "python", "pip" ]
75,633,589
2
null
75,633,516
0
null
The `Key` class is used to uniquely identify a widget in the widget tree. The `ValueKey` subclass of `Key` is used when the key needs to be based on the value of an object rather than the object identity itself. In general, it is recommended to use `ValueKey` when the key needs to be based on the value of an object. Th...
null
CC BY-SA 4.0
null
2023-03-04T04:08:10.693
2023-03-04T04:08:10.693
null
null
12,277,290
null
75,633,587
1
null
null
0
50
I have created a project using a console application in C# with .NET Framework, and I would like to integrate ASP.NET MVC into this project. While I understand that there is a .NET Core console application with MVC, I am building a project that is only supported by Windows and I want to build a self-hosted application....
C# : is it possible to run .NET Framework console application together with ASP.NET MVC?
CC BY-SA 4.0
null
2023-03-04T04:07:22.430
2023-03-04T06:12:27.337
2023-03-04T06:12:27.337
13,302
19,561,210
[ "c#", ".net-4.8" ]
75,633,588
2
null
75,622,783
0
null
For Questions 1 and 3, see: [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive) - - - For question 2, see: [HTTP Keep Alive and TCP keep alive](https://stackoverflow.com/questions/9334401/http-keep-alive-and-tcp-keep-alive/1660780...
null
CC BY-SA 4.0
null
2023-03-04T04:07:30.260
2023-03-04T04:07:30.260
null
null
5,820,440
null
75,633,590
1
null
null
-1
23
Is there any way to run exe with inputs in Python? For example, there are two files, aaa.exe and bbb.dat. To run the analysis, I need to put those two files on DOS prompt like below. aaa.exe read the bbb.dat file. It there any command or workaround for this? I tried os.system and subprocess but I could not find a solut...
Execute exe which needs input file in Python
CC BY-SA 4.0
null
2023-03-04T04:08:10.777
2023-03-04T11:46:49.993
2023-03-04T11:46:49.993
286,934
21,329,659
[ "python", "subprocess", "os.system" ]
75,633,575
1
null
null
0
11
I am attempting to run instructure’s canvas-lms through GitHub codespace and am encountering the following issue. I am using the free 4 core plan. The repository and instructions for the codespace setupcan be found [here](https://github.com/instructure/canvas-lms/wiki/Quick-Start). Has anyone run into this issue after ...
Error when trying to run forked canvas-lms in GitHub Codespace: TypeError: Post is not a class
CC BY-SA 4.0
null
2023-03-04T04:03:38.677
2023-03-05T05:56:48.930
2023-03-05T05:56:48.930
2,483,313
21,322,854
[ "ruby-on-rails", "ruby", "rubygems", "canvas-lms", "codespaces" ]
75,633,591
2
null
75,632,946
0
null
The `maxSdkVersion` attribute which you have given in the manifest file will not provide the permission level above 29. So, for that you need to remove it and make a small change in that: `<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />`
null
CC BY-SA 4.0
null
2023-03-04T04:08:19.727
2023-03-04T04:08:19.727
null
null
21,301,929
null
75,633,581
1
null
null
0
29
I have a site with a service worker (mainly for the purpose of offline function of PWA). The service worker's sole purpose is to listen to fetch events from the page, cache or retrieve from the cache, and then respond. Unfortunately, because I wanted a request for a specific file extension to be treated differently, I ...
How do I get my service worker to properly cache something?
CC BY-SA 4.0
null
2023-03-04T04:05:51.910
2023-03-04T19:50:46.590
2023-03-04T04:25:17.997
20,897,575
20,897,575
[ "javascript", "service-worker" ]
75,633,586
1
75,633,598
null
0
57
This is my example data. I want to group the data by and count which month has the most data and return 1 data per month which is the most appliancesType and count. ``` appliances:[ { "appliancesType": "Oven", "createdAt": "2022-09-06" }, { "appliancesType": "Oven", "createdAt"...
How to group and sort array of data by their specific field
CC BY-SA 4.0
null
2023-03-04T04:07:07.663
2023-03-04T14:59:33.800
2023-03-04T04:37:58.217
21,329,652
21,329,652
[ "javascript", "algorithm", "sorting" ]
75,633,578
1
75,634,567
null
0
28
my data file contains column values that include commas ``` teledyne.com', 'Teledyne Technologies is a leading provider of sophisticated electronic components, instruments & communications products, including defense electronics, data acquisition & communications equipment for airlines and business aircraft, monitoring...
commas within a field in a file using pyspark
CC BY-SA 4.0
null
2023-03-04T04:04:03.137
2023-03-04T09:43:00.573
2023-03-04T09:43:00.573
11,841,571
16,934,587
[ "python", "pyspark", "pyspark-schema" ]
75,633,594
2
null
4,676,459
0
null
If the texts are output of a command, such as `ls`, you can use `cat`. When the noclobber is set: ``` ls | cat>| TheAccount.txt ``` Otherwise, you can combine force deletion (whether the file exist or not) and `ls` command: ``` file=TheAccount.txt && rm -f $file && ls | cat > $file ```
null
CC BY-SA 4.0
null
2023-03-04T04:09:40.477
2023-03-04T04:09:40.477
null
null
875,170
null
75,633,595
2
null
72,753,116
0
null
You have to install the LBS module, since the script uses it to display messages, as mentioned in the documentation of `/opt/lamp/bin/mysql.server` line 93 ``` # Use LSB init script functions for printing # messages, if possible ```
null
CC BY-SA 4.0
null
2023-03-04T04:10:19.490
2023-03-04T04:42:21.573
2023-03-04T04:42:21.573
1,235,698
21,329,695
null
75,633,593
2
null
75,633,550
0
null
Don't see what's inefficient about what you currently have but here are 2 different ways you could accomplish the same. ``` $path = 'D:\repos\my-repo\some\script\path.ps1' $path -replace '(?<=my-repo)\\.*' ``` Details on: [https://regex101.com/r/ZkdlCR/1](https://regex101.com/r/ZkdlCR/1) ``` $path = 'D:\repos\my-repo\...
null
CC BY-SA 4.0
null
2023-03-04T04:09:33.737
2023-03-04T04:30:23.660
2023-03-04T04:30:23.660
15,339,544
15,339,544
null
75,633,592
1
null
null
0
25
I try to read a txt file in windows and appear an Error warning : ``` machine_delim <- read.delim("C:/KOMSTAT/mini project/machine.txt", header = TRUE, sep = "\t") Error in make.names(col.names, unique = TRUE) : invalid multibyte string at '<ff><fe>N' In addition: Warning messages: 1: In read.table(file = file, he...
How do I fix this error while read a txt file
CC BY-SA 4.0
null
2023-03-04T04:08:50.423
2023-03-04T07:31:39.453
2023-03-04T07:31:39.453
5,221,626
18,972,364
[ "r" ]
75,633,599
1
null
null
-3
67
Consider code: ``` #include <boost/json.hpp> #include <boost/filesystem.hpp> int main() { return 0; } ``` When compiled with option `/Za` (which disables language extensions - in Visual Studio, this option is under `Project->Properties->Configuration Properties->C/C++->Language`), gives rise to an error: ``` Erro...
Disabling language extension gives illegal declaration of anonymous struct error
CC BY-SA 4.0
null
2023-03-04T04:13:20.903
2023-03-04T05:05:27.397
2023-03-04T05:05:27.397
65,863
492,307
[ "c++", "visual-c++", "boost", "visual-c++-2019" ]
75,633,597
2
null
75,632,703
0
null
You can use in this way : ``` export function CreateReport(filteredArray) { const columns = [ { id: "name", displayName: "Name" }, { id: "email", displayName: "Email" }, { id: "skills", displayName: "Skills", transform: (value) => value.join(", ") // join array values with a comma } ...
null
CC BY-SA 4.0
null
2023-03-04T04:12:23.130
2023-03-04T04:12:23.130
null
null
18,431,570
null
75,633,605
2
null
69,160,914
0
null
model.predict_on_batch will solve your problem.
null
CC BY-SA 4.0
null
2023-03-04T04:15:53.857
2023-03-04T04:15:53.857
null
null
21,329,714
null
75,633,598
2
null
75,633,586
1
null
``` const results = {}; data.appliances.forEach(appliance => { const monthYear = appliance.createdAt.substr(0, 7); results[monthYear] = results[monthYear] || {}; results[monthYear][appliance.appliancesType] = (results[monthYear][appliance.appliancesType] || 0) + 1; }); const finalResults = []; for (const month...
null
CC BY-SA 4.0
null
2023-03-04T04:13:16.867
2023-03-04T04:44:46.620
2023-03-04T04:44:46.620
11,438,227
11,438,227
null
75,633,601
1
75,633,617
null
-1
27
Apologies for the title. I don't know how to word this question properly because I have trouble finding what this is called. Please allow me to ask this question using examples instead... Basically I want to turn this: ``` struct MyTextField: View { var body: some View { VStack(alignment: .leading) { ...
SwiftUI how do I use .textFieldStyle(.myTextFieldStyle) instead of textFieldStyle(MyTextFieldStyle())
CC BY-SA 4.0
null
2023-03-04T04:14:11.117
2023-03-04T06:48:50.560
2023-03-04T06:48:50.560
13,286,319
13,286,319
[ "swiftui" ]
75,633,607
1
null
null
-3
13
I am very new to Java and are just trying out some practice problems to test things out. The overall goal of this program is to compute the given sales tax when inputed and then use that sales tax to convert the subtotal into the grand total. When trying to run the program the salestax variable is not being seen as ini...
Exception in thread "main". Uncompilable code - variable "___" might not have been initialized
CC BY-SA 4.0
null
2023-03-04T04:16:05.873
2023-03-04T04:19:59.420
2023-03-04T04:19:59.420
522,444
21,329,691
[ "java", "variables", "compiler-errors" ]
75,633,604
1
null
null
0
12
I get an Ajax post error and I get an error like this in my console ``` Uncaught TypeError: Illegal invocation at i (jquery.min.js:2:73313) at Dt (jquery.min.js:2:73205) at S.param (jquery.min.js:2:73524) at Function.ajax (jquery.min.js:2:76904) at HTMLFormElement.<anonymous> ((index):225:15) at...
I want to send post with ajax in php code block but I get error
CC BY-SA 4.0
null
2023-03-04T04:15:46.540
2023-03-04T04:15:46.540
null
null
21,329,693
[ "javascript", "ajax" ]
75,633,610
2
null
75,633,587
-3
null
There is a pattern called (Model View View-Model) which is similar to MVC. You can search WPF with MVVM.
null
CC BY-SA 4.0
null
2023-03-04T04:17:47.360
2023-03-04T04:17:47.360
null
null
20,444,847
null
75,633,608
2
null
75,633,585
0
null
It looks like there aren't any [files on PyPI](https://pypi.org/project/forexconnect/#files) for `forexconnect` for Python versions above 3.7, except for a single wheel for 3.10 on macOS/ARM64. A look at their [website](http://www.fxcodebase.com/wiki/index.php/Category:ForexConnect) confirms that. Since this appears to...
null
CC BY-SA 4.0
null
2023-03-04T04:16:42.760
2023-03-04T04:16:42.760
null
null
1,426,065
null
75,633,612
2
null
75,527,974
1
null
Just got off a phone call with an Anaconda representative to try to solve this issue and it seems like they do not have any current support for M2 Macs and told me that I had to settle with using anaconda through the terminal until they do support this new chip.
null
CC BY-SA 4.0
null
2023-03-04T04:18:22.783
2023-03-04T04:18:22.783
null
null
11,815,969
null
75,633,596
1
null
null
0
13
Trying to set dark theme in Angular Material v15 - ``` @use '@angular/material' as mat; @include mat.core(); @import 'bluegrey-palette'; $light-theme: mat.define-light-theme(( color: ( primary: $primary, accent: $accent, warn: $warn ) )); $dark-theme: mat.define-dark-theme(( color: ( primary: ...
Angular Material v15 Dark/Light Theme
CC BY-SA 4.0
null
2023-03-04T04:11:13.393
2023-03-04T04:11:13.393
null
null
13,662,339
[ "javascript", "css", "angular", "sass" ]
75,633,609
2
null
75,631,700
0
null
"" You have a spreadsheet with three sheets, each sheet linked to a Google Form. You have three `onFormSubmit` triggers which means that you must have three separate functions - one for each sheet/form. Your problem is that when a form submission is received, all three functions are triggered. You should have only `on...
null
CC BY-SA 4.0
null
2023-03-04T04:17:10.377
2023-03-04T04:17:10.377
null
null
1,330,560
null
75,633,600
1
null
null
0
16
``` File "C:\Users\Tibame_EX14\.spyder-py3\GPU\UsingTensorflowBasic.py", line 18, in <module> from tensorflow.keras.callbacks import TensorBoard File "C:\Users\Tibame_EX14\anaconda3\lib\site-packages\keras\api\_v2\keras\__init__.py", line 12, in <module> from keras import __version__ File "C:\Users\Tibam...
spyder python3.9 tensorflow 2.6(support gpu) from tensorflow.compat.v2.experimental import dtensor as dtensor_api erro
CC BY-SA 4.0
null
2023-03-04T04:13:40.867
2023-03-04T07:21:22.540
null
null
21,329,654
[ "python", "tensorflow" ]
75,633,616
1
null
null
-4
14
I want to learn matlab!! i want to make A.I models with matlab
What is the best course of Matlab?
CC BY-SA 4.0
null
2023-03-04T04:19:42.147
2023-03-04T04:19:42.147
null
null
21,329,678
[ "matlab" ]
75,633,606
1
null
null
0
15
I am trying to convert my mp3 file to wav format but its giving error like this ``` from pydub import AudioSegment src = "my_result.mp3" dst = "final.wav" sound = AudioSegment.from_mp3(src) sound.export("final.wav",format="wav") ``` ``` C:\Users\91630\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydub...
Error while convering mp3 file to wav file format using python pydub module
CC BY-SA 4.0
null
2023-03-04T04:15:58.993
2023-03-04T09:48:07.133
2023-03-04T09:48:07.133
11,286,032
17,445,692
[ "python", "pydub" ]
75,633,617
2
null
75,633,601
0
null
Try: ``` extension TextFieldStyle { static var myTextFieldStyle { return MyTextFieldStyle() } } ```
null
CC BY-SA 4.0
null
2023-03-04T04:19:47.297
2023-03-04T04:19:47.297
null
null
16,217,248
null
75,633,613
2
null
75,633,516
0
null
`Key` is abstract class so you can't initiate it directly. There are few classes which inherits key. - LocalKey (Another abstract class which extends Key). You can't initiate it directly as well. LocalKey is a key which is not global.- UniqueKey - Local key used when you want to rebuild a widget everytime there is buil...
null
CC BY-SA 4.0
null
2023-03-04T04:18:35.253
2023-03-04T04:18:35.253
null
null
16,569,443
null
75,633,618
1
75,634,442
null
1
20
I want use useEffect with dependancy when the screen is focus in this screen. useEffect will keep listening when screen is focused, it will do something if the dependancyVar change. How can i do that? ``` useFocusEffect( useEffect(()=>{ if(dependancyVar){ //do something }...
How to use useEffect with dependency when focusing the screen only in react navigation?
CC BY-SA 4.0
null
2023-03-04T04:20:03.957
2023-03-04T08:15:48.283
2023-03-04T04:51:21.927
14,646,945
14,646,945
[ "react-native", "react-hooks", "react-navigation" ]
75,633,614
1
null
null
0
13
I am trying to validate form input value so that when a user types in their username and the input element loses focus, it'll check if the username follows a set of regex and displays an error for the user to enter a valid username. The validation works fine when the input element gets focus and loses it the first time...
Why does the value of regex.test() changes with every validation of form input value
CC BY-SA 4.0
null
2023-03-04T04:18:49.380
2023-03-04T04:18:49.380
null
null
20,296,434
[ "javascript", "css", "regex", "forms", "validation" ]
75,633,619
1
null
null
0
16
I am attempting to scrape the website to eventually return back the "+2.5" value in the span class that is shown but am having a lot of issues getting the CSS SELECTOR to work properly and return that value. I know this is far off but this was the best I could come up with but returned way too many values and made it i...
Using Selenium I am trying to scrape a value off a website span HTML
CC BY-SA 4.0
null
2023-03-04T04:20:04.063
2023-03-04T23:15:58.343
2023-03-04T16:37:57.530
2,386,774
16,064,654
[ "python", "selenium-webdriver", "web-scraping" ]
75,633,622
2
null
59,590,152
0
null
I renamed it to gim.py but it is not working the code is: ``` import gym env = gym.make("CartPole-v1") observation, info = env.reset(seed=42) for _ in range(1000): action = env.action_space.sample() observation, reward, terminated, truncated, info = env.step(action) if terminated or truncated: obs...
null
CC BY-SA 4.0
null
2023-03-04T04:20:48.657
2023-03-04T04:20:48.657
null
null
21,329,726
null
75,633,624
1
null
null
0
18
I would like to create Angular packages as complete reusable set of pages, but I do not know if is it even possible, and if it is, then what is the fundamental way/architekture to implement it. Say I have an Angular app. Then I install npm package '@myuilibrary/account' and 11 pages what are defined in 11 components, a...
How to create Angular package, with reusable set of pages, routes?
CC BY-SA 4.0
null
2023-03-04T04:21:03.960
2023-03-04T04:36:19.530
null
null
1,157,814
[ "angular", "npm" ]
75,633,611
2
null
75,558,418
0
null
Based on what you wrote, I think this is what you are looking for: It will trigger only if a single Cell is selected between H3 and H12, you can change this on line 5 in the code. It will create the new workbook and the new worksheets and save them based on the value of column "G", can edit this as well in the code. Im...
null
CC BY-SA 4.0
null
2023-03-04T04:18:16.873
2023-03-04T04:24:54.327
2023-03-04T04:24:54.327
7,868,938
7,868,938
null
75,633,615
1
null
null
0
19
I am trying to use the async pipe with an observable in my receiving component so that I don't need to use OnDestroy (b/c the async pipe automatically subscribes and unsubscribes for me) In order to do this I need to change/cast/"push" an `Observable<String>` to an `Observable<String[]>`. Here is the original implement...
How to change/cast Observable<String> to Observable<String[]>
CC BY-SA 4.0
null
2023-03-04T04:19:36.437
2023-03-04T04:59:59.553
null
null
6,314,220
[ "angular", "rxjs", "observable", "rxjs-observables", "behaviorsubject" ]
75,633,621
2
null
68,334,119
0
null
3 Possible reasons could be: 1. You've cached the version of the package, npm using the cached version while you run npm i, you can clear the cache data using the below command. ``` npm cache clean --force ``` 1. Expired codeartifact credentials, you can update them using the below command. ``` CODEARTIFACT_DOMA...
null
CC BY-SA 4.0
null
2023-03-04T04:20:38.400
2023-03-04T04:26:05.797
2023-03-04T04:26:05.797
17,610,082
17,610,082
null
75,633,627
1
null
null
0
30
I am trying to detect a touch to a game object in unity but I cant get it to work and I don't see it anywhere else. I done understand why it doesn't function. ``` using System.Collections; using System.Collections.Generic; using UnityEngine; using System; public class toucth : MonoBehaviour { public string touchin...
Error CS0029: Cannot implicitly convert type 'UnityEngine.GameObject' to 'string'
CC BY-SA 4.0
null
2023-03-04T04:21:43.797
2023-03-04T18:58:56.840
2023-03-04T18:58:56.840
5,740,243
20,677,583
[ "c#", "unity3d" ]
75,633,537
1
null
null
-4
22
I wrote a python script using multiprocessing (for speed). The pieces all have individual values that are predetermined in VALUES. NOTE: change `#demo()` to `demo()` to make the program interactive and more controllable. Here is the code: ``` import multiprocessing ''' NOTES: MARKS FORMAT W - white B - black...
Chess bot is sacrificing queen to put king in check
CC BY-SA 4.0
null
2023-03-04T03:52:23.267
2023-03-04T03:52:23.267
null
null
21,329,632
[ "python", "multiprocessing", "chess", "python-chess" ]
75,633,623
1
null
null
0
12
I have a debian based postgres container and am trying to create a replicant server from a file system level backup of my primary. Now that I have added it to docker stack I cannot get the replicant to start up. I have tried altering the ownership of the bind-mounted PGDATA directory: ``` sudo chown -R 70:70 <HOST_PGDA...
postgresql-14 cannot access bind-mounted PGDATA volume when deployed in docker stack
CC BY-SA 4.0
null
2023-03-04T04:20:49.710
2023-03-04T05:52:49.150
null
null
6,615,337
[ "postgresql", "docker", "docker-swarm-mode", "docker-stack" ]
75,633,626
2
null
75,630,724
0
null
I can see that you're new to using git Before you make any new commits, you have to add files to the repository, you can add all the files in a folder to git. Open your folder in the terminal, if you're on Windows 10 or above, you can do the same either by right clicking in the folder containing files and opening the t...
null
CC BY-SA 4.0
null
2023-03-04T04:21:38.713
2023-03-04T04:21:38.713
null
null
16,164,323
null
75,633,628
1
null
null
0
11
I have this modified code with Python from: [Ploting solid of revolution in Python 3 (matplotlib maybe)](https://stackoverflow.com/questions/36464982/ploting-solid-of-revolution-in-python-3-matplotlib-maybe) But, I want to revolve this toward `y`-axis. How? This is the code. The bound is between y = 1/(x^2 + 4) and x=1...
Plotting Solid of Revolution Animation that is Revolved toward y-axis Python 3 and Matplotlib
CC BY-SA 4.0
null
2023-03-04T04:22:16.730
2023-03-04T13:52:38.653
null
null
19,238,204
[ "python", "numpy", "matplotlib" ]
75,633,625
1
null
null
0
14
So I got this error in my expo project and I have no idea of what it is or how to solve, can anyone help ? the Home in the Mainpage.js: ``` import React, { Component } from 'react'; import MapView from 'react-native-maps'; import{ View, ScrollView, Text, StyleSheet, Dimensions, Button} from 'react-native'; import { Na...
expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s%s, undefined,Check the method of `Home`
CC BY-SA 4.0
null
2023-03-04T04:21:38.490
2023-03-04T04:21:38.490
null
null
10,934,767
[ "reactjs", "expo" ]
75,633,633
2
null
75,633,571
1
null
It looks like there is a syntax error in your code. The error message suggests that the compiler is expecting a `;` or `,` near the `alu_slice` identifier on line 16. From looking at your code, it appears that you are missing a semicolon after the `assign co = f[1]` statement on line 14. Try adding a semicolon after th...
null
CC BY-SA 4.0
null
2023-03-04T04:23:49.697
2023-03-04T04:23:49.697
null
null
21,329,736
null
75,633,636
2
null
75,633,592
0
null
use the iconv utility (e.g., "iconv file.pcl -f UTF-8 -t ISO-8859-1 -c"). The "-c" option skips characters that can't be translated. This work for me
null
CC BY-SA 4.0
null
2023-03-04T04:24:39.350
2023-03-04T04:24:39.350
null
null
21,196,180
null
75,633,634
2
null
75,613,884
0
null
[](https://i.stack.imgur.com/FtvVc.png) [](https://i.stack.imgur.com/wXPwE.png) I created another file is this right? also the red colored "border" how do I close it, I closed but I don't know to close the border
null
CC BY-SA 4.0
null
2023-03-04T04:24:09.397
2023-03-04T04:24:09.397
null
null
20,579,633
null
75,633,637
1
null
null
0
2
I'm building a React Native mobile app which retrieves information from the HubSpot CRM. Now I want to add user Authentication in the mobile App. Only when the user is authenticated he/she is allowed to retrieve info from the CRM. To validate the credentials I want to use the Contacts in HubSpot as well. Because then I...
React Native User Authentication against backend (HubSpot?)
CC BY-SA 4.0
null
2023-03-04T04:24:39.413
2023-03-04T04:24:39.413
null
null
4,168,770
[ "reactjs", "authentication", "backend", "native", "hubspot" ]
75,633,620
1
null
null
0
13
I am trying to run a text similarity analysis using PySpark. After vectorizing my text inputs using `CountVectorizer` with a `vocabSize=5000` I am running an `approxSimilarityJoin` on the data. When I do this, I get an error related to `non-zero` values on the input vectors. The error I am getting is the following: ```...
MinHashLSH Issue on PySpark
CC BY-SA 4.0
null
2023-03-04T04:20:36.007
2023-03-04T04:41:39.560
2023-03-04T04:41:39.560
8,998,223
8,998,223
[ "apache-spark", "pyspark", "apache-spark-mllib" ]
75,633,630
2
null
75,626,154
0
null
Using functions in patterns is not supported from the post "[could-not-parse-the-left-hand-side](https://stackoverflow.com/questions/61703232/could-not-parse-the-left-hand-side-m-1-n)" Thus I solve it by `refl`, it is really powerful. Here is my full code ``` module div where open import Data.Nat using (ℕ; zero; suc; ...
null
CC BY-SA 4.0
null
2023-03-04T04:23:25.003
2023-03-04T04:23:25.003
null
null
14,923,702
null
75,633,635
1
75,633,644
null
0
18
I have created for loop for checking if any of the endpoints return 200 code on a website where is list which contains the endpoints ``` for uris in uriList: req = requests.get(uris, timeout=10) successSTR = 'Detected Swagger UI at {}'.format(uris) if req.status_code == 200 | req.status_code == 301 | req....
If statement does not printing any output while checking reponses from requests
CC BY-SA 4.0
null
2023-03-04T04:24:21.600
2023-03-04T04:27:13.623
null
null
15,176,743
[ "python" ]
75,633,638
2
null
74,541,570
0
null
It looks like you are only updating the field value with the name of the selected file, but you are not actually setting the file object to the field. Instead, you are emitting the onChange and update:modelValue events to the parent component, but you are not doing anything with them in the parent component. To fix thi...
null
CC BY-SA 4.0
null
2023-03-04T04:24:43.063
2023-03-04T04:24:43.063
null
null
7,663,322
null
75,633,629
2
null
75,633,471
1
null
You can bind to the `<<CalendarSelected>>` event instead and call `selection_get` method in order to return to the date selected by the user. See inline comments to indicate where I made changes. For example: ``` import datetime from tkinter import Frame, StringVar, Button, Label, Entry, OptionMenu, Tk from tkinter imp...
null
CC BY-SA 4.0
null
2023-03-04T04:23:22.137
2023-03-04T04:23:22.137
null
null
17,829,451
null
75,633,641
1
null
null
0
44
I have a requirement recently, which is as follows. There is a table with utmost 50000 rows, each of which has to be read, run a process depending on the data (which takes approx. 30-40 secs for each row.). Since this is a time consuming task, and also cannot run on a single thread or process (The process ends abruptly...
How to Explicitly lock a MySQL Table
CC BY-SA 4.0
null
2023-03-04T04:26:44.413
2023-03-04T12:00:54.380
2023-03-04T04:57:32.427
2,132,005
2,132,005
[ "c#", "mysql", "multithreading" ]
75,633,644
2
null
75,633,635
2
null
It looks like you are using the bitwise OR operator | instead of the logical OR operator or in your if statement. The | operator is a bitwise operator, which performs a bitwise OR operation on two integers. When used with boolean values, it can produce unexpected results. To fix this issue, you should replace the | ope...
null
CC BY-SA 4.0
null
2023-03-04T04:27:13.623
2023-03-04T04:27:13.623
null
null
7,663,322
null
75,633,648
1
null
null
-1
9
I have a query regarding react-konva I'm using this and i want to resize the rectangle on it if the image is being resized. in my code rectangle does not resize while resizing the image here is my code [https://codesandbox.io/s/react-konva-u9x99l?file=/src/rectangle.js:0-2976](https://codesandbox.io/s/react-konva-u9x99...
Resizing the rectangle while resizing the image - React-konva
CC BY-SA 4.0
null
2023-03-04T04:27:50.697
2023-03-04T04:27:50.697
null
null
18,277,724
[ "javascript", "reactjs", "react-konva" ]
75,633,647
1
null
null
0
8
First time to user for IDLE Shell 3.10.10 and Unable to run my class. Can somebody let me know how we can run class using IDLE Shell 3.10.10 ? I press F5 key to run program but it is not running and not showing any output on my console. Simple Program: print() print("Using *args,**kwargs to set vlues of object") class ...
How to run a class in IDLE 3.10.10 Shell in windows
CC BY-SA 4.0
null
2023-03-04T04:27:47.747
2023-03-04T04:27:47.747
null
null
21,329,725
[ "python-3.x" ]
75,633,646
2
null
75,556,209
0
null
Use the [QWebEnginePage::authenticationRequired](https://doc.qt.io/qt-5/qwebenginepage.html#authenticationRequired) signal, like [the official example](https://doc.qt.io/qt-5/qtwebengine-webenginewidgets-simplebrowser-example.html). But it's a little bit tricky in PyQt5 for canceling the authentication. This is a simpl...
null
CC BY-SA 4.0
null
2023-03-04T04:27:16.690
2023-03-04T04:27:16.690
null
null
1,186,624
null
75,633,632
1
null
null
0
26
I've got a simple C program which I've compiled on my Ubuntu 22.04 VM which is running on my MacBook via VirtualBox: ``` #include <poll.h> #include <stdio.h> #include <unistd.h> int main() { int fds[2]; struct pollfd poller = {.events = POLLIN}; if ( pipe(fds) != 0 ) { perror("pipe"); retu...
poll running for much longer than its timeout inside VM
CC BY-SA 4.0
null
2023-03-04T04:23:47.670
2023-03-04T04:58:35.220
2023-03-04T04:58:35.220
8,075,540
8,075,540
[ "c", "virtual-machine", "polling" ]