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,620,490 | 2 | null | 75,620,230 | 3 | null | I assume you are asking why there is a directory returned as an object.
You are quite correct that . Instead, the filename (`Key`) of an object is the , including the name of the file. Directories do not need to be created before an object is created an a particular path.
However, if somebody clicks the button in the ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:27:21.543 | 2023-03-02T20:27:21.543 | null | null | 174,777 | null |
75,620,493 | 1 | null | null | 0 | 17 | I have php 7.3, nginx, ubuntu 22.04, and have this php:
```
$cmd = 'LD_PRELOAD="/var/www/localhost/node/so/libcrypto.so.0.9.8 /var/www/localhost/node/so/libssl.so.0.9.8" /var/www/localhost/node/node /var/www/localhost/node/nodejs-highcharts.js /tmp/201c0374305c6a74d019739c0f519a9d';
$output = exec($cmd, $out, $retval);... | node command run from php returns status code 1 | CC BY-SA 4.0 | null | 2023-03-02T20:28:00.623 | 2023-03-02T20:28:00.623 | null | null | 1,827,764 | [
"php",
"node.js",
"command-line",
"exec"
] |
75,620,476 | 1 | 75,620,694 | null | -2 | 90 | I'm trying to make game of life game but it ends up being really slow, I use a dynamic array to store all of the turned on tiles, I already improved the algorithm a lot by changing a few data types and removing functions, but it's still pretty slow.
I don't use the printboard method to actually play the game, I draw it... | Game of life optimisation | CC BY-SA 4.0 | null | 2023-03-02T20:25:41.517 | 2023-03-02T21:59:05.750 | 2023-03-02T21:32:14.633 | 13,302 | 12,547,130 | [
"c++"
] |
75,620,492 | 2 | null | 75,619,962 | 1 | null | The "normal" style is this:
> ```
background: linear-gradient(357deg, rgba(106, 36, 108, 1) 5%, rgba(57, 26, 84, 1) 100%);
```
The hover style is this:
> ```
background-color: #ddd !important;
```
The `background` shorthand property lets you set a selection of different `background-something` properties at once.
`lin... | null | CC BY-SA 4.0 | null | 2023-03-02T20:27:58.800 | 2023-03-02T20:27:58.800 | null | null | 19,068 | null |
75,620,496 | 2 | null | 75,619,974 | 0 | null | What you can unit test with your method:
- - `mapsCodigoError.getHaspMapCodigos().size()`- `mapsCodigoError.getHaspMapCodigos()`- `recuperarError(entries,listaEstatus)``entries`- `recuperarError`- `listaValoresEstatus``listaEstatus`
I don't see how the variables "come into" the method, nor how they can be accessed late... | null | CC BY-SA 4.0 | null | 2023-03-02T20:28:24.447 | 2023-03-02T20:28:24.447 | null | null | 2,846,138 | null |
75,620,500 | 1 | null | null | 0 | 23 | I am trying to use the notification service extension to customize incoming push notifications before they are presented to the user. I would like to add user data to the notification, but any method of injecting or retrieving services causes a build error in the extension regarding the inability to resolve packages us... | Modifying Notifications Using Notification Service Extension With Personalized Data XamarinForms v 5.0.0.2545 | CC BY-SA 4.0 | null | 2023-03-02T20:28:47.083 | 2023-03-02T20:28:47.083 | null | null | 20,207,435 | [
"xamarin.forms",
"push-notification",
"xamarin.ios",
"firebase-cloud-messaging"
] |
75,620,499 | 1 | null | null | 0 | 23 | I need help translating "modelling the long-term trend that varies spatially in my data" and for changing the plot below into the correct R syntax.
[](https://i.stack.imgur.com/qKI1G.png)
I'd like to have Longitude on the x-axis, latitude on the y-axis, and a panel for each calendar year ("CYR"). Changing the order of ... | Correct R syntax for changing draw() plot - gratia package | CC BY-SA 4.0 | null | 2023-03-02T20:28:44.050 | 2023-03-02T20:28:44.050 | null | null | 16,401,542 | [
"r",
"draw",
"mgcv"
] |
75,620,502 | 2 | null | 75,609,137 | 0 | null | Whoops. The problem was I was instantiating the class cold, ie:
```
$blog = new \Namespace\Blog();
```
Which obviously is passing no arguments.
In order for dependencies to be injected, this class also needs injecting into the a controller, eg
```
public function blogController(\Namespace\Blog $blog) {
// I now ha... | null | CC BY-SA 4.0 | null | 2023-03-02T20:28:50.890 | 2023-03-02T20:28:50.890 | null | null | 934,965 | null |
75,620,497 | 1 | null | null | -1 | 23 | I am developing a spring boot application and trying to connect a postgresql database. At startup, a password authentication error pops up.
[enter image description here](https://i.stack.imgur.com/3JbwG.png)
Caused by: org.postgresql.util.PSQLException: ВАЖНО: пользователь "${POSTGRES_USER}" не прошёл проверку подлинно... | The problem of password authenticity and is it possible to find out a valid password from postgresql? | CC BY-SA 4.0 | null | 2023-03-02T20:28:30.870 | 2023-03-02T20:28:30.870 | null | null | 21,321,705 | [
"java",
"postgresql",
"utf-8",
"pgadmin"
] |
75,620,501 | 2 | null | 75,620,352 | 0 | null | I would clean it up by extracting out some methods, and using comprehensions, like this
```
def create_output(loop_by, colors, shapes, sizes, numbers):
def parse(color, shape, size, number):
match loop_by:
case 'color':
return f'{color}_{shape}_{size}_{number}'
case '... | null | CC BY-SA 4.0 | null | 2023-03-02T20:28:47.540 | 2023-03-02T20:28:47.540 | null | null | 7,571,925 | null |
75,620,503 | 2 | null | 73,995,009 | 0 | null | Have the songs seprated each in its own object
then pass it to TrackPlayer.add like this
```
var songObj = {
id: 1,
url: "https://sample.com/song_01.mp3",
title: "Song 01"
}
await TrackPlayer.add([songObj])
```
this way you play only one track at a time by pressing at it
| null | CC BY-SA 4.0 | null | 2023-03-02T20:29:09.683 | 2023-03-02T20:29:09.683 | null | null | 12,684,353 | null |
75,620,495 | 2 | null | 75,620,270 | 2 | null | It would be far easier if you kept `dat` as a `Date`-class object.
```
dat <- seq(d1,d2,by="day")
rle(format(dat, format = "%Y-%m"))$lengths
# [1] 31 28 31 30 31 30 31 31 30 31 30 31
cumsum(rle(format(dat, format = "%Y-%m"))$lengths)
# [1] 31 59 90 120 151 181 212 243 273 304 334 365
### verify the day-of-months ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:28:15.273 | 2023-03-02T20:39:31.140 | 2023-03-02T20:39:31.140 | 3,358,272 | 3,358,272 | null |
75,620,498 | 1 | null | null | 1 | 19 | [debugger:](https://i.stack.imgur.com/OIdFV.png)
The error occurs whenever I try to use the module in PyCharm. Installation of the module directly through cmd does not throw any exceptions. Installation of the module in PyCharm gives the following error: Could not install packages due to an OSError: [Errno 2] No such f... | No module named 'tensorflow.python'. Where to look for this module? | CC BY-SA 4.0 | null | 2023-03-02T20:28:33.070 | 2023-03-02T21:27:34.263 | 2023-03-02T21:04:44.463 | 21,044,347 | 21,044,347 | [
"tensorflow",
"pycharm",
"windows-10",
"oserror"
] |
75,620,505 | 1 | null | null | 0 | 13 | I've written a program that successfully writes midi files, and opens them in Logic Pro X on my computer (this program is for personal use only btw, so I'm not worried about it not working on other devices.) I have two questions.
Firstly, I'd like to know if it is even possible for me to assign midi bank numbers/progra... | What do the numbers in the 'value' argument mean in the control change message in mido (regarding bank changes) in python? | CC BY-SA 4.0 | null | 2023-03-02T20:29:20.323 | 2023-03-02T20:29:20.323 | null | null | 21,321,695 | [
"midi",
"coremidi",
"mido",
"midi-instrument",
"midi-interface"
] |
75,620,504 | 1 | null | null | -3 | 22 | I'm trying to follow a youtube tutorial on making object detection software, link here: [https://www.youtube.com/watch?v=hVavSe60M3g&t=612s](https://www.youtube.com/watch?v=hVavSe60M3g&t=612s), and I'm not doing too well as 10 minutes in I've already found an issue, I added my own test videos to see if it works but whe... | Is there a way to fix this problem "missing 1 required positional argument: 'self' | CC BY-SA 4.0 | null | 2023-03-02T20:29:18.847 | 2023-03-03T11:58:17.603 | 2023-03-03T11:58:17.603 | 2,602,877 | 16,906,725 | [
"python"
] |
75,620,510 | 1 | null | null | 0 | 6 | I am trying to retrieve an OAuth2 token from our Azure cloud via the DS hierarchical data object. I am trying to do this without variables and just plugging in the actual URL which would include the tenant_id (as part of the URL). For the rest of the fields which should be reflected within the body: grant_type, clien... | I am trying to use a DataStage hierarchical data object to retrieve an OAuth2 token, is this possible? | CC BY-SA 4.0 | null | 2023-03-02T20:30:01.767 | 2023-03-02T20:30:01.767 | null | null | 4,846,814 | [
"oauth-2.0",
"datastage",
"data-retrieval"
] |
75,620,506 | 2 | null | 75,620,379 | 0 | null | As people in the comments have already written, positioning only matters for elements that have some common parents.
I am assuming you can't refactor the HTML for some reason, but if those two forms have a wrapping div, maybe something like this could work for you.
```
.form-wrapper {
position: relative;
display: f... | null | CC BY-SA 4.0 | null | 2023-03-02T20:29:38.700 | 2023-03-02T20:39:02.850 | 2023-03-02T20:39:02.850 | 2,887,613 | 2,887,613 | null |
75,620,512 | 1 | null | null | 1 | 22 | I am building a DataFrame (pandas) that contains some information inside of it. At some point, once the DataFrame is completed, I need to perform some calculations on each DataFrame.
Currently, you can say that is looks something like this:
```
def perform_calculations(df: DataFrame):
calculations = df.text.app... | How can I update the contents of a list, dictionary, or dataframe while making several asyncronous calls? | CC BY-SA 4.0 | null | 2023-03-02T20:30:16.457 | 2023-03-02T21:53:43.047 | null | null | 7,586,785 | [
"python",
"dataframe",
"asynchronous",
"python-asyncio",
"aiohttp"
] |
75,620,513 | 1 | null | null | 0 | 17 | I get the following error when trying to install pyspark kernel on ubuntu with `pip3 install pyspark-kernel`:
```
Building wheel for pyspark-kernel (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [52 lines of output]
............. | Install pyspark-kernel on ubuntu | CC BY-SA 4.0 | null | 2023-03-02T20:30:21.797 | 2023-03-02T21:36:56.550 | 2023-03-02T21:36:56.550 | 21,319,462 | 21,319,462 | [
"python",
"apache-spark",
"ubuntu",
"pyspark",
"windows-subsystem-for-linux"
] |
75,620,518 | 1 | null | null | -1 | 9 | When I use
import flask
It says:
Traceback (most recent call last):
File "C:\Users\sagak\Web_server\main.py", line 2, in
from flask import *
ModuleNotFoundError: No module named 'flask'
I installed Flask with pip install
| Python Flask NoModuleNamedFlask | CC BY-SA 4.0 | null | 2023-03-02T20:30:38.193 | 2023-03-02T22:29:10.980 | 2023-03-02T22:29:10.980 | 400,617 | 21,321,813 | [
"python"
] |
75,620,515 | 1 | null | null | 0 | 38 | I'm making a budget sheet using Google Forms and Google Sheets and want to learn how to total my expenditures. I have a column that has a timestamp, and from that I'd like to organize the data for the total by month. I also have an amount column and a type column that can either be incoming or outgoing. So, my goal is ... | How can I reference three columns for an equation | CC BY-SA 4.0 | null | 2023-03-02T20:30:29.290 | 2023-03-02T20:31:32.990 | 2023-03-02T20:31:32.990 | 9,245,853 | 14,744,252 | [
"google-sheets"
] |
75,620,517 | 2 | null | 75,620,504 | 3 | null | You created an instance of `Detector`, but you did not use it.
```
d = Detector(videoPath, configPath, modelPath, classesPath)
d.onVideo()
```
Due to how the [descriptor protocol](https://docs.python.org/3/howto/descriptor.html) works, `d.onVideo()` is equivalent to `Dectector.onVideo(d)`. When you called `Decector.o... | null | CC BY-SA 4.0 | null | 2023-03-02T20:30:37.737 | 2023-03-02T20:30:37.737 | null | null | 1,126,841 | null |
75,620,509 | 1 | 75,621,021 | null | 0 | 20 | I would like to read output from a `python` script that has parentheses and also commas (see below) directly into `gnuplot`. The error message is given below. Although it works, I would like to avoid pre-processing the output with the usual GNU/Linux tools (`sed,awk` etc.).
The output is from a `python` script (obtaine... | gnuplot data file with open or close parenthesis / parentheses "(" or ")" : "Skipping" warning / "x range is invalid" | CC BY-SA 4.0 | null | 2023-03-02T20:30:00.250 | 2023-03-02T21:42:04.333 | 2023-03-02T21:42:04.333 | 20,186,245 | 20,186,245 | [
"python",
"plot",
"gnuplot",
"special-characters"
] |
75,620,514 | 2 | null | 72,489,140 | 0 | null | Searching about this issue, I found that the best options to overcome this are:
1. Remove the StrictMode from your app (you can do this simply by removind the StricMode tag from the App component)
2. Use React Query (which you should be using in modern React applications anyway)
References:
[https://javascript.plain... | null | CC BY-SA 4.0 | null | 2023-03-02T20:30:27.497 | 2023-03-02T20:30:27.497 | null | null | 10,297,434 | null |
75,620,524 | 1 | null | null | 0 | 19 | If I go to `app.pulumi.com`, I can see in the browser the details for `Update #903`, for instance. It shows a summary: qty of new, modified and deleted resources. And I can also see the details, the specific resources that were created, modified, or deleted.
How can I get the same information using Pulumi CLI?
| How to get activity details for past updates on Pulumi, using Pulumi CLI? | CC BY-SA 4.0 | null | 2023-03-02T20:31:01.150 | 2023-03-03T15:17:10.613 | 2023-03-02T20:53:50.337 | 13,302 | 408,195 | [
"pulumi"
] |
75,620,523 | 1 | null | null | 0 | 35 | guys! I have some small problem with typing react props.
I have function deletePost, that I want forward to component AuthorPostsList, but I always got a warning but typescript: (property) AuthorPostsListProps.delete?: (() => void) | undefined ':' expected.ts(1005).
deletePost:
```
const deletePost = () =>{
console.... | Typescript (() => void) | undefined ':' expected.ts(1005) | CC BY-SA 4.0 | null | 2023-03-02T20:30:55.917 | 2023-03-02T20:45:15.630 | null | null | 20,860,817 | [
"javascript",
"reactjs",
"typescript",
"react-props",
"react-typescript"
] |
75,620,507 | 1 | null | null | 0 | 23 | I have this project and although that I use `require()` method, and photos show up in vscode but on the localhost it doesn't show up. my folder tree is:
```
.
├── app.js
├── components
│ ├── board
│ │ └── Board.jsx
│ ├── card
│ │ ├── Card.jsx
│ │ ├── ExpDiv.jsx
│ │ └── ImDiv.jsx
│ └── navbar
│ ... | React image doesn't show up | CC BY-SA 4.0 | null | 2023-03-02T20:29:50.407 | 2023-03-03T01:32:55.553 | 2023-03-03T01:32:55.553 | 21,287,266 | 17,252,215 | [
"reactjs"
] |
75,620,525 | 2 | null | 75,619,779 | 2 | null | Have you had a look at: [client.who_has()](https://distributed.dask.org/en/stable/api.html#distributed.Client.who_has) and/or [client.has_what()](https://distributed.dask.org/en/stable/api.html#distributed.Client.has_what)?
Personally, the [data locality](https://distributed.dask.org/en/stable/locality.html) side helpe... | null | CC BY-SA 4.0 | null | 2023-03-02T20:31:13.197 | 2023-03-03T00:15:44.037 | 2023-03-03T00:15:44.037 | 14,947,895 | 14,947,895 | null |
75,620,522 | 1 | null | null | 1 | 30 | I received this interview question in a coding interview:
You are visiting a planet whose surface is represented by a m x n grid. On this grid, there are k points of interest as well as tiles that are not traversable. You need to find the best tile to place your base of operations from which you need to visit every poi... | Find the best tile to place your base of operations from which you need to visit every point of interest such that total travel distance is minimal | CC BY-SA 4.0 | null | 2023-03-02T20:30:52.220 | 2023-03-05T04:21:07.370 | null | null | 21,200,640 | [
"algorithm",
"dynamic-programming",
"breadth-first-search",
"memoization"
] |
75,620,528 | 2 | null | 75,611,983 | 1 | null | I don't see yours models but you need to annotate avg rating to yours related_products queryset.
The aggregate make avg for all rows.
I think it should look like:
```
related_products = Product.objects\
.filter(category=product.category)\
.exclude(id=id)\
... | null | CC BY-SA 4.0 | null | 2023-03-02T20:31:46.013 | 2023-03-02T20:31:46.013 | null | null | 13,773,284 | null |
75,620,526 | 1 | null | null | 0 | 49 | I'm querying the public dataset `bigquery-public-data` for its view metadata with the following query -
```
SELECT * FROM `bigquery-public-data.region-us.INFORMATION_SCHEMA.VIEWS`
```
but I get the following error :
```
Access Denied: Table bigquery-public-data:region-us.INFORMATION_SCHEMA.VIEWS: User does not have pe... | How to query INFORMATION_SCHEMA.VIEWS in BigQuery? | CC BY-SA 4.0 | null | 2023-03-02T20:31:17.917 | 2023-03-03T19:42:50.437 | null | null | 4,832,097 | [
"google-cloud-platform",
"google-bigquery"
] |
75,620,529 | 2 | null | 75,618,360 | 0 | null | The error was cryptic, but upon viewing the event logs for SQL Azure Data Sync 2.0, I saw a bigger stack trace:
> at Microsoft.Synchronization.Data.SqlServer.SqlSyncScopeTableHelper.EnableSnapshotIsolation(SqlConnection connection)
at Microsoft.Synchronization.Data.SqlServer.SqlSyncScopeProvisioning.ApplyScope(SqlConne... | null | CC BY-SA 4.0 | null | 2023-03-02T20:31:50.527 | 2023-03-02T20:31:50.527 | null | null | 58,508 | null |
75,620,530 | 1 | null | null | 0 | 16 | I'm using wordpres for my web site and I am displaying images in header of the web page. The problem I am facing is that size atributes do not want to be aplied to image tag.
I am using the "the_post_thumbnail" function to get image url from database. In wordpres/php documentation I found, that any aditional parameters... | How to add width and height params to image in wordpress | CC BY-SA 4.0 | null | 2023-03-02T20:31:57.407 | 2023-03-02T20:38:54.907 | null | null | 17,637,402 | [
"php",
"html",
"wordpress",
"image",
"thumbnails"
] |
75,620,532 | 2 | null | 75,618,962 | -3 | null | Try this PHP code:
```
<?php
// no need for variables start
$name = htmlspecialchars($_POST['contactNameField']); //try replacing trim() with htmlspecialchars(). From personal experience, trim has sometimes given me false errors.
$email = htmlspecialchars($_POST['contactEmailField']);
$message= htmlspecialchars($_P... | null | CC BY-SA 4.0 | null | 2023-03-02T20:32:01.057 | 2023-03-02T20:32:01.057 | null | null | 16,578,914 | null |
75,620,538 | 2 | null | 75,620,426 | 1 | null | Use row_number() to get their first transaction. Something like this should work, but not sure what you want to return in your results. Basically, look into row_number() then wrap your query to get the SUM.
```
select sum(amount)
from (
select u.id, u.name, t.id, t.amount,
row_number() over (partition by ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:32:15.057 | 2023-03-02T20:32:15.057 | null | null | 13,118,009 | null |
75,620,537 | 1 | null | null | -1 | 9 | In my settings for Files & Folders access, the `watchman` executable appears many many times:
[](https://i.stack.imgur.com/N8WPKl.png)
It seems that each time watchman is updated it adds an entry rather than replacing the existing one (even though it is installed to the same location). Watchman is the only process that... | Why does watchman appear multiple times in Files & Folders access settings? | CC BY-SA 4.0 | null | 2023-03-02T20:32:14.340 | 2023-03-02T20:54:54.287 | null | null | 656,912 | [
"settings",
"watchman"
] |
75,620,533 | 1 | null | null | 1 | 25 | I've built many apps using .NET Core 5 and never had any problem publishing them on any hosting company.
This last project I've started with .NET Core 6 and now it seems it's impossible to make it run.
I've had similar problems before, but we could solve them just by changing the hosting model from "inprocess" to "outo... | .NET Core 6 app won't run after publishing | CC BY-SA 4.0 | null | 2023-03-02T20:32:04.757 | 2023-03-03T20:49:38.710 | 2023-03-02T20:52:41.183 | 13,302 | 8,383,166 | [
"publish",
"asp.net-core-6.0"
] |
75,620,534 | 2 | null | 75,620,494 | 0 | null | Consider the following code:
```
% python
>>> import math
>>> math.sqrt(100)
10.0
>>> from math import sqrt
>>> sqrt(100)
10.0
```
The math module is the home of the sqrt function.
After we import the math module, we have access to all of the functions in the math module.
When we import the sqrt function, we can acces... | null | CC BY-SA 4.0 | null | 2023-03-02T20:32:05.443 | 2023-03-02T21:00:47.570 | 2023-03-02T21:00:47.570 | 527,312 | 527,312 | null |
75,620,536 | 2 | null | 75,619,239 | 1 | null |
It has nothing to do with Struts or Chrome. This table/form is malformed.
Instead of
```
<table>
<s:form>
<!-- etc -->
</s:form>
</table>
```
It needed to be
```
<s:form>
<table>
<!-- etc... -->
</table>
</s:form>
```
As I was typing this question, it occurred to me that something was out of place ab... | null | CC BY-SA 4.0 | null | 2023-03-02T20:32:12.657 | 2023-03-02T20:32:12.657 | null | null | 21,320,885 | null |
75,620,540 | 2 | null | 75,619,356 | 4 | null | This is because in V14 the items in the ComboBox dropdown are inside the Shadow DOM, but the contents of Grid cells are not.
In V23 and V24 this has been changed so that ComboBox items are no longer in Shadow DOM.
| null | CC BY-SA 4.0 | null | 2023-03-02T20:32:51.977 | 2023-03-02T20:32:51.977 | null | null | 298,103 | null |
75,620,542 | 2 | null | 75,620,494 | -1 | null | Usually if you want the whole module you'll do the first thing and if you want only a few items from a module you would use the second thing. When your working with 10+ modules you only want to import what you are going to use.
| null | CC BY-SA 4.0 | null | 2023-03-02T20:33:01.110 | 2023-03-02T20:33:01.110 | null | null | 13,016,696 | null |
75,620,519 | 1 | null | null | -1 | 27 | ```
import random
from itertools import zip_longest
from SpeciesList import fighters_list
class Animal(object):
def __init__(self, age: int, health: int, happiness: int) -> None:
self.age = 0
self.total_health = 0
self.current_health = 0
self.happiness = 0
def get_age(self):
... | How to fix Nameerror: name 'enemy' is not defined...? | CC BY-SA 4.0 | null | 2023-03-02T20:30:41.267 | 2023-03-02T20:50:07.323 | 2023-03-02T20:50:07.323 | 19,535,466 | 19,535,466 | [
"python",
"function",
"parameters",
"nameerror"
] |
75,620,541 | 1 | null | null | 0 | 17 | I am writing an Android Studio Plugin, which works with the virtual file - when any file from device explorer is clicked. But, i also need to be notified when the content of the file changes.
Wondering if there are any existing api's or extension points or listeners, which can be used to achieve the same.
| Any api which can be used to observe file content changes in AS pluin (file from Device Explorer Plugin - ADB device)? | CC BY-SA 4.0 | null | 2023-03-02T20:32:55.593 | 2023-03-02T20:32:55.593 | null | null | 2,484,327 | [
"android",
"android-studio",
"file-io",
"intellij-plugin",
"android-device-explorer"
] |
75,620,539 | 2 | null | 42,857,283 | 0 | null | I was getting this issue because I was trying to use `props.history.push()` with RRD v6, but v6 has scrapped the `useHistory` hook and instead uses the `useNavigate` hook.
For example:
```
import {useNavigate} from 'react-router-dom';
const navigate = useNavigate();
navigate('/path');
```
See this link for more info: ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:32:19.807 | 2023-03-02T20:32:19.807 | null | null | 1,607,458 | null |
75,620,479 | 1 | null | null | 0 | 29 | I am able to see the pure default nvim dashboard that is like a maroon-ish colour and the dashboard is something like nvim 0.9.0-dev... as well as when i run all of the below code, i can see the dashboard-nvim dashboard that has a big block of acii that says 'dashboard', but i cant seem to see my own neovim ascii that ... | Overriding default neovim dashboard and/or default glepnir/dashboard-nvim dashboard doesn't work | CC BY-SA 4.0 | null | 2023-03-02T20:26:13.530 | 2023-03-02T22:31:33.137 | 2023-03-02T20:53:01.063 | 546,861 | 21,321,781 | [
"dashboard",
"neovim",
"packer"
] |
75,620,520 | 1 | null | null | 0 | 23 | I have the following swap transaction data. You can see that one transaction hash includes many transfers. Here, the contract initiator is `from_address` when `data = trace`. So whoever sends 0 to `0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7` this pool. I want to basically filter out useful information and instead of 3 ... | How to do some complicated row operations | CC BY-SA 4.0 | null | 2023-03-02T20:30:47.527 | 2023-03-02T21:15:29.657 | 2023-03-02T21:15:29.657 | 14,790,056 | 14,790,056 | [
"python",
"pandas",
"dataframe"
] |
75,620,544 | 1 | 75,623,664 | null | 1 | 50 | I'm trying to solve this [problem](https://open.kattis.com/problems/battlesimulation) on Kattis. I have come up with my first solution:
```
str_to_replace = {"RBL": "C", "RLB": "C", "LBR": "C", "LRB": "C", "BRL": "C", "BLR": "C"}
uin = input().upper()
for key, value in str_to_replace.items():
uin = uin.replace(key,... | What is the difference between re.sub and String replace in Python 3? | CC BY-SA 4.0 | null | 2023-03-02T20:33:09.593 | 2023-03-03T06:11:53.000 | null | null | 15,047,713 | [
"python",
"string",
"replace",
"substring"
] |
75,620,545 | 2 | null | 73,440,350 | 0 | null | Ran across the same issue when trying to restore a Heroku db locally, solved it by running these two commands:
```
psql <db> -c "CREATE SCHEMA IF NOT EXISTS heroku_ext"
psql <db> -c "ALTER database <db> SET search_path TO heroku_ext,public"
```
then proceed to restore:
```
pg_restore --verbose --clean --no-acl --no-ow... | null | CC BY-SA 4.0 | null | 2023-03-02T20:33:16.420 | 2023-03-02T20:33:16.420 | null | null | 21,321,713 | null |
75,620,546 | 2 | null | 75,620,099 | 0 | null | ```
from statistics import mean #import a package
list_of_nums = list() #creating a list
running = True #our key for stopping or repeating loop
while running == True: #while we let the loop repeat
client_input = float(input("Enter your number: ")) #getting a number
list_of_nums.append(client_input) #adding the n... | null | CC BY-SA 4.0 | null | 2023-03-02T20:33:33.947 | 2023-03-02T20:33:33.947 | null | null | 20,157,443 | null |
75,620,543 | 1 | 75,620,767 | null | 0 | 38 | I want to add the mean value. `geom_text(aes(mean(rnorm))` and `geom_label(aes(mean(rnorm))` did not do the job.
The mean should be displayed for each of the species (sp)
```
set.seed(111)
rand.data <- rnorm(1000,5,1)
sp <- rep(c("A","B","C","D"), each =250)
rand.df <- data.frame(rand.data,sp)
rand.df$sp <- as.factor(... | How to display the mean (in text) for a histogram? | CC BY-SA 4.0 | null | 2023-03-02T20:33:03.263 | 2023-03-02T21:22:57.190 | 2023-03-02T21:22:57.190 | 7,941,188 | 6,820,344 | [
"r",
"ggplot2",
"histogram"
] |
75,620,547 | 2 | null | 63,307,007 | 0 | null | Would suggest to use SFTP transfer service by AWS, which uses s3 as the backend storage for SFTP.
If client is sending the data from AWS account only then you can share SFTP endpoint as a private link to them, so they can access the SFTP hosted in your AWS account privately using AWS backbone network.
If your clients w... | null | CC BY-SA 4.0 | null | 2023-03-02T20:33:41.377 | 2023-03-02T20:33:41.377 | null | null | 4,914,657 | null |
75,620,551 | 2 | null | 75,620,519 | 0 | null | In `create_fighter` you use `enemy` without defining it.
In `do_encounter` you return fields from `enemy` whether or not the if statement that binds it is run.
edit:
the `do_encounter` thing isn't causing your current error due to a different error you have made.
`type_of_creature_chance == 1 or 2 or 3`
this doesn't me... | null | CC BY-SA 4.0 | null | 2023-03-02T20:34:28.367 | 2023-03-02T20:34:28.367 | null | null | 152,043 | null |
75,620,553 | 2 | null | 75,620,418 | 3 | null | > So the total complexity is O(n * logn * log(logn))?
No.
> wouldn't the while loop run the same number of times that i has been multiplied by 3
Yes.
> in which case it'd be O(n * logn * logn)?
Yes.
The inner most loop will loop log times for a given iteration of the middle loop, but is a power of 3, so actually with ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:34:36.720 | 2023-03-02T20:39:44.910 | 2023-03-02T20:39:44.910 | 5,459,839 | 5,459,839 | null |
75,620,555 | 2 | null | 68,947,676 | 0 | null | I see that this question is kind of old but still unanswered.
From what I can tell, your commands are correct, and that error shouldn't be showing up at all.
The only thing I can suggest is that you double check that you got your node and CLI set up properly for your system. I have used this guide created by the EMURGO... | null | CC BY-SA 4.0 | null | 2023-03-02T20:34:51.187 | 2023-03-02T20:34:51.187 | null | null | 21,321,843 | null |
75,620,557 | 1 | 75,620,743 | null | 0 | 24 | I was trying to slice the data frame using the lambda function like this:
```
print(df.iloc[lambda x: (M < x.index < M + 5) | (x.index % N == 0), :])
```
M and N are variables, integers.
The error descripion:
```
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
``... | Pandas dataframe.iloc [] with callable generates ValueError | CC BY-SA 4.0 | null | 2023-03-02T20:35:10.877 | 2023-03-02T21:06:35.327 | null | null | 14,504,988 | [
"python",
"pandas",
"dataframe"
] |
75,620,550 | 2 | null | 75,620,457 | 2 | null | Inferring `openxlsx::write.xlsx`, it is getting confused by the the class of `Rel`. Wrap it in `as.data.frame(.)` and you'll get what you want.
Reprex:
```
cor(mtcars[,1:3])
# mpg cyl disp
# mpg 1.0000000 -0.8521620 -0.8475514
# cyl -0.8521620 1.0000000 0.9020329
# disp -0.8475514 0.90203... | null | CC BY-SA 4.0 | null | 2023-03-02T20:34:16.987 | 2023-03-02T20:40:01.660 | 2023-03-02T20:40:01.660 | 3,358,272 | 3,358,272 | null |
75,620,558 | 2 | null | 75,620,293 | 1 | null | To do part 2, it is sufficient to rewrite the second constructor in the following way:
```
template<typename Iterator,
typename = std::enable_if_t< !std::is_same_v <Iterator, int> >>
Vector(Iterator first, Iterator last) {
std::cout << "Constructor #2 called\n";
}
```
| null | CC BY-SA 4.0 | null | 2023-03-02T20:35:23.370 | 2023-03-02T20:35:23.370 | null | null | 19,532,971 | null |
75,620,562 | 1 | null | null | -1 | 12 | After adding my email and 'git config --global user.email “” and git config –global user.name “” and get the above error message.
My username and email are added as they show when I do git config --list --show-origin
Thank and I greatly appreciate any help.
| When I then try to git commit -m, I get the error message "fatal: empty ident name (for <MY EMAIL>) not allowed | CC BY-SA 4.0 | null | 2023-03-02T20:35:45.963 | 2023-03-02T20:36:12.697 | 2023-03-02T20:36:12.697 | 21,309,969 | 21,309,969 | [
"git",
"visual-studio",
"visual-studio-code"
] |
75,620,560 | 1 | 75,620,875 | null | 0 | 23 | in my Spreadsheet I have two filter functions:
```
=FILTER(T3:Z;S3:S=FALSE)
=FILTER(AC:AI;AC3:AC<>"")
```
The first filter returns 10 rows and 7 columns
The second filter returns 8 rows and 7 columns
I want all the rows in one list of 18 rows and 7 columns. I don't know if it's simple but I cant get the desired result... | Merge two filtered data horizontally in Google Sheets | CC BY-SA 4.0 | null | 2023-03-02T20:35:39.103 | 2023-03-02T21:11:57.270 | null | null | 19,617,928 | [
"google-sheets",
"google-sheets-formula"
] |
75,620,552 | 1 | null | null | 0 | 15 | Firstly, there are some questions on SO with similar titles but I don't believe this is a duplicate as I thin it's a recent change to a package or vercel causing it.
I upgraded some packages in an app I'm building today..
Here are the packages which changed
```
"dependencies": {
"next": "^13.2.3",
"react": "18.... | Typescript errors in NextJS when deploying to Vercel but not when running build or lint locally | CC BY-SA 4.0 | null | 2023-03-02T20:34:32.113 | 2023-03-02T20:34:32.113 | null | null | 56,007 | [
"typescript",
"next.js",
"eslint",
"vercel"
] |
75,620,556 | 1 | null | null | 0 | 9 | ```
julia> using Pkg
julia> Pkg.add("IJulia")
Installing known registries into `~/.julia`
...
```
By default:
- `~/.julia`- `~/.local/share/jupyter/kernels/julia-1.8`
Is it possible to do a system install instead of local install? e.g.
- `/usr/.julia`- `/usr/local/share/jupyter/kernels/julia-1.8`
I know specifyin... | IJulia: Install into system instead of local directory? | CC BY-SA 4.0 | null | 2023-03-02T20:35:09.760 | 2023-03-02T20:35:09.760 | null | null | 14,781,553 | [
"julia",
"jupyter",
"ipython",
"ijulia-notebook",
"jupyter-kernel"
] |
75,620,548 | 2 | null | 75,609,941 | 1 | null | In my opinion, there is nothing "odd" about offering more than two ways to specify any given command-line option.
The `github.com/clagraff/argparse` package that I originally mentioned here in this "Answer" is no longer being supported. However, I found a more modern and still supported package that I can use which off... | null | CC BY-SA 4.0 | null | 2023-03-02T20:34:05.343 | 2023-03-02T22:07:13.013 | 2023-03-02T22:07:13.013 | 1,800,838 | 1,800,838 | null |
75,620,565 | 1 | null | null | -2 | 20 | Long story short:
I need to run [https://github.com/yt-dlp/yt-dlp](https://github.com/yt-dlp/yt-dlp) from a webserver I own but only have limited access to.
It's a shared (redhat) VM in a hosting environment that lets me upload binary files and run them with php shell_exec() but I don't have ssh access and can't instal... | include all dependencies from a python project | CC BY-SA 4.0 | null | 2023-03-02T20:35:52.440 | 2023-03-02T21:14:51.753 | 2023-03-02T21:14:51.753 | 5,947,043 | 16,386,835 | [
"python",
"makefile",
"hosting",
"yt-dlp"
] |
75,620,570 | 2 | null | 74,869,943 | 0 | null | I had the same problem. Cleaning the addressables' build (from the addressable group build menu) fixed this for me.
| null | CC BY-SA 4.0 | null | 2023-03-02T20:36:24.373 | 2023-03-02T20:36:24.373 | null | null | 4,447,086 | null |
75,620,559 | 1 | null | null | 0 | 25 | I'm trying to pass a csv through an api like this:
The csv is as follow:
```
field_1, field_2, field_3
1, 3, 7
```
the push code is this:
```
with open("sample_csv.csv") as f:
data = {"file": f}
print(data)
headers = {
"Content-Type": "text/csv",
"File-Type": "POS",
"File-Key": "som... | passing a csv through an API | CC BY-SA 4.0 | null | 2023-03-02T20:35:26.447 | 2023-03-03T15:16:51.023 | 2023-03-02T20:46:07.830 | 3,878,398 | 3,878,398 | [
"python",
"api",
"csv",
"aws-lambda"
] |
75,620,567 | 2 | null | 74,854,835 | 0 | null | Did you called the shim.ts in your index/main file? I think that the variable was not added to global variables as the repo says:
```
shim()
Adds btoa and atob functions to global.
```
[https://github.com/craftzdog/react-native-quick-base64](https://github.com/craftzdog/react-native-quick-base64)
| null | CC BY-SA 4.0 | null | 2023-03-02T20:36:01.750 | 2023-03-02T20:36:01.750 | null | null | 1,738,914 | null |
75,620,571 | 2 | null | 10,469,540 | 0 | null | Short answer is that it depends.
For example, if the methods are static, they cannot be overridden or extended by a child class so you can't use inheritance for singleton static class. But if you don't need it, you can leave methods static.
Another reason to keep the methods non-static is to allow dependency injection ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:36:25.187 | 2023-03-02T20:36:25.187 | null | null | 5,649,561 | null |
75,620,574 | 2 | null | 61,442,614 | 0 | null | you can also use concurrent.futures
```
with concurrent.futures.ProcessPoolExecutor() as executor:
executor.map(io.imsave, destination_corrections, images)
```
| null | CC BY-SA 4.0 | null | 2023-03-02T20:36:32.830 | 2023-03-02T20:36:32.830 | null | null | 18,701,069 | null |
75,620,549 | 2 | null | 75,617,527 | 3 | null | It looks like PySide (or, to be precise, Shiboken, the wrapper that allows Python access to Qt objects) is not able to directly connect to slots of objects directly created by Qt.
That seems a PySide bug: PyQt does not show that behavior, meaning that it's completely possible to achieve it.
A similar behavior sometimes... | null | CC BY-SA 4.0 | null | 2023-03-02T20:34:16.753 | 2023-03-02T20:34:16.753 | null | null | 2,001,654 | null |
75,620,564 | 2 | null | 75,614,165 | 0 | null |
## Avoiding Variable Declaration Errors
- `prislistor`-
```
Sub InfogaPrislista()
'
' InfogaPrislista Makro
' Adds a price list and updates the code in excel
'
'Adding fuses to list
Dim Säkringar As ArrayList 'List with fuses
Set Säkringar = New ArrayList
Säkringar.Add prislistor.Cells(4, ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:35:51.727 | 2023-03-02T20:45:41.413 | 2023-03-02T20:45:41.413 | 9,814,069 | 9,814,069 | null |
75,620,577 | 2 | null | 10,116,518 | 0 | null | Delete the migrations files and makemigrations and migrate again.
| null | CC BY-SA 4.0 | null | 2023-03-02T20:37:26.697 | 2023-03-02T20:37:26.697 | null | null | 17,934,821 | null |
75,620,572 | 1 | null | null | 0 | 37 | 443.String Compression -
I practiced this problem in VSCode before copying it to the LeetCode IDE. However, for some reason, the output results on LeetCode were different. Did I miss something?
[](https://i.stack.imgur.com/y3hYs.png)
```
/**
* @param {character[]} chars
* @return {number}
*/
var compress = function ... | Different output in Leetcode IDE and Vscode | CC BY-SA 4.0 | null | 2023-03-02T20:36:27.070 | 2023-03-02T20:49:53.007 | 2023-03-02T20:45:38.907 | 1,491,895 | 21,321,788 | [
"javascript"
] |
75,620,578 | 1 | 75,620,604 | null | 0 | 19 | C:\Users\User>ssh-add C:\Users\User.ssh\id_rsa_do
Error connecting to agent: No such file or directory
Identity added: .ssh\id_rsa_do
| SSH error setting file in comand line windows | CC BY-SA 4.0 | null | 2023-03-02T20:37:26.960 | 2023-03-02T21:38:59.157 | null | null | 19,993,818 | [
"ssh"
] |
75,620,575 | 1 | 75,620,626 | null | 1 | 37 | I have a string named brand that can be `None` or contain a value. How can I search for a substring within it when it is `None`?
By putting an additional if-statement to check if the brand is for `None` before searching the substring works, but is there a better way?
```
### When the string brand contains a value ###
b... | Check if a substring is present in a string variable that may be set to None | CC BY-SA 4.0 | null | 2023-03-02T20:37:00.403 | 2023-03-02T21:03:39.163 | null | null | 18,086,775 | [
"python",
"string"
] |
75,620,561 | 1 | null | null | 1 | 26 | I'm new to Swift development and I've been building an app that takes a username and password and should send the user to a new page, but it doesn't do that.
I am using a button that takes a username and password and sends that to a function that eventually will have a database connected with it to check whether the us... | Is there a way to navigate to another View without a NavigationLink using SwiftUI? | CC BY-SA 4.0 | null | 2023-03-02T20:35:41.573 | 2023-03-02T21:34:32.663 | 2023-03-02T21:34:32.663 | 15,778,659 | 15,778,659 | [
"swift",
"macos",
"swiftui",
"navigation"
] |
75,620,576 | 1 | 75,620,912 | null | 0 | 14 | The issue I am having is after I load the unpacked extension to chrome and attempt to use it, the "Reading time" option is grey and unclickable. Here is the link to the tutorial I was following:
[https://developer.chrome.com/docs/extensions/mv3/getstarted/tut-reading-time/](https://developer.chrome.com/docs/extensions/... | "Read Time" getting started Tutorial not working for chrome extension | CC BY-SA 4.0 | null | 2023-03-02T20:37:23.170 | 2023-03-02T21:16:39.077 | 2023-03-02T20:39:24.197 | 21,321,793 | 21,321,793 | [
"javascript",
"json",
"google-chrome-extension"
] |
75,620,579 | 1 | 75,621,993 | null | 0 | 30 | I am fairly new to Jenkins so I am looking for suggestion to how I can achieve this. Right now I am doing migration using Jenkins pipeline which performs several tasks, etc.. I would like to know if it is possible to create another pipeline (which would be a copy from another) on runtime of the pipeline I am running. ... | how to create a new pipeline dynamically when running another pipeline in jenkins | CC BY-SA 4.0 | null | 2023-03-02T20:37:44.833 | 2023-03-03T01:22:18.417 | 2023-03-03T01:10:34.760 | 155,020 | 1,960,170 | [
"jenkins",
"groovy",
"jenkins-pipeline",
"jenkins-groovy"
] |
75,620,582 | 2 | null | 65,773,301 | 0 | null | As I tested today, `yarn publish` did not publish my `*.d.ts` files while `npm publish` did. I believe it is a bug of yarn. I am running yarn 1.22.19.
| null | CC BY-SA 4.0 | null | 2023-03-02T20:38:15.477 | 2023-03-02T20:38:15.477 | null | null | 862,862 | null |
75,620,583 | 1 | null | null | 0 | 12 | It is well documented that Azure is retiring MS Graph API and ADAL libraries. It is not clear whether or not Azure OAUTH V1 implementation will be retired as well at some point. If anyone has insights on this..
| Azure OAUTH V1 retirement date | CC BY-SA 4.0 | null | 2023-03-02T20:38:18.910 | 2023-03-02T20:38:18.910 | null | null | 2,132,421 | [
"azure",
"oauth"
] |
75,620,581 | 1 | null | null | 0 | 21 | I'm currently inserting a documentation on our TechDocs in Spotify's Backstage, but since it has a lot of customization, I need to use CSS (either through a separate file or the `<style>` block inside the Markdown file).
I already tried several things, like the `extra_css` property in `mkdocs.yaml`, some markdown exten... | Is there a way to use CSS in Backstage TechDocs? | CC BY-SA 4.0 | null | 2023-03-02T20:37:59.430 | 2023-03-03T21:55:18.697 | null | null | 10,940,860 | [
"html",
"css",
"mkdocs",
"backstage"
] |
75,620,580 | 2 | null | 75,618,599 | 0 | null | A base option using `subset` + `row.names`
```
> row.names(subset(mtcars, abs(cyl - 5) == 1))
[1] "Mazda RX4" "Mazda RX4 Wag" "Datsun 710" "Hornet 4 Drive"
[5] "Valiant" "Merc 240D" "Merc 230" "Merc 280"
[9] "Merc 280C" "Fiat 128" "Honda Civic" "Toyota Corolla"
[13] "Toyota ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:37:47.733 | 2023-03-02T20:37:47.733 | null | null | 12,158,757 | null |
75,620,573 | 2 | null | 75,618,543 | 0 | null | This would look like this:
```
import numpy
import torch
from torch.utils.data import Dataset
from pathlib import Path
class MyDataset(Dataset):
def __init__(self, folder: str) -> None:
super().__init__()
self.folder = Path(folder).expanduser().resolve()
self.patches =self.folder.glob("**... | null | CC BY-SA 4.0 | null | 2023-03-02T20:36:31.487 | 2023-03-02T20:48:42.653 | 2023-03-02T20:48:42.653 | 6,324,055 | 6,324,055 | null |
75,620,587 | 1 | null | null | 0 | 22 | I'm trying to deploy a spotify web app. I registered a domain using AWS amplify, and the app works until it calls the spotify api, upon which I get a INVALID_CLIENT: Invalid redirect URI error.
How do I registered a redirect URI in AWS Amplify? I can't figure it out.
I changed the 'http://localhost:3000/callback' redir... | Deploying Spotify web app: Changing Redirect URI from http://localhost:3000/callback to a web address | CC BY-SA 4.0 | null | 2023-03-02T20:38:47.587 | 2023-03-02T20:38:47.587 | null | null | 21,321,815 | [
"javascript",
"amazon-web-services",
"oauth-2.0",
"aws-amplify",
"spotify"
] |
75,620,584 | 2 | null | 75,620,414 | 1 | null | There is a small problem which depends on the context and may raise to ambiguous behaviors: `memb_e`.
The 1st attempt works because you don't try to access to the iteration object.
Instead, in the 2nd loop you try get the length of the list `len(memb_e)` and read a value `memb_e[i+1]` but `memb_e` is an object of the ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:38:22.563 | 2023-03-02T21:16:42.337 | 2023-03-02T21:16:42.337 | 16,462,878 | 16,462,878 | null |
75,620,588 | 1 | null | null | -2 | 15 | I am making a game and i need audio. I want to make class or something easily usable like void for playing sounds so they can play at the same time.I also need it from the Resources folder. I found out that SoundPlayer is not an option cause it can play only one sound at the time. And Windows Media Player is not in .NE... | WinForms Multiple Sounds Simultaneously in big project | CC BY-SA 4.0 | null | 2023-03-02T20:38:52.567 | 2023-03-02T20:38:52.567 | null | null | 20,520,083 | [
"c#",
"winforms",
"audio",
"naudio"
] |
75,620,569 | 1 | null | null | 0 | 14 | I’m trying to do next: upon successful payment update the tokens (context) and display them in the user panel component. Currently, I am parsing the user input (purchasedCoins) to an integer and setting purchasedCoins equal to the quantity. If the quantity is less than 0, I want to throw an error, otherwise, I want to ... | Stripe Payment: Can't update Tokes | CC BY-SA 4.0 | null | 2023-03-02T20:36:13.947 | 2023-03-04T02:44:21.110 | 2023-03-04T02:44:21.110 | 18,613,308 | 18,613,308 | [
"reactjs",
"asynchronous",
"async-await",
"stripe-payments"
] |
75,620,586 | 1 | null | null | 0 | 64 | I am a researcher in the field of solid mechanics and new to this website as far as asking the question side is concerned.
I am trying to use of to find solutions of . My system has three non-linear equations with three unknowns. Each of these equations also has an input parameter 'V' which I specify explicitly.
```
... | Regarding the use of 'nsolve' of sympy to find the solution of system of non-linear algebraic equations | CC BY-SA 4.0 | null | 2023-03-02T20:38:37.823 | 2023-03-03T13:29:59.843 | 2023-03-03T05:48:38.040 | 4,420,967 | 21,320,864 | [
"python",
"scipy",
"sympy",
"nonlinear-equation"
] |
75,620,594 | 1 | null | null | 1 | 24 | I have written a program that needs to read the Caps lock state in Secure Desktop mode. However, neither Control.IsKeyLocked nor the Win32API GetKeyState() can obtain the current Caps lock state.
I think that it does not require administrator privileges to do so because my TextBox is set to password input mode and it d... | How can I read the Caps lock state in Windows Secure Desktop? | CC BY-SA 4.0 | null | 2023-03-02T20:39:41.717 | 2023-03-03T18:41:15.373 | 2023-03-02T20:41:12.260 | 15,448,557 | 15,448,557 | [
"c#",
".net",
"windows",
"security"
] |
75,620,593 | 1 | null | null | -1 | 7 | I have successfully used [https://github.com/dperson/openvpn-client](https://github.com/dperson/openvpn-client) to give a container access to the devices behind VPN.
My LAN is 192.168.1.0/24 and the VPN subnet is 10.11.0.0/16.
The problem I have is that I need to have the container access the LAN as well as the VPN. Bu... | Access two networks (LAN + VPN) from docker container | CC BY-SA 4.0 | null | 2023-03-02T20:39:20.240 | 2023-03-02T20:39:20.240 | null | null | 971,229 | [
"docker",
"networking",
"vpn"
] |
75,620,592 | 2 | null | 75,619,552 | 0 | null | 1006 is
> ERROR_FILE_INVALID1006 (0x3EE)The volume for a file has been externally altered so that the opened file is no longer valid.
"Externally altered" seems like a definite possibility when working with mapped drives (mapped from virtual machine host or from network server could both reasonably create that error). ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:39:18.660 | 2023-03-02T20:39:18.660 | null | null | 103,167 | null |
75,620,591 | 1 | null | null | 0 | 10 | i have this ecosystem.config.js
```
module.exports = {
apps: [
{
name: 'web',
script: 'serve',
watch: true,
port: 80,
env: {
PM2_SERVE_PATH: '/var/www/web',
PM2_SERVE_PORT: 80,
PM2_SERVE_SPA: 'true',
PM2_SERVE_HOMEPAGE: '/index.html',
REACT_APP... | PM2 environment variables with React.js | CC BY-SA 4.0 | null | 2023-03-02T20:39:00.527 | 2023-03-02T20:39:00.527 | null | null | 16,784,606 | [
"reactjs",
"pm2"
] |
75,620,595 | 1 | null | null | 0 | 33 | I have somewhat of an idea of what AVX-512 is, but how do I write my Python programmes in order to make sure that they make use of it? For example, to make use of the L1 cache, I can use arrays of contiguously allocated in memory data that are to be used sequentially and fit within the L1 cache. I can also make my code... | What is AVX-512 and how to leverage it in Python code? | CC BY-SA 4.0 | null | 2023-03-02T20:39:50.563 | 2023-03-02T20:39:50.563 | null | null | 14,649,429 | [
"python",
"performance",
"intel",
"cpu-registers",
"avx512"
] |
75,620,596 | 2 | null | 75,615,373 | 1 | null | TLS/SSL has 2 tasks:
1. Provide a mechanism to allow the data transmitted between 2 parties to be encrypted.
2. Ensures that one or both ends of the connection are who the claim to be.
In most normal cases it is the server that needs to prove it is who it claims to be, it does that by presenting a certificate that h... | null | CC BY-SA 4.0 | null | 2023-03-02T20:39:52.397 | 2023-03-02T21:33:03.913 | 2023-03-02T21:33:03.913 | 504,554 | 504,554 | null |
75,620,602 | 2 | null | 75,583,144 | 0 | null | After researching and reading about this topic, I found out that I had a miss understanding of aggregation, in the case if, I was putting Categories in another aggregate called Blog or Post that Post is an Aggregate root, So how about if I needed to get the list of all categories? with DDD and my implementation, I coul... | null | CC BY-SA 4.0 | null | 2023-03-02T20:40:28.647 | 2023-03-02T20:40:28.647 | null | null | 1,081,336 | null |
75,620,597 | 2 | null | 75,609,416 | 0 | null | `ax.scatter()` takes as input the lists of X values, Y values and Z values. So no need to create the intermediary arrays `arr` and `data`.
Then, X, Y and Z need to be numeric values, so map "clothes", "shoes" and "hat" string values to numeric values (e.g 0, 1, 2) and set the `yticks` labels afterward.
Here is a workin... | null | CC BY-SA 4.0 | null | 2023-03-02T20:39:57.270 | 2023-03-03T10:46:16.440 | 2023-03-03T10:46:16.440 | 11,080,037 | 11,080,037 | null |
75,620,598 | 2 | null | 75,620,269 | 1 | null | You can extract the x,y coordinates of the line and use numpy polyfit to get your slope and intercept.
```
import statsmodels.api as sm
import scipy.stats as stats
import numpy as np
np.random.seed(100)
a = np.random.normal(0, 4, 100)
fig = sm.qqplot(a, stats.norm(loc=5, scale=1), line="r")
line = fig.gca().lines[-1]... | null | CC BY-SA 4.0 | null | 2023-03-02T20:40:07.717 | 2023-03-02T20:40:07.717 | null | null | 4,718,350 | null |
75,620,605 | 2 | null | 75,614,197 | 0 | null | You have a loop for fields but no loop for iterating recordset. So only 1 slide is created for one record. If you want a slide for each record, consider:
```
Do While Not rs.EOF
' Add new slide to the presentation
<continue your code here>
rs.MoveNext
Loop
MsgBox "Export complete."
```
| null | CC BY-SA 4.0 | null | 2023-03-02T20:40:43.327 | 2023-03-02T20:46:46.610 | 2023-03-02T20:46:46.610 | 7,607,190 | 7,607,190 | null |
75,620,601 | 1 | null | null | -1 | 25 | I've setup a python flask webapp and I'm using the Binance API to trade on the Spot market. Part of my strategy is that i only want to have 1 "open" trade in the market at a time. To check this, I need to retrieve all past orders on my account account, so that i can work with the data.
As Binance API forces you to spec... | Python Binance API - get_all_orders() limitation | CC BY-SA 4.0 | null | 2023-03-02T20:40:18.740 | 2023-03-02T20:40:18.740 | null | null | 20,941,652 | [
"python",
"api",
"binance"
] |
75,620,589 | 1 | null | null | 0 | 36 | I am studying appscript and I am stucked here, i dont know why I cant get the data from items!E2:E, it is a concatenate value of items!B2:B and items!C2:C.
This is my html code:
```
<!DOCTYPE html>
<html>
<head>
<base target="_top">
</head>
<body>
<form>
<label for="transaction-id">Transaction ID:</... | How to make a dropdown in HTML form from a range in Google Sheets - Appscript | CC BY-SA 4.0 | null | 2023-03-02T20:38:53.190 | 2023-03-03T01:56:53.467 | 2023-03-02T20:45:11.030 | 21,321,811 | 21,321,811 | [
"html",
"google-apps-script",
"google-sheets"
] |
75,620,606 | 1 | 75,623,434 | null | 0 | 23 | I'm building an app which needs to get an image from the internet. For a split second, the whole MaterialApp loads but not the Image widget (I suppose it is loading the image). My question is: why is it that an "Image.network" call doesn't output a future?
| Why is it that the output of an "Image.network" call is not a future? | CC BY-SA 4.0 | null | 2023-03-02T20:40:54.667 | 2023-03-03T05:23:49.683 | 2023-03-03T05:23:49.683 | 13,431,819 | 9,902,120 | [
"flutter",
"dart"
] |