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,617,781 | 1 | null | null | 0 | 4 | Our team is struggling to choose between Service Workers and HTTPonly cookies + NextAuth.
Storing a token in a service worker seems like a new and secure way, but I have not found a lot of examples of that. If you have an experience of using service workers for storing access token and challenges you faced, please shar... | Service workers for storing an access token in browser with OAuth flow in Next JS app? | CC BY-SA 4.0 | null | 2023-03-02T15:48:38.700 | 2023-03-02T15:48:38.700 | null | null | 12,350,596 | [
"next.js",
"oauth",
"service-worker",
"web-worker"
] |
75,617,780 | 1 | null | null | 0 | 14 | I am working with Appium and am stuck on a problem where a popup comes over the screen and causes the test to fail. The popup can appear on any screen anytime. I need to click the dismiss button on the popup to dismiss the popup, but I don't know when it will appear. Does appium provide custom watchers where I can regi... | Custom Watcher using Appium | CC BY-SA 4.0 | null | 2023-03-02T15:48:38.333 | 2023-03-02T16:32:31.397 | 2023-03-02T16:32:31.397 | 3,903,593 | 3,903,593 | [
"testing",
"appium",
"ui-automation",
"appium-android",
"appium-ios"
] |
75,617,783 | 1 | null | null | -1 | 7 | I need to upgrade an old database project (VS2010) to VisualStudio 2022.
I started from the scratch in VS2022 and created a new database project.
Everything works ok, but in the old project we had an embedded resource, we need to access.
I searched everywhere and didn't find an answer how to achieve this in VS2022 (or ... | embed a resource in VS2022 database project | CC BY-SA 4.0 | null | 2023-03-02T15:48:46.407 | 2023-03-02T15:48:46.407 | null | null | 1,491,073 | [
"visual-studio-2019",
"visual-studio-2022",
"database-project",
"sqlproj"
] |
75,617,784 | 2 | null | 75,617,740 | 2 | null | It should only be:
```
{% if club.c_type == 'Tech' %}
SOME CODE
{% endif %}
```
| null | CC BY-SA 4.0 | null | 2023-03-02T15:48:46.650 | 2023-03-02T15:48:46.650 | null | null | 17,562,044 | null |
75,617,777 | 2 | null | 75,617,639 | 1 | null | You can use [Array.map()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Map) along with [Array.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Filter) to remove all cost breakdown elements with `canceled` = true.
```
const a = {"a... | null | CC BY-SA 4.0 | null | 2023-03-02T15:48:14.273 | 2023-03-02T15:48:14.273 | null | null | 7,237,224 | null |
75,617,782 | 2 | null | 75,595,131 | 0 | null | With idea taken from [dynamically add function to r6 class instance](https://stackoverflow.com/questions/26331030/dynamically-add-function-to-r6-class-instance)
that how we can achieve the desired effect.
It's a bit tricky, as you need to take the note of the following:
- - - `self`
```
Simple <- R6Class(
"Simple",
... | null | CC BY-SA 4.0 | null | 2023-03-02T15:48:39.843 | 2023-03-02T15:48:39.843 | null | null | 6,805,670 | null |
75,617,791 | 2 | null | 57,835,934 | 0 | null | I am having this same issue. It happens with many google fonts. Wondering if there's an easier fix for this than adjusting every instance of the font with transform, or padding/margin. Surprised this issue doesn't have more interest.
| null | CC BY-SA 4.0 | null | 2023-03-02T15:49:13.787 | 2023-03-02T15:49:13.787 | null | null | 6,515,773 | null |
75,617,751 | 1 | null | null | 0 | 25 | I have a stateful widget where i have a button that controls the visibility of a container, when this button is tapped, the container is shown, and when tapped again, the container is hidden.
How do i add animation so when the container is being hidden and visible it appear like a dropdown menu?
For clarification i wil... | Ho do i add animation to a widget in a stateful widget in flutter? | CC BY-SA 4.0 | null | 2023-03-02T15:46:10.070 | 2023-03-02T15:58:17.027 | null | null | 9,113,236 | [
"flutter",
"dart"
] |
75,617,760 | 1 | null | null | -1 | 26 | My app needs to delete a marking from one place and add it to the other.
It might be an issue with updating the graph, or maybe the `create_transition_buttons` function.
Here is the code:
```
import numpy as np
import networkx as nx
import matplotlib.pyplot as plt
def get_markings_vector(num_places):
markings = []... | python petri net app has unexpected error | CC BY-SA 4.0 | null | 2023-03-02T15:46:44.380 | 2023-03-02T16:51:05.267 | 2023-03-02T16:51:05.267 | 19,370,702 | 20,610,004 | [
"python"
] |
75,617,786 | 1 | null | null | 0 | 7 | I want to modify the text of a label in another component passing to the last the refs to the label in a props.
```
const withLabelGroup = (Component, label, groupProps, labelStyle="") => {
const xxx = forwardRef((props, ref) => {
const labelRef = useRef(null);
const initLabelRef = useCal... | Modify DOM Element by ref in another componet | CC BY-SA 4.0 | null | 2023-03-02T15:48:52.440 | 2023-03-03T11:02:11.577 | 2023-03-03T11:02:11.577 | 21,320,175 | 21,320,175 | [
"reactjs",
"refs"
] |
75,617,787 | 2 | null | 75,577,921 | 1 | null | Finally I was able to solve the problem of my own. Here are the steps.
1. Download the Appium. - https://appium.io/downloads.html
2. Install the downloaded Appium.
3. Start the Appium server and give a host and port number - Here I have given as shown in below screenshot.
[](https://i.stack.imgur.com/GLBlm.jpg)
1. ... | null | CC BY-SA 4.0 | null | 2023-03-02T15:48:52.763 | 2023-03-02T15:48:52.763 | null | null | 9,399,653 | null |
75,617,790 | 1 | 75,617,893 | null | 1 | 20 | I have trained a generative adversarial network to generate time series.
On the left you see the original time series and on the right the generated one
[](https://i.stack.imgur.com/pCsYo.png)
As you can see they are similar but I recognized that the generated one has a lot of up/down trends within short intervals that... | How to reduce jitter in data? | CC BY-SA 4.0 | null | 2023-03-02T15:49:03.100 | 2023-03-02T16:28:07.337 | null | null | 19,728,432 | [
"python",
"numpy",
"time-series",
"data-preprocessing"
] |
75,617,794 | 2 | null | 75,617,623 | 0 | null | I don't believe you can do what you are trying to do in the way you are trying to do it. You have to construct the string containing the FQN for the table and then use that string in the SQL statement e.g.
```
DECLARE
V_RET VARCHAR(1000) := '';
schema_name := 'EDWSTGP.DBU_CDS';
table_name VARCHAR(1000);
BE... | null | CC BY-SA 4.0 | null | 2023-03-02T15:49:32.727 | 2023-03-02T15:49:32.727 | null | null | 13,658,399 | null |
75,617,796 | 2 | null | 75,612,845 | 0 | null | I found the solution. W e can use `rbind.fill` from `plyr` package which allows to merge csv with different number of column
| null | CC BY-SA 4.0 | null | 2023-03-02T15:49:39.580 | 2023-03-02T15:49:39.580 | null | null | 21,026,902 | null |
75,617,792 | 1 | null | null | 0 | 18 | I am trying to upload symbols files to crashlytics using this command on mac:
```
firebase crashlytics:symbols:upload --app="ANDROID_APP_ID" /Users/macbook/debuginfo/testApp/1.2.0+141
```
But i got this error:
> java.io.IOException: Breakpad symbol generation failed (exit=126), see
STDERR
at com.google.firebase.crashl... | Uploading android symbols files to crashlytics not working in mac | CC BY-SA 4.0 | null | 2023-03-02T15:49:15.810 | 2023-03-02T15:49:15.810 | null | null | 8,010,101 | [
"java",
"android",
"flutter",
"firebase",
"crashlytics"
] |
75,617,785 | 1 | null | null | 0 | 29 | I'm trying to websrcape some information on thw folowing website:[https://entertainment.cathaypacific.com/catalog?template=movie&parent=%E9%9B%BB%E5%BD%B1](https://entertainment.cathaypacific.com/catalog?template=movie&parent=%E9%9B%BB%E5%BD%B1)
However, there is a "show More" buttom on the bottom of the page.
How do I... | How to webscrape the hidden content on website? | CC BY-SA 4.0 | null | 2023-03-02T15:48:49.560 | 2023-03-02T15:59:05.907 | null | null | 8,033,389 | [
"python",
"web-scraping"
] |
75,617,797 | 2 | null | 72,301,646 | 0 | null | The `generateSignedPostPolicyV4` function is the first step to upload data.
> Get a v4 signed policy document to allow a user to upload data with a
POST request
This is found on the official [docs](https://googleapis.dev/nodejs/storage/latest/File.html#generateSignedPostPolicyV4).
You should make another fetch with the... | null | CC BY-SA 4.0 | null | 2023-03-02T15:49:46.560 | 2023-03-02T15:49:46.560 | null | null | 21,268,949 | null |
75,617,798 | 2 | null | 75,617,502 | 2 | null | Just to write clearly how to use `zip_longest` as [Samwise](https://stackoverflow.com/a/75617607/843953) suggested:
```
from itertools import zip_longest
combined = zip_longest(original_list[::2], original_list[1::2])
# Avoid None elements in the last list
nested_list= [[element for element in pair if element]
... | null | CC BY-SA 4.0 | null | 2023-03-02T15:49:49.460 | 2023-03-03T08:13:35.513 | 2023-03-03T08:13:35.513 | 12,575,557 | 12,575,557 | null |
75,617,803 | 2 | null | 75,617,753 | 5 | null | You can use:
```
a.reshape((2,3,3)).swapaxes(0,1)
```
Output:
```
array([[[ 1, 1, 1],
[ 0, 0, 1]],
[[40, 40, 40],
[ 0, 1, 1]],
[[80, 80, 80],
[ 0, 1, 1]]])
```
| null | CC BY-SA 4.0 | null | 2023-03-02T15:50:08.923 | 2023-03-02T15:50:08.923 | null | null | 16,343,464 | null |
75,617,802 | 1 | 75,617,872 | null | -2 | 11 | [enter image description here](https://i.stack.imgur.com/HDRaB.png) Recently I'm learning to use "media query" in CSS, but, my code it isn't working, aparently does not reconized the comand of "Max-widht" also the "Min-widht". Somebody can identify and say to me what is wrong?
| Media query in CSS do not reconized max and min | CC BY-SA 4.0 | null | 2023-03-02T15:50:01.740 | 2023-03-02T15:56:16.803 | null | null | 21,320,244 | [
"css",
"media-queries"
] |
75,617,793 | 2 | null | 75,617,519 | -1 | null | Check the `ICollection` functionalities
```
public interface ICollection : IEnumerable
{
int Count { get; }
bool IsSynchronized { get; }
object SyncRoot { get; }
void CopyTo(Array array, int index);
}
```
you can pass the type to the validation attribute
`CollectionHasAtLeastOneAttribute<T>`
```
publi... | null | CC BY-SA 4.0 | null | 2023-03-02T15:49:18.790 | 2023-03-02T21:39:19.917 | 2023-03-02T21:39:19.917 | 8,434,997 | 8,434,997 | null |
75,617,805 | 1 | null | null | -1 | 23 | I am having an issue with the CSS border. When I am using the code:
`border: 3px solid red`
in inspection, CSS box model showing
[Problem](https://i.stack.imgur.com/gtIQo.jpg)
2.400. Where is the problem?
I tried the code `border: 3px solid red`
also tried `border: 4px solid rgb(6, 71, 140)`
every time its getting 20% ... | In CSS Box Model, Border getting less than 20% of the given size | CC BY-SA 4.0 | null | 2023-03-02T15:50:41.573 | 2023-03-03T16:32:48.757 | 2023-03-03T03:00:16.967 | 11,107,541 | 19,853,142 | [
"css",
"border"
] |
75,617,801 | 1 | 75,618,500 | null | 0 | 30 | The SqlKata documentation lists the following code:
```
builder.Services.AddTransient<QueryFactory>((e) =>
{
var connection = new SqlConnection(CONST.KenticoConnectionString);
var compiler = new SqlServerCompiler();
return new QueryFactory(connection, compiler);
});
```
```
using SqlKata;
using SqlKata.... | How do you inject multiple QueryFactory? | CC BY-SA 4.0 | null | 2023-03-02T15:49:57.813 | 2023-03-02T18:10:34.470 | null | null | 21,320,167 | [
"c#",
".net",
".net-core",
"sqlkata"
] |
75,617,806 | 2 | null | 75,617,578 | 1 | null | The optional in java can never be null. It has to be always non-null and if there is no data the `id.isPresent()` will be false.
If you don't need the object `id` to be null, you would require to keep the function signature as
```
public ResponseEntity<?> find(ZonaIdDTO id)
```
| null | CC BY-SA 4.0 | null | 2023-03-02T15:50:47.540 | 2023-03-02T21:08:04.840 | 2023-03-02T21:08:04.840 | 11,736,934 | 724,109 | null |
75,617,804 | 1 | 75,618,074 | null | 0 | 80 | I have three arrays like below:
```
string[] shapeTypes = {"circle", "triangle", "square" };
string[] shapeColor = { "red", "blue", "orange" };
double[] shapeArea = { 20, 5, 4 };
```
I have to sort shapes by the value of their area (ascending order). For example the sorted arrays would be:
```
shapeTypes = {"squ... | How to sort strings arrays from a double array? | CC BY-SA 4.0 | null | 2023-03-02T15:50:33.793 | 2023-03-03T10:44:47.967 | 2023-03-03T10:44:47.967 | 11,178,549 | 18,331,438 | [
"c#",
"arrays",
"sorting"
] |
75,617,808 | 2 | null | 75,617,007 | 0 | null | If you need to pass a large number of query parameters then you need to be mindful that `GET` requests have a limit of how many parameters you can pass. However, if you really need to use query parameters then you can do the following:
#### Using GET
If you want to pass an object through query parameters you can pas... | null | CC BY-SA 4.0 | null | 2023-03-02T15:50:58.197 | 2023-03-02T15:50:58.197 | null | null | 10,096,086 | null |
75,617,809 | 1 | null | null | -2 | 27 | I have developed a worksheet in excel wherein there are cells that have a drop down function wherein you can choose between yes and no. What I would like to do is to write code in VBA that automatically closes/ locks a certain range if you choose "no" and to let it stay 'open' when you choose "yes".
The code is:
```
Pr... | My code in VBA does not work; Private Sub Worksheet_Change(ByVal Target As Range) | CC BY-SA 4.0 | null | 2023-03-02T15:51:02.073 | 2023-03-02T15:51:02.073 | null | null | 21,320,219 | [
"excel",
"vba",
"worksheet-function"
] |
75,617,807 | 1 | null | null | 0 | 34 | WooCommerce only allows calculating tax based on billing/shipping address and shop base (and geolocation), however I want to manually set the default tax location for new visitors that have not selected a country yet, to a static country without altering base shop address.
The reason I do not want to alter base shop ad... | Changing the woocommerce default tax country location | CC BY-SA 4.0 | null | 2023-03-02T15:50:57.617 | 2023-03-03T09:02:08.027 | 2023-03-02T16:25:45.410 | 4,829,384 | 4,829,384 | [
"wordpress",
"woocommerce",
"hook-woocommerce"
] |
75,617,788 | 1 | null | null | 0 | 31 | As you know `arrayformula` allows the formula to autofill for new lines in the tab.
```
=ArrayFormula(IF(A1:A<>"","111",""))
```
So whenever you have new entry (line) in column A, "111" will be auto-filled in respective row.
I want to write the formula with autofill to lookup the new data, but `ArrayFormula` does not ... | How to make autofill INDEX(MATCH) or Lookup if the column is not empty | CC BY-SA 4.0 | null | 2023-03-02T15:48:58.083 | 2023-03-02T19:15:32.967 | 2023-03-02T15:49:27.030 | 4,851,590 | 21,312,687 | [
"google-sheets",
"google-sheets-formula"
] |
75,617,815 | 2 | null | 75,617,617 | 1 | null | "observability" is a licensed Elastic.co Kibana feature, not available in OpenDistro (and, by the same token, won't be available neither in OpenSearch)
| null | CC BY-SA 4.0 | null | 2023-03-02T15:51:22.577 | 2023-03-02T15:51:22.577 | null | null | 3,029,337 | null |
75,617,799 | 2 | null | 75,617,365 | 0 | null | If I read this right, given your dataset:
```
df_distance = pd.DataFrame({
'id_eleve' : [1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8,9,9,9,9,9],
'id_ecole' : [1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5],
'distance' : [20,30,1... | null | CC BY-SA 4.0 | null | 2023-03-02T15:49:49.490 | 2023-03-02T15:55:17.957 | 2023-03-02T15:55:17.957 | 218,663 | 218,663 | null |
75,617,817 | 2 | null | 75,595,193 | 0 | null | The answer was to change the default location from NY to none.
| null | CC BY-SA 4.0 | null | 2023-03-02T15:51:27.903 | 2023-03-02T15:51:27.903 | null | null | 11,726,591 | null |
75,617,814 | 1 | null | null | -1 | 13 | when i use this libraray and scan bluetooth device not detect all bluetooth device and i used android 12 and the another side 10 .i am expecting all device android version scan.
what should i do?
here is my code.
import this
```
import RNBluetoothClassic from 'react-native-bluetooth-classic';
try {
RNBluetoothClass... | issue react-native-bluetooth-classic library | CC BY-SA 4.0 | null | 2023-03-02T15:51:20.593 | 2023-03-02T15:51:20.593 | null | null | 21,320,101 | [
"react-native",
"bluetooth",
"bluetooth-lowenergy",
"core-bluetooth",
"android-bluetooth"
] |
75,617,812 | 2 | null | 75,617,473 | 0 | null | Running `pip install rebound` builds REBOUND's C extensions from source as an install step. Since you're running Windows, it uses the Microsoft Visual C++ compiler (MSVC) to build the C source.
The relevant error message in the build is:
```
cl : Command line error D8021 : invalid numeric argument '/Wno-unknown-pragmas... | null | CC BY-SA 4.0 | null | 2023-03-02T15:51:14.403 | 2023-03-02T15:53:39.577 | 2023-03-02T15:53:39.577 | 21,315,641 | 21,315,641 | null |
75,617,813 | 2 | null | 64,451,233 | 0 | null | Here is my simple & elegant solution with `styled-components`. If you don't want to use `styled-components`, you can also simply overwrite the classes with standard CSS. Note: . With this solution you can create a horizontal form item within a vertical form as usual.
```
const FormItemHorizontal = styled(Form.Item)`
... | null | CC BY-SA 4.0 | null | 2023-03-02T15:51:16.087 | 2023-03-02T15:51:16.087 | null | null | 12,900,361 | null |
75,617,818 | 2 | null | 75,604,868 | 0 | null | The answer is I had to add another occurrence of the parameter(pointed to the variable) in the SQL Task. If I'm using the variable twice, I have to have it mapped as a parameter twice.
| null | CC BY-SA 4.0 | null | 2023-03-02T15:51:31.220 | 2023-03-02T15:51:31.220 | null | null | 3,729,714 | null |
75,617,811 | 1 | null | null | -2 | 48 | I need to implement such `isAlphabet` function that will take letters and return `true` if the order of the letters matches the order in the alphabet, otherwise `false`:
```
isAlphabet ('abc') === true
isAlphabet ('aBc') === true
isAlphabet ('abd') === false // - there is c after b
isAlphabet ('a') === true
isAlphabet ... | function isAlphabet will take letters and return true if the order of the letters matches the order in the alphabet, otherwise false | CC BY-SA 4.0 | null | 2023-03-02T15:51:05.330 | 2023-03-03T14:41:50.657 | 2023-03-03T14:41:50.657 | 2,627,243 | 21,249,262 | [
"javascript",
"arrays",
"character",
"sequence",
"alphabetical"
] |
75,617,822 | 2 | null | 62,079,029 | 0 | null | I recently got the issue and it was related to mocha.
It looks to have been fixed by this change.
[https://github.com/mochajs/mocha/pull/4311](https://github.com/mochajs/mocha/pull/4311)
Using the latest mocha version solved the issue.
```
"mocha": "10.2.0",
```
| null | CC BY-SA 4.0 | null | 2023-03-02T15:51:47.007 | 2023-03-02T15:51:47.007 | null | null | 1,066,801 | null |
75,617,816 | 1 | null | null | 0 | 30 | I was looking for a way to add some sort of decorator that applies to all instances of `requests.get` being used in any function.
For example,
```
@my_custom_decorator
def hello():
...
r = requests.get('https://my-api-url')
...
```
The `my_custom_decorator` could then add a common param (or anything else) ... | Add decorator for python requests get function | CC BY-SA 4.0 | null | 2023-03-02T15:51:22.923 | 2023-03-02T17:22:49.620 | 2023-03-02T17:22:49.620 | 1,443,702 | 1,443,702 | [
"python",
"api",
"http",
"python-requests"
] |
75,617,820 | 1 | null | null | -2 | 31 | I am having some css conflicts.
I have a page page1.html with some external css including bootstrap.
```
.......
<link rel="stylesheet" href="bootstrap.min.css">
.......
<div id="mytextdiv>>My Text</div>
```
In page1.html, I have an ajax call to populate a div like below:
```
<div id="myDiv"></div>
<script>
$.ajax({
... | How to solve the CSS conflict after ajax call | CC BY-SA 4.0 | null | 2023-03-02T15:51:42.217 | 2023-03-02T15:51:42.217 | null | null | 19,153,785 | [
"javascript",
"html",
"jquery",
"css",
"conflict"
] |
75,617,824 | 1 | null | null | -1 | 16 | I've been struggling with wkhtmltopdf some days and after realize that header and footer only works with wkhtmltopdf , I decided to use it. Now the problem is that with wkhtmltopdf Bootstrap 5 css works pretty well, but with patched Qt only works Bootstrap 4 and with some issues.
Any idea on how to run BS5 over wkhtmlt... | wkhtmltopdf vs. wkhtmltopdf with patched Qt | CC BY-SA 4.0 | null | 2023-03-02T15:52:07.473 | 2023-03-02T15:52:07.473 | null | null | 2,011,678 | [
"qt",
"wkhtmltopdf"
] |
75,617,823 | 1 | null | null | -2 | 40 | I need to return a "T" if there is information in the column fldecdatopersonal_id of the table tblecdatopersonal dp in case there is no information return an "F".
this is my query but I can only get either all "T" or all "F".
```
SELECT
e.*,
CASE WHEN (
SELECT
1
FROM
tble... | subquery case when then else in postgrestsql | CC BY-SA 4.0 | null | 2023-03-02T15:51:48.933 | 2023-03-02T20:20:57.320 | 2023-03-02T20:20:57.320 | 20,359,912 | 20,359,912 | [
"jquery",
"sql",
"postgresql",
"subquery"
] |
75,617,830 | 2 | null | 55,286,542 | 0 | null | For me, i have only JRE (Java Runtime Environment) on my machine. Setting
```
JAVA_HOME= C:\Program Files\Android\Android Studio\jre
```
works for me
| null | CC BY-SA 4.0 | null | 2023-03-02T15:52:26.533 | 2023-03-02T15:52:26.533 | null | null | 13,373,605 | null |
75,617,819 | 2 | null | 75,593,867 | 0 | null | This is how you might implement what James_D said in the comments:
```
package example.stackoverflow;
import javafx.application.Application;
import javafx.beans.binding.Bindings;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.value.ChangeListener;
... | null | CC BY-SA 4.0 | null | 2023-03-02T15:51:34.603 | 2023-03-02T19:24:21.930 | 2023-03-02T19:24:21.930 | 1,165,724 | 1,165,724 | null |
75,617,831 | 2 | null | 33,145,385 | 0 | null | There is a general purpose function available on [https://github.com/grekowski/AzimuthJS](https://github.com/grekowski/AzimuthJS)
You can calculate distance in any units and you can decide if you want a great-circle or rhumb-line method It's in JavaScript but it's quite easy to convert to Java if needed.
You can instal... | null | CC BY-SA 4.0 | null | 2023-03-02T15:52:40.337 | 2023-03-02T15:52:40.337 | null | null | 21,320,095 | null |
75,617,832 | 2 | null | 1,829,271 | 0 | null | I'm surprised no one talked about [Pattern Matching](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/pattern-matching). It's so nice and concise IMHO.
Create a reusable method that uses pattern matching:
```
private static string GetParameter(string option)
{
return option switch
{
... | null | CC BY-SA 4.0 | null | 2023-03-02T15:52:42.217 | 2023-03-02T16:03:40.830 | 2023-03-02T16:03:40.830 | 8,644,294 | 8,644,294 | null |
75,617,833 | 2 | null | 75,613,671 | 1 | null | There are a few issues:
- `.astro`- `.astro`- `client:only="react"`
To avoid these issues you could wrap your React components in another React component:
```
---
import Layout from '../layouts/Layout.astro';
import Wrapper from '../components/Wrapper.jsx';
---
<Layout title="Log in">
<main>
<div class="co... | null | CC BY-SA 4.0 | null | 2023-03-02T15:52:42.513 | 2023-03-02T15:52:42.513 | null | null | 6,909,829 | null |
75,617,827 | 1 | null | null | -2 | 23 | ```
public function manage1(Request $request)
{
$todayDate = \Carbon\Carbon::now()->format('Y-m-d');
$reservations= Reservation::when($request->date !=null, function ($q) use ($request) {
return $q->whereDate('date', $request->date);
})
->join('patients', 'patients.id', '=', 'reserv... | Laravel9 how to fix Reservation ID in index with filter date? | CC BY-SA 4.0 | null | 2023-03-02T15:52:13.393 | 2023-03-02T16:37:48.677 | 2023-03-02T16:37:48.677 | 4,339,402 | 21,320,288 | [
"laravel",
"tailwind-css"
] |
75,617,835 | 1 | null | null | 0 | 7 | I have react.ts app. I am using react-hook-form. How can i put data to customInput by using react-hook-form? Please, help me?
| How get data to react-hook-form from initialState? | CC BY-SA 4.0 | null | 2023-03-02T15:52:47.273 | 2023-03-02T15:52:47.273 | null | null | 19,622,280 | [
"react-hook-form",
"react-tsx"
] |
75,617,838 | 1 | null | null | -4 | 12 | Write an Asssmebly Language Program in DOSBox using DEBUG that displays D O M I N G U E Z at the center of the screen as shown below. D M N U Z same color; blinking O I G E same color; not blinking
i need these letters D M N U Z same color; blinking O I G E same color; not blinking
| DOSBOX HOW TO MAKE LETTERS BLINK | CC BY-SA 4.0 | null | 2023-03-02T15:53:18.073 | 2023-03-02T15:53:18.073 | null | null | 19,895,368 | [
"dosbox"
] |
75,617,828 | 1 | null | null | -2 | 30 | I need to insert into the Salary table which contains the columns:
ID, EmployeeID, Month, Year, GrossAmount, NetAmount RegularWorkAmount,
BonusAmount, OvertimeAmount, VacationDays and Sickdays.
I have generated all the columns except the Vacationdays and Sickdays.
I need to generate the Vacationdays and Sickdays (which... | Inserting into table with cte but also with update | CC BY-SA 4.0 | null | 2023-03-02T15:52:17.050 | 2023-03-03T15:08:46.897 | 2023-03-03T15:08:46.897 | 20,995,471 | 20,995,471 | [
"sql",
"ssms",
"sql-insert",
"common-table-expression",
"sql-server-2019"
] |
75,617,845 | 2 | null | 60,478,872 | 0 | null | In my case my JAVA_HOME was set to a JRE and not a JDK on Linux
| null | CC BY-SA 4.0 | null | 2023-03-02T15:53:48.037 | 2023-03-02T15:53:48.037 | null | null | 21,320,332 | null |
75,617,826 | 2 | null | 75,616,873 | 2 | null | I have a [Disposables library](https://github.com/StephenCleary/Disposables) that has full support for async disposables. This would require you to change `IBusSubscriber<TKey, TMessage>.SubscribeAsync` to return `Task<IAsyncDisposable>` instead of `Task<IDisposable>`, and update usages from `using` to `await using`.
T... | null | CC BY-SA 4.0 | null | 2023-03-02T15:52:12.650 | 2023-03-02T15:52:12.650 | null | null | 263,693 | null |
75,617,836 | 2 | null | 75,479,413 | 0 | null | So after some screwing around, I finally figured that since you're using Import,
you need to add "default" to LottieCompress for it to work, like so
```
const lottieCompress = new LottieCompress.default(data);
```
Note that "ret" is an object from the compressed data of the original json file, you can then write the ... | null | CC BY-SA 4.0 | null | 2023-03-02T15:52:48.547 | 2023-03-02T15:52:48.547 | null | null | 15,062,213 | null |
75,617,841 | 1 | null | null | -1 | 17 | I got a new path loss model in Omnet. The class is on the path loss model path (inet/src/inet/physicallayer/wireless/common/pathloss). I need to show the class result (path loss return) beside the nodes (not on statistics), like in the example [https://docs.omnetpp.org/tutorials/tictoc/part5/](https://docs.omnetpp.org/... | Show class return in Omnet++ | CC BY-SA 4.0 | null | 2023-03-02T15:53:29.820 | 2023-03-02T15:53:29.820 | null | null | 21,320,257 | [
"omnet++"
] |
75,617,846 | 2 | null | 68,641,752 | 0 | null | run the command with the npx utility, i.e. npx parcel index.html.
| null | CC BY-SA 4.0 | null | 2023-03-02T15:53:58.397 | 2023-03-02T15:54:17.497 | 2023-03-02T15:54:17.497 | 21,320,316 | 21,320,316 | null |
75,617,847 | 2 | null | 75,566,587 | 0 | null | I've found the error. The Log4J-Library wasn't included in the single jar-file. I've installed and configured the Gradle plugin ShadowJAR and now, it works!
| null | CC BY-SA 4.0 | null | 2023-03-02T15:54:01.747 | 2023-03-02T15:54:01.747 | null | null | 18,654,586 | null |
75,617,837 | 2 | null | 75,615,932 | 0 | null | So, I figured this out for myself. If you read [this](https://learn.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.metadata.builders.referencenavigationbuilder.withmany?view=efcore-7.0) link from MSDN and take a look at the `collection` parameter you'll see the following:
> The name of the collection navi... | null | CC BY-SA 4.0 | null | 2023-03-02T15:52:50.367 | 2023-03-02T15:52:50.367 | null | null | 12,066,837 | null |
75,617,848 | 2 | null | 22,892,120 | 0 | null | I use google's uuid library in a lot of my projects, which enables me to easily do this:
```
uuid.NewString()[:length]
```
It at least checks the box for simplest.
[https://go.dev/play/p/5sWDsGqglAi](https://go.dev/play/p/5sWDsGqglAi)
| null | CC BY-SA 4.0 | null | 2023-03-02T15:54:05.917 | 2023-03-02T15:54:05.917 | null | null | 1,779,829 | null |
75,617,840 | 2 | null | 75,617,688 | 2 | null | You can craft a regex for [str.contains](https://pandas.pydata.org/docs/reference/api/pandas.Series.str.contains.html) and invert its output (`~`) for [boolean indexing](https://pandas.pydata.org/docs/user_guide/indexing.html#boolean-indexing):
```
import re
pattern = '|'.join(map(re.escape, cust['CUSTOMERS']))
out =... | null | CC BY-SA 4.0 | null | 2023-03-02T15:53:29.837 | 2023-03-02T15:53:29.837 | null | null | 16,343,464 | null |
75,617,854 | 1 | 75,617,897 | null | -1 | 27 | I know I can do:
```
{value ? value: ''}
```
But having to display the `''` for the falsy value is repetitive.
| Is there a concise way to do conditionals where the 'falsy' value isn't displayed in Svelte? | CC BY-SA 4.0 | null | 2023-03-02T15:54:53.823 | 2023-03-04T22:09:07.673 | 2023-03-04T22:09:07.673 | 123,671 | 123,671 | [
"javascript",
"svelte"
] |
75,617,850 | 1 | null | null | 0 | 10 | On a FlutterFlow google map widget I am trying to display only the markers (locations) that have been added during the last 24 hrs.
On a FlutterFlow google map widget I am trying to display only the markers (locations) that have been added during the last 24 hrs. So I went to the firebase console - cloud firestore and ... | Firestore time related rules | CC BY-SA 4.0 | null | 2023-03-02T15:54:10.810 | 2023-03-02T15:54:10.810 | null | null | 21,320,242 | [
"firebase",
"google-maps",
"google-cloud-firestore",
"flutterflow"
] |
75,617,849 | 1 | null | null | 0 | 21 | I would like to embed a PDFViewer ([https://github.com/Zain-Bin-Arshad/pdf-viewer](https://github.com/Zain-Bin-Arshad/pdf-viewer)) into PYQT5 . I was able to embed mathplotlib viewer by passing the canvas into SetCentralWidget. This doesnt seem to work with PDFViewer since I am guessing it isnt a widget? How to accompl... | How do I pass a custom python pdf viewer into PQYT5? | CC BY-SA 4.0 | null | 2023-03-02T15:54:09.167 | 2023-03-02T15:54:09.167 | null | null | 20,277,581 | [
"python",
"pyqt5"
] |
75,617,856 | 2 | null | 75,615,362 | 0 | null | Your ngStyle is not properly formatted. Take a look at this answer for guidance.
[Angular - How to apply [ngStyle] conditions](https://stackoverflow.com/questions/49280975/angular-how-to-apply-ngstyle-conditions)
| null | CC BY-SA 4.0 | null | 2023-03-02T15:54:56.490 | 2023-03-02T15:54:56.490 | null | null | 19,979,278 | null |
75,617,853 | 1 | null | null | 0 | 17 | I have been trying to employ SOCI library for the c++ project I am working on as I needed to access MySQL databases. I have been wrapping my head around how exactly this library works in terms of installing. I have windows 11 and want to use the library on eclipse. What I've done so far:
-Downloaded soci-4.0.3 in C:\
-... | Properly Installing SOCI C++ library and using it with eclipse | CC BY-SA 4.0 | null | 2023-03-02T15:54:44.973 | 2023-03-02T15:54:44.973 | null | null | 12,770,555 | [
"c++",
"eclipse",
"cmake",
"soci",
"c-libraries"
] |
75,617,844 | 2 | null | 75,611,107 | 0 | null | Using some of raman's answer, I came up with a solution that works. I have also added a mouse-over pause that displays overlay text on the videos.
The below code correctly starts a shuffled playlist on page load, waits until a video finishes playing before playing the next video, then reshuffles and starts over once t... | null | CC BY-SA 4.0 | null | 2023-03-02T15:53:46.513 | 2023-03-02T23:11:05.203 | 2023-03-02T23:11:05.203 | 21,315,914 | 21,315,914 | null |
75,617,860 | 1 | null | null | -1 | 6 | I'm developing Python based graph-based applications I want manage different Memgraph database server instances directly from Python.
Can this be done?
| How can I manage Memgraph Docker instances using Python? | CC BY-SA 4.0 | null | 2023-03-02T15:55:20.227 | 2023-03-02T15:55:20.227 | null | null | 20,192,988 | [
"memgraphdb"
] |
75,617,858 | 1 | 75,617,960 | null | 1 | 27 | I have to state providers. The second one (listWithGlobalIDProvider) depends on the first one (currentListProvider) but the first one is independent. But Adding value to the second provider changes the first provider's value. I am calling the listWithGlobalIDProvider inside a futterProvider.
```
final currentListProvid... | Flutter RIverpod changing state strangely | CC BY-SA 4.0 | null | 2023-03-02T15:55:17.263 | 2023-03-02T16:08:40.053 | null | null | 14,726,120 | [
"flutter",
"dart",
"riverpod",
"riverpod-generator"
] |
75,617,852 | 1 | null | null | 0 | 46 | I have the following pyspark dataframe that contains two fields, ID and QUARTER:
```
pandas_df = pd.DataFrame({"ID":[1, 2, 3,4, 5, 3,5,6,3,7,2,6,8,9,1,7,5,1,10],"QUARTER":[1, 1, 1, 1, 1,2,2,2,3,3,3,3,3,4,4,5,5,5,5]})
spark_df = spark.createDataFrame(pandas_df)
spark_df.createOrReplaceTempView('spark_df')
```
and I hav... | Weird behaviour in Pyspark dataframe | CC BY-SA 4.0 | null | 2023-03-02T15:54:44.033 | 2023-03-03T03:08:49.953 | null | null | 7,700,300 | [
"python",
"apache-spark",
"pyspark",
"union",
"pyspark-schema"
] |
75,617,863 | 1 | null | null | 0 | 5 | I want to create a multi-level navigation menu using only pure CSS, which also has a mobile menu option. I have attempted to create the menu and it is partially functional, but when I try to optimize it for mobile devices, the desktop menu design gets affected. I want the same nested menu to work for mobile devices in ... | How can I create a complex, multi-level navigation menu using only CSS and without relying on JavaScript? | CC BY-SA 4.0 | null | 2023-03-02T15:55:26.860 | 2023-03-02T15:55:26.860 | null | null | 12,923,904 | [
"navigation",
"pure-css"
] |
75,617,859 | 1 | null | null | 0 | 28 | I have a time series data where time is stored as 'proleptic Gregorian ordinal' format in a column.
The second column stores the 'class id' for all objects.
The structure of time series is such that it is 'Sparse' - i.e. objects do not have data for all time series. Objects may have one or multiple entries depending o... | Postgresql: Transpose Time Series Data - sparse dates | CC BY-SA 4.0 | null | 2023-03-02T15:55:19.320 | 2023-03-02T15:57:55.237 | 2023-03-02T15:57:55.237 | 7,070,613 | 4,603,892 | [
"pandas",
"postgresql",
"time-series",
"transpose"
] |
75,617,862 | 1 | null | null | 0 | 10 | I am using [ViewerJS](https://viewerjs.org/instructions/) plugin to show PDF files in a modal window.
But it only brings these options, and I would like to implement one more option to print the pdf documents.
[](https://i.stack.imgur.com/UUrje.jpg)
I have tried to add it myself, but I have only managed to add the opti... | How add an option to print in ViewverJS? | CC BY-SA 4.0 | null | 2023-03-02T15:55:26.693 | 2023-03-02T15:55:26.693 | null | null | 10,835,783 | [
"javascript",
"pdf",
"modal-dialog"
] |
75,617,861 | 2 | null | 75,617,860 | 0 | null | [GQLAlchemy](https://memgraph.com/gqlalchemy) `instance_runner` module allows you to start, stop, connect and monitor Memgraph instances with directly from your Python scripts.
First, perform all the necessary imports:
```
from gqlalchemy.instance_runner import (
DockerImage,
MemgraphInstanceDocker
)
```
The f... | null | CC BY-SA 4.0 | null | 2023-03-02T15:55:20.227 | 2023-03-02T15:55:20.227 | null | null | 20,192,988 | null |
75,617,851 | 2 | null | 75,617,386 | 1 | null | This is probably far from efficient, and it also that no other escape sequences can appear in the `varchar` value obtained from the XML, such as having `&amp;` due to having a double escaped ampersand (`&`). If, however, that is true, then we can likely do some varbinary (ab)use.
First, I get the value of the text... | null | CC BY-SA 4.0 | null | 2023-03-02T15:54:42.993 | 2023-03-02T17:06:12.430 | 2023-03-02T17:06:12.430 | 2,029,983 | 2,029,983 | null |
75,617,857 | 1 | null | null | 0 | 33 | I am working with a large dataset on the sex, parentage, and species of a group of animals. I need to calculate 1. so that I can calculate 2. . Each row in my dataset is an individual animal with the mother's ID number attached so I am planning to first group by dam and then by species.
Here is an example of the datas... | Counting categorical variables in grouped dataset in R | CC BY-SA 4.0 | null | 2023-03-02T15:55:11.167 | 2023-03-02T16:46:54.797 | 2023-03-02T16:46:54.797 | 21,320,077 | 21,320,077 | [
"r"
] |
75,617,866 | 1 | null | null | 0 | 22 | I need to generate longitude and latitude columns from the given column of addresses. How do I do it?
```
from geopy.extra.rate_limiter import RateLimiter
locator = Nominatim(user_agent='myGeocoder')
location = locator.geocode('df.address')
geocode = RateLimiter(locator.geocode, min_delay_seconds=0.1)
#df1.apply(lamb... | How do I find the coordinates from addresses in a column in pyspark? | CC BY-SA 4.0 | null | 2023-03-02T15:55:35.987 | 2023-03-02T16:07:16.567 | 2023-03-02T16:07:16.567 | 1,431,720 | 21,320,320 | [
"python",
"pyspark",
"databricks"
] |
75,617,867 | 2 | null | 75,617,723 | 0 | null | Because both your queries grouped by month & year you can join them by those fields and subtract values;
```
with q1 as ( -- first query
select month, year, count()
from ....
group by month, year
),
with q2 as ( -- second query
select month, year, count()
from ....
group by month, year
) select ... | null | CC BY-SA 4.0 | null | 2023-03-02T15:55:45.070 | 2023-03-02T15:55:45.070 | null | null | 3,399,356 | null |
75,617,872 | 2 | null | 75,617,802 | -1 | null | You have a typo in the `width` word, use:
```
@media (max-width: 600px) {
h1 { font-size: 1rem; }
}
```
| null | CC BY-SA 4.0 | null | 2023-03-02T15:56:16.803 | 2023-03-02T15:56:16.803 | null | null | 7,251,995 | null |
75,617,873 | 1 | null | null | 0 | 8 | If I will assign int data type for a column and assign 1 value then how much memory will be utilised
How data type and memory utilisation works together
| How Data type and memory usage works | CC BY-SA 4.0 | null | 2023-03-02T15:56:17.617 | 2023-03-02T15:56:17.617 | null | null | 21,320,293 | [
"sql-server-2012-express"
] |
75,617,864 | 2 | null | 2,717,127 | 0 | null | Try this which supports transparent background and rounded corner not that concise though.
```
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<defs>
<mask id="cut-off-center">
<rect x="0" y="0" rx="2" ry="2" width="78" height="28" fill="white"/>... | null | CC BY-SA 4.0 | null | 2023-03-02T15:55:33.143 | 2023-03-02T16:32:19.793 | 2023-03-02T16:32:19.793 | 2,347,068 | 2,347,068 | null |
75,617,868 | 2 | null | 75,610,379 | 0 | null | By default, Pydantic basically disregards underscored attributes completely. They are not added as to the model. In this case, arbitrary non-field attributes are also forbidden via the `extra` setting. If you now try to pass `_secret="b"` to the constructor, you get an error message because `_secret` is not a field an... | null | CC BY-SA 4.0 | null | 2023-03-02T15:55:45.470 | 2023-03-02T15:55:45.470 | null | null | 19,770,795 | null |
75,617,876 | 1 | null | null | 0 | 18 | I am making a new application and I was looking into the $_SESSION data after logging in. I saw that I can find my password in hash there?!?! Like why? I want to remove the password from the $_SESSION but I don't know how I can do that.
[](https://i.stack.imgur.com/5blIm.png)
The weirdest thing is: I followed the CMS t... | Cakephp 4 Authentication plugin stores password hash in $_SESSION | CC BY-SA 4.0 | null | 2023-03-02T15:56:36.443 | 2023-03-02T15:56:36.443 | null | null | 6,886,840 | [
"php",
"cakephp-4.x"
] |
75,617,875 | 1 | null | null | 0 | 37 | I would like to customize my Stepper in my flutter App.
I changed the color of the background number and the Stepper background with Theme(ThemeData), but i would like to change the color and the height of the little line between every steps.
How is it possible ?
Is there a way to extends Stepper class, and change the ... | How to change Stepper line color in Flutter? | CC BY-SA 4.0 | null | 2023-03-02T15:56:27.807 | 2023-03-04T09:24:24.097 | 2023-03-03T10:23:15.297 | 18,317,488 | 18,317,488 | [
"flutter",
"dart",
"stepper"
] |
75,617,877 | 2 | null | 40,462,176 | 0 | null | This VBA opens Edge with the desired URL. See [this page](https://learn.microsoft.com/en-us/answers/questions/880683/how-to-open-the-edge-browser-using-vba-macro).
```
Private Sub lst_Click()
On Error GoTo ErrHandler
Dim varURL As Variant
varURL = CVar(lst.Column(1, 0))
If Len(varURL & "") > 0 Then
Cre... | null | CC BY-SA 4.0 | null | 2023-03-02T15:56:39.150 | 2023-03-02T15:56:39.150 | null | null | 3,784,130 | null |
75,617,800 | 2 | null | 72,661,063 | 0 | null |
Java.: 1.8.0_282
Maven: 3.8.6
```
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.9.1</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
... | null | CC BY-SA 4.0 | null | 2023-03-02T15:49:52.273 | 2023-03-02T15:49:52.273 | null | null | 1,207,796 | null |
75,617,874 | 2 | null | 75,617,129 | 1 | null | I think that the best approache is, in order: 3, 2, 1
approache 3: as you can see in the execution plan, your filter is pushed to partition, that mean that the executors won't event load data/file that dont respect the filter. this is a best pratice in Spark. try to filter on partition column as soon as possible.
appro... | null | CC BY-SA 4.0 | null | 2023-03-02T15:56:18.193 | 2023-03-02T15:56:18.193 | null | null | 9,729,847 | null |
75,617,871 | 2 | null | 75,617,723 | 0 | null | Without completely rewriting the query, you could just join the 2 results on month/year to match up the values.
```
select t1.UniquePHNUMBERS_TOTAL - t2.UniquePHNUMBERS_TOTAL
from (
select count(distinct phnumber) as UniquePHNUMBERS_TOTAL
, bMONTH
, bYEAR
from (
... | null | CC BY-SA 4.0 | null | 2023-03-02T15:56:02.163 | 2023-03-02T15:56:02.163 | null | null | 1,221,684 | null |
75,617,869 | 2 | null | 75,617,542 | 0 | null | Run this: `System.out.println(LoadSave.class.getResource("LoadSave.class"));`. This will tell you exactly where its looking.
Then ensure that your image is in the same place. So, if, say, that prints something like:
```
file:jar:/home/niccolo/project/foo/dist/mygame.jar!/com/pkg/LoadSave.class
```
Then the code above ... | null | CC BY-SA 4.0 | null | 2023-03-02T15:55:51.693 | 2023-03-02T23:36:46.463 | 2023-03-02T23:36:46.463 | 768,644 | 768,644 | null |
75,617,884 | 2 | null | 69,597,851 | 0 | null | With the same method as Abdelhak ouaddi, you can get ride of the full sticky header, using CSS.
Create a file in 'templates/bundles/NelmioApiDocBundle/SwaggerUi/index.html.twig' with the content below:
```
{% extends '@!NelmioApiDoc/SwaggerUi/index.html.twig' %}
{% block stylesheets %}
{{ parent() }}
<style>
... | null | CC BY-SA 4.0 | null | 2023-03-02T15:57:12.133 | 2023-03-02T15:57:12.133 | null | null | 3,909,503 | null |
75,617,865 | 1 | 75,619,702 | null | 3 | 563 |
For people who have the same issue: please refer to @Rok Benko answer. gpt-3.5 [introductory guide](https://platform.openai.com/docs/guides/chat/introduction) has just been updated. This is the code they report and it works perfectly:
```
import openai
openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages... | OpenAI ChatGPT (gpt-3.5-turbo) API error: "InvalidRequestError: Unrecognized request argument supplied: messages" | CC BY-SA 4.0 | null | 2023-03-02T15:55:35.150 | 2023-03-03T14:22:09.640 | 2023-03-03T14:22:09.640 | 17,034,564 | 17,034,564 | [
"api",
"openai-api",
"chatgpt-api"
] |
75,617,878 | 2 | null | 75,605,585 | 0 | null | I tried @Wawv's solution. Very usefull and speed but that did not give the right result for another sample (underestimation of some booking months):
```
bookings <- data.frame(Route = 'AB',
DepartureMonth = rep(yearmonth("2013-12"), 2),
EffectiveFrom = c("2013-08", "2013-09") %>% yearmonth(),
EffectiveTo = ... | null | CC BY-SA 4.0 | null | 2023-03-02T15:56:41.573 | 2023-03-02T15:56:41.573 | null | null | 17,987,787 | null |
75,617,881 | 2 | null | 75,617,065 | 1 | null | There are many reasons why replicas might not be in-sync. For example, slow networking or storage does not allow them to keep up, maybe your producers are not configured to wait for the messages to be replicated (`acks=all`), or maybe your brokers are not balanced well and some of them are overloaded etc. Without detai... | null | CC BY-SA 4.0 | null | 2023-03-02T15:57:00.980 | 2023-03-02T15:57:00.980 | null | null | 8,607,826 | null |
75,617,889 | 2 | null | 75,611,808 | -1 | null | The issue seem to be using `java.math.BigInteger` datatype for postgres `int8` column. After changing to `java.lang.Long` datatype, the query time reduced now.
Before code:
```
TransactionHistory findBySubscriptionId(
@Param("subscriptionId") BigInteger subscriptionId);
```
Updated code:
```
TransactionHistory... | null | CC BY-SA 4.0 | null | 2023-03-02T15:57:43.823 | 2023-03-02T15:57:43.823 | null | null | 8,634,988 | null |
75,617,885 | 1 | null | null | 0 | 17 | I'm trying to define an Object using JSDoc typedefs. So given the following type definition:
```
/**
* @typedef AccommodationData
* @type {Object}
* @property {string} id
* @property {string} name
* @property {boolean} selected
*/
```
Then defining a variable like so:
```
/** @type {AccommodationData[]} */
accom... | Can you defined a typedef and still use the spread operator to iterate using map()? | CC BY-SA 4.0 | null | 2023-03-02T15:57:18.757 | 2023-03-02T15:57:18.757 | null | null | 505,148 | [
"javascript",
"jsdoc"
] |
75,617,890 | 1 | null | null | 0 | 22 | I'm newbie using Fabric.js and I have this issue:
I put 2 IText objects in the canvas and now I want to align their texts clicking the buttons, but I doesn't work. I put a console.log() to check if I'm getting the attribute correctly, and it's ok, but It's not applying the text alignment to these IText objects.
This is... | Text align doesn't work in Fabric.js IText | CC BY-SA 4.0 | null | 2023-03-02T15:57:47.810 | 2023-03-02T23:40:55.213 | null | null | 7,226,603 | [
"javascript",
"jquery",
"fabricjs"
] |
75,617,887 | 1 | null | null | 0 | 14 | I have a service and there`s a ReplaySubject inside it, which gets value from an API call
```
@Injectable({
providedIn: 'root'
})
export class SampleService {
public testValue$ = new ReplaySubject(1);
public getTestData() {
this.httpClient.get(environment.url).subscribe({
next: (response) => {
... | Injecting service inside interceptor gives circular dependency error | CC BY-SA 4.0 | null | 2023-03-02T15:57:21.290 | 2023-03-02T15:57:21.290 | null | null | 17,134,599 | [
"angular",
"angular-http-interceptors"
] |
75,617,882 | 2 | null | 75,612,342 | 0 | null | ```
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
REM SET PATH=C:\Program Files (x86)\
set "date1=%date:~-4,4%%date:~-10,2%%date:~7,2%"
set "t=%time: =0%"
set "time1=%t:~0,2%%t:~3,2%"
set "log_file=U:\Desktop\Log_%date1%%time1%.txt"
echo %date1%%time1%
for /f "tokens=*" %%K in (U:\Desktop\Customer_record.txt) do (
echo... | null | CC BY-SA 4.0 | null | 2023-03-02T15:57:06.107 | 2023-03-02T15:57:06.107 | null | null | 2,128,947 | null |
75,617,892 | 2 | null | 75,613,992 | 0 | null | for the ItemsPanel! UniformGrid will stretch to fill its parent, StackPanel cannot. You also need to set ListViewItem.HorizontalContentAlignment to Stretch using ItemContainerStyle.
This works:
```
<ListView>
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Rows="1" HorizontalAlignment="... | null | CC BY-SA 4.0 | null | 2023-03-02T15:57:53.993 | 2023-03-02T16:11:19.077 | 2023-03-02T16:11:19.077 | 634,805 | 634,805 | null |
75,617,891 | 2 | null | 75,617,392 | 0 | null | The only way to do this just with HTMX is to take advantage of inheritance and use a couple of nested outer elements around the input.
Each outer element will have its own trigger and target attributes. You can also have different hx-post attributes on each one or leave it in the input. Here's the example code:
```
<di... | null | CC BY-SA 4.0 | null | 2023-03-02T15:57:51.217 | 2023-03-02T15:57:51.217 | null | null | 6,905,499 | null |
75,617,897 | 2 | null | 75,617,854 | 2 | null | For falsiness you can use:
```
{value || ''}
```
(Note that this can lead to undesirable results depending on use case, e.g. a value of `0` will not be rendered.)
For nullish values, the shortest would be to use the [nullish coalescing operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operato... | null | CC BY-SA 4.0 | null | 2023-03-02T15:58:10.527 | 2023-03-02T17:05:04.247 | 2023-03-02T17:05:04.247 | 546,730 | 546,730 | null |