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,629,916 | 1 | null | null | -1 | 25 | I am writing a code in java where the account number key will take up to 12 digits values.
I am having issues if I write \\d{12}.
Let's say someone may have 10 digits account numbers. So my code gives me an error because it did not find 12 digits in that account key.
so how can I write a regular expression that will t... | Regex to match numbers upto 12 digits | CC BY-SA 4.0 | null | 2023-03-03T17:00:43.767 | 2023-03-03T17:19:22.997 | null | null | 11,322,390 | [
"java",
"regex"
] |
75,629,908 | 1 | null | null | 0 | 16 | Two weeks ago I converted all my css to scss files. Everything except the use of a background image is working. I have been researching solutions to no avail because it seems that similar questions have all gone unanswered for several years.
Ideally I would like the image to be set as a variable, but I can't even get i... | SCSS file use of image / url() won't appear in page styles | CC BY-SA 4.0 | null | 2023-03-03T17:00:08.487 | 2023-03-03T18:03:58.383 | 2023-03-03T17:35:53.420 | 20,449,565 | 20,449,565 | [
"sass",
"background-image",
"sass-variables"
] |
75,629,915 | 1 | 75,630,272 | null | -3 | 36 | > Traceback (most recent call last): File
"C:\Users\user\Desktop\depremleri-goruntuleme-main\main.py", line 15,
in
for item in json["result"]: KeyError: 'result'
im getting this keyerror error and I don't know how to solve it
```
import json
from os import system
from time import sleep
import requests ... | I am getting KeyError | CC BY-SA 4.0 | null | 2023-03-03T17:00:39.137 | 2023-03-03T19:12:38.100 | 2023-03-03T19:12:38.100 | 4,420,967 | 21,327,509 | [
"python",
"keyerror"
] |
75,629,921 | 2 | null | 75,629,884 | 1 | null | It's a standard GNU format for describe change:
[https://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html#Detailed-Unified](https://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html#Detailed-Unified)
You can refer to the following response for further information:
[https://stack... | null | CC BY-SA 4.0 | null | 2023-03-03T17:01:07.973 | 2023-03-03T17:01:07.973 | null | null | 9,361,998 | null |
75,629,922 | 2 | null | 71,611,839 | 0 | null | Found the solution.
I went to the official docs page found in Callan's answer:
[https://capacitorjs.com/docs/guides/splash-screens-and-icons](https://capacitorjs.com/docs/guides/splash-screens-and-icons)
I found that when I clicked on the "cordova-res" link found on that page, it instead redirects me to the capacitor-a... | null | CC BY-SA 4.0 | null | 2023-03-03T17:01:09.367 | 2023-03-03T17:01:09.367 | null | null | 1,671,953 | null |
75,629,918 | 2 | null | 75,629,817 | 1 | null | Using the `&` creates an immutable reference to `ColumnVector` and its fields, so you cannot get a mutable reference to update it.
You could do:
```
pub struct ColumnVector {
pub data: Vec<f32>
}
impl AddAssign for &mut ColumnVector {
fn add_assign(&mut self, other: Self) {
for (index, elem) in other.... | null | CC BY-SA 4.0 | null | 2023-03-03T17:00:53.107 | 2023-03-03T17:06:15.910 | 2023-03-03T17:06:15.910 | 8,055,704 | 8,055,704 | null |
75,629,923 | 2 | null | 75,629,535 | 0 | null | The problem was that only the first universe is executed by default. When doing
```
execute_universe(M, .universe = 2)
execute_universe(M, .universe = 3)
```
the correct values for the other conditions show up.
Somehow this doesn't work when I execute all at the same time:
```
execute_universe(M)
```
Does someone kno... | null | CC BY-SA 4.0 | null | 2023-03-03T17:01:09.580 | 2023-03-03T17:22:58.193 | 2023-03-03T17:22:58.193 | 13,549,735 | 13,549,735 | null |
75,629,926 | 2 | null | 75,605,225 | 0 | null | You can do something like this
```
resource "aws_cloudfront_response_headers_policy" "headers_policy" {
name = "security-headers-policy"
strict_transport_security {
override = true
access_control_max_age_sec = 63072000
include_subdomains = true
preload = true
}
xss_protection {
... | null | CC BY-SA 4.0 | null | 2023-03-03T17:01:21.590 | 2023-03-03T17:01:21.590 | null | null | 15,558,255 | null |
75,629,920 | 1 | null | null | -1 | 10 | Okay I am using a react app with the classic Mern stack. I was able to deploy my application but this what I see now. [enter image description here](https://i.stack.imgur.com/rghPP.png)
[https://dev.to/lawrence_eagles/causes-of-heroku-h10-app-crashed-error-and-how-to-solve-them-3jnl#:~:text=If%20your%20Procfile%20is%20... | Herokue app deployed but application does not display H10 error | CC BY-SA 4.0 | null | 2023-03-03T17:01:04.113 | 2023-03-03T17:01:04.113 | null | null | 19,243,395 | [
"heroku"
] |
75,629,928 | 1 | null | null | 0 | 6 | I need to get the first pet name of the first "other" object that in this case is "jhon", i am using this JsonPath "$[1].other.pets[0].name" and it works correctly but i can't use [1] because the first "other" element could be at [0] in the next json responds.
My json is:
`[{"load":{}},{"other":{"pets":[{"name":"john",... | Can't get object by name instead of array position with json path | CC BY-SA 4.0 | null | 2023-03-03T17:01:34.543 | 2023-03-03T17:01:34.543 | null | null | 21,327,420 | [
"json",
"jsonpath"
] |
75,629,919 | 2 | null | 75,305,564 | 0 | null | I've not spent much time using this version of Umbraco but here is my attempt to answer some of your queries
The reason the first two attempts did not work is that the `Umbraco.Media()` method expects an `IPublishedContent` object as its argument, but the `ToString()` method returns a string representation of the `IPub... | null | CC BY-SA 4.0 | null | 2023-03-03T17:00:57.227 | 2023-03-03T17:00:57.227 | null | null | 3,546,454 | null |
75,629,925 | 1 | null | null | 1 | 18 | Typically I work on the `float` volume of the integer sizes `vdimx`, `vdimy`, `vdimz` in OpenCL. On the beginning of the kernel, I typically have the code such as
```
int i = get_global_id(0);
int j = get_global_id(1);
int k = get_global_id(2);
```
It seems that OpenCL runtime allocates i,j,k very close to each other ... | Randomizing OpenCL/CUDA indexing by some permutation | CC BY-SA 4.0 | null | 2023-03-03T17:01:20.887 | 2023-03-03T17:01:20.887 | null | null | 4,062,818 | [
"c++",
"cuda",
"opencl"
] |
75,629,930 | 1 | 75,630,209 | null | 0 | 19 | I don't want to submit just some .cs file changes in Visual Studio 2017, Git. I am waiting to hear from the person who made the request to continue working on some files. According to the news, I will continue coding or undo the changes I have made. But in order not to waste time waiting for that news that I need right... | Visual Studio 2017, I don't want to submit some .cs file changes in Git | CC BY-SA 4.0 | null | 2023-03-03T17:01:35.877 | 2023-03-03T17:34:29.590 | null | null | 3,129,494 | [
"git",
"github",
"visual-studio-2017"
] |
75,629,929 | 2 | null | 9,167,442 | 0 | null |
#### An answer without using any Google API:
If you want the video length of a limited number of videos for a project, and you do not care about reliability (i.e., not to use in production), here is a simple and dirty Python-based web scraping solution that will not need any API key.
```
import requests
def get_yout... | null | CC BY-SA 4.0 | null | 2023-03-03T17:01:35.337 | 2023-03-03T17:32:28.957 | 2023-03-03T17:32:28.957 | 5,304,366 | 5,304,366 | null |
75,629,935 | 1 | null | null | -1 | 11 | I run a start up and am currently managing two separate systems: 1) my production database that includes all core tables that power my business; 2) a set of interconnecting worksheets that I use for analysis and systems that my platform does not yet support. I'd like to bring the two together in a single system, but do... | How can I integrate my spreadsheet (Airtable, Google Sheets or Excel) with a database (including read/write access)? | CC BY-SA 4.0 | null | 2023-03-03T17:01:59.867 | 2023-03-03T17:01:59.867 | null | null | 21,327,507 | [
"excel",
"google-sheets",
"amazon-rds",
"spreadsheet",
"airtable"
] |
75,629,934 | 1 | null | null | 0 | 20 | I am trying to knit a document from RStudio to pdf, but I am getting the following error (attached). I have made a MWE that replicates my problem.
[Error](https://i.stack.imgur.com/9EqSx.png)
I have Rstudio 2022.12.0 on Windows 10 Pro with R 4.2.2, along with TexLive 2022 and Pandoc installed. The latest version of tin... | Problem with knitting R documents from RStudio | CC BY-SA 4.0 | null | 2023-03-03T17:01:57.160 | 2023-03-03T21:04:29.900 | 2023-03-03T21:04:29.900 | 21,327,466 | 21,327,466 | [
"r",
"latex",
"r-markdown",
"knitr",
"tinytex"
] |
75,629,931 | 1 | 75,629,951 | null | 3 | 31 | In [r](/questions/tagged/r), I have some data in a data frame and need to export it to `jsonl`. In `jsonl` [each line is its own valid json](https://stackoverflow.com/questions/35016713/how-do-i-import-a-jsonl-file-in-r-and-how-do-i-transform-it-in-csv/62311093#62311093). As the linked question shows, you can easily do... | Write json scalars in R | CC BY-SA 4.0 | null | 2023-03-03T17:01:45.027 | 2023-03-03T20:31:55.590 | 2023-03-03T20:31:55.590 | 11,932,936 | 11,932,936 | [
"r",
"jsonlite"
] |
75,629,937 | 2 | null | 75,622,961 | 0 | null | I think you just need to wrap your `foreach` loops in a `if` statement to be sure that you don't feed the loop with wrong information.
Please try the code below:
```
if(is_array($my_variable)){
foreach($my_variable as $whatever){
// your code here
}
}
```
With this you will be sure that your `foreach`... | null | CC BY-SA 4.0 | null | 2023-03-03T17:02:12.473 | 2023-03-03T17:02:12.473 | null | null | 7,325,962 | null |
75,629,936 | 2 | null | 75,619,806 | 1 | null | Figured it out by reading the source code for material UI. Figured I'd answer since the solution isn't documented anywhere as far as I could find after several hours of searching. `setMode` definitely does force the mode you select to be 'light' or 'dark' as I thought. However, you can get an extra function which short... | null | CC BY-SA 4.0 | null | 2023-03-03T17:02:02.773 | 2023-03-03T17:02:02.773 | null | null | 21,204,256 | null |
75,629,940 | 1 | 75,630,027 | null | 3 | 50 | There is a string:
`input_str = 'The substring of "python" from index @ to index @ inclusive is "tho"'`
and a list of indices:
`idx_list = [2, 4]`
I want to replace the character `@` in `str_input` with each element of the `idx_list` to have the following output:
`output_str = 'The substring of "python" from index 2 to... | How to replace particular characters of a string with the elements of a list in an efficient way? | CC BY-SA 4.0 | null | 2023-03-03T17:02:45.873 | 2023-03-03T19:35:49.017 | 2023-03-03T17:14:26.793 | 5,623,035 | 12,469,912 | [
"python",
"python-3.x"
] |
75,629,933 | 1 | null | null | 0 | 13 | When using the function database.child("users").observeSingleEvent() from FirebaseDatabase, I am able to retrieve the expected results but not save it in a class variable of a different class.
I have a method in a Database Manager that getAllUsers from my database. I have seen this works as expected
```
public func get... | Why isn't my class variable being set after calling database.child("users").observeSingleEvent() from FirebaseDatabase in Swift? | CC BY-SA 4.0 | null | 2023-03-03T17:01:55.610 | 2023-03-03T17:01:55.610 | null | null | 21,200,568 | [
"ios",
"swift",
"firebase",
"firebase-realtime-database"
] |
75,629,939 | 1 | 75,630,076 | null | 0 | 29 | I would like to use my JSON file to store all the info in it to display in Flutter.
Everytime i get this Error:
`_TypeError (type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>')`
Here are my Files:
[db.json](https://codeshare.io/nzopbX)
[breed_page.dart](https://codeshare.io/LwEMmb)
... | How can I read Data from a JSON File and display it in Flutter Widgets? | CC BY-SA 4.0 | null | 2023-03-03T17:02:33.597 | 2023-03-03T17:17:44.383 | null | null | 20,684,971 | [
"ios",
"json",
"flutter"
] |
75,629,941 | 1 | null | null | 0 | 7 | I've created a circle layer in a mapbox. I can add an event to the annotations, but how can i add a event click in my circle layer and get the information from each particular point ?
I want to be able to click on the circle and then get the information in a popup. Is that possible ?
```
override fun onCreate(savedInst... | How can i add a click event to a circle layer in mapbox android? | CC BY-SA 4.0 | null | 2023-03-03T17:02:51.510 | 2023-03-03T17:02:51.510 | null | null | 19,538,282 | [
"android",
"kotlin",
"mapbox-android"
] |
75,629,943 | 2 | null | 73,386,242 | 0 | null | You can use abort controller, something like this...
```
const abortController = useRef(new abortController());
const [fetchPosts] = useLazyQuery(GET_POSTS,{
context: {
fetchOptions: {
signal: abortController.current.signal,
},
},
});
const abort = () => {
abortControll... | null | CC BY-SA 4.0 | null | 2023-03-03T17:03:01.420 | 2023-03-03T19:47:33.673 | 2023-03-03T19:47:33.673 | 2,418,295 | 2,418,295 | null |
75,629,938 | 1 | null | null | 0 | 22 | I'm trying to solve a seemingly unique VRP using OR-tools where I have a number of depots, each with a capacity constraint and a number of vehicles, also with a capacity constraint.
I then have a number of parcels I can drop off to any of the depots for delivery by the vehicles.
So for example, let's say I have:
- - - ... | Solving a flexible multi-depot multi-vehicle VRP with OR-tools | CC BY-SA 4.0 | null | 2023-03-03T17:02:27.843 | 2023-03-03T20:26:29.743 | 2023-03-03T20:26:29.743 | 4,015,566 | 4,015,566 | [
"python",
"or-tools",
"vehicle-routing"
] |
75,629,949 | 2 | null | 75,629,484 | 0 | null | Here is code that you can start with. You might need to adjust depending upon how much the CDATA content changes.
```
$str = "<g:id><![CDATA[131614-3XL]]></g:id>";
$expected = "<g:id><![CDATA[131614-3XL]]></g:id><g:id2><![CDATA[131614]]></g:id2>";
# Get the first section without the g:id wrapper and without the -3XL ... | null | CC BY-SA 4.0 | null | 2023-03-03T17:04:01.093 | 2023-03-03T17:04:01.093 | null | null | 11,343,188 | null |
75,629,945 | 1 | null | null | 0 | 18 | I wonder if there is an alternative way to specify the function type "any function" that does not use `any` (and therefore improves type-safety).
To clarify, I am searching for an alternative for the following type:
```
type AnyFunctionAsUsual = (...args: any[]) => any;
```
I was able to replace the return value with ... | Alternative for "any function" ((...args: any[]) => any) without using any | CC BY-SA 4.0 | null | 2023-03-03T17:03:14.370 | 2023-03-03T17:03:14.370 | null | null | 12,022,565 | [
"typescript",
"types",
"type-safety",
"typescript-eslint"
] |
75,629,948 | 1 | null | null | 1 | 41 | Consider the following code.
```
import sys
a = [1, 2, 3]
def foo(x):
print(sys.getrefcount(x))
foo(a) # prints out 4 -- but why?
```
When we invoke `foo(a)` and when `print(sys.getrefcount(x))` executes, the array `[1, 2, 3]` is referenced by `a`, by the parameter `x` of the function `foo` and by the parameter... | Why does getrefcount increase by 2 when put inside a function? | CC BY-SA 4.0 | null | 2023-03-03T17:03:44.983 | 2023-03-03T20:20:05.447 | 2023-03-03T17:05:29.630 | 11,082,165 | 19,482,605 | [
"python",
"cpython",
"reference-counting"
] |
75,629,950 | 2 | null | 75,595,840 | 0 | null | Qt does not support CSS 3.0 but it supports CSS 2.0.
You need to modify your css to get what you want.
Here is how to do:
```
QPushButton{
position: relative;
padding: 10px 20px;
border: none;
background-color: #fff;
color: #333;
cursor: pointer;
overflow: hidden;
}
QPushButton:hover {
width: 5px;
height: 100%;
border... | null | CC BY-SA 4.0 | null | 2023-03-03T17:04:01.620 | 2023-03-03T17:04:01.620 | null | null | 9,515,623 | null |
75,629,951 | 2 | null | 75,629,931 | 3 | null | We may use `auto_unbox = TRUE`
```
library(purrr)
library(jsonlite)
d |>
transpose() |>
map_chr(toJSON, auto_unbox = TRUE)
```
-output
```
[1] "{\"id\":1,\"text\":\"this is a string\"}"
[2] "{\"id\":2,\"text\":\"this is another string\"}"
[3] "{\"id\":3,\"text\":\"yet another string\"}"
```
| null | CC BY-SA 4.0 | null | 2023-03-03T17:04:04.360 | 2023-03-03T17:04:04.360 | null | null | 3,732,271 | null |
75,629,956 | 2 | null | 75,619,308 | 0 | null | I found the solution.
I moved the login to nullify `hasToRedirectAsCreated` from `componentDidMount()` to `componentDidUpdate()` and now the infinite redirection loop is gone.
| null | CC BY-SA 4.0 | null | 2023-03-03T17:04:19.653 | 2023-03-03T17:04:19.653 | null | null | 1,399,706 | null |
75,629,954 | 1 | null | null | 0 | 23 | I want to automatically set the `createdBy` and `modifiedBy` properties of an entity.
To set these properties I use the doctrine lifecycle hooks `prePersist` and `preUser`as described here: [https://symfony.com/doc/current/doctrine/events.html#doctrine-lifecycle-callbacks](https://symfony.com/doc/current/doctrine/event... | Symfony set `createdBy` and `modifiedBy` properties of entity | CC BY-SA 4.0 | null | 2023-03-03T17:04:12.470 | 2023-03-03T22:55:32.470 | null | null | 5,630,066 | [
"symfony",
"doctrine-orm",
"doctrine",
"entity"
] |
75,629,946 | 1 | null | null | 0 | 24 | any help is much appreciated!
I have an extended database (more than 1000), and I would like to eliminate some rows and keep only the latest information on each individual's name. I have no idea how to start.
Original Database
| Name | Year | Weight |
| ---- | ---- | ------ |
| John | 2021-04-03 | 203 |
| John | 20... | How to filter and create a new database in r based on the latest observation and date rows? | CC BY-SA 4.0 | null | 2023-03-03T17:03:23.543 | 2023-03-03T17:24:20.157 | 2023-03-03T17:12:09.673 | 3,732,271 | 14,112,659 | [
"r"
] |
75,629,952 | 2 | null | 75,629,592 | 0 | null | > ` This gives me "_minpack.error: Result from function call is not a proper array of floats".
This is because you're sending 2D arrays (`X` and `Y`) in the `fsolve` function. Try reshaping `X` and `Y` before the `f()` call.
```
X = X.reshape(-1)
Y = Y.reshape(-1)
```
You'll come across a second error because the `x0`... | null | CC BY-SA 4.0 | null | 2023-03-03T17:04:05.667 | 2023-03-03T17:47:41.810 | 2023-03-03T17:47:41.810 | 11,080,037 | 11,080,037 | null |
75,629,959 | 2 | null | 64,192,472 | 0 | null | similar code and it works the same, choose whichever is easier for you
```
import tkinter
root = tkinter.Tk()
def open_window():
global win_opened
if not 'win_opened' in globals(): win_opened = False
if win_opened == True: return
window = tkinter.Tk()
win_opened = True
def False_on_close(event... | null | CC BY-SA 4.0 | null | 2023-03-03T17:04:24.447 | 2023-03-03T17:41:43.597 | 2023-03-03T17:41:43.597 | 13,200,479 | 13,200,479 | null |
75,629,927 | 1 | null | null | 0 | 6 | The logs (picture 1) within the red square happen when a photo is opened to be displayed in react-avatar-editor to be editted.(picture 2-3) all the logs below the red square happen when i click the save button on my form.(picture 4) (not the confirm button on the photo editor).
I want to persist the File data within th... | When I store a File object using Jotai's atomWithStorage, why does the object change after I dispatch my react hook form | CC BY-SA 4.0 | null | 2023-03-03T17:01:32.463 | 2023-03-03T17:01:32.463 | null | null | 15,740,318 | [
"reactjs",
"local-storage",
"react-hook-form",
"jotai"
] |
75,629,958 | 2 | null | 75,629,909 | 0 | null | You can take advantage of the [rest property](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#rest_property) which will collect the rest of the props:
```
export const AutocompleteInput: React.FC<AutocompleteInputProps> = ({ searchIcon = true, clearSearchIcon = true,... | null | CC BY-SA 4.0 | null | 2023-03-03T17:04:23.013 | 2023-03-03T17:04:23.013 | null | null | 395,910 | null |
75,629,955 | 2 | null | 75,629,031 | 0 | null | that's odd! Is this the only code that involves with this part of code? I just tested and got true result :
```
Optional([<CGColor 0x6000002bd6e0> [<CGColorSpace 0x6000002b9980> (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; sRGB IEC61966-2.1; extended range)] ( 1 0 0 1 ), <CGColor 0x6000002bd2c0> [<CGColorSpace 0x6000... | null | CC BY-SA 4.0 | null | 2023-03-03T17:04:14.467 | 2023-03-03T17:04:14.467 | null | null | 653,122 | null |
75,629,953 | 2 | null | 55,550,023 | 0 | null | We use GitHub Enterprise server which got upgraded from 3.4 to 3.6
Notification : [https://github.blog/2022-06-28-improving-git-protocol-security-on-github-enterprise-server/](https://github.blog/2022-06-28-improving-git-protocol-security-on-github-enterprise-server/)
After our GitHub Server Crypto upgrade, I got the e... | null | CC BY-SA 4.0 | null | 2023-03-03T17:04:06.977 | 2023-03-03T17:11:31.987 | 2023-03-03T17:11:31.987 | 10,230,401 | 10,230,401 | null |
75,629,960 | 1 | null | null | 1 | 11 | I have an AWS API Gateway websocket endpoint for $connect which calls a lambda function. I want that lambda function to send back a message to the user after they connect. Is there any way to do this?
This is what I have tried in the lambda. The message I send is never received, and I assume that is because the conn... | Send a message to new Websocket connection in AWS API Gateway | CC BY-SA 4.0 | null | 2023-03-03T17:04:32.440 | 2023-03-03T17:04:32.440 | null | null | 1,087,864 | [
"javascript",
"amazon-web-services",
"websocket",
"aws-api-gateway"
] |
75,629,961 | 2 | null | 75,585,869 | 0 | null | It's not as simple as accepting two status codes: depending on the actual status, further assertions may be needed regarding the content and json path. So this scenario is more complex than it may seem, and I doubt built-in `ResultMatchers` support it. The fact that the scenario also tests two outcomes does not help t... | null | CC BY-SA 4.0 | null | 2023-03-03T17:05:00.260 | 2023-03-03T17:05:00.260 | null | null | 1,064,245 | null |
75,629,963 | 1 | null | null | -2 | 12 | I AM developing an HTML5 App.
But in the Fire TV input It does not show the decimals Option. See image attached.
I AM using a input type number.
[](https://i.stack.imgur.com/rLuD2.png)
Any Help please?
This is the input HTML
```
<input name="screen_field" type="number" id="screen_field" style="font-size:50px; text-ali... | Fire TV input It does not show the decimals | CC BY-SA 4.0 | null | 2023-03-03T17:05:12.863 | 2023-03-04T19:49:39.060 | 2023-03-04T19:49:39.060 | 14,669,130 | 14,669,130 | [
"html",
"input",
"decimal",
"amazon-fire-tv"
] |
75,629,947 | 1 | null | null | 0 | 24 | Docker build job keeps failing with below error:
[https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading](https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading)
any idea on this?
I got it working in specific runner, now the question is why is it not working in a shared runner
This is t... | Gitlab Job failed keeps failing during "prepare environment" since it cannot link container | CC BY-SA 4.0 | null | 2023-03-03T17:03:44.533 | 2023-03-04T17:16:10.223 | 2023-03-04T17:16:10.223 | 9,556,489 | 9,556,489 | [
"docker",
"gitlab",
"gitlab-ci-runner"
] |
75,629,962 | 2 | null | 75,629,706 | 0 | null | Here's another approach (one of many) that utilises a as follows:
```
input_list = [
{'name': 'anna', 'city': 'paris', 'code': '5'},
{'name': 'anna', 'city': 'paris', 'code': '2'},
{'name': 'henry', 'city': 'london', 'code': '1'},
{'name': 'henry', 'city': 'london', 'code': '3'}
]
output_list = []
uni... | null | CC BY-SA 4.0 | null | 2023-03-03T17:05:03.250 | 2023-03-03T17:17:53.617 | 2023-03-03T17:17:53.617 | 17,580,381 | 17,580,381 | null |
75,629,967 | 2 | null | 67,393,633 | 0 | null | With the release of [Flutter 3.7](https://medium.com/flutter/whats-new-in-flutter-3-7-38cbea71133c), you can easily add custom context actions to any widget, including Text widgets.
```
SelectableText(
'My Text',
contextMenuBuilder: (context, editableTextState) {
return Adaptiv... | null | CC BY-SA 4.0 | null | 2023-03-03T17:05:25.967 | 2023-03-03T17:05:25.967 | null | null | 12,806,961 | null |
75,629,957 | 1 | null | null | 0 | 4 | I have worked hours on this example and read a lot about Rc and RefCell and RC. I have tried many variants of my example code, including simple, using Rc only, RefCell only and Rc and none of them works. I want to have a system made of components structs that all implement some trait. At the beginning, the components r... | System calling registered components with trait mutability and borrowing issue | CC BY-SA 4.0 | null | 2023-03-03T17:04:21.933 | 2023-03-03T17:04:21.933 | null | null | 4,728,133 | [
"immutability",
"traits",
"ownership",
"borrow",
"interior-mutability"
] |
75,629,968 | 2 | null | 75,629,666 | 3 | null | This should do what you want:
```
import itertools
def f(p, names, numbers):
r = {name : [] for name in names}
for i, j in enumerate(p):
if j >= 0:
r[names[j]].append(numbers[i])
return r
def get_vals(names, numbers):
p_iter = itertools.product(range(-1, len(names)), repeat=len(nu... | null | CC BY-SA 4.0 | null | 2023-03-03T17:05:27.630 | 2023-03-03T17:05:27.630 | null | null | 5,460,719 | null |
75,629,966 | 1 | null | null | 0 | 6 | I have some Excel line charts embedded in PowerPoint and have automated updating the data behind them via Excel/VBA. One of the data series has a dashed line but the strange thing is that the dashes are uneven.
[](https://i.stack.imgur.com/MMTyf.png)
In this zoomed-in screenshot:
[](https://i.stack.imgur.com/5k9Uh.png... | Uneven Dashed Lines in Excel Chart Embedded in PowerPoint | CC BY-SA 4.0 | null | 2023-03-03T17:05:24.290 | 2023-03-03T17:05:24.290 | null | null | 652,116 | [
"excel-charts"
] |
75,629,965 | 1 | null | null | 1 | 11 | I'm using cloud function (gen 2). The cloud function is running in python 3.10. During the execution of the cloud function there are a lot of heavy files that are cached in memory.
It happens quite often that there is a message error of this type:
`Memory limit of 1907 MiB exceeded with 2059 MiB used. Consider increasi... | cloud function instance seems to upgrade automatically the memory if needed (gen 2) | CC BY-SA 4.0 | null | 2023-03-03T17:05:24.290 | 2023-03-04T12:59:19.813 | 2023-03-03T17:06:32.047 | 17,027,364 | 17,027,364 | [
"google-cloud-platform",
"google-cloud-functions"
] |
75,629,971 | 2 | null | 75,629,946 | 0 | null | We could use `slice_max`
```
library(dplyr) # version >= 1.1.0
df1 %>%
slice_max(Year, by = 'Name')
```
-output
```
Name Year Weight
1 John 2022-08-02 198
2 Patrick 2021-03-09 199
3 Peter 2019-10-05 199
```
---
Or with previous versions of `dplyr`
```
df1 %>%
group_by(Name) %>%
slice_... | null | CC BY-SA 4.0 | null | 2023-03-03T17:05:53.277 | 2023-03-03T17:24:20.157 | 2023-03-03T17:24:20.157 | 3,732,271 | 3,732,271 | null |
75,629,979 | 1 | null | null | 0 | 11 | I want to trigger an action by highlighting/selecting text anywhere, right clicking and clicking on my custom option.
My problem is that I don't know how to add that option to the context menu after highlighting text.
Right now, modifying the Registry (Regedit) with Winreg I found `Computer\HKEY_CLASSES_ROOT\*\shellex... | How do I add options to the Windows 11 context-menu (right-click) specifically after I highlight some text? | CC BY-SA 4.0 | null | 2023-03-03T17:06:34.840 | 2023-03-03T17:06:34.840 | null | null | 18,144,300 | [
"windows",
"electron",
"contextmenu",
"regedit"
] |
75,629,975 | 1 | null | null | -3 | 34 | I'm trying to build a gauge using a WPF using the following video
[text](https://www.youtube.com/watch?v=k6rYqXu5sDk)
There's a part in it where this chap about about 8 to 9 minutes adds a custom expression to allow for a png file to be attached. When I do the same thing I get this error. Unable to convert the given e... | Building a gauge with WPF controls | CC BY-SA 4.0 | null | 2023-03-03T17:06:09.557 | 2023-03-03T18:38:20.473 | 2023-03-03T18:38:20.473 | 17,852,619 | 17,852,619 | [
"c#",
"wpf",
"gauge"
] |
75,629,973 | 1 | null | null | 1 | 10 | This question is already asked here but no answer, [how to add outlook event using nodejs](https://stackoverflow.com/q/75068171/15460455)
I am using and to send events to the clients using emails.
I am getting correct results on the gmail as expected [](https://i.stack.imgur.com/vjjNZ.png)
But it is not working on th... | Outlook Calender Event using Nodejs (ics, Nodemailer) | CC BY-SA 4.0 | null | 2023-03-03T17:06:05.740 | 2023-03-03T17:06:05.740 | null | null | 15,460,455 | [
"javascript",
"node.js",
"outlook",
"icalendar",
"nodemailer"
] |
75,629,982 | 1 | null | null | -4 | 22 | [enter image description here](https://i.stack.imgur.com/qlz5Z.jpg)installation error HRESULT: 0X80070C81
When trying to install the installer on different PCs, it gives me the error shown
I have tried uninstalling the installer, updating dependency but I don't know what else to do I need urgent help please
| How could I solve the error of an installer, to an old program but it runs windows 10 | CC BY-SA 4.0 | null | 2023-03-03T17:06:58.910 | 2023-03-03T17:12:08.180 | 2023-03-03T17:12:08.180 | 21,327,547 | 21,327,547 | [
"c#"
] |
75,629,985 | 2 | null | 75,629,132 | 0 | null | You can use `str_extract` with look-behind `(?<=:)` to assert that the match only starts the colon, and look-ahead `(?=\\.)` to assert that the match must be followed by a `.`:
```
str_extract("11:22334455.CEL", "(?<=:)\\d+(?=\\.)")
[1] "22334455"
```
| null | CC BY-SA 4.0 | null | 2023-03-03T17:07:05.117 | 2023-03-03T17:07:05.117 | null | null | 8,039,978 | null |
75,629,983 | 2 | null | 75,629,529 | 0 | null | Go to
```
https://oeis.org/
```
and enter
```
1,5,18,56,160,432
```
and tap Search
and in a fraction of a second it finds that you are not the first person looking at that sequence, that sequence has actually shown up in two different contexts.
| null | CC BY-SA 4.0 | null | 2023-03-03T17:07:03.747 | 2023-03-03T17:07:03.747 | null | null | 2,797,269 | null |
75,629,986 | 1 | null | null | -1 | 11 | vscode allows variables in snippets such as e.g.
```
${TM_FILEPATH}
```
What is the regex to replace all back slashes with forwards slashes?
I've tried:
```
${TM_FILEPATH/[\\\\]/+/g}
${TM_FILEPATH/[\\\\]/_/g}
```
They both work and replace the backward slash with a underscore or a plus sign but if I change it to a fo... | vscode snippet variable regex to replace \ back slashes with / forward | CC BY-SA 4.0 | null | 2023-03-03T17:07:16.007 | 2023-03-03T17:07:16.007 | null | null | 13,332,238 | [
"javascript",
"regex",
"visual-studio-code",
"vscode-snippets"
] |
75,629,974 | 1 | null | null | -3 | 16 | I cannot see where to add these columns and group on them within my code see below
```
SET NOCOUNT ON;
Set Datefirst 1;
DECLARE @Today DATE = '2018-12-31' --getdate()
DECLARE @SinceDate DATE = DATEADD(yy, DATEDIFF(yy,0,@Today),0);
WITH InitialRecords AS
(
SELECT
CLOSEDATE,
DATEPART(YEAR, ... | I need to add 2 columns in my SQL stored procedure FirstDateofWeek, LastDateofWeek | CC BY-SA 4.0 | null | 2023-03-03T17:06:09.377 | 2023-03-03T17:38:57.327 | 2023-03-03T17:38:57.327 | 13,302 | 9,967,654 | [
"sql",
"stored-procedures",
"dateadd"
] |
75,629,989 | 2 | null | 58,936,703 | 0 | null | I've just written a workaround for this.
You can add this helper class to your Blazor project and call `MetadataValidationHelper.Scan` at app start (and also if you dynamically load assemblies at runtime).
```
public static class MetadataValidationHelper
{
private readonly static ConcurrentDictionary<Assembly, bool... | null | CC BY-SA 4.0 | null | 2023-03-03T17:07:33.597 | 2023-03-03T17:07:33.597 | null | null | 61,311 | null |
75,629,987 | 2 | null | 75,571,230 | 1 | null | After testing multiple configurations and searching for hours on SO and on other websites, I found a solution, , but the best available right now.
In your print media query, just put the following:
```
@media print {
body {
border: 1px solid transparent;
}
}
```
## Complete code to run:
```
window.print();... | null | CC BY-SA 4.0 | null | 2023-03-03T17:07:21.153 | 2023-03-03T17:07:21.153 | null | null | 20,576,394 | null |
75,629,978 | 2 | null | 75,624,914 | 1 | null | IIUC, there could be two types of duplicates per product
1. page views within 10 minutes of the initial page view
2. page views within 10 minutes of the previous page view
So, one possible approach is to filter out each type of duplicate separately, in a two-step process.
First, remove duplicates within 10 minutes o... | null | CC BY-SA 4.0 | null | 2023-03-03T17:06:33.887 | 2023-03-04T17:30:18.493 | 2023-03-04T17:30:18.493 | 4,057,186 | 4,057,186 | null |
75,629,990 | 1 | 75,630,681 | null | 3 | 51 | I have a table:
```
CHR POS
10 4342
20 100
22 5422
```
I have another lookup:
```
CHR start end Gene
10 4000 5999 ABC1
20 50 200 JHT
22 5000 6000 KLO
```
Desired output:
```
CHR POS
10 4342 ABC1
20 100 JHT
22 5422 KLO
```
In reality there are 700,000 entries in table 1 and roughly 60000 genes. ... | Lookup table in R by matching ranges | CC BY-SA 4.0 | null | 2023-03-03T17:07:36.043 | 2023-03-03T18:32:12.277 | 2023-03-03T18:32:12.277 | 3,732,271 | 12,291,701 | [
"r",
"lookup"
] |
75,629,977 | 2 | null | 75,623,470 | 0 | null | `size=` tells which column of the dataframe will be used to indicate the size of the scatter dots. For example, `size='weight'` will use the weight column to determine the dot sizes. The smallest weight will be mapped to the smallest dot size, the largest weight to the largest dot size. By default, seaborn chooses som... | null | CC BY-SA 4.0 | null | 2023-03-03T17:06:16.293 | 2023-03-03T17:06:16.293 | null | null | 12,046,409 | null |
75,629,995 | 2 | null | 1,878,458 | -2 | null |
open your my.ini file, then add this
```
skip-grant-tables
```
line under
```
[mysqld]
```
so it should be like this
```
[mysqld]
skip-grant-tables
```
Then restart your mysql in xampp, PROBLEM SOLVED!
Remember to Thank Me!
| null | CC BY-SA 4.0 | null | 2023-03-03T17:08:09.067 | 2023-03-03T17:08:09.067 | null | null | 7,886,372 | null |
75,629,996 | 1 | null | null | 0 | 6 | I am able to browse the following link to view the status of a job
`http://cs237l-05.****.***.**:8088/cluster/app/application_1677689154240_0010`
However, when I click on the history link therein, which points to `http://cs237l-05.****.***.**:8088/proxy/application_1677689154240_0010/` my browser, firefox, reports that... | hadoop URLs: can access cluster but not proxy | CC BY-SA 4.0 | null | 2023-03-03T17:08:14.327 | 2023-03-03T17:08:14.327 | null | null | 2,918,981 | [
"hadoop"
] |
75,629,997 | 1 | null | null | 0 | 26 | Hello StackOverflow community yall have been awesome. I have one last question to see if anyone has done this in the past and if there is a easier solution than mine. In my 2D array I have built I have a .csv file I am reading in. However, I am having to leave parts in that I cant read into my array. Example( "Birmingh... | removing different parts of a 2D array in VB.NET | CC BY-SA 4.0 | null | 2023-03-03T17:08:30.647 | 2023-03-03T20:32:41.983 | null | null | 20,922,879 | [
"arrays",
"vb.net",
"trim",
"skip"
] |
75,629,993 | 2 | null | 75,621,255 | 0 | null | ]Solved Solution [
I took some time to restructure the JSON.
It looks like this in MongoDB.
```
{
"pastprojects": [{
"title": "One Title",
"main": "- Blah Line 1<br>- Blah Line 2",
"sub": "Sub One Description"
},
{
"title": "Two Title",
"m... | null | CC BY-SA 4.0 | null | 2023-03-03T17:07:52.487 | 2023-03-03T17:07:52.487 | null | null | 3,135,427 | null |
75,629,998 | 1 | null | null | 0 | 15 | This seems like it should be simple. I have a VM set up and it has a private IP of 10.x.x.x. There was a VNet created at time of VM creation.
I have an app service and I am trying to add a VNet to the outbound traffic so that the app service can connect with the VM on its private IP
When I try to create the VNet I can ... | Azure App connecting to a VM via private IP and VNet - just can't work it out | CC BY-SA 4.0 | null | 2023-03-03T17:08:30.747 | 2023-03-03T17:08:30.747 | null | null | 4,573,124 | [
"azure",
"azure-web-app-service",
"vnet"
] |
75,630,000 | 2 | null | 70,550,465 | 0 | null | In my case, I had to add the key value pair to the Configuration blade in the Azure App Service to get rid of the 500 error
Key: "ASPNETCORE_ENVIRONMENT" Value: "Development"
| null | CC BY-SA 4.0 | null | 2023-03-03T17:08:39.890 | 2023-03-03T17:08:39.890 | null | null | 3,789,482 | null |
75,629,981 | 2 | null | 75,629,605 | 0 | null | Try using the margin:auto; instead of position:absolute; like this:
```
body {
margin: 0;
background: #CDE7ED;
}
.heading1{
position: absolute;
width: 449px;
height: 80px;
top: 56px;
font-family: 'Montserrat';
font-style: normal;
font-weight: 500;
font-size: 30px;
line-height: 40px;
/* or 133% */
text-align... | null | CC BY-SA 4.0 | null | 2023-03-03T17:06:55.717 | 2023-03-04T06:58:16.230 | 2023-03-04T06:58:16.230 | 8,782,141 | 8,782,141 | null |
75,629,992 | 2 | null | 75,629,276 | 0 | null | The code in your question is:
```
import yfinance as yf
import yesg
ticker_info = yesg.get_esg_full(report_ticker)
esg_data = pd.DataFrame(ticker_info)
esg_data.columns = [str(ticker_info.Ticker)]
esg_data.loc[['Total-Score','E-Score','S-Score','G-Score',
'ESG-Performance','total Percentile','peer Group','max High... | null | CC BY-SA 4.0 | null | 2023-03-03T17:07:45.480 | 2023-03-03T17:07:45.480 | null | null | 18,135,454 | null |
75,629,999 | 2 | null | 75,628,545 | 0 | null | Check the below code, this is the closest I could get. Below code manages to go past . And it manages to click on button as well. However, I think the application is detecting the automated software as it is not allowing to download.
```
# options.add_argument('--headless')
driver = webdriver.Chrome(options=options)
d... | null | CC BY-SA 4.0 | null | 2023-03-03T17:08:33.180 | 2023-03-03T17:08:33.180 | null | null | 7,598,774 | null |
75,630,005 | 2 | null | 75,616,082 | 0 | null | Visual Studio Setup projects (.vdproj) are notoriously underpowered. You can do all of this with the [WiX Toolset](https://wixtoolset.org), but it will take more effort. Certainly, more work than will fit into a StackOverflow answer. :)
| null | CC BY-SA 4.0 | null | 2023-03-03T17:09:15.657 | 2023-03-03T17:09:15.657 | null | null | 23,852 | null |
75,630,004 | 2 | null | 75,629,484 | 0 | null | Use a capture group to grab the number in the CDATA so you can copy it to the replacement without the `-XXX` after it.
```
$result = preg_replace('#<g:id><!\[CDATA\[(\d+)-[^]]+\]\]></g:id>#', '$0<g:id2><![CDATA[$1]]></g:id2>', $string);
```
`$0` is the entire match, `$1` is the number in the CDATA.
[DEMO](https://ideo... | null | CC BY-SA 4.0 | null | 2023-03-03T17:09:06.880 | 2023-03-03T17:09:06.880 | null | null | 1,491,895 | null |
75,630,007 | 1 | null | null | -1 | 22 | I am developing a couple of WordPress plugins with a JavaScipt frontend UI. I chose React as a solution, which could be easily built and included on a WordPress page via shortcodes and wp_enqueue_scripts. Then I came across Nextjs, and I know it can be used to replace WordPress all together (headless), but I need to kn... | Is there a way to include a Next.js application in a WordPress page | CC BY-SA 4.0 | null | 2023-03-03T17:09:17.340 | 2023-03-03T17:42:22.877 | 2023-03-03T17:42:22.877 | 19,665,756 | 19,665,756 | [
"reactjs",
"wordpress",
"next"
] |
75,630,003 | 1 | null | null | 0 | 24 | I am wondering how to extract slope, intercept and R2 from the output of linear regression using type 2 sum of squares?
I know that it is possible to perform "type II" sum of squares using R package . For example,
```
df <- data.frame(x = c(1, 2, 3, 4, 5),
y = c(2, 4, 6, 8, 10.5))
model <- lm(y ~ x, ... | linear regression using type 2 sum of squares, how to extract slope, intercept, r2 from model output? | CC BY-SA 4.0 | null | 2023-03-03T17:09:06.783 | 2023-03-04T08:10:17.677 | 2023-03-04T08:10:17.677 | 8,400,969 | 21,327,530 | [
"r",
"linear-regression"
] |
75,630,006 | 2 | null | 21,376,113 | 0 | null | In JS:
```
const stars_parent = document.getElementById("stars-parent-id")
for (let j = 1; j <= number_stars ; j++){
stars_parent.innerHTML += '<div key={j}>★</div>
}
```
| null | CC BY-SA 4.0 | null | 2023-03-03T17:09:17.173 | 2023-03-03T17:09:17.173 | null | null | 15,830,205 | null |
75,629,984 | 2 | null | 75,523,809 | 0 | null | You can make a scroll view by constraining its frame to its content.
Yes, that sounds a little odd, and is not what we generally think of when it comes to scroll views.
Assuming we've added a stack view to a "content" view, and added that content view to the scroll view, common constraints look like this:
```
// scrol... | null | CC BY-SA 4.0 | null | 2023-03-03T17:07:04.887 | 2023-03-03T17:07:04.887 | null | null | 6,257,435 | null |
75,630,008 | 2 | null | 74,666,572 | 1 | null | For Snapstart environment, we will be using Container Credentials for SDK; for a normal Lambda environment, we can use Environment Credentials for SDK. One way to figure out which environment we are in is to check the container URI:
```
public AwsCredentialsProvider provideAwsCredentials()
return System.getenv("AWS_CON... | null | CC BY-SA 4.0 | null | 2023-03-03T17:09:20.580 | 2023-03-03T17:09:20.580 | null | null | 12,248,597 | null |
75,630,010 | 2 | null | 75,629,939 | -1 | null | `json.decode(jsonString);` seems to be converting the data from `String` to `Map<String, dynamic>` instead of `List<dynamic>`
Please go through the language docs to check if you're using the right return type for your json
[https://api.dart.dev/stable/2.19.3/dart-convert/jsonDecode.html](https://api.dart.dev/stable/2.1... | null | CC BY-SA 4.0 | null | 2023-03-03T17:09:31.397 | 2023-03-03T17:09:31.397 | null | null | 8,414,124 | null |
75,630,014 | 1 | null | null | -1 | 13 | load the tflite model but I get an error as shown in the picture. Please advice.
[](https://i.stack.imgur.com/Zz5t9.jpg)
Answer for research no error
| Flutter load model tflite | CC BY-SA 4.0 | null | 2023-03-03T17:10:09.563 | 2023-03-03T17:10:52.570 | 2023-03-03T17:10:52.570 | 1,255,873 | 21,327,557 | [
"flutter",
"dart",
"tflite"
] |
75,630,011 | 1 | null | null | 0 | 7 | I use spacemacs with [rust layer](https://develop.spacemacs.org/layers/+lang/rust/README.html) ([lsp-rust-analyzer backend](https://emacs-lsp.github.io/lsp-mode/page/lsp-rust-analyzer/)). When I made syntax error, the error highlight appears after a small delay. Then I correct it, the old code action and error highlig... | lsp-rust has slow code action and syntax highlight | CC BY-SA 4.0 | null | 2023-03-03T17:09:33.840 | 2023-03-03T17:09:33.840 | null | null | 4,323,804 | [
"emacs",
"spacemacs",
"rust-analyzer"
] |
75,629,991 | 1 | null | null | -1 | 44 | I have already posted a message about the problem but i have too badly explained the problem.
[Compare two xml files with XSLT](https://stackoverflow.com/questions/75620841/compare-two-xml-files-with-xslt)
So i have decided to post an other message.
I have to compare two XML files.
It is not allowed to use external jar... | Show differences in a text file between two XML files with XSLT1.0 | CC BY-SA 4.0 | null | 2023-03-03T17:07:40.827 | 2023-03-04T08:38:10.067 | 2023-03-03T18:06:41.030 | 20,140,051 | 20,140,051 | [
"java",
"xml",
"xslt"
] |
75,630,002 | 1 | 75,630,044 | null | 1 | 32 | I'm busy working with a Rust Rocket application and I was wondering if it is possible to access the data from a Request URI Query object from inside of a FromRequest implementation.
I have an example FromRequest implementation as
```
use rocket;
use rocket::{Config, Rocket, FromForm};
use rocket::request::{FromRequest,... | Rust Rocket, how to Access Data from a Request URI Query | CC BY-SA 4.0 | null | 2023-03-03T17:09:05.393 | 2023-03-03T21:24:43.217 | 2023-03-03T17:35:34.533 | 3,464,777 | 3,464,777 | [
"rust",
"request",
"query-string",
"rust-rocket"
] |
75,630,009 | 2 | null | 75,629,660 | -1 | null | Here how to handle App Life Cycle:
```
class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver {
@override
void initState() => {WidgetsBinding.instance.addObserver(this), super.initState()};
@override
void dispose() => {WidgetsBinding.instance.removeObserver(this), super.dispose()};
@ov... | null | CC BY-SA 4.0 | null | 2023-03-03T17:09:24.193 | 2023-03-03T17:09:24.193 | null | null | 5,036,171 | null |
75,630,018 | 2 | null | 75,629,915 | 0 | null | Use get method instead of post, here is the solution:
```
json_data = requests.get("https://api.orhanaydogdu.com.tr/deprem/live.php").json()
print(json_data['result'])
```
| null | CC BY-SA 4.0 | null | 2023-03-03T17:10:37.453 | 2023-03-03T17:10:37.453 | null | null | 11,179,336 | null |
75,630,020 | 2 | null | 75,629,799 | 0 | null | I was able to resolve this by setting xref = 'paper' instead of xref = 'x'. Not sure why the library puts an x-axis/y-axis label/ticks/etc on a table, but this was caused by the xref = 'x'. Changing this removes the aberrant axis elements.
| null | CC BY-SA 4.0 | null | 2023-03-03T17:10:45.320 | 2023-03-03T17:10:45.320 | null | null | 8,534,816 | null |
75,630,013 | 1 | null | null | 1 | 38 | I am running the below code:
```
import { useEffect, useState } from "react";
function App() {
const [counter, setCounter] = useState(0);
useEffect(() => {
const listener = () => console.log(counter);
//Do not do this
document.body.addEventListener("click", listener);
const cleanUp = () => console.... | useEffect with document.addEvent-can't understand output | CC BY-SA 4.0 | null | 2023-03-03T17:09:59.387 | 2023-03-03T17:41:41.173 | 2023-03-03T17:41:41.173 | 21,327,427 | 21,327,427 | [
"reactjs",
"react-hooks"
] |
75,630,021 | 2 | null | 75,624,533 | 0 | null | I had the same issue and started to check my Visual Studio Code extensions. The problem gone after i turned off [Babel JavaScript](https://marketplace.visualstudio.com/items?itemName=mgmcdermott.vscode-language-babel) extension. So if you are using the same extension in your project, try turning it off and brackets at ... | null | CC BY-SA 4.0 | null | 2023-03-03T17:10:52.537 | 2023-03-03T17:10:52.537 | null | null | 21,327,585 | null |
75,630,024 | 2 | null | 46,499,742 | 0 | null | Search for Install via USB and select the security option, probably your application is blocked from installing:
[](https://i.stack.imgur.com/z1x8t.jpg)
| null | CC BY-SA 4.0 | null | 2023-03-03T17:11:15.317 | 2023-03-03T17:11:15.317 | null | null | 13,736,405 | null |
75,630,016 | 2 | null | 75,629,990 | 3 | null | With `dplyr` 1.1.0, we can use `join_by` for non-equi joins
```
library(dplyr)
left_join(df1, df2, by = join_by(CHR,
closest(POS >= start), closest(POS <= end))) %>%
select(-start, -end)
```
-output
```
CHR POS Gene
1 10 4342 ABC1
2 20 100 JHT
3 22 5422 KLO
```
---
Or with `data.table`
```
library(d... | null | CC BY-SA 4.0 | null | 2023-03-03T17:10:33.927 | 2023-03-03T17:16:20.373 | 2023-03-03T17:16:20.373 | 3,732,271 | 3,732,271 | null |
75,630,028 | 2 | null | 72,686,124 | 0 | null | As the error points out, `node-adodb` works on windows, and only if `Microsoft Access Database Engine` is installed.
| null | CC BY-SA 4.0 | null | 2023-03-03T17:11:36.053 | 2023-03-03T17:11:36.053 | null | null | 7,721,866 | null |
75,630,025 | 2 | null | 75,629,344 | 0 | null | If you can't access that value, one option is to create your own table and join to it. That would allow you to delegate the responsibility of assigning the correct value to someone on the academic side.
Otherwise, if you must maintain this logic in a Crystal formula, then simply create a detail level formula that retur... | null | CC BY-SA 4.0 | null | 2023-03-03T17:11:29.873 | 2023-03-03T17:11:29.873 | null | null | 1,734,722 | null |
75,630,027 | 2 | null | 75,629,940 | 1 | null | One concise approach uses `re.sub` with a callback function:
```
input_str = 'The substring of "python" from index @ to index @ inclusive is "tho"'
idx_list = [2, 4]
output_str = re.sub(r'\bindex @', lambda m: str(idx_list.pop(0)), input_str)
print(output_str)
# The substring of "python" from 2 to 4 inclusive is "tho"... | null | CC BY-SA 4.0 | null | 2023-03-03T17:11:33.767 | 2023-03-03T17:11:33.767 | null | null | 1,863,229 | null |
75,630,019 | 1 | null | null | 0 | 6 | The stack is a newly built NGINX/php-fpm(8.2) debian 11 web server on EC2 and RDS database (MySQL8). Using WordPress and Laravel framework for separate apps.
Requests to PHP apps that require a DB connection will randomly hang until they timeout and generate a Database Connection Error, but it is "streaky".
What I mean... | Database connection timeout intermittently on Debian 11 / NGINX / PHP-FPM stack with WordPress/Laravel Appls | CC BY-SA 4.0 | null | 2023-03-03T17:10:42.990 | 2023-03-03T17:10:42.990 | null | null | 1,408,712 | [
"php",
"nginx",
"debian",
"amazon-rds",
"fpm"
] |
75,630,029 | 2 | null | 68,218,291 | 0 | null | In my case the problem was conflicting mounts in docker compose:
```
webserver:
image: nginx:latest
ports:
- 80:80
- 443:443
restart: always
volumes:
- ./services/nginx/static/:/var/www/:ro
- ./services/certbot/www:/var/www/certbot/:ro
```
chaged it to:
```
webserver:
image:... | null | CC BY-SA 4.0 | null | 2023-03-03T17:11:48.633 | 2023-03-03T17:11:48.633 | null | null | 7,169,338 | null |
75,630,030 | 2 | null | 75,629,831 | 1 | null | You could use one groupby for each column you want to summarize:
```
import pandas as pd
indicators = ["Plays Basketball", "Plays Soccer", "Plays Football"]
rows = []
keep_cols = ["Age", "Weight"]
for indicator in indicators:
average = df.groupby(indicator).mean()
rows.append(average.loc[1][keep_cols].rename(i... | null | CC BY-SA 4.0 | null | 2023-03-03T17:11:50.833 | 2023-03-03T17:11:50.833 | null | null | 530,160 | null |
75,630,015 | 1 | null | null | -1 | 38 | I am trying to run the stockfish engine as a child process in my code. I want to use fork() and execvp() to do this. I temporarily add the location of the stockfish executable to my PATH by running the command
`export PATH="~/Apps/stockfish_15_linux_x64_avx2:$PATH"`
And I checked to make sure this is added to PATH by r... | excevp does not take over child process (C++) | CC BY-SA 4.0 | null | 2023-03-03T17:10:15.643 | 2023-03-04T23:54:17.780 | 2023-03-04T23:54:17.780 | 12,724,654 | 12,724,654 | [
"c++",
"linux",
"exec",
"parent-child",
"child-process"
] |
75,630,031 | 2 | null | 75,629,904 | 2 | null | You can try:
```
=lambda(z,filter(z,index(z,,1)<>""))
({N2:N,S2:T;
O2:O,S2:T;
P2:P,S2:T;
Q2:Q,S2:T;
R2:R,S2:T})
```
| null | CC BY-SA 4.0 | null | 2023-03-03T17:11:51.200 | 2023-03-03T17:17:17.497 | 2023-03-03T17:17:17.497 | 5,479,575 | 5,479,575 | null |
75,630,037 | 2 | null | 75,626,577 | 0 | null | Ok, it looks like I had the entry in the `info.plist` in the wrong place. ♂️
It was not at root level.
After I corrected that, the font was loaded and used.
| null | CC BY-SA 4.0 | null | 2023-03-03T17:12:32.180 | 2023-03-03T17:12:32.180 | null | null | 7,472,819 | null |