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,950 | 2 | null | 75,620,610 | 0 | null | I found the error by following this link:
[AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'](https://stackoverflow.com/questions/73830524/attributeerror-module-lib-has-no-attribute-x509-v-flag-cb-issuer-check).
I can now open navigator again.
| null | CC BY-SA 4.0 | null | 2023-03-02T21:22:37.583 | 2023-03-02T21:22:37.583 | null | null | 9,431,412 | null |
75,620,948 | 1 | 75,632,900 | null | 0 | 54 | I'm porting a program that uses JNI to use Panama instead. This program uses OpenGL to draw onto a `Canvas` object. I can port the Windows and OpenGL calls to use Panama, but the problem is I need to get the HWND of the Canvas I want to draw to. The C code looks like this:
```
JNIEXPORT void JNICALL Java_somepackage_So... | How do I get the HWND of a Canvas using Panama? | CC BY-SA 4.0 | null | 2023-03-02T21:22:08.160 | 2023-03-04T14:20:35.950 | 2023-03-04T14:20:35.950 | 845,414 | 21,321,944 | [
"java",
"java-native-interface",
"project-panama",
"jawt"
] |
75,620,955 | 1 | 75,622,149 | null | 0 | 15 | my cordova app when you open the keyboard it doesn't scroll up and when you close the android keyboard it has the slashes appearing as if you weren't listening in immersive mode even though it was already starting with it. Does anyone know how to solve one or the other problem.
I already installed the cordova plugin ke... | Cordova - make the app stay in immersive mode even after using the keyboard | CC BY-SA 4.0 | null | 2023-03-02T21:22:40.950 | 2023-03-03T01:17:01.290 | null | null | 19,816,191 | [
"javascript",
"android",
"html",
"cordova",
"keyboard"
] |
75,620,952 | 2 | null | 75,575,308 | 0 | null | I do not know the answer, but I recommend focusing your efforts on bucket permissions, including the bucket policy. You should focus your efforts there because you said that when the bucket is public the code works, and this heavily implies that the issue is with your CloudFront distribution not being able to access th... | null | CC BY-SA 4.0 | null | 2023-03-02T21:22:39.657 | 2023-03-02T21:22:39.657 | null | null | 12,713,117 | null |
75,620,947 | 2 | null | 75,614,029 | 0 | null | Open the index.html and add the line inside the tag:
```
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Greetings!</title>
<link rel="stylesheet" href="https://pyscript.net/releases/2022.12.1/pyscript.css" ... | null | CC BY-SA 4.0 | null | 2023-03-02T21:21:59.630 | 2023-03-02T21:21:59.630 | null | null | 2,036,464 | null |
75,620,949 | 1 | null | null | 0 | 16 | I have used the Inspect Mode of the Firefox browser, to see what material the Bitchute website Sends.
Under the Network Tab, I see a POST method, giving this URL under the File tab: [https://www.bitchute.com/api/search/list/](https://www.bitchute.com/api/search/list/)
The content is a JSON object with all the search re... | Scraping Bitchute, question about POST method | CC BY-SA 4.0 | null | 2023-03-02T21:22:23.263 | 2023-03-03T10:29:23.660 | 2023-03-02T23:24:05.290 | 18,664,063 | 18,664,063 | [
"python",
"post",
"python-requests"
] |
75,620,953 | 2 | null | 71,391,528 | 0 | null | I recommend creating a ranking number in sql then use the dense rank number as a group level in ssrs, this will create the automatic breaking. Next, add top and bottom borders for the totaling cell.
declare @Tmp as table([Ref. No.] varchar(20), [Order] varchar(20),[Req. Date] date, [Item Number] varchar(20), [Buyer] v... | null | CC BY-SA 4.0 | null | 2023-03-02T21:22:39.760 | 2023-03-02T21:34:15.813 | 2023-03-02T21:34:15.813 | 4,001,177 | 4,001,177 | null |
75,620,957 | 2 | null | 75,620,889 | 2 | null | You can use the [SET](https://neo4j.com/docs/cypher-manual/current/clauses/set/) clause with the [+ operator](https://neo4j.com/docs/cypher-manual/current/clauses/set/#set-setting-properties-using-map) to concatenate two arrays to append new values to the interests array property of the Person node.
For example:
```
SE... | null | CC BY-SA 4.0 | null | 2023-03-02T21:22:53.983 | 2023-03-02T22:40:25.837 | 2023-03-02T22:40:25.837 | 19,164,563 | 19,164,563 | null |
75,620,954 | 1 | null | null | 0 | 15 | In Godot 4.0 I am attempting to add ability to detect collision with tiles that removes the tile when it's hit. I got it working with 1x1 tiles, but then when I made the tiles larger (making the titles in the atlas 3x3), and suddenly they aren't removed anymore. the print_debug still shows it collides.
```
if (collisio... | Getting Tile after collision when tile is more then one unit large | CC BY-SA 4.0 | null | 2023-03-02T21:22:39.983 | 2023-03-03T00:48:41.753 | null | null | 1,367,017 | [
"2d",
"collision-detection",
"godot"
] |
75,620,956 | 1 | null | null | -2 | 47 | I am a novice programmer. I am writing a program. The essence of it is as follows: a random number is shown to the user. And he needs to answer "yes" if the number is even, or "no" if it is odd. The user must give the correct answer to three questions in a row. But my counter doesn't work and I don't understand why...
... | My counter in Python code is not working properly | CC BY-SA 4.0 | null | 2023-03-02T21:22:49.843 | 2023-03-02T22:07:51.640 | 2023-03-02T21:31:13.380 | 14,249,087 | 21,321,976 | [
"python",
"counter"
] |
75,620,963 | 2 | null | 17,097,643 | 0 | null | To add clarity to the top answer, the general pattern for filtering all columns that contain a specific word is:
```
# Remove any column with "word" in the name
new_df = df.loc[:, ~df.columns.str.contains("word")]
# Filter multiple words
new_df = df.loc[:, ~df.columns.str.contains("word1|word2")]
```
| null | CC BY-SA 4.0 | null | 2023-03-02T21:24:06.137 | 2023-03-02T21:24:06.137 | null | null | 14,953,667 | null |
75,620,958 | 1 | 75,621,911 | null | 0 | 24 | When creating a new Flutter plugin template from the command line using flutter create, if you do not specify any platforms, the default is (as of now), that no platforms are included.
What is the you would type in order to include ios and android platforms?
I have read the [docs](https://docs.flutter.dev/reference/fl... | How to specify platforms when using "flutter create -t plugin"? | CC BY-SA 4.0 | null | 2023-03-02T21:22:56.890 | 2023-03-04T23:26:07.430 | 2023-03-02T21:34:43.597 | 5,717,640 | 5,717,640 | [
"flutter",
"command-line",
"flutter-plugin",
"flutter-create",
"flutter-command"
] |
75,620,960 | 1 | null | null | 0 | 34 | I'm using @rneui/base package's Input component, however, I cannot center the input field the package provides.
I would be glad if you help. Thank you from now.
```
function EditClassScreen() {
return (
<View style={styles.container}>
<Header />
<View style={styles.inputItem}>
<Input containe... | How do I center the input field vertically in React Native? | CC BY-SA 4.0 | null | 2023-03-02T21:23:27.160 | 2023-03-03T13:29:39.110 | 2023-03-03T13:29:39.110 | 15,419,146 | 15,419,146 | [
"css",
"react-native"
] |
75,620,961 | 1 | null | null | -1 | 31 | I am working on a parser for a custom markup format. I plan to save markup in files with a `*.markup` extension. How do I make VS Code default to a 2-space indentation in such files?
I don't want to make a full-blown extension or language server, I just want to tweak this one setting.
I saw [a similar question](https:/... | How do I create a file association for a custom language? | CC BY-SA 4.0 | null | 2023-03-02T21:23:46.307 | 2023-03-02T21:45:19.170 | 2023-03-02T21:45:19.170 | 10,295,729 | 10,295,729 | [
"visual-studio-code"
] |
75,620,951 | 2 | null | 75,620,697 | 0 | null | The code is invalid. For example the function `pop` deals with its local parameter `root` that contains a copy of the value of the passed original pointer. Changing the copy within the function does not change the original pointer
```
int pop(node *root){
if(root == NULL){
printf("Stack is empty.");
return -1;
... | null | CC BY-SA 4.0 | null | 2023-03-02T21:22:37.680 | 2023-03-03T15:24:24.680 | 2023-03-03T15:24:24.680 | 2,877,241 | 2,877,241 | null |
75,620,965 | 2 | null | 56,176,720 | 0 | null | I put a startup script for my pandas options in my ipython profile.
For example here is what my ipython startup looks like
```
$ ls ~/.ipython/profile_default/startup/
10-pandas.py 11-import-modules.py README
```
My pandas setup looks like
```
def setup_pandas_options(max_rows=50):
import pandas as pd
pd.set... | null | CC BY-SA 4.0 | null | 2023-03-02T21:24:25.053 | 2023-03-02T21:24:25.053 | null | null | 1,679,217 | null |
75,620,966 | 2 | null | 75,620,916 | 2 | null | You need to bind `this` for `getCarSizeQ`. This can be done automatically with a [class field](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Public_class_fields).
```
getCarSizeQ = () => {
return ...
};
```
However, it is better to make it a separate component with a capital name.
| null | CC BY-SA 4.0 | null | 2023-03-02T21:24:50.197 | 2023-03-02T21:24:50.197 | null | null | 9,513,184 | null |
75,620,967 | 2 | null | 75,620,615 | 0 | null | You are correct that messages should not disappear from the queue unless explicitly deleted. I can think of two reasons for the behavior you've described:
1. You have a dead-letter queue with redrive policy parameter maxReceiveCount set to 1;
2. You've set a very short MessageRetentionPeriod.
| null | CC BY-SA 4.0 | null | 2023-03-02T21:24:57.290 | 2023-03-02T21:24:57.290 | null | null | 10,369,131 | null |
75,620,968 | 2 | null | 75,488,600 | 0 | null | There seems to be a bug within the repo and that's why your seeing the issue. It was resolved in a recent commit ([8034b0baeac1b209b1742b3e8fa25015191b57b8](https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=8034b0baeac1b209b1742b3e8fa25015191b57b8)). It was missing the `-p` argument when copying the file. If... | null | CC BY-SA 4.0 | null | 2023-03-02T21:24:57.563 | 2023-03-02T21:24:57.563 | null | null | 2,036,345 | null |
75,620,964 | 2 | null | 75,334,411 | 0 | null | l managed to fix this by the following way , l also included bounce castle but this worked for my conversion fine
```
public static KeyValuePair<bool, string> Signature( string jsonBody)
{
try
{
string pfxPassword = "";
string pfxFilePath = "";
... | null | CC BY-SA 4.0 | null | 2023-03-02T21:24:07.403 | 2023-03-02T21:24:07.403 | null | null | 5,502,007 | null |
75,620,970 | 1 | 75,621,122 | null | -1 | 38 | How can I start stop async function on mouseenter and mouseleave event javascript?
I want function to be executed when mouse is not over swiperContainer and when it is on swiperContainer i want function to be stopped. I am not sure if its done corectly.
My async function and promise here:
```
const exit = function (){... | How can I start stop async function on mouseenter and mouseleave event javascript? | CC BY-SA 4.0 | null | 2023-03-02T21:25:06.503 | 2023-03-02T22:06:50.163 | null | null | 21,321,612 | [
"javascript",
"async-await",
"dom-events"
] |
75,620,975 | 2 | null | 75,620,498 | 1 | null | This happened because of Windows limitation on long directories. I fixed this through running the following command in PowerShell as an administrator:
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" ` -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
| null | CC BY-SA 4.0 | null | 2023-03-02T21:25:51.973 | 2023-03-02T21:27:34.263 | 2023-03-02T21:27:34.263 | 21,044,347 | 21,044,347 | null |
75,620,971 | 2 | null | 75,619,985 | 0 | null | As @ScottCraner suggested, use `COUNTIFS` to see if both exist in the same row.
```
=IF(COUNTIFS($A:$A,$D1,$B:$B,"Active")>0,"Eligible","")
```
The first `COUNTIFS` criteria `$A:$A` looks up the ID `$D1` and counts how many times the ID appears. The second criteria `$B:$B` looks for `"Active"` and counts how many time... | null | CC BY-SA 4.0 | null | 2023-03-02T21:25:15.073 | 2023-03-02T21:25:15.073 | null | null | 1,727,575 | null |
75,620,962 | 1 | 75,621,103 | null | 1 | 28 | I am wanting to update a subset of table_a using an update join with `table_b` however after attempting the update join the non-filtered `table_a` does not change at all;
```
dat_a <-
data.table(postcode = LETTERS[1:10],
values = c(1:8,NaN,10))
dat_b <-
data.table(postcode = LETTERS[1:10],
... | Data.table; Update join on a filtered table/values | CC BY-SA 4.0 | null | 2023-03-02T21:24:02.703 | 2023-03-03T00:43:16.707 | 2023-03-02T21:44:54.253 | 8,107,362 | 9,028,135 | [
"r",
"join",
"data.table"
] |
75,620,972 | 1 | null | null | 0 | 14 | Got an email from Twilio saying that we MAY need to verify the toll free number we for messaging.
We use a number that we get from Twilio. I can't see anywhere to verify so I wonder if maybe we don't need to do this?
| Do I need to verify the toll free number we use for messaging that I get thru Twilio? | CC BY-SA 4.0 | null | 2023-03-02T21:25:17.630 | 2023-03-02T21:25:17.630 | null | null | 6,352,504 | [
"twilio"
] |
75,620,976 | 1 | 75,621,003 | null | 0 | 28 | ```
Datetime ratio dif
2022-06-09 12:33:00 -0.3861241598107547 -299.50183804712964
2022-06-09 12:34:00 -0.360130489922861 -274.88184087028105
2022-06-09 12:35:00 -0.22108950904852795 -166.02672464097395
2022-06-09 12:36:00 -0.18316426991752388 -135.2928226604197
2022-06-09 12:37... | count how many times the column ratio is bigger than 0.05 and column dif is between 15 and 30 | CC BY-SA 4.0 | null | 2023-03-02T21:25:57.667 | 2023-03-02T22:19:17.400 | 2023-03-02T21:41:21.263 | 4,718,350 | 20,807,694 | [
"python",
"pandas",
"dataframe",
"count",
"sum"
] |
75,620,978 | 2 | null | 69,558,033 | 0 | null | This is one of the few examples where there is too much "magic".
Doing this without the delegate property (`by`) works as expected, allowing smart cast to work:
```
val userState = userViewModel.userState.collectAsState().value
when(userState){
is Response.Error -> userState.error
Response.Loading -> Unit
... | null | CC BY-SA 4.0 | null | 2023-03-02T21:26:32.150 | 2023-03-02T21:26:32.150 | null | null | 1,361,689 | null |
75,620,981 | 2 | null | 75,605,825 | 0 | null | If you're not using `discord_components` you shouldn't import them. Also, discord.py does provide full functionality for interactions, like the view you're using, so you should rather avoid another, outdatet library.
Just remove the imports for `discord_components` and your code should work just fine.
:-)
| null | CC BY-SA 4.0 | null | 2023-03-02T21:27:10.897 | 2023-03-02T21:27:10.897 | null | null | 20,059,231 | null |
75,620,977 | 1 | null | null | 0 | 11 | I have to come into a custom theme that is 5 years old, and it has a careers page. But the post cannot be edited. I have been looking through the theme files where the post type is registered to see if it's a permission issue, but everything seems good. I am not a WordPress developer, and any ideas would be helpful.
Th... | WordPress Custom type post unable to edit in admin panel | CC BY-SA 4.0 | null | 2023-03-02T21:26:00.737 | 2023-03-02T21:50:58.777 | null | null | 6,557,335 | [
"wordpress",
"wordpress-theming",
"carbon-fields-2"
] |
75,620,982 | 2 | null | 75,609,844 | 0 | null | It's hard to reproduce from the description only, but I had a similar issue the other day regarding `<a>`-tags inside a `<span>`. When placed inside the `<span>`, the whitespace before and after the `<a>`-tags were gone.
When I inspected the element, I noticed the style was set to `display: inline-flex;`
I changed the ... | null | CC BY-SA 4.0 | null | 2023-03-02T21:27:12.623 | 2023-03-02T21:31:10.827 | 2023-03-02T21:31:10.827 | 15,970,172 | 15,970,172 | null |
75,620,985 | 2 | null | 75,620,893 | 1 | null | You are not checking if the `scanner` actually has lines to read. I see you iterate from 0 to `numRows` and you use lower than (<).
However, you are calling `nextLine()` to get your `numCols`, and that is consuming one line (thus I suspect that you are attempting to read one line extra than the ones you actually have):... | null | CC BY-SA 4.0 | null | 2023-03-02T21:27:23.580 | 2023-03-02T21:27:23.580 | null | null | 3,908,170 | null |
75,620,986 | 2 | null | 75,620,915 | 1 | null | You can go the route of having a
Company table with the values and in that you have a key some 'Type' table.
So you can have your company table with your records and then if the 'typeid' is 1 then it is a vendor record. if its 2 it is a customer record
In the type table you have
id, desc
1, vendor
2, customer
| null | CC BY-SA 4.0 | null | 2023-03-02T21:27:49.057 | 2023-03-02T21:27:49.057 | null | null | 19,111,565 | null |
75,620,959 | 1 | null | null | 0 | 17 | I'm developing a product registration API, in my post I send information about my product by Json and also send an image file directly to my amazon s3. The problem is that when doing this in my postman, I am getting the error
```
"status": 415,
"error": "Unsupported Media Type"
```
I suspect it's some problem with... | Unsupported Media Type error spring boot api JAVA | CC BY-SA 4.0 | null | 2023-03-02T21:23:15.660 | 2023-03-02T23:05:52.383 | 2023-03-02T21:32:59.670 | 21,267,269 | 21,267,269 | [
"amazon-web-services",
"spring-boot",
"api",
"file",
"amazon-s3"
] |
75,620,987 | 2 | null | 26,050,872 | 0 | null | Based on [answer](https://stackoverflow.com/a/26320256/5272316) by @ryanthon. Seems that there's no need to animate changes, at least now in 2023). Proven in iOS 15.
```
let offset = scrollView.contentOffset.y
scrollView.contentInset.top = pullToRefreshInset
scrollView.contentOffset.y = offset
```
| null | CC BY-SA 4.0 | null | 2023-03-02T21:27:53.237 | 2023-03-02T21:27:53.237 | null | null | 5,272,316 | null |
75,620,973 | 2 | null | 75,616,791 | 2 | null | Here are some observations:
- `.map()`- `developer.code().then()``.map()`- `console.log(newString)``then``newString`- `Promise.resolve``new Promise`- `then``then`- `newString.concat``newString``concat``newString`- `async``await`- `getDev``getDev``newString`
To make sure all pieces of the string are first collected befo... | null | CC BY-SA 4.0 | null | 2023-03-02T21:25:22.800 | 2023-03-02T21:55:48.277 | 2023-03-02T21:55:48.277 | 5,459,839 | 5,459,839 | null |
75,620,984 | 2 | null | 75,620,608 | 0 | null |
# tl;dr
```
LocalDateTime
.parse(
"03-Mar-23 10:30" ,
DateTimeFormatter
.ofPattern( "dd-MMM-uu HH:mm" )
.withLocale( Locale.US )
)
```
# Details
Your main problem is that your formatting pattern does not match your input strings. Your input has 2-digit years while your pattern has 4-digit year.... | null | CC BY-SA 4.0 | null | 2023-03-02T21:27:17.733 | 2023-03-02T22:49:55.683 | 2023-03-02T22:49:55.683 | 642,706 | 642,706 | null |
75,620,983 | 1 | 75,621,280 | null | 1 | 42 | I have 2 Views but I cannot get the Data Flow to work with the Picker with @Environment Object, I always get fatal error with a crash, but I already declared environmentobject in the Preview and in the ResultView.
First View looks like this
```
import SwiftUI
@MainActor class DataExample : ObservableObject {
@Publ... | Fatal Error @EnvironmentObject not working | CC BY-SA 4.0 | null | 2023-03-02T21:27:16.017 | 2023-03-03T19:02:58.437 | 2023-03-02T21:46:30.577 | 20,287,183 | 21,285,777 | [
"object",
"swiftui",
"environment"
] |
75,620,991 | 1 | null | null | -1 | 41 | I have been given some code to look at and I am having a hard time trying to follow the flow. This code runs with no errors. I can't post the code here directly but an example of what I am seeing and not understanding is:
```
fuction1(var1,var2,var3){
var1 used in this function
var2 and var3 never used
}
fun... | Trying to understand a Javascript function usage | CC BY-SA 4.0 | null | 2023-03-02T21:28:16.593 | 2023-03-03T20:02:09.540 | 2023-03-03T20:02:09.540 | 14,039,255 | 14,039,255 | [
"javascript"
] |
75,620,988 | 1 | null | null | 0 | 6 | I created a function to run express-validator oneOf()
```
var oneoftest = oneOf([
check("ordertype").equals("Delivery"),
check("streetnumber").isIn(["one","two"]),
],
check("username").isLength({min : 10}),
)
```
in my expressjs endpoint I use it as so :
```
app.post('/stripeguest', oneoft... | oneOf() express-validator is throwing error defying my wish for a resolution | CC BY-SA 4.0 | null | 2023-03-02T21:27:55.713 | 2023-03-03T04:13:51.953 | 2023-03-03T04:13:51.953 | 3,254,501 | 3,254,501 | [
"express",
"express-validator"
] |
75,620,990 | 1 | null | null | 0 | 26 | I am trying to webscrape Balance Sheet data from Yahoo finance ([https://finance.yahoo.com/quote/MSFT/balance-sheet?p=MSFT](https://finance.yahoo.com/quote/MSFT/balance-sheet?p=MSFT)). Specifically, the Current Assets, Total Non Current Assets, Total Non Current Liabilities Net Minority Interest, and Current Liabilitie... | Running into selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: when trying to click a button | CC BY-SA 4.0 | null | 2023-03-02T21:28:15.737 | 2023-03-03T09:40:08.377 | null | null | 8,194,364 | [
"python",
"selenium-webdriver",
"selenium-chromedriver"
] |
75,620,980 | 1 | null | null | 0 | 16 | hello I have a purchase order with items each time I add or remove an item my "listbasket object" is incremented by a new item
If I remove it, it has the opposite effect.
So it's really the best place to get the quantities of my items and display them on htm
So that for each article, I have the quantity in real time.
I... | How to retrieve my listpanier items to display them in html | CC BY-SA 4.0 | null | 2023-03-02T21:26:55.863 | 2023-03-02T21:39:11.773 | 2023-03-02T21:39:11.773 | 10,669,010 | 21,268,337 | [
"javascript"
] |
75,620,989 | 2 | null | 47,391,020 | 0 | null | I got a similar issue but when overriding the ComboBoxItem template through a default style.
I wanted to have a custom template for my comboBox / comboBoxItem so I overrided the ComboBox Style and its template and inside it I setted the ItemContainerStyle (which is obviously the ComboBoxItem style) to override and appl... | null | CC BY-SA 4.0 | null | 2023-03-02T21:27:56.637 | 2023-03-02T21:27:56.637 | null | null | 10,971,190 | null |
75,620,994 | 2 | null | 16,841,554 | 0 | null | You can use JSON.stringify() function to display values of result received from database.
`console.log("Result: " + JSON.stringify(res));`
| null | CC BY-SA 4.0 | null | 2023-03-02T21:28:37.240 | 2023-03-02T21:28:37.240 | null | null | 10,249,859 | null |
75,620,992 | 1 | null | null | 0 | 33 | kivymd MDTopAppBar crush android app after buildozer android debug deploy run, Note that the kivymd application works without MDTopAppBar
I tried as the following and deploy to android, it works,
```
from kivy.lang import Builder
from kivymd.app import MDApp
KV = '''
MDBoxLayout:
orientation: "vertical"
MDLab... | kivymd MDTopAppBar kivymd MDTopAppBar crush android app | CC BY-SA 4.0 | null | 2023-03-02T21:28:16.817 | 2023-03-03T18:48:31.633 | 2023-03-02T23:31:25.990 | 7,254,633 | 15,255,634 | [
"python",
"android",
"kivy",
"kivymd",
"buildozer"
] |
75,620,993 | 2 | null | 67,377,755 | 0 | null | In my case It was a typo in the update statement rather then using the model class `Evaluation` I used the argument `evaluation` : `sqlalchemy_update(evaluation)` so I got the error below, the solution was simply by using the model class `sqlalchemy_update(Evaluation)`:
```
subject table for an INSERT, UPDATE or DELETE... | null | CC BY-SA 4.0 | null | 2023-03-02T21:28:21.900 | 2023-03-02T21:28:21.900 | null | null | 9,039,646 | null |
75,620,996 | 2 | null | 75,614,928 | 0 | null | No, there's no such need.
If your IK (integration key) is live in production it can be now be used with any user or any account in production.
If your app already has an RSA key from production (in case you're using JWT) then you're good to go and to make API calls.
The only thing you'll need for different users is a o... | null | CC BY-SA 4.0 | null | 2023-03-02T21:28:44.443 | 2023-03-02T21:28:44.443 | null | null | 3,255,871 | null |
75,621,003 | 2 | null | 75,620,976 | 0 | null | ```
ratio_condition = df['ratio'].abs() > 0.05
dif_condition = (df['dif'].abs() >= 15) & (df['dif'].abs() <= 30)
count = (ratio_condition & dif_condition).sum()
```
| null | CC BY-SA 4.0 | null | 2023-03-02T21:29:34.870 | 2023-03-02T21:51:49.710 | 2023-03-02T21:51:49.710 | 21,021,990 | 21,021,990 | null |
75,621,002 | 2 | null | 75,620,216 | 1 | null | You can use the `map` method to change the shape of `arr2` by checking the existence of `item` of `arr1`.
## Code
```
const arr1 = [{ name: 'John' }, { name: 'Frank' }];
const arr2 = [
{ name: 'John', age: 35 },
{ name: 'Frank', age: 22 },
{ name: 'Kate', age: 23 },
{ name: 'Donald', age: 18 },
];
... | null | CC BY-SA 4.0 | null | 2023-03-02T21:29:34.760 | 2023-03-02T21:29:34.760 | null | null | 7,551,963 | null |
75,621,001 | 2 | null | 75,620,822 | 1 | null | Lets reconstruct your data
```
import pandas as pd
cities = pd.DataFrame({'NY': {'2023-01-01': 1, '2023-01-02': 92, '2023-01-03': 14},
'LA': {'2023-01-01': 81, '2023-01-02': 42, '2023-01-03': 4},
'Rome': {'2023-01-01': 26, '2023-01-02': 96, '2023-01-03': 60},
'London': {'2023-01-01': 55, '2023-01-02': 98, '2023-01-0... | null | CC BY-SA 4.0 | null | 2023-03-02T21:29:17.720 | 2023-03-02T21:29:17.720 | null | null | 4,718,350 | null |
75,620,999 | 1 | null | null | 0 | 11 | I'm trying to load a GLB for each marker that is detected into a scene but can't figure a way to load a single GLB file.
```
arMarkerControls[i] = new ArMarkerControls(arToolkitContext, camera, {
type: "pattern",
patternUrl: ArToolkitContext.baseURL + `${markers[i]}`,
// patternUrl : THREE... | ARJS in ReactJS with multiple markers each with a different GLB file | CC BY-SA 4.0 | null | 2023-03-02T21:29:11.977 | 2023-03-02T21:29:11.977 | null | null | 21,322,029 | [
"javascript",
"three.js",
"augmented-reality",
"ar.js"
] |
75,620,995 | 2 | null | 38,495,989 | 0 | null | I work in a Git repo with thousands of branches, and when I wonder:
> From which branch did I start my feature branch?
I know the answer will be one of a small set of branches. Also, the approach I use to determine the answer is (IMHO) conceptually a little easier to determine, using the [2-dot syntax of log](https://s... | null | CC BY-SA 4.0 | null | 2023-03-02T21:28:43.547 | 2023-03-02T21:28:43.547 | null | null | 184,546 | null |
75,621,005 | 1 | null | null | 0 | 36 | I have two select statements, lets say first output is
select Name, Score1, Score2, Score3, Score4 from table1;
```
Name Score1 Score2 Score3 Score4
Ryan 42 50 32 35
Mark 58 47 38 44
John 41 43 52 58
```
lets say second output is
select Name, Score1, Sc... | SQL to produce subtraction from two different select query | CC BY-SA 4.0 | null | 2023-03-02T21:30:02.447 | 2023-03-02T22:15:05.143 | 2023-03-02T21:30:26.017 | 21,155,493 | 21,155,493 | [
"sql"
] |
75,621,007 | 2 | null | 75,619,517 | 0 | null | > [...] Saying the predictions was empty.
The issue comes from the test set filtering step :
```
# filter out items not in trainset
testset = [x for x in testset if x[1] in trainset.all_items()]
```
`x[1]` is actually a string (like `'123'`) and `trainset.all_items()` a range. Thus the condition `x[1] in trainset.all_... | null | CC BY-SA 4.0 | null | 2023-03-02T21:30:09.347 | 2023-03-03T10:48:20.033 | 2023-03-03T10:48:20.033 | 11,080,037 | 11,080,037 | null |
75,620,997 | 1 | null | null | 0 | 28 | Starting from a single column `abc` of type `ARRAY<STRING>` with one row:
```
SELECT ARRAY ['a', 'b', 'c'] AS abc
```
If we execute the query with `pyathena` using the `ArrowCursor`:
```
cursor = pyathena.connect(**AWS_PARAMETERS).cursor(ArrowCursor)
execution_result = cursor.execute(query)
```
Where the imports and ... | PyAthena parses an ARRAY<VARCHAR> column correctly but the result is a string | CC BY-SA 4.0 | null | 2023-03-02T21:28:57.227 | 2023-03-02T22:02:28.913 | 2023-03-02T22:02:28.913 | 81,444 | 81,444 | [
"dataframe",
"amazon-athena",
"pyarrow",
"python-polars",
"pyathena"
] |
75,621,008 | 1 | 75,621,121 | null | 0 | 19 | How can I trigger by changing property of item inside of ?
Currently I am assigning null to and then the original value. However, I don't think this is a proper solution.
```
ObservableCollection<Item> temp = Collection;
Collection = null;
Collection = temp;
```
I have also tried to implement interface, but it didn... | NotifyOfProperty change from inside of ObservableCollection | CC BY-SA 4.0 | null | 2023-03-02T21:30:48.103 | 2023-03-03T10:15:24.710 | 2023-03-02T21:41:39.350 | 15,542,266 | 15,542,266 | [
"c#",
"mvvm",
"community-toolkit-mvvm"
] |
75,621,011 | 2 | null | 46,413,494 | 0 | null | In addition to @ZyQux: Have domain on Cloudflare, which redirecting to another VPS provider, where Certbot. There was loop redirect. To fix it, I have had to switch off proxy (to "DNS only") in DNS management of domain:
[](https://i.stack.imgur.com/jsgOb.png)
Thus thanks to @OritK because after fixing it on Cloudflare ... | null | CC BY-SA 4.0 | null | 2023-03-02T21:30:54.390 | 2023-03-02T21:30:54.390 | null | null | 7,284,577 | null |
75,621,010 | 1 | null | null | 0 | 14 | I am getting error
> Binding element 'params' implicitly has an 'any' type.
Here is my code:
```
export default function Page({ params }) {
const { slug } = params;
return (
<>
<h1>{slug}</h1>
<Link href="/">Home</Link>
</>
);
}
```
| Binding element 'params' implicitly has an 'any' type | CC BY-SA 4.0 | null | 2023-03-02T21:30:53.780 | 2023-03-02T21:33:52.773 | null | null | 902,630 | [
"reactjs",
"typescript",
"next.js"
] |
75,621,009 | 1 | 75,623,806 | null | 0 | 23 | so I have this code that fetches me lines and columns from an ExcelPath(path/to/excel/file.xlsx) and shows it in the Console, but going forward I will make other uses of the lines and columns imported from excel. I would like to instead of including the ExcelPath using the `Console.ReadLine()` use it as the `OpenFileDi... | is it possible to create an attachment box to fetch FilePath using C# console as in Windows Form? | CC BY-SA 4.0 | null | 2023-03-02T21:30:50.917 | 2023-03-03T06:52:00.077 | 2023-03-02T21:36:39.803 | 20,932,561 | 20,932,561 | [
"c#",
"console",
"windows-forms-designer"
] |
75,621,004 | 1 | 75,622,445 | null | 1 | 40 | Context: there's a [repo](https://github.com/confluentinc/terraform-provider-confluent) that uses [GoReleaser tool](https://goreleaser.com/) that compiles binaries and [releases](https://github.com/confluentinc/terraform-provider-confluent/releases) it to GitHub.
As described in [this issue](https://github.com/confluen... | How can I reproduce a goreleaser run locally? | CC BY-SA 4.0 | null | 2023-03-02T21:29:43.517 | 2023-03-03T01:36:59.597 | 2023-03-02T22:24:04.757 | 21,322,014 | 21,322,014 | [
"go",
"static-linking",
"goreleaser"
] |
75,621,013 | 1 | null | null | 0 | 11 | I have trouble with letting the slider display only selected groups in R.
For example, in the R demos provided at [https://plotly.com/r/animations/](https://plotly.com/r/animations/), if I double-click the legend to select a particular group, say, "Europe," then only the points for European countries will show. However... | How to let the slider display only selected groups with R plotly? | CC BY-SA 4.0 | null | 2023-03-02T21:31:25.237 | 2023-03-02T21:36:01.393 | 2023-03-02T21:36:01.393 | 21,322,017 | 21,322,017 | [
"r",
"animation",
"plotly",
"slider"
] |
75,621,014 | 1 | null | null | -4 | 33 | I have a dictionary of dictionaries and want to iterate through the common values they share to make a list.
This what I have:
[](https://i.stack.imgur.com/b6L3Q.png)
I would hope for x= [2,2,2,2,2] but instead I get this error
[](https://i.stack.imgur.com/kXKov.png)
What am I doing wrong?
| Can you unpack an embedded dictionary inside of a list? | CC BY-SA 4.0 | null | 2023-03-02T21:31:31.967 | 2023-03-02T21:37:08.540 | 2023-03-02T21:35:19.300 | 4,718,350 | 21,322,015 | [
"python",
"list",
"dictionary",
"list-comprehension",
"python-3.5"
] |
75,621,012 | 2 | null | 75,620,432 | 1 | null | This doesn't really have anything to do with Typescript, and HTML does not really support booleans.
But HTML does support property shorthand in a boolean like way. This is often used for checkboxes like:
```
<input type="checkbox" checked />
```
And if you pass any attribute, then then it appears to get serialized as ... | null | CC BY-SA 4.0 | null | 2023-03-02T21:31:15.187 | 2023-03-02T21:31:15.187 | null | null | 62,076 | null |
75,621,016 | 2 | null | 75,596,065 | 0 | null | As I understand, you're trying to retrieve ten threads from other inbox accounts. Even though you have access to other users inbox as a delegate, to access the delegated accounts inbox data with the API, you need to authenticate as that specific user. There is a way to do this programmatically in Apps Script but this a... | null | CC BY-SA 4.0 | null | 2023-03-02T21:31:44.700 | 2023-03-02T21:39:01.160 | 2023-03-02T21:39:01.160 | 17,926,478 | 17,926,478 | null |
75,621,018 | 2 | null | 75,620,723 | 1 | null | Since it seems like you want to prevent the user from tapping the return key while typing but you want to allow pasted text with newlines, I would change the check from:
```
guard text.rangeOfCharacter(from: CharacterSet.newlines) == nil else {
return false
}
```
to just:
```
if text == "\n" {
return false
}
`... | null | CC BY-SA 4.0 | null | 2023-03-02T21:32:16.950 | 2023-03-02T21:43:58.643 | 2023-03-02T21:43:58.643 | 20,287,183 | 20,287,183 | null |
75,621,006 | 1 | null | null | 0 | 9 | I am trying to run the standard huggingface pipeline to pretrain BERT on my dataset. Here is the error when I attempt to train the model:[by calling trainer.train()]
```
The following columns in the training set don't have a corresponding argument in `BertForMaskedLM.forward` and have been ignored: text, special_token... | Huggingface Data Collator: Index put requires the source and destination dtypes match, got Float for the destination and Long for the source | CC BY-SA 4.0 | null | 2023-03-02T21:30:07.410 | 2023-03-02T23:22:27.590 | 2023-03-02T23:22:27.590 | 9,583,200 | 9,583,200 | [
"casting",
"bert-language-model",
"pre-trained-model",
"huggingface",
"collator"
] |
75,621,017 | 1 | 75,621,104 | null | 1 | 22 | PHP `SimpleXMLElement` can access XML and also give me the text content of an element with the implicit string cast conversion. But I see no way to change that text content. Is it possible?
I have this XML:
```
<root>
<element>text</element>
</root>
```
The text in the element can be accessed like this:
```
$xml =... | Set textContent of an element with PHP SimpleXMLElement | CC BY-SA 4.0 | null | 2023-03-02T21:31:45.203 | 2023-03-03T09:11:43.640 | null | null | 143,684 | [
"php",
"xml"
] |
75,621,022 | 1 | null | null | -2 | 16 | Tryed run prestashop in Docker in below commands
```
docker network create prestashop-testing-network
docker run -ti --name prestashop-testing-mysql --network prestashop-testing-network -e MYSQL_ROOT_PASSWORD=admin -p 3307:3306 -d mysql:5.7
sudo docker run -ti --name some-testing-prestashop --network prestashop-testing... | I'm running Prestashop but I don't have access to mysql | CC BY-SA 4.0 | null | 2023-03-02T21:32:38.243 | 2023-03-04T16:13:35.277 | null | null | 17,669,072 | [
"docker",
"prestashop"
] |
75,621,000 | 2 | null | 75,620,826 | 2 | null | `MouseListener` will convert the `MouseEvent` coordinates to be relative to the component it is registered to. This means that when you register the `MouseListener` to the `JLabel`, all the coordinates for the `MouseEvent`s will be relative to it (ie `0x0` will be the top left of the `JLabel`).
However, remember that ... | null | CC BY-SA 4.0 | null | 2023-03-02T21:29:16.010 | 2023-03-02T23:29:40.327 | 2023-03-02T23:29:40.327 | 992,484 | 992,484 | null |
75,620,979 | 1 | null | null | 0 | 12 | I keep trying to use TypeScript in my Vue 3 components - across multiple projects (even brand new) - and I keep getting the same error when compiling with Webpack:
```
Expected ',', got ':'
```
It works fine until i add the "lang='ts'" to the component's script tag, then i get errors. What am I missing???
Here's the ... | Can't get Vue 3 components using TypeScript to compile with WebPack | CC BY-SA 4.0 | null | 2023-03-02T21:26:33.663 | 2023-03-02T21:26:33.663 | null | null | 11,162,567 | [
"javascript",
"typescript",
"webpack",
"vuejs3"
] |
75,621,019 | 1 | null | null | -1 | 8 | I'm working on a receipt entity recognition task
1. OCR quality problem While there are many available models out there with complex architecture to be fine-tuned on (LayoutLM, PaddleOCR, mmOCR) I'm still struggle to produce high quality OCR results on each receipt.
[Scanned receipt with PaddleOCR](https://i.stack.i... | OCR model for document scanning and bounding boxes generation task | CC BY-SA 4.0 | null | 2023-03-02T21:32:28.767 | 2023-03-02T21:32:28.767 | null | null | 15,351,622 | [
"deep-learning",
"ocr",
"tesseract",
"named-entity-recognition",
"paddleocr"
] |
75,621,021 | 2 | null | 75,620,509 | 1 | null | If you have the following data format:
```
QuadraticBezier (106.774, 78.855)
```
and you want to extract and plot the two numbers, you need to define:
```
set datafile separator '(,)'
```
The closing parenthesis might be skipped.
If you don't separate at the comma, the second column will be interpreted as `106.774, 7... | null | CC BY-SA 4.0 | null | 2023-03-02T21:32:37.737 | 2023-03-02T21:32:37.737 | null | null | 7,295,599 | null |
75,621,029 | 2 | null | 75,620,458 | 0 | null | The simplest way to implement it is by validating the form once it's posted. Another option is to write some JS that validates the second field in the browser only if the first field is filled out, but that is more complicated and probably unnecessary.
By default, all fields are marked as required unless you specify ot... | null | CC BY-SA 4.0 | null | 2023-03-02T21:33:44.413 | 2023-03-02T21:33:44.413 | null | null | 8,810,865 | null |
75,621,024 | 2 | null | 75,620,494 | 0 | null | It's [not true](https://stackoverflow.com/questions/2360724/what-exactly-does-import-import) that `from OtherModule import *` gives you access to everything that's inside `OtherModule`. For example it does not import variables whose name starts with `_`. And each module can have a different definition on [how the wild... | null | CC BY-SA 4.0 | null | 2023-03-02T21:32:51.447 | 2023-03-02T21:41:13.370 | 2023-03-02T21:41:13.370 | 15,032,126 | 15,032,126 | null |
75,621,030 | 2 | null | 75,621,010 | -1 | null | The solution is to explicitly define the `any` type.
Like this
```
{ params }: any
```
Full solution
```
export default function Page({ params }: any) {
const { slug } = params;
return (
<>
<h1>{slug}</h1>
<Link href="/">Home</Link>
</>
);
}
```
| null | CC BY-SA 4.0 | null | 2023-03-02T21:33:45.940 | 2023-03-02T21:33:45.940 | null | null | 902,630 | null |
75,621,015 | 1 | null | null | 1 | 56 | I have an open source project that is a music machine. In its simplest form, press a note on your keyboard and the app will play a predefined note.
Within the app I have an event listener waiting for a `keydown` event
Within the key down handler function there is a very simple conditional `if` statement that checks if ... | Listening for keyboard events (keyup/keydown): Why does this conditional statement not work on Mac OS browsers? | CC BY-SA 4.0 | null | 2023-03-02T21:31:32.890 | 2023-03-04T21:46:54.620 | 2023-03-04T21:46:54.620 | 11,815,954 | 11,815,954 | [
"javascript",
"macos",
"events",
"web-audio-api"
] |
75,621,031 | 2 | null | 65,206,367 | 0 | null | In de settings: Standard options -> Unit-> enter: "Days (without quotes) and select "Custom units: days".
What Carpi2001 explained earlier.
But since the received amount is in seconds and not in days, I need to manually convert the values from seconds to days. I'm using InfluxDB query:
```
SELECT last("uptime")/3600/24... | null | CC BY-SA 4.0 | null | 2023-03-02T21:33:51.743 | 2023-03-02T21:33:51.743 | null | null | 518,879 | null |
75,621,033 | 1 | null | null | 0 | 17 | I have in my Angular app one page (home) and it is created from 3 parts (About Us, FAQ, Contacts) and I set in my top menu on click to redirect to one of corresponding block. Like if I click in menu to Contacts it scroll me to Contacts block. But I have a problem, I set my menu like this
```
"menu"
<div>
<a href="#Abou... | How to remove jumping to top action in Angular | CC BY-SA 4.0 | null | 2023-03-02T21:33:57.740 | 2023-03-02T21:33:57.740 | null | null | 21,175,512 | [
"javascript",
"angular",
"scroll"
] |
75,621,023 | 1 | null | null | 1 | 10 | I have a collection called videos, an array of video objects, one of them looks like this,
```
{
"votes": {
"upVotes": 0,
"downVotes": 0
},
"_id": "60331f421f1d093ab5424480",
"videoLink": "youtube.com/embed/kd2KEHvK-q8",
"title": "The Vanishing of Flight 3... | Should I get all data once from db and filter the result using javascript functions or should I use mongoose find({..}) to filter data? | CC BY-SA 4.0 | null | 2023-03-02T21:32:48.847 | 2023-03-02T21:45:47.057 | 2023-03-02T21:45:47.057 | 21,322,038 | 21,322,038 | [
"api",
"express",
"mongoose",
"url",
"query-string"
] |
75,621,035 | 2 | null | 75,560,826 | 0 | null | Finally got it working. I was compiling libssh2 wrong. Changed the build script for that to do the build the shared library and then do a make && make install. Then when building curl everything works. Still not sure why this is working but it is.
```
./configure \
--enable-shared \
--prefix="$libssh2path" \
--ex... | null | CC BY-SA 4.0 | null | 2023-03-02T21:34:43.483 | 2023-03-02T21:34:43.483 | null | null | 2,958,012 | null |
75,621,020 | 2 | null | 75,571,256 | 1 | null | Generally speaking, if you [annotate](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#type-annotations-on-variables) the type of a variable or [class field](https://www.typescriptlang.org/docs/handbook/2/classes.html#fields), then that's all the compiler will know about the type, even if you assign s... | null | CC BY-SA 4.0 | null | 2023-03-02T21:32:35.860 | 2023-03-02T21:32:35.860 | null | null | 2,887,218 | null |
75,621,037 | 1 | null | null | 0 | 6 | I am attempting to deploy an app using amplify and flutter following [https://aws.amazon.com/getting-started/hands-on/build-flutter-mobile-app-part-two/module-four/](https://aws.amazon.com/getting-started/hands-on/build-flutter-mobile-app-part-two/module-four/) tutorial and am coming across this error: There is already... | Error: There is already a Construct with name 'AuthCognitoUserPoolId' in TransformerRootStack [transformer-root-stack] | CC BY-SA 4.0 | null | 2023-03-02T21:34:50.273 | 2023-03-02T21:34:50.273 | null | null | 21,322,050 | [
"flutter",
"aws-amplify"
] |
75,621,039 | 1 | null | null | 2 | 27 | Based on [official](https://docs.github.com/en/rest/pulls/comments?apiVersion=2022-11-28) GitHub this is the format to get comments on a pull request -
```
/repos/{owner}/{repo}/pulls/{pull_number}/comments
```
Therefore I used the following url -
```
https://api.github.com/repos/RobotLocomotion/drake/pulls/18431/comm... | Why am I getting an empty array when using an url for pull request comments? | CC BY-SA 4.0 | null | 2023-03-02T21:35:16.557 | 2023-03-04T01:24:38.970 | null | null | 11,628,437 | [
"github-api"
] |
75,621,036 | 1 | null | null | 0 | 37 | I have a c++ program on a raspberry pi (headless setup) that records data from an ADC every minute over a period of days and stores them in a file. I want to add an web interface to it that launches possibly many instances of the program, keeps track of how far along they are till completion, view the data possibly in ... | Adding web interface/control to c++ application | CC BY-SA 4.0 | null | 2023-03-02T21:34:43.727 | 2023-03-02T21:38:40.110 | null | null | 8,624,414 | [
"c++",
"webserver",
"cgi",
"fastcgi",
"wt"
] |
75,621,040 | 2 | null | 66,724,602 | 0 | null | Even though the verification passed with a valid RSA key, the first case failed for me because `echo $?` returned `2`, which was unexpected.
In this case, I needed to import the public key to get a match on `Good Signature` by first checking for the RSA key output, then running:
```
gpg --receive-keys <RSA KEY>
```
``... | null | CC BY-SA 4.0 | null | 2023-03-02T21:35:17.813 | 2023-03-02T22:58:42.740 | 2023-03-02T22:58:42.740 | 3,625,433 | 3,625,433 | null |
75,621,027 | 2 | null | 75,616,872 | 0 | null | You were almost there. To scrape the information of the products from the [website](https://www.compracerta.com.br/celulares-e-smartphones?page=1) you can use [list comprehension](https://stackoverflow.com/a/72565083/7429447) and you can use the following [locator strategies](https://stackoverflow.com/questions/483690... | null | CC BY-SA 4.0 | null | 2023-03-02T21:33:26.120 | 2023-03-02T21:33:26.120 | null | null | 7,429,447 | null |
75,621,043 | 2 | null | 75,620,822 | 1 | null | We can also take advantage of pandas method chaining here:
```
import pandas as pd
imoprt numpy as np
(df.reset_index().melt(id_vars='date')
.merge(df2, left_on='variable', right_on='index')
.assign(value = lambda d: d.groupby(['date', 'City Country']).transform(np.median))
.pivot(index='date', columns='index', val... | null | CC BY-SA 4.0 | null | 2023-03-02T21:35:42.827 | 2023-03-02T21:35:42.827 | null | null | 14,314,520 | null |
75,621,042 | 1 | null | null | 0 | 13 | I want to use the AWS Cost explorer to get the amount of running hours for my particular EC2 instance. Is there a way to do that?
I tried to filter on "Running Hours" under usage type groups, but it seems that the cost changes when I filter on Running Hours vs not filtering on running hours (by barely anything but stil... | AWS Cost Explorer: Calculate EC2 running hours | CC BY-SA 4.0 | null | 2023-03-02T21:35:40.597 | 2023-03-02T21:38:02.690 | 2023-03-02T21:38:02.690 | 174,777 | 21,128,509 | [
"amazon-web-services"
] |
75,621,038 | 2 | null | 1,324,379 | 0 | null | For SwiftUI you can't use Font since it has no size(widthAttributes:
But if you define the same UIFont then you can get the size of this Text Label.
Then these methods work as a String Extension:
```
func widthOfString(usingUIFont font: UIFont) -> CGFloat {
let fontAttributes = [NSAttributedString.Key.font: font]
... | null | CC BY-SA 4.0 | null | 2023-03-02T21:34:57.290 | 2023-03-02T21:53:43.130 | 2023-03-02T21:53:43.130 | 165,021 | 165,021 | null |
75,621,046 | 2 | null | 75,619,741 | 0 | null | If your CloudFormation template function calls within calls you'll quickly reach the limit of what CloudFormation templates can do. Try breaking the complex UserData into several smaller parts and joining them together. This can help "flatten" the template and avoid these problems. Here is an example of this from my ow... | null | CC BY-SA 4.0 | null | 2023-03-02T21:35:54.450 | 2023-03-02T21:35:54.450 | null | null | 12,713,117 | null |
75,621,044 | 1 | null | null | 0 | 25 | I want to know what might be the best way to call a `jit.cuda` function in a loop. Currently, I want to compute an array of location `locations=[[1,2], [2,3], [6,8]...]` based on a given matrix `A`. And then change the matrix `A` based on these locations. So what I have done is
```
@jit.cuda
def update_location(locatio... | calling cuda.jit in a loop | CC BY-SA 4.0 | null | 2023-03-02T21:35:43.093 | 2023-03-03T00:16:50.493 | 2023-03-03T00:16:50.493 | 11,429,035 | 11,429,035 | [
"cuda",
"numba"
] |
75,621,026 | 2 | null | 75,480,139 | 0 | null | The short answer is deprecation dates for mysql can be found on [this aws docs page](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/MySQL.Concepts.VersionMgmt.html).
The long answer is that there are 2 ways this could be done.
#### AWS Console
When in RDS there is a page called "Event Subscriptions". There y... | null | CC BY-SA 4.0 | null | 2023-03-02T21:33:18.910 | 2023-03-02T21:50:38.237 | 2023-03-02T21:50:38.237 | 15,428,240 | 15,428,240 | null |
75,621,045 | 1 | null | null | 0 | 22 | I have written a first code block that I would like to replace with a second code block, a function and a call to that function. I'm having difficulty understanding why they have different results. They should be the same. I guess it has something to do with the behavior of "replace" in a function.
```
# 1st code block... | unexpected result from using replace in function (Python) | CC BY-SA 4.0 | null | 2023-03-02T21:35:53.120 | 2023-03-02T21:35:53.120 | null | null | 20,285,368 | [
"python",
"function",
"replace"
] |
75,621,047 | 2 | null | 75,620,455 | 1 | null | I'm not sure if there's a best practice particular on Spring, but on Android development, I tend not to create those methods on the class itself (e.g. a method to convert a Entity to a DTO on the Entity class). The reason why I don't do it is that I will [tightly couple](https://stackoverflow.com/a/2832047/3590155) bot... | null | CC BY-SA 4.0 | null | 2023-03-02T21:36:10.737 | 2023-03-02T21:36:10.737 | null | null | 3,590,155 | null |
75,621,041 | 1 | null | null | 0 | 74 | I tried to change my code to be able to use the new OpenAI model but my application stops working,
BEFORE: In Bold are parts of the code that I changed and where working using text-davinci-003 model
```
**var url = "https://api.openai.com/v1/completions"**
private fun getResponse(query: String) {
val queue: R... | How can i migrate from text-davinci-003 model to gpt-3.5-turbo model using OpenAI API? | CC BY-SA 4.0 | null | 2023-03-02T21:35:36.350 | 2023-03-04T20:16:40.777 | 2023-03-04T20:16:40.777 | 2,407,460 | 20,784,837 | [
"android",
"kotlin",
"openai-api",
"gpt-3",
"chatgpt-api"
] |
75,621,048 | 2 | null | 75,619,526 | 0 | null | to solve the problem modify `else if` block
```
else if (count == maxcount) {
days.add(dayOfWeek(dates[i]));
if (days.indexOf(dayOfWeek(dates[i])) < days.indexOf(freqDay)) {
freqDay = dayOfWeek(dates[i]);
}
}
```
modified code as below:
```
public static String mostFrequentDayOfWeek(SimpleDate[] da... | null | CC BY-SA 4.0 | null | 2023-03-02T21:36:11.710 | 2023-03-02T21:36:11.710 | null | null | 4,629,025 | null |
75,621,053 | 1 | null | null | -3 | 28 | My website works normal on Android, but when I check it on IOS devices it looks different, Maybe some javascript code is not running correctly?
This is one of the links [https://www.morocco-excursion.com/tours/3-day-marrakech-to-merzouga-desert-tour](https://www.morocco-excursion.com/tours/3-day-marrakech-to-merzouga-d... | Why some pages break down and look different on IOS? | CC BY-SA 4.0 | null | 2023-03-02T21:36:53.097 | 2023-03-02T22:11:18.483 | 2023-03-02T21:41:52.143 | 1,631,193 | 17,805,179 | [
"ios",
"web"
] |
75,621,055 | 2 | null | 75,621,014 | 0 | null | You need to handle the case when the dict does not have the key `'Down'`.
```
x = [value['Down'] for value in d.values() if 'Down' in value]
# this will get a list of all the Down values,
# ignoring dicts that don't have this key
# use dict.get instead for a default value when the key doesn't exist
```
| null | CC BY-SA 4.0 | null | 2023-03-02T21:37:08.540 | 2023-03-02T21:37:08.540 | null | null | 9,513,184 | null |
75,621,049 | 1 | null | null | -1 | 31 | I've been looking at this output for so long and I don't know why it's not correct...
The correct answer is but I'm getting which is incorrect. Does anyone see the flaw in this?
I'm implementing pow(x,n) which returns x^n but uses the principle of (x^n)^m = x^n*m to make runtime quicker.
Code
```
function getMiddleFa... | Pow(x,n) Leetcode - Recursion Doesnt Work | CC BY-SA 4.0 | null | 2023-03-02T21:36:14.460 | 2023-03-02T22:27:15.513 | 2023-03-02T21:59:12.040 | 18,244,921 | 3,120,665 | [
"javascript",
"typescript",
"recursion"
] |
75,621,056 | 1 | null | null | -1 | 18 | So I am creating this terraform resource where the TF generates the name of the room and its unique id. It works fine when I have 3 resources. But what happens in the case where I need 1000 resources, I do not want to append the names in the list as it will get bigger, is there a way to use range in this case with fixe... | Terraform create a range variable | CC BY-SA 4.0 | null | 2023-03-02T21:37:17.560 | 2023-03-02T22:37:37.517 | null | null | 4,781,239 | [
"terraform"
] |
75,621,050 | 1 | 75,621,521 | null | 1 | 36 | I am struggling to achieve a demanded effect. I have a following code structure:
```
<div className="font-sans h-screen overflow-auto">
<>
<div className="flex justify-center items-center w-full flex-col">
<div className="flex w-full">
<div className="sm:w-full md:bg-lightBlue bg-white pb-6 sm:pb-16... | Lower divs not stretching to the full viewport | CC BY-SA 4.0 | null | 2023-03-02T21:36:31.330 | 2023-03-03T08:16:02.557 | null | null | 3,795,517 | [
"html",
"css",
"reactjs",
"tailwind-css"
] |